content
stringlengths
40
137k
"public String getSqlStatement() {\n return joinType.getSqlKeyword() + \"String_Node_Str\" + Utility.getTableName(model) + \"String_Node_Str\" + modelField1.getSqlKeyword() + \"String_Node_Str\" + modelField2.getSqlKeyword();\n}\n"
"public void run() {\n String message = getString(mIsPage ? R.string.error_publish_empty_page : R.string.error_publish_empty_post);\n ToastUtils.showToast(EditPostActivity.this, message, Duration.SHORT);\n}\n"
"public void onWailaBlockDescription(ItemStack stack, List<String> tooltip, IWailaDataAccessor access, IWailaConfigHandler config) {\n MovingObjectPosition pos = access.getPosition();\n Block block = access.getBlock();\n ItemStack item = access.getPlayer().getHeldItem();\n String tool = (block != null) ? bl...
"protected ListenableFuture<ODataResponse> oDataExecute(Request request) {\n ODataURL oDataURL = request.getUrl();\n oDataURL.prependPathComponent(urlComponent);\n addCustomParametersToODataRequest(request, getParameters(), getHeaders());\n return parent.oDataExecute(request);\n}\n"
"public int hashCode() {\n int code = this.axis ^ this.test ^ (this.name == null ? 0 : this.name.hashCode()) ^ (this.literal == null ? 0 : this.literal.hashCode()) ^ (this.namespace == null ? 0 : this.namespace.hashCode());\n for (XPathExpression xpe : predicates) {\n code |= xpe.hashCode();\n }\n re...
"public void run() {\n try {\n CacheObject<String> object = get(imageUrl, urlList);\n String imagePath = (object == null ? null : object.getData());\n if (StringUtils.isEmpty(imagePath) || !FileUtils.isFileExist(imagePath)) {\n remove(imageUrl);\n String failedException = \...
"public boolean onContextItemSelected(MenuItem item) {\n AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();\n Cursor cursor = ((SimpleCursorAdapter) getListAdapter()).getCursor();\n cursor.moveToPosition(info.position);\n switch(item.getItemId()) {\n ca...
"public int compare(WrappedStack wrappedStack1, WrappedStack wrappedStack2) {\n if (wrappedStack1.wrappedStack instanceof ItemStack) {\n if (wrappedStack2.wrappedStack instanceof ItemStack) {\n int compareResult = ItemHelper.compare((ItemStack) wrappedStack1.wrappedStack, (ItemStack) wrappedStack2....
"private MessageRenderer loadMessageRenderer(String[] options) {\n if (formats != null && formats.length > 0) {\n final String format = formats[0].toUpperCase(Locale.ROOT);\n switch(format) {\n case \"String_Node_Str\":\n return new JAnsiMessageRenderer(formats);\n ...
"public Garden getGarden(String serverId) {\n HttpClient httpclient = new DefaultHttpClient();\n HttpGet httpget = new HttpGet(getString(R.string.server_url) + \"String_Node_Str\" + serverId + \"String_Node_Str\");\n String result = \"String_Node_Str\";\n try {\n HttpResponse response = httpclient.ex...
"public void testEmployeeXmlTypeOverride() {\n if (shouldGenerateSchema) {\n outputResolver = generateSchema(CONTEXT_PATH, PATH, 1);\n shouldGenerateSchema = false;\n }\n String src = PATH + \"String_Node_Str\";\n String result = validateAgainstSchema(src, EMPTY_NAMESPACE, outputResolver);\n ...
"public void initModel(String modelXML, HashMap<String, String> modelTypes) throws Exception {\n MoMLParser parser = _createMoMLParser();\n _topLevelActor = (CompositeActor) parser.parse(modelXML);\n for (Object obj : getTopLevelActor().deepEntityList()) {\n ComponentEntity actor = (ComponentEntity) obj...
"public String suggestedName() {\n if (StringUtil.isEmptyOrSpaces(myScriptPath)) {\n return null;\n }\n final String name = new File(myScriptPath).getName();\n final String dotAndExtension = \"String_Node_Str\" + TheRFileType.INSTANCE.getDefaultExtension();\n if (name.length() > dotAndExtension.le...
"public Object executeTransform(final Object input) {\n if (input instanceof OIdentifiable) {\n final ORecord rec = ((OIdentifiable) input).getRecord();\n if (rec instanceof ODocument) {\n final ODocument doc = (ODocument) rec;\n if (setOperation) {\n final Object n...
"public Boolean call() throws Exception {\n if (to.equals(from)) {\n getLogger().log(Level.FINEST, \"String_Node_Str\" + toString());\n return Boolean.TRUE;\n }\n if (from == null) {\n getLogger().log(Level.FINEST, \"String_Node_Str\" + toString());\n }\n final Node node = ((FactoryI...
"private <T> void createBinding(Object source, boolean shouldPreload, BindingImpl<T> binding) {\n putBinding(binding);\n if (binding.getScope() == Scopes.SINGLETON) {\n if (stage == Stage.PRODUCTION || shouldPreload) {\n eagerSingletonCreators.add(new EagerSingletonCreator(binding.key, binding.i...
"public void applyPatch(TypeDefPatch patch) throws AtlasBaseException {\n String typeName = patch.getTypeName();\n AtlasBaseTypeDef typeDef = typeRegistry.getTypeDefByName(typeName);\n if (typeDef == null) {\n throw new AtlasBaseException(AtlasErrorCode.PATCH_FOR_UNKNOWN_TYPE, patch.getAction(), typeNam...
"protected VDI getVDIbyUuid(Connection conn, String uuid) {\n try {\n return VDI.getByUuid(conn, uuid);\n } catch (XenAPIException e) {\n String msg = \"String_Node_Str\" + uuid + \"String_Node_Str\" + e.toString();\n s_logger.warn(msg, e);\n throw new CloudRuntimeException(msg, e);\n ...
"public int extractItem(IComputerAccess computer, Object te, ItemStack stack, ForgeDirection direction) {\n if (stack == null) {\n return 0;\n }\n IAEItemStack request = Util.createItemStack(stack);\n if (request == null) {\n return 0;\n }\n IAEItemStack returned = getGrid(te).getCellArr...
"protected TypedReturnCode<TdDataProvider> getRefreshedDataProvider(TdDataProvider oldDataProvider) {\n TypedReturnCode<TdProviderConnection> tdProviderConnection = DataProviderHelper.getTdProviderConnection(oldDataProvider);\n String urlString = tdProviderConnection.getObject().getConnectionString();\n String...
"public void storeAll(Map map) {\n for (Map.Entry entry : (Set<Map.Entry>) map.entrySet()) {\n Object key = entry.getKey();\n Object value = entry.getValue();\n store(key, value);\n }\n}\n"
"public void testLeafRejectIncoming() throws Exception {\n Properties props = new Properties();\n props.put(HeaderNames.X_ULTRAPEER, \"String_Node_Str\");\n HostCatcher hc = RouterService.getHostCatcher();\n hc.add(MessageTestUtils.createPongWithFreeLeafSlots());\n HandshakeResponse headers = HandshakeRe...
"public void handleMethod(Object stageInstance, Method paramMethod, Object[] arguments, InvocationMode mode) throws Throwable {\n if (paramMethod.isSynthetic()) {\n return;\n if (paramMethod.isAnnotationPresent(AfterStage.class) || paramMethod.isAnnotationPresent(BeforeStage.class) || paramMethod.isAnnotat...
"public int getMaxExpandHeight(ExpandableView view) {\n int maxContentHeight = view.getMaxContentHeight();\n if (view.isSummaryWithChildren() && view.getParent() == this) {\n mGroupExpandedForMeasure = true;\n ExpandableNotificationRow row = (ExpandableNotificationRow) view;\n mGroupManager.t...
"public DataCenter editZone(UpdateZoneCmd cmd) {\n Long zoneId = cmd.getId();\n String zoneName = cmd.getZoneName();\n String dns1 = cmd.getDns1();\n String dns2 = cmd.getDns2();\n String internalDns1 = cmd.getInternalDns1();\n String internalDns2 = cmd.getInternalDns2();\n List<String> dnsSearchOr...
"public void attachShutDownHookForceStopDockerContainers(BeforeSuite event, final CubeRegistry cubeRegistry) {\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n final List<Cube<?>> cubes = cubeRegistry.getCubes();\n for (Cube cube : cubes) {\n try {\n cube.stop();\n ...
"protected CreateIpAliasCommand generateCreateIpAliasCommand() {\n List<IpAliasTO> aliases = new ArrayList<>();\n aliases.add(new IpAliasTO(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n aliases.add(new IpAliasTO(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n aliases....
"private HashMap<String, StockQuote> loadQuotes() {\n if (mCachedQuotes != null && !mCachedQuotes.isEmpty()) {\n return mCachedQuotes;\n }\n HashMap<String, StockQuote> quotes = new HashMap<>();\n String savedQuotesString = this.appStorage.getString(\"String_Node_Str\", \"String_Node_Str\");\n Str...
"private void sendTerminatingEventOnNotification(List<ApplicationChildContext> terminationList, String notifier, boolean terminateAll, String instanceId) {\n Monitor monitor;\n for (ApplicationChildContext terminationContext : terminationList) {\n monitor = this.aliasToActiveChildMonitorsMap.get(terminatio...
"private static void edit_feed(String old_feed_name, String feed_name, String feed_url, String old_group, String feed_group) {\n List<String> feeds = read_file_to_list_static(\"String_Node_Str\", 0);\n (new File(storage + \"String_Node_Str\")).delete();\n for (int i = 0; i < feeds.size(); i++) {\n if (f...
"private Map doRecordHarvest(String from, String until, String set, String metadataPrefix, int offset) throws OAIInternalServerError, BadArgumentException {\n Context context = null;\n String schemaURL = getCrosswalks().getSchemaURL(metadataPrefix);\n Map results = new HashMap();\n if (schemaURL == null) {\...
"private void appendToOutputChunk(StreamEventCloner streamEventCloner, List<ComplexEventChunk<StreamEvent>> complexEventChunks, long currentTime) {\n ComplexEventChunk<StreamEvent> newEventChunk = new ComplexEventChunk<StreamEvent>(true);\n ComplexEventChunk<StreamEvent> sentEventChunk = new ComplexEventChunk<Str...
"public Address getNextReturnAddressAddress() {\n if (mapId >= 0) {\n if (VM.TraceStkMaps) {\n VM.sysWrite(\"String_Node_Str\");\n VM.sysWrite(mapId);\n VM.sysWrite(\"String_Node_Str\");\n }\n return Address.zero();\n }\n mapIndex = maps.getNextJSRReturnAdd...
"protected void map(Text key, Text value, Context context) throws IOException, InterruptedException {\n int msgIdKey = Integer.MIN_VALUE;\n int fromKey = Integer.MIN_VALUE;\n String valStr = value.toString();\n String[] splits = StringUtils.splitByWholeSeparatorPreserveAllTokens(valStr, separator);\n if ...
"public void testCursorModel5() throws OLAPException, BirtException {\n ICubeQueryDefinition cqd = this.creator.createQueryDefinition();\n IBinding rowGrandTotal = new Binding(\"String_Node_Str\");\n rowGrandTotal.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);\n rowGrandTotal.setExpression(new ScriptE...
"public static Node createFolderNode(final Session session, final PentahoJcrConstants pentahoJcrConstants, final Serializable parentFolderId, final RepositoryFile folder) throws RepositoryException {\n checkName(folder.getName());\n Node parentFolderNode;\n if (parentFolderId != null) {\n parentFolderNo...
"public void actionApplySelectedTransformation() {\n final WorkerTransform worker = new WorkerTransform(model);\n main.showProgressDialog(Resources.getMessage(\"String_Node_Str\"), worker);\n if (worker.getError() != null) {\n main.showErrorDialog(\"String_Node_Str\", Resources.getMessage(\"String_Node_...
"public void run() throws Exception {\n CollectionService service = getService();\n for (Map.Entry<String, CollectionContainer> entry : migrationData.entrySet()) {\n String name = entry.getKey();\n CollectionContainer container = entry.getValue();\n container.init(getNodeEngine());\n s...
"public String getDecoration() {\n String decoration = \"String_Node_Str\";\n if (this instanceof TypeProvider && !(this instanceof ImpliedNode))\n decoration += \"String_Node_Str\" + ((TypeProvider) this).getWhereUsedNode().getWhereUsedCount() + \"String_Node_Str\";\n if (isDeleted())\n decorati...
"private void switchLocation() {\n enableLocation = !enableLocation;\n OptionHelper.saveBoolean(mContext, R.string.option_location_enable, enableLocation);\n if (App.DEBUG)\n log(\"String_Node_Str\" + enableLocation);\n if (enableLocation) {\n iLocationIcon.setImageResource(R.drawable.ic_bar_g...
"private boolean validateFields() {\n boolean valid = true;\n ConnectionBean connection = getConnection();\n boolean isRemote = LoginHelper.isRemoteConnection(connection);\n boolean serverIsLocal = !isAuthenticationNeeded();\n if (valid && getConnection() == null) {\n valid = false;\n } else if...
"private static List<String> getColumnList(IElement element, String context) {\n List<String> columnList = new ArrayList<String>();\n IMetadataTable table = null;\n if (element instanceof INode) {\n table = ((INode) element).getMetadataFromConnector(context);\n if (table == null) {\n L...
"private void cloneBaseHCatalogConnection(HCatalogConnection connection) {\n temConnection = EcoreUtil.copy(connection);\n EList<Package> dataPackage = connection.getDataPackage();\n Collection<Package> newDataPackage = EcoreUtil.copyAll(dataPackage);\n ConnectionHelper.addPackages(newDataPackage, temConnec...
"public void handleRequest(HttpServerExchange exchange, RequestContext context) throws Exception {\n if (context.getDBName().isEmpty()) {\n ResponseHelper.endExchangeWithMessage(exchange, HttpStatus.SC_NOT_ACCEPTABLE, \"String_Node_Str\");\n return;\n }\n if (context.getCollectionName().isEmpty()...
"public List<Integer> retrieveConnectionIDs(int userID, String permissionType) {\n if (checkSystemAdministratorAccess(userID))\n return connectionService.getAllConnectionIDs();\n ConnectionPermissionExample example = new ConnectionPermissionExample();\n example.createCriteria().andUser_idEqualTo(userID)...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_matching_patients);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n if (toolbar != null) {\n toolbar.setTitle(getString(R.string.matching_patients_toolbar_tittle)...
"public void testLifeCycle() throws Exception {\n String name = \"String_Node_Str\";\n DateTime start = new DateTime(2014, 12, 3, 20, 45, DateTimeZone.UTC);\n ContentKey key1 = new ContentKey(start, \"String_Node_Str\");\n lastContentPath.initialize(name, key1, BASE_PATH);\n assertEquals(key1, lastConten...
"public void test() {\n try {\n if (testMode == 0) {\n mapping.writeFromObjectIntoRow(actor, databaseRow, (AbstractSession) getSession(), WriteType.UNDEFINED);\n } else if (testMode == 1) {\n mapping.writeFromObjectIntoRowWithChangeRecord((org.eclipse.persistence.internal.sessions...
"public void process(ComplexEventChunk complexEventChunk) {\n complexEventChunk.reset();\n while (complexEventChunk.hasNext()) {\n ComplexEvent event = complexEventChunk.next();\n if (((event.getType() != StreamEvent.Type.CURRENT || !allowCurrentEvents) && (event.getType() != StreamEvent.Type.EXPIRE...
"private Object mergeEntity(MergeContext mergeContext, final Object obj, Object previous, Expression expr, Object parent, String propertyName) {\n if (obj != null || previous != null)\n log.debug(\"String_Node_Str\", ObjectUtil.toString(obj), ObjectUtil.toString(previous), obj == previous ? \"String_Node_Str\...
"public String generate(NamedObj toplevel) throws IllegalActionException {\n String className = toplevel.getClass().getName();\n String code = new String();\n String importCode = new String();\n CompositeEntity compositeModel;\n _importList = new LinkedList();\n if (!(toplevel instanceof CompositeEnti...
"public void allocate(TestCase testCase) {\n int w = Integer.parseInt(testCase.getParam(\"String_Node_Str\"));\n int h = Integer.parseInt(testCase.getParam(\"String_Node_Str\"));\n int d = Integer.parseInt(testCase.getParam(\"String_Node_Str\"));\n grid = new BlockArrayGrid(w, h, d, voxel_size, slice_height...
"public static void registerJBossXMLParsers() {\n DeployerChainAddHandler.addDeploymentProcessor(ServerService.SERVER_NAME, Phase.STRUCTURE, Phase.STRUCTURE_REGISTER_JBOSS_ALL_DEPLOYMENT_DEPS, new JBossAllXmlParserRegisteringProcessor<DeploymentDependencies>(ROOT_1_0, DeploymentDependencies.ATTACHMENT_KEY, Deploymen...
"public void handleRemoteExecution(Packet packet) {\n log(\"String_Node_Str\" + packet);\n final Data callableData = IOUtil.doTake(packet.value);\n final RemoteExecutionId remoteExecutionId = new RemoteExecutionId(packet.conn.getEndPoint(), packet.longValue);\n final SimpleExecution se = new SimpleExecution...
"public void writeExternal(final ObjectOutput out) throws IOException {\n finalizeStep();\n final int dimension = (currentState == null) ? -1 : currentState.length;\n out.writeInt(dimension);\n for (int i = 0; i < dimension; ++i) {\n out.writeDouble(yDotKLast[0][i]);\n out.writeDouble(yDotKLas...
"private boolean isExistTable(IHDFSNode node) {\n if (node != null && node.getType() == EHadoopFileTypes.FILE) {\n String tabName = MetadataToolHelper.validateTableName(node.getTable().getName());\n return HDFSSchemaUtil.getTableByName(getConnection(), tabName) != null;\n }\n return false;\n}\n"
"public void readPayload(int id, PacketBuffer bufIn, Side side) throws IOException {\n PacketBufferBC buffer = PacketBufferBC.asPacketBufferBc(bufIn);\n if (msgSide == Side.CLIENT) {\n if (id == NET_CREATE_ITEM) {\n EnumFacing from = buffer.readEnumValue(EnumFacing.class);\n EnumFacin...
"public void adjustLocalOrRemoteStreamVolume(int streamType, int direction) {\n if (streamType != STREAM_MUSIC) {\n Log.w(TAG, \"String_Node_Str\" + streamType);\n }\n IAudioService service = getService();\n try {\n service.adjustLocalOrRemoteStreamVolume(streamType, direction, mContext.getOpP...
"public List<CacheEntry> getObjectList(final String bucketName, final String objectNamePrefix, final String delimiter, Set<String> returnedPrefixes) throws IOException {\n LOG.debug(\"String_Node_Str\", bucketName, objectNamePrefix, delimiter);\n Preconditions.checkArgument(delimiter == null || \"String_Node_Str\...
"private Map addProfileProviderService(Map appContext) {\n Map providerAppContext = appContext;\n if (providerAppContext == null)\n providerAppContext = new HashMap();\n if (!providerAppContext.containsKey(IPropertyProvider.ODA_CONSUMER_ID)) {\n providerAppContext.put(IPropertyProvider.ODA_CONSUM...
"public void handleSelectionUpdate(ISelectionDelta selectionDelta, boolean scrollToSelection, String info) {\n if (selectionDelta.getIDType().getCategory() == EIDCategory.GENE && dataDomain == EDataDomain.GENETIC_DATA) {\n contentSelectionManager.setDelta(selectionDelta);\n ISelectionDelta internalDelt...
"protected void setInput(MatchRule matchRule, AbsMatchAnalysisTableComposite<?> matchRuleComposite) {\n List<MatchKeyAndSurvivorDefinition> generatedSurvivorKeyList = generateSurvivorKeyByMatchKey(matchRule, Boolean.FALSE);\n ((MatchKeyAndSurvivorTableComposite) matchRuleComposite).setInput(generatedSurvivorKeyLi...
"public IAccess applyState(CompilerState state, IContext context) {\n super.applyState(state, context);\n this.arguments.replaceAll(v -> v.applyState(state, context));\n if (state == CompilerState.RESOLVE) {\n return AccessResolver.resolve(context, this);\n } else {\n super.applyState(state, c...
"private StringBuffer generateComponentsCode(NodesSubTree subProcess, INode node, ECodePart part, String incomingName, ETypeGen typeGen) throws CodeGeneratorException {\n StringBuffer codeComponent = new StringBuffer();\n Boolean isMarked = subProcess.isMarkedNode(node, part);\n boolean isIterate = isSpecifyIn...
"public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float xOffset, float yOffset, float zOffset) {\n final TileEntity te = world.getTileEntity(x, y, z);\n if (!player.isSneaking())\n if (!world.isRemote && te != null && te instanceof PlotoniumChestTE)\n ...
"public void updateDismissView(boolean visible) {\n int oldVisibility = mDismissView.willBeGone() ? GONE : mDismissView.getVisibility();\n int newVisibility = visible ? VISIBLE : GONE;\n if (oldVisibility != newVisibility) {\n if (newVisibility != GONE) {\n if (mDismissView.willBeGone()) {\n ...
"public void setInventorySlotContents(int par1, ItemStack par2ItemStack) {\n if (worldObj.getBlockMetadata(xCoord, yCoord, zCoord) == 1) {\n this.furnaceItemStacks[par1] = par2ItemStack;\n if (par2ItemStack != null && par2ItemStack.stackSize > this.getInventoryStackLimit()) {\n par2ItemStack...
"private void revalidateImpl(final RepositorySelection newRepoSelection) {\n if (label.isDisposed() || !isCurrentPage())\n return;\n final ListRemoteOperation listRemoteOp;\n try {\n final URIish uri = newRepoSelection.getURI();\n final Repository db = FileRepositoryBuilder.create(new File...
"private void appendValue(StringBuffer buf, Hashtable oidSymbols, ASN1ObjectIdentifier oid, String value) {\n String sym = (String) oidSymbols.get(oid);\n if (sym != null) {\n buf.append(sym);\n } else {\n buf.append(oid.getId());\n }\n buf.append('=');\n int index = buf.length();\n i...
"private void injectByName(Object arg, String fdname) {\n if (arg != null) {\n final String mdname = Classes.toMethodName(fdname, \"String_Node_Str\");\n final Class parmcls = arg.getClass();\n final Class tgtcls = _controller.getClass();\n try {\n final Method md = Classes.get...
"private void determineType(FetchedFile file) throws Exception {\n if (file.getResources().isEmpty()) {\n file.getErrors().clear();\n Element e = null;\n try {\n if (file.getContentType().contains(\"String_Node_Str\"))\n e = loadFromJson(file);\n else if (fil...
"protected T handleRealize(T proxy) {\n T ret = createInstance(proxy);\n PropertyResolverConverter prc = getPropertyResolverConverter();\n for (Map.Entry<String, Object> entry : values.entrySet()) {\n String propertyName = entry.getKey();\n Object value = entry.getValue();\n int mappedIndi...
"public void addChatTab(MetaContact contact) {\n OperationSetBasicInstantMessaging contactIMOperationSet = this.mainFrame.getProtocolIM(contact.getDefaultContact().getProtocolProvider());\n if (chatTabbedPane == null) {\n this.setCurrentChatPanel(new ChatPanel(this, contactIMOperationSet));\n this.c...
"private void measureVertical(int widthMeasureSpec, int heightMeasureSpec) {\n int hSize = MeasureSpec.getSize(heightMeasureSpec) - (getPaddingTop() + getPaddingBottom());\n int count = getChildCount();\n int columnHeight = 0;\n int totalWidth = 0, maxColumnHeight = 0;\n int columnMaxWidth = 0;\n int ...
"private boolean upgradeNineteenTwenty(SQLiteDatabase db) {\n db.beginTransaction();\n try {\n List<String> allIndexedFixtures = IndexedFixturePathUtils.getAllIndexedFixtureNames(db);\n for (String fixtureName : allIndexedFixtures) {\n String tableName = StorageIndexedTreeElementModel.get...
"private void setSteps(final CoordinateOperation[] steps) throws FactoryException {\n final List<CoordinateOperation> flattened = new ArrayList<CoordinateOperation>(steps.length);\n initialize(null, steps, flattened, DefaultFactories.forBuildin(MathTransformFactory.class), (coordinateOperationAccuracy == null), (...
"public void invite(String name, Player player, String inviteeName) {\n if (warpList.containsKey(name)) {\n Warp warp = warpList.get(name);\n if (warp.playerIsCreator(player.getName())) {\n if (warp.playerIsInvited(inviteeName)) {\n player.sendMessage(ChatColor.RED + inviteeNa...
"public void addUser(final User user) throws SQLCannotConnectException {\n for (Session session : _allSessions) {\n if (session.getUser() == user) {\n return;\n }\n }\n MetaDataSession session = user.getMetaDataSession();\n if (session != null)\n addSession(user.getMetaDataSe...
"public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n tvX.setText(\"String_Node_Str\" + (mSeekBarX.getProgress() + 1));\n tvY.setText(\"String_Node_Str\" + (mSeekBarY.getProgress()));\n ArrayList<BarEntry> yVals1 = new ArrayList<BarEntry>();\n for (int i = 0; i < mSeekBarX.getP...
"public org.hl7.fhir.dstu2.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.dstu3.model.DeviceUseStatement src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.DeviceUseStatement tgt = new org.hl7.fhir.dstu2.model.DeviceUseStatement();\n ...
"public static int themeIndex() {\n int themeIndex = 1;\n try {\n themeIndex = Integer.parseInt(defaultPrefs.getString(\"String_Node_Str\", \"String_Node_Str\"));\n } catch (Exception e) {\n Timber.e(e);\n }\n return themeIndex;\n}\n"
"public void autoPageBreak() throws BirtException {\n if (parent != null) {\n return parent.autoPageBreak();\n }\n}\n"
"public SyncopeUser update(final SyncopeUser user, final UserMod userMod, final Set<Long> mandatoryRoles, final Set<String> mandatoryResources) throws WorkflowException, PropagationException {\n Map.Entry<SyncopeUser, PropagationByResource> updated = userService.update(user, userMod);\n Set<String> mandatoryResou...
"public void prepareClosing(int response) {\n if (response == SWT.OK || response == SWT.APPLICATION_MODAL) {\n setMapperResponse(SWT.OK);\n }\n if (response == SWT.CANCEL) {\n removeUnsavedOutputsFromProcess();\n } else {\n mapperManager.getAbstractMapComponent().restoreMapperModelFromI...
"static ByteString unescapeBytes(CharSequence input) throws InvalidEscapeSequence {\n byte[] result = new byte[input.length()];\n int pos = 0;\n for (int i = 0; i < input.length(); i++) {\n char c = input.charAt(i);\n if (c == '\\\\') {\n if (i + 1 < input.length()) {\n ...
"public List<String> getAllRepositoryNames() throws IOException {\n return repositoryService.getAllRepositoriesNames(getUserId());\n}\n"
"private void checkChunkUpdates(Point currentPosition) {\n priorityChunkSendQueue.clear();\n chunkSendQueue.clear();\n chunkFreeQueue.clear();\n chunkInitQueue.clear();\n World world = currentPosition.getWorld();\n int bx = (int) currentPosition.getX();\n int by = (int) currentPosition.getY();\n ...
"public void allocate() {\n scoreTimer = TimerPool.getTimer(\"String_Node_Str\");\n pruneTimer = TimerPool.getTimer(\"String_Node_Str\");\n growTimer = TimerPool.getTimer(\"String_Node_Str\");\n totalTokensScored = StatisticsVariable.getStatisticsVariable(\"String_Node_Str\");\n curTokensScored = Statist...
"protected void onRegistrationError(final String errorId) {\n OPFPushLog.methodD(ADMService.class, \"String_Node_Str\", errorId);\n final OPFError error = convertError(errorId);\n OPFPushLog.d(\"String_Node_Str\" + error);\n OPFPush.getHelper().getReceivedMessageHandler().onError(NAME, error);\n}\n"
"private InjectionResolver<Param> getInjector(AdminCommand command, ParameterMap parameters, MultiMap<String, File> map) {\n CommandModel model = command instanceof CommandModelProvider ? ((CommandModelProvider) command).getModel() : new CommandModelImpl(command.getClass());\n return new MapInjectionResolver(mode...
"public void addClassIndicatorFieldToRow(AbstractRecord databaseRow) {\n if (hasClassExtractor()) {\n return;\n }\n DatabaseField field = getClassIndicatorField();\n Object value = getClassIndicatorValue();\n boolean namespaceAware = ((XMLRecord) databaseRow).isNamespaceAware() || ((XMLRecord) dat...
"private void longTimeoutRetrofitInitialization() {\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n longTimeOutHttpClient = new OkHttpClient.Builder().readTimeout(120, TimeUnit.SECONDS).connectTimeout(120, TimeUnit.SECONDS).addIntercepto...
"public void setInterceptors(IServerInterceptor... theList) {\n myInterceptors.clear();\n if (theList != null) {\n myInterceptors.addAll(theList);\n }\n}\n"
"public void onUpdate() {\n super.onUpdate();\n if (prevRotationPitch == 0.0F && prevRotationYaw == 0.0F) {\n float var1 = MathHelper.sqrt(motionX * motionX + motionZ * motionZ);\n prevRotationYaw = rotationYaw = (float) (Math.atan2(motionX, motionZ) * 180.0D / Math.PI);\n prevRotationPitch =...
"public void writeTOC(String tocText, int level, boolean middleInline) {\n if (!middleInline) {\n writer.openTag(\"String_Node_Str\");\n }\n if (color != null || !color.isEmpty()) {\n writer.openTag(\"String_Node_Str\");\n writer.openTag(\"String_Node_Str\");\n writer.attribute(\"St...
"public boolean handle(Object receive) throws Exception {\n if (receive instanceof HttpResponse) {\n HttpResponse response = (HttpResponse) receive;\n boolean done = response.isChunked() == false;\n RiakObject<_> ro = new AbstractRiakObject<_>() {\n public _ getContent() {\n ...
"private void selectAllToggleButtons(boolean selection) {\n for (int i = 0; i < listAlignmentButtons.size(); i++) {\n listAlignmentButtons.get(i).setSelection(selection);\n }\n}\n"
"public synchronized IContentObserver getObserver() {\n if (mObserverBridge == null) {\n mObserverBridge = new SelfContentObserver(this);\n }\n return null;\n}\n"
"public void finishTransaction() {\n if (null != em && em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n em.close();\n }\n em = null;\n}\n"
"private boolean updateNotification(String description) {\n int currentNotificationIdex = getCurrentNotificationIndex(mNotificationsContainer, description);\n mNotificationsContainer.removeViewAt(currentNotificationIdex);\n int nextNotificationIndex = mNotificationsContainer.getChildCount() - 1;\n if (nextN...