content stringlengths 40 137k |
|---|
"private boolean createSqlQuery(String dataFilterAsString, Indicator indicator) throws ParseException, AnalysisExecutionException {\n ModelElement analyzedElement = indicator.getAnalyzedElement();\n if (analyzedElement == null) {\n return traceError(\"String_Node_Str\" + indicator.getName());\n }\n T... |
"public Drawable getDrawable(String source) {\n if (mImageLoader == null || mLoadingDrawable == null || mFailedDrawable == null) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n if (TextUtils.isEmpty(source)) {\n return null;\n }\n if (source.startsWith(\"String_Node_Str\")) {\n ... |
"protected void serializeRequest(ServiceRequest request, SOAPElement soapRequest, SOAPEnvelope envelope) throws SOAPException {\n SOAPElement payload = SOAPHelper.xmlStrToSOAPElement(\"String_Node_Str\" + Constants.PARAM_ENCRYPTION_WRAPPER + \"String_Node_Str\");\n try {\n Encrypter symmetricEncrypter = RE... |
"protected List<Service> execute(ListServicesCmd command) {\n WebTarget webTarget = getBaseResource().path(\"String_Node_Str\");\n if (command.getFilters() != null && !command.getFilters().isEmpty()) {\n webTarget = webTarget.queryParam(\"String_Node_Str\", FiltersEncoder.jsonEncode(command.getFilters()));... |
"private void visitCode(Set<Integer> visited, TranslateStack stack, int classIndex, boolean isStatic, MethodBody body, int scriptIndex, ABC abc, AVM2Code code, int idx, int endIdx, ExecutionResult result) {\n List<GraphTargetItem> output = new ArrayList<>();\n AVM2LocalData localData = newLocalData(scriptIndex, a... |
"public void createPartControl(Composite parent) {\n Composite comp = new Composite(parent, SWT.NONE);\n comp.setLayout(new FillLayout());\n ScrolledComposite scomp = new ScrolledComposite(comp, SWT.H_SCROLL | SWT.V_SCROLL);\n scomp.setLayout(new FillLayout());\n Composite composite = new Composite(scomp... |
"protected static void updateCurrentSkillExp() {\n if (currentSkill != null && listSkillExp.getSelectedIndex() > -1) {\n currentExp = (XPGain) currentSkill.getExp().get(listSkillExp.getSelectedIndex());\n if (currentExp != null) {\n txtSkillObjectName.setText(currentExp.getName());\n ... |
"public void setRandomSeed(int randomSeed) {\n this.classifierRandom.setSeed(randomSeed);\n}\n"
|
"public boolean handlePlayerInteraction(EntityHuman entityhuman, EnumHand enumhand, ItemStack itemStack) {\n if (super.handlePlayerInteraction(entityhuman, enumhand, itemStack)) {\n return true;\n }\n if (getOwner().equals(entityhuman)) {\n if (itemStack != null && itemStack.getItem() != Items.AI... |
"public double getAuthorityWeight() {\n return authorityWeight;\n}\n"
|
"List<String> getInputs(String arg, boolean recurse, final Configuration conf, boolean existsCheck, boolean argIsDir) {\n List<String> inputs = new LinkedList<>();\n File f;\n try {\n f = new File(new URI(arg));\n } catch (URISyntaxException | IllegalArgumentException ignored) {\n f = new File... |
"public void testSkipInstrument() throws Exception {\n FileInfo lcov = new FileInfo(\"String_Node_Str\", 0, -1, true, false, \"String_Node_Str\");\n FileInfo serveOnly = new FileInfo(\"String_Node_Str\", 0, -1, true, true, \"String_Node_Str\");\n FileInfo excluded = new FileInfo(\"String_Node_Str\", 0, -1, tru... |
"public void testPlugin() throws Exception {\n Manifest manifest = createManifest(ManifestFields.EXPORT_PACKAGE, TestPlugin.class.getPackage().getName());\n File jarFile = createJar(TestPlugin.class, new File(tmpDir, \"String_Node_Str\"), manifest);\n Set<ArtifactRange> parents = ImmutableSet.of(new ArtifactRa... |
"private AdditionalClientRosterEntry[] updatePresenceInGroup(IRosterGroup group, XMPPID fromID, IPresence newPresence) {\n List results = new ArrayList();\n final Collection groupEntries = group.getEntries();\n synchronized (groupEntries) {\n for (final Iterator i = group.getEntries().iterator(); i.hasN... |
"public void setExpression(String expression) {\n boolean previousSuppress = isSuppressingPropagation();\n try {\n setSuppressingPropagation(true);\n super.setExpression(expression);\n } finally {\n setSuppressingPropagation(previousSuppress);\n }\n try {\n IntToken token = (I... |
"public void renderValue(StringBuilder sb, Object extractedValue, Formatter formatter) {\n long val = (Long) extractedValue;\n formatter.format(sb, dateFormat.get().format(dateFromExtractedValue(val)));\n}\n"
|
"private double[] computeHorizalByCategory(IDisplayServer xs, Chart cm, RunTimeContext rtc, ITextMetrics itm, Label la, LegendData legendData) throws ChartException {\n double dWidth = 0, dHeight = 0;\n double dRowHeight;\n double dRealWidth = 0, dExtraHeight = 0;\n ArrayList columnList = new ArrayList();\n... |
"public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {\n if (!failingUrl.toLowerCase().startsWith(getRedirectUri().toLowerCase())) {\n if (mAuthListener != null)\n mAuthListener.onError(new SparkError(SERVER_ERROR, Integer.toString(errorCode)));\n }\n ... |
"public boolean apply(Game game, Ability source) {\n Player targetPlayer = game.getPlayer(source.getFirstTarget());\n Player you = game.getPlayer(source.getControllerId());\n if (targetPlayer != null) {\n targetPlayer.loseLife(1, game, false);\n }\n if (you != null) {\n you.gainLife(1, game... |
"public String executeRequest(String clientId, String request) throws Exception {\n ConcurrentHashMap<String, String> clientState = clientStateMap.get(clientId);\n StringBuffer rsb = new StringBuffer();\n String cmd = request.substring(0, request.indexOf(\"String_Node_Str\")).trim().toLowerCase();\n String[... |
"public IAggregationResultSet[] execute(StopSign stopSign) throws IOException, BirtException {\n populateSortedFactRows(stopSign);\n for (int i = 0; i < allSortedFactRows.size(); i++) {\n DiskSortedStackWrapper diskSortedStackWrapper = (DiskSortedStackWrapper) allSortedFactRows.get(i);\n int[] calcu... |
"void preserveSurfaceLocked() {\n if (mDestroyPreservedSurfaceUponRedraw) {\n return;\n }\n if (SHOW_TRANSACTIONS)\n WindowManagerService.logSurface(mWin, \"String_Node_Str\", null);\n mSurfaceController.setLayer(mAnimLayer + 1);\n mDestroyPreservedSurfaceUponRedraw = true;\n mSurfaceDes... |
"public void checkRightTopNumTip() {\n LogUtil.printCurrentMethodNameInLog4J();\n String updateNum = detailAction.go2GetText(detailPage.tvPointNum);\n if (updateNum.equals(\"String_Node_Str\")) {\n LogUtil.e(\"String_Node_Str\");\n } else {\n LogUtil.w(\"String_Node_Str\", updateNum);\n }\n... |
"public void testDoubleAttributeWithBigDecimalValue() {\n String[] sources = { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" +... |
"public static void reportCapabilityCondition(String name, String conditionName, boolean expected, boolean actual) {\n if (logger.isDebugEnabled()) {\n CapabilityReport capability = getCapabilityReport(name);\n if (!expected) {\n conditionName = \"String_Node_Str\" + conditionName;\n ... |
"public static FileLogger init(Logger next) throws Exception {\n FileLogger logger = new FileLogger(next);\n if (!Files.exists(DIR)) {\n Files.createDirectory(DIR);\n }\n File[] files = DIR.toFile().listFiles();\n if (files != null && files.length > 0) {\n int idx = -1;\n File f = nu... |
"private void addMapping(Class actionClass, KeyStroke[] keyStrokes) throws IOException {\n XmlAttributes attributes = new XmlAttributes();\n attributes.add(CLASS_ATTRIBUTE, actionClass.getCanonicalName());\n if (Debug.ON)\n Debug.trace(\"String_Node_Str\" + actionClass.getSimpleName() + \"String_Node_St... |
"public void handleEntitlementPersist(Map<String, Entitlement> entitlements) {\n List<Entitlement> entitlementsList = new ArrayList<Entitlement>(entitlements.values());\n entitlementCurator.mergeAll(entitlementsList, false);\n}\n"
|
"public boolean checkUserCreatingSuperadmin(final DataDefinition dataDefinition, final Entity entity) {\n String role = entity.getStringField(\"String_Node_Str\");\n if (QcadooSecurityConstants.ROLE_SUPERADMIN.equals(role) && securityService.getCurrentUserName() != null) {\n entity.addError(dataDefinition.... |
"public void initializeProvider() throws InitializationFailedException {\n try {\n client = ModelControllerClient.Factory.create(\"String_Node_Str\", 9999);\n } catch (Exception e) {\n throw new InitializationFailedException();\n } catch (NoClassDefFoundError e) {\n throw new Initializatio... |
"private void createCube(DataEngine engine) throws BirtException, IOException {\n IDocumentManager documentManager = DocumentManagerFactory.createFileDocumentManager(documentPath + engine.hashCode(), cubeName);\n Dimension[] dimensions = new Dimension[2];\n String[] levelNames = new String[3];\n levelNames[... |
"protected Matrix computeHessian(Vector point) throws NonSmoothFunctionException {\n return subProblemObjectiveFunction.getHessian(point).add(Matrix.generateIdentityMatrix(point.size()).multiply(penaltyParameter));\n}\n"
|
"public static void addStudioToken(HttpMessage httpMessage, String userName) {\n if (httpMessage != null && userName != null) {\n String[] studioToken = getStudioToken(userName);\n if (studioToken != null && studioToken.length == 2) {\n httpMessage.addHeader(studioToken[0], studioToken[1]);\... |
"protected void signInError(int messageId, String clientResponse) {\n AnalyticsTracker.track(Stat.LOGIN_FAILED);\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n SignInDialogFragment nuxAlert;\n if (messageId == org.wordpress.android.R.string.account_two_step_auth_enabled) {\n nu... |
"private void readShortcutCameraId() {\n Intent liveViewIntent = this.getIntent();\n if (liveViewIntent != null && liveViewIntent.getExtras() != null) {\n EvercamPlayApplication.sendEventAnalytics(this, R.string.category_shortcut, R.string.action_shortcut_use, R.string.label_shortcut_use);\n try {\n... |
"public void cmdAkinator(Context ctx) {\n if (ctx.channel instanceof TextChannel && !ctx.member.hasPermission((Channel) ctx.channel, Permission.MESSAGE_ADD_REACTION, Permission.MESSAGE_EMBED_LINKS)) {\n ctx.send(Emotes.getFailure() + \"String_Node_Str\").queue();\n return;\n }\n AkinatorGame game... |
"public boolean applies(GameEvent event, Ability source, Game game) {\n Player controller = game.getPlayer(source.getControllerId());\n return controller != null && controller.hasOpponent(event.getPlayerId(), game);\n}\n"
|
"private void processExtends(VirtualObject geometryInfo, double[] transformationMatrix, float[] vertices, int index, GenerateGeometryResult generateGeometryResult) throws BimserverDatabaseException {\n double x = vertices[index];\n double y = vertices[index + 1];\n double z = vertices[index + 2];\n double[]... |
"protected void initialize() {\n if (getConnection() == null) {\n return;\n }\n if (getConnection().getWebServiceUrl() != null && !getConnection().getWebServiceUrl().equals(\"String_Node_Str\")) {\n webServiceUrlText.setText(getConnection().getWebServiceUrl());\n }\n if (getConnection().get... |
"protected void run() throws LoginException, PersistenceException {\n monitor.beginTask(Messages.getString(\"String_Node_Str\"), IProgressMonitor.UNKNOWN);\n if (!monitor.isCanceled()) {\n final ManagerConnection managerConnection = new ManagerConnection();\n DatabaseConnection connection = (Databas... |
"public void onEntityDamage(EntityDamageEvent event) {\n boolean noHack = true;\n if (event instanceof EntityDamageByEntityEvent) {\n EntityDamageByEntityEvent e = (EntityDamageByEntityEvent) event;\n if (event.getEntity() instanceof Player) {\n Player player = (Player) event.getEntity();... |
"public ComponentName getActivityClassForToken(IBinder token) {\n synchronized (this) {\n int index = indexOfTokenLocked(token);\n if (index >= 0) {\n HistoryRecord r = (HistoryRecord) mHistory.get(index);\n return r.intent.getComponent();\n }\n return null;\n }\n... |
"protected String findOffsetMatch(TestInfo info, int startOffset, MutableOffset mutableOffset, byte[] bytes, char[] chars, int maxPos) {\n int targetPos = startOffset;\n boolean lastMagicCompactWhitespace = false;\n for (int magicPos = 0; magicPos < info.pattern.length(); magicPos++) {\n char magicCh = ... |
"public List<TestMethodMeta> getLackingTestMethodMetaList(String currentTestCaseSourceCode) {\n List<TestMethodMeta> dest = new ArrayList<TestMethodMeta>();\n String checkTargetSourceCode = TrimFilterUtil.doAllFilters(currentTestCaseSourceCode);\n if (!checkTargetSourceCode.matches(RegExp.Anything_ZeroOrMore_M... |
"private int getFieldIndex(String[] headersInContext, String headerName) {\n if (headerIndexes == null) {\n headerIndexes = new HashMap<String[], Map<String, Integer>>();\n }\n Map<String, Integer> indexes = headerIndexes.get(headersInContext);\n if (indexes == null) {\n indexes = new HashMap<... |
"public void run() {\n synchronized (waitThread) {\n if (!doneWaiting.get()) {\n waitThread.interrupt();\n }\n }\n}\n"
|
"QueryTaskFuture<Void> getRBuildFiles(Collection<PathFragment> fileIdentifiers, Callback<Target> callback) {\n try {\n Collection<SkyKey> files = getFileStateKeysForFileFragments(fileIdentifiers);\n Uniquifier<SkyKey> keyUniquifier = new UniquifierImpl<>(SkyKeyKeyExtractor.INSTANCE, 1);\n Collec... |
"public void incrementFrequency(DigramFrequencyEntry entry, int index) {\n ArrayList<DigramFrequencyEntry> oldBucket = this.bucketsToEntries.get(entry.getFrequency());\n oldBucket.remove(entry);\n if (0 == oldBucket.size() || oldBucket.isEmpty()) {\n this.bucketsToEntries.remove(entry.getFrequency());\n... |
"float getUnscalableElementHeight() {\n if (grabY)\n return 0;\n else if (pixelSizeY != Integer.MIN_VALUE)\n return pixelGLConverter.getGLHeightForPixelHeight(pixelSizeY);\n else if (!Float.isNaN(absoluteSizeY))\n return absoluteSizeY;\n else\n return 0;\n}\n"
|
"private PlugInfo buildPlugInfo(File pluginApk, String pluginId, String targetFileName) throws Exception {\n PlugInfo info = new PlugInfo();\n info.setId(pluginId == null ? pluginApk.getName() : pluginId);\n File privateFile = new File(dexInternalStoragePath, targetFileName == null ? pluginApk.getName() : targ... |
"public static <C extends Collection<String>> void offlineNotif(final String title, final Map<String, C> items) {\n notification(title, items, MessageType.OFFLINE);\n if (eventBus != null) {\n eventBus.updateZoneRequest(Zone.OFFLINE_BANNER.requestWith(RequestParameter.SHOW_BRIEFLY, true));\n }\n}\n"
|
"public boolean onCommand(CommandSender sender, Command cmd, String lbl, String[] args) {\n if (sender instanceof Player == false) {\n return true;\n }\n if (args.length != 1) {\n return false;\n }\n Player p = (Player) sender;\n String cm = args[0];\n if (cm.equalsIgnoreCase(\"String... |
"public void entityDamage(EntityDamageEvent event) {\n Map<String, Object> context = new HashMap<String, Object>();\n boolean isFatal = false;\n dEntity entity = new dEntity(event.getEntity());\n String entityType = entity.getType();\n String cause = event.getCause().name();\n String determination;\n ... |
"public ItemStack yankSlices(int count, boolean doYank) {\n final int yankedCount = MathHelper.clamp(count, 0, getSlices());\n final int quantity = yankedCount * cheesePerSlice;\n if (quantity > 0) {\n if (doYank) {\n this.slices -= yankedCount;\n setStage(EnumCheeseStage.CUT);\n ... |
"public static String urlToUserInfo(String url) {\n String lcUrl = url.toLowerCase();\n if (lcUrl.startsWith(DNS_SCHEME)) {\n return null;\n }\n for (String scheme : ALL_SCHEMES) {\n if (lcUrl.startsWith(scheme)) {\n int authorityIdx = scheme.length();\n Matcher m = USERI... |
"public static void saveDialog(Context context, QBDialog dialog, String roomJidId) {\n ContentValues values;\n String condition = DialogTable.Cols.ROOM_JID_ID + \"String_Node_Str\" + roomJidId + \"String_Node_Str\";\n ContentResolver resolver = context.getContentResolver();\n Cursor cursor = resolver.query(... |
"public void testConfiguredMultiNodeContext() throws NamingException {\n JdbcMigrationLauncherFactory launcherFactory = new JdbcMigrationLauncherFactory();\n MockServletContext sc = new MockServletContext();\n String dbType1 = \"String_Node_Str\";\n String dbType2 = \"String_Node_Str\";\n String sysName ... |
"public void stateChanged(NetworkConnectionState old, NetworkConnectionState state) {\n Collection<CacheEntry> vpns = new ArrayList<VpnManager.CacheEntry>();\n synchronized (vpnCache) {\n vpns.addAll(vpnCache.values());\n }\n switch(state) {\n case CONNECTED_TO_CUBE_BY_VPN:\n case CONNE... |
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object objectValue, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n XPathFragment rootFragment = null;\n Marshaller marshaller = marshalRecord.getMarshal... |
"public void handleDownstream(final ChannelHandlerContext ctx, final ChannelEvent channelEvent) throws Exception {\n if (Logs.isExtrrreeeme()) {\n LOG.trace(LogUtil.dumpObject(channelEvent));\n }\n try {\n if (channelEvent instanceof MessageEvent) {\n final MessageEvent msgEvent = (Mes... |
"public static void fillCatalogAndSchemas(IMetadataConnection iMetadataConnection, DatabaseConnection temConnection) {\n java.sql.Connection sqlConn = null;\n temConnection = (DatabaseConnection) MetadataFillFactory.getDBInstance().fillUIConnParams(iMetadataConnection, temConnection);\n sqlConn = (java.sql.Con... |
"public boolean isInUse() {\n return mOwner != null;\n}\n"
|
"public ExtendedDeploymentContext disable(UndeployCommandParameters commandParams, Application app, ApplicationInfo appInfo, ActionReport report, Logger logger) throws Exception {\n if (appInfo == null) {\n report.failure(logger, \"String_Node_Str\", null);\n return null;\n }\n if (!env.isDas() &... |
"public static int getItemCount(ItemStack type, TileEntity inv, ForgeDirection side, int fuzzySetting) {\n IInventory inventory = getInventoryForTE(inv);\n int[] slots = getAccessibleSlotsForInventory(inventory, side);\n int count = 0;\n for (int slot : slots) {\n ItemStack invStack = inventory.getSt... |
"public final void set(int bit) {\n int shiftBits;\n int subscript;\n if (bit < offset) {\n int newOffset = bit & ~LOW_MASK;\n expand(newOffset, length() - 1 - newOffset);\n shiftBits = bit & LOW_MASK;\n subscript = 0;\n } else {\n bit -= offset;\n shiftBits = bit &... |
"public int chooseReplacementEffect(Map<String, String> rEffects, Game game) {\n updateGameStatePriority(\"String_Node_Str\", game);\n if (rEffects.size() <= 1) {\n return 0;\n }\n if (!autoSelectReplacementEffects.isEmpty()) {\n for (String autoKey : autoSelectReplacementEffects) {\n ... |
"public void reconfigure(HashMap<String, Object> params) throws RCException {\n if (storageManagerPreferences == null) {\n storageManagerPreferences = new StorageManagerPreferences(this);\n }\n HashMap<String, Object> caschedParams = (HashMap<String, Object>) storageManagerPreferences.getAllEntries();\n... |
"public List<RestrictionEffect> getApplicableRestrictionEffects(Permanent permanent, Game game) {\n List<RestrictionEffect> effects = new ArrayList<RestrictionEffect>();\n for (RestrictionEffect effect : restrictionEffects) {\n Ability ability = restrictionEffects.getAbility(effect.getId());\n if (!... |
"public void writeSingleValue(Object attributeValue, Object parent, XMLRecord record, AbstractSession session) {\n XMLMarshaller marshaller = record.getMarshaller();\n if (getConverter() != null) {\n Converter converter = getConverter();\n if (converter instanceof XMLConverter) {\n attrib... |
"public ByteBuffer mapNewBuffer(GL3 gl) {\n bind(gl);\n gl.glBufferData(target, size, null, usage);\n return gl.glMapBuffer(target, GL.GL_WRITE_ONLY);\n}\n"
|
"public void run(ProgressStatus progressStatus) {\n validationSuite.getValidationRules().forEach(validationRule -> validationRule.getViolations().clear());\n LocalSyncTransactionCommitListener localSyncTransactionCommitListener = LocalSyncProjectEventListenerAdapter.getProjectMapping(project).getLocalSyncTransact... |
"public static void setNetworkSchema(ConfigSpecImpl spec, VcCluster cluster, NetworkSchema networkSchema, VcVirtualMachine vcVm) throws Exception {\n List<VirtualDeviceSpec> changes = new ArrayList<VirtualDeviceSpec>();\n for (NetworkSchema.Network network : networkSchema.networks) {\n VcNetwork vN = clust... |
"protected Set<Long> getAvailableIps(Network network, String requestedIp) {\n String[] cidr = network.getCidr().split(\"String_Node_Str\");\n List<String> ips = _nicDao.listIpAddressInNetwork(network.getId());\n Set<Long> allPossibleIps = NetUtils.getAllIpsFromCidr(cidr[0], Integer.parseInt(cidr[1]));\n Set... |
"public boolean notHasCorner(int x, int y) {\n for (Point p : corners) if ((int) p.x == x && (int) p.y == y)\n return false;\n return true;\n}\n"
|
"public void createControl(Composite parent) {\n Composite control = new Composite(parent, SWT.NONE);\n GridData gd = new GridData(SWT.FILL, SWT.FILL, false, false);\n control.setLayoutData(gd);\n GridLayout layout = new GridLayout(1, false);\n control.setLayout(layout);\n projectCombo = new Combo(con... |
"protected void referencedGenModelsAddSelected(CheckboxTreeViewer treeViewer) {\n IPath path = null;\n Resource resource = getModelConverter().getGenModel().eResource();\n if (resource != null) {\n if (resource.getURI().isPlatformResource()) {\n path = new Path(resource.getURI().toPlatformStr... |
"private void changeBlock(World world, MetaBlock pointed, MetaBlock result, int x, int y, int z, EntityPlayer player) {\n MetaBlock block = new MetaBlock(world, x, y, z);\n if (block.equals(pointed)) {\n PlayerHelper.checkedReplaceBlock(((EntityPlayerMP) player), x, y, z, result.getBlock(), result.getMeta(... |
"public int moveCaretToLineStart(Editor editor, int lline) {\n if (lline >= EditorHelper.getLineCount(editor)) {\n return EditorHelper.getFileSize(editor);\n }\n int start = EditorHelper.getLineStartOffset(editor, lline);\n return start;\n}\n"
|
"private void checkSessionTimeout() {\n if ((mCurrentSession != null) && (mEnterBackgroundtime != null)) {\n Date now = UniqueTime.newDate();\n long interval = (now.getTime() - mEnterBackgroundtime.getTime()) / 1000;\n if (interval >= mSessionTimeout) {\n destroySession(mEnterBackgrou... |
"public ERepositoryObjectType getRepositoryObjectType(Item item) {\n if (item.eClass().getInstanceClass() == ProcessItem.class || item instanceof ContainerItem) {\n return ERepositoryObjectType.PROCESS;\n }\n return null;\n}\n"
|
"public void destroyGameObject(String name) {\n if (mPhysicsWorld.getPhysicsConnectorManager().findBodyByShape(findShape(name)) != null) {\n if (name.contains(\"String_Node_Str\")) {\n reduceRemainingEnemies();\n Debug.d(\"String_Node_Str\" + remainingEnemies);\n }\n mScene... |
"public AvailableStatus requestFileInformation(DownloadLink downloadLink) throws IOException, PluginException, InterruptedException {\n this.setBrowserExclusive();\n String url = downloadLink.getDownloadURL();\n AvailableStatus status = AvailableStatus.TRUE;\n for (int i = 0; i < NUMBER_OF_RETRIES; i++) {\n... |
"public Optional<Object> convert(FileUpload object, Class<Object> targetType, ConversionContext context) {\n try {\n if (!object.isCompleted()) {\n return Optional.empty();\n }\n String contentType = object.getContentType();\n ByteBuf byteBuf = object.getByteBuf();\n if ... |
"protected void _initializePtalonCodeLocation() throws IllegalActionException {\n try {\n if (_astCreated) {\n ptalonCodeLocation.setVisibility(Settable.NONE);\n return;\n }\n PtalonLexer lex = null;\n PtalonRecognizer rec = null;\n InputStream inputStream = n... |
"public void testReturnTablesFormConnection() throws Exception {\n Assert.assertNotNull(getExtractManger());\n IMetadataConnection metadataConn = mockMetadataConnection4ReturnTablesFormConnection();\n Connection conn = mockConnection4ReturnTablesFormConnection();\n ExtractMetaDataUtils.conn = conn;\n Ext... |
"public void resumeSubscriptionEngine() {\n try {\n XtentisPort port = getPort();\n WSRoutingEngineV2Status status = port.routingEngineV2Action(new WSRoutingEngineV2Action(WSRoutingEngineV2ActionCode.RESUME));\n statusLabel.setText(status.getValue());\n } catch (Exception e) {\n log.er... |
"public TransformMesh getTransformMesh() throws IllegalStateException {\n if (!hasWidthAndHeightDefined()) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n final CoordinateTransformList<CoordinateTransform> ctList = getTransformList();\n return new TransformMesh(ctList, getNumberOfTria... |
"public boolean equals(Object obj) {\n return EqualsBuilder.reflectionEquals(this, obj);\n}\n"
|
"public void addUser(String userName, String credential, String role, String firstName, String lastName, String email, String profileName) throws CommandException {\n DefaultHttpClient httpClient = new DefaultHttpClient();\n try {\n UserInfoBean userInfoBean = new UserInfoBean();\n userInfoBean.setU... |
"public void widgetSelected(SelectionEvent e) {\n boolean show = sftpSuppBut.getSelection();\n ftpsSuppBut.setVisible(!show);\n if (PUBLIC_KEY.equals(methodCombo.getText())) {\n privatekeyText.setVisible(show);\n passphraseText.setVisible(show);\n }\n methodCombo.setVisible(show);\n conn... |
"private void drawBoard(Canvas canvas, int bgColor_UNUSED, int lineColor_UNUSED) {\n final int boardW = getMeasuredWidth();\n final int boardH = getMeasuredHeight();\n Log.v(TAG, \"String_Node_Str\" + boardW + \"String_Node_Str\" + boardH + \"String_Node_Str\" + isBlackOnTop_);\n for (int i = 0; i < 10; i++... |
"public void onClick(DialogInterface dialog, int which) {\n final File kernel = new File(path, Versions.get(which));\n if (!kernel.exists()) {\n try {\n URL url = new URL(Const.KERNEL_URL + \"String_Node_Str\" + kernel.getName());\n Downloader downloader = new Downloader(url, kernel);... |
"public static boolean instanceOfHibernatePersistentCollection(Object o) {\n try {\n return o.getClass().isAssignableFrom(PersistentCollection.class);\n } catch (Exception e) {\n return false;\n } catch (NoClassDefFoundError e) {\n return false;\n }\n}\n"
|
"protected void PicardPreprocess(Context context, PreprocessingTools tools, SAMRecordIterator input, String output) throws InterruptedException, QualityException, IOException, URISyntaxException {\n outHeader = header.clone();\n outHeader.setSortOrder(SAMFileHeader.SortOrder.coordinate);\n String tmpOut1 = tmp... |
"public <T> T getCmsDefinition(String fullPropertyDefinitionPath, ResourceRepresentationType<T> output, boolean prettyPrint) {\n if (definitionServiceSecure != null) {\n if (successfullyConnectedToRemoteService) {\n client.activateClientContext();\n }\n T cmsDefinition = null;\n ... |
"private Resource getExistingVdbResource(File file) {\n for (Resource modelFile : this.vdbResourceFiles) {\n String vdbFileStr = WorkspaceResourceFinderUtil.normalizeUriString(modelFile.getURI().toFileString());\n String prefix = vdbFileStr.substring(0, vdbFileStr.indexOf(\"String_Node_Str\") > -1 ? vd... |
"private void __assertPermissionValid(SQLConnection connection, String resourceClassName, ResourcePermission resourcePermission) {\n if (resourcePermission.isSystemPermission()) {\n if (ResourcePermissions.IMPERSONATE.equals(resourcePermission.getPermissionName()) || ResourcePermissions.RESET_CREDENTIALS.equa... |
"public boolean process() {\n boolean result = false;\n try {\n TokenCollectorFactory.getFactory().priorCollect();\n if (isActiveAndValid(true)) {\n send();\n final IPreferenceStore preferenceStore = CoreRuntimePlugin.getInstance().getPreferenceStore();\n preferenceS... |
"public int getRowCount() {\n int realcount = cache.getMaxRow();\n return realcount;\n}\n"
|
"protected final void onDraw(Canvas canvas) {\n canvas.drawARGB(0, 0, 0, 0);\n paint.setMaskFilter(new BlurMaskFilter(tempShadowRadius, BlurMaskFilter.Blur.SOLID));\n drawOuter(canvas);\n drawInside(canvas);\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.