content
stringlengths
40
137k
"private static JobKey jobKey(final Method method) {\n Class<?> klass = method.getDeclaringClass();\n StringBuilder classname = new StringBuilder(klass.getSimpleName());\n klass = klass.getDeclaringClass();\n while (klass != null) {\n classname = klass.getSimpleName() + \"String_Node_Str\" + classnam...
"public static List<String> getTableCatalogAndSchema(DatabaseConnection dbConnection, String tableName) {\n String catalogName = null;\n String schemaName = null;\n List<String> catalogAndSchema = new ArrayList<String>();\n List<Catalog> catalogs = ConnectionHelper.getCatalogs(dbConnection);\n if (catalo...
"private void testFactTableSaveAndLoad5(CubeMaterializer cubeMaterializer) throws IOException, BirtException {\n Dimension[] dimensions = new Dimension[3];\n String[] levelNames = new String[3];\n levelNames[0] = \"String_Node_Str\";\n levelNames[1] = \"String_Node_Str\";\n levelNames[2] = \"String_Node_...
"public void run() {\n if (this.server != null) {\n ISelection selection = server.getViewer().getSelection();\n xobject = (TreeObject) ((IStructuredSelection) selection).getFirstElement();\n }\n if (xobject.getType() != TreeObject.JOB)\n return;\n try {\n WSTransformerV2 transfor...
"private int getId(String number) {\n open();\n Cursor cur = db.rawQuery(\"String_Node_Str\" + KEY_REFERENCE + \"String_Node_Str\" + SQLitehelper.NUMBERS_TABLE_NAME + \"String_Node_Str\" + KEY_NUMBER + \"String_Node_Str\", new String[] { number });\n if (cur.moveToFirst()) {\n int id = cur.getInt(cur.ge...
"public JsonObject initiateDMRequest(JsonObject request) throws IoTFCReSTException {\n final String METHOD = \"String_Node_Str\";\n StringBuilder sb = new StringBuilder(\"String_Node_Str\");\n sb.append(orgId).append('.').append(this.domain).append(BASIC_API_V0002_URL).append(\"String_Node_Str\");\n int cod...
"private static void getNeededLibraries(final IProcess process, boolean withChildrens, Set<ProcessItem> searchItems, Set<String> neededLibraries, Set<String> bundleDefinedLibraries, boolean... isExportOSGI) {\n boolean exportOSGI = false;\n if (isExportOSGI != null && isExportOSGI.length == 1) {\n exportOS...
"public void onCreate() {\n super.onCreate();\n Log.i(\"String_Node_Str\", \"String_Node_Str\");\n ((AnySoftKeyboardConfiguration.AnySoftKeyboardConfigurationImpl) mConfig).initializeConfiguration(this);\n DEBUG = mConfig.getDEBUG();\n mNotificationManager = (NotificationManager) getSystemService(Context...
"protected void deliveryFulFilled(EMaterialType materialType) {\n grid.offer(position, materialType, EOfferPriority.LOWEST, this);\n}\n"
"public void increment() {\n count.incrementAndGet();\n rateWindow.incrementForTimestamp(timerGetter.now());\n}\n"
"public Ingredient getFixIngredient(ModificationPoint modificationPoint, AstorOperator op) {\n if (key2element.isEmpty())\n key2element = queryelements().orElseThrow(RuntimeException::new);\n T suspicious = (T) modificationPoint.getCodeElement().getParent(typeFilter);\n if (suspicious == null) {\n ...
"public boolean marshalAttributes(MarshalRecord marshalRecord, Object object, CoreAbstractSession session) {\n lazyInitialize();\n boolean hasValue = false;\n NamespaceResolver namespaceResolver = ((Descriptor) descriptor).getNamespaceResolver();\n List<XPathNode> attributeChildren = rootXPathNode.getAttrib...
"public static FileAccessService getFileAccessService() {\n if (fileAccessService == null) {\n fileAccessService = ServiceUtils.getService(bundleContext, FileAccessService.class);\n }\n return fileAccessService;\n}\n"
"public void testSendingOfCreateVisualCharacterEvent() {\n EntityRef clientEntity = mockEntityWithUniqueId();\n EntityRef otherClientEntity = mockEntityWithUniqueId();\n EntityRef ownCharacterEntity = mockEntityWithUniqueId();\n List<Event> ownCharacterEntityEvents = new ArrayList<>();\n recordEntityEven...
"public void openDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"String_Node_Str\");\n builder.setPositiveButton(\"String_Node_Str\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n }\n ...
"private ServiceConfiguration doTopologyChange(final ServiceConfiguration input, final State nextState) throws RuntimeException {\n final State initialState = input.lookupState();\n ServiceConfiguration endResult = input;\n try {\n endResult = ServiceTransitions.pathTo(input, nextState).get();\n ...
"public static ProgramClassLoader create(File unpackedJarDir, ClassLoader parentClassLoader, ProgramType programType) throws IOException {\n ClassLoader filteredParent = FilterClassLoader.create(programType, parentClassLoader);\n return new ProgramClassLoader(unpackedJarDir, filteredParent);\n}\n"
"public void sendHttp_1_0_Request() throws Exception {\n robot.finish();\n checkLogMessageRule.setExpectedPatterns(Arrays.asList(new String[] { expectedMessage }));\n}\n"
"public void replaceView(ProteusView proteusView) {\n this.children = proteusView.getChildren();\n this.layout = proteusView.getLayout();\n this.styles = proteusView.getStyles();\n ViewGroup parent = (ViewGroup) this.view.getParent();\n if (parent != null) {\n int index = parent.indexOfChild(this....
"public void newProperties(PropertySheet ps) throws PropertyException {\n super.newProperties(ps);\n logger = ps.getLogger();\n sampleRate = ps.getInt(PROP_SAMPLE_RATE, PROP_SAMPLE_RATE_DEFAULT);\n int sampleSizeInBits = ps.getInt(PROP_BITS_PER_SAMPLE, PROP_BITS_PER_SAMPLE_DEFAULT);\n int channels = ps.g...
"private void updateContentTree() {\n ArrayList<SelectionType> sTypes = contentSelectionManager.getSelectionTypes();\n Color color = null;\n contentTree.removeAll();\n for (SelectionType tmpSelectionType : sTypes) {\n if (SelectionType.isDefaultType(tmpSelectionType) || !tmpSelectionType.isManaged())...
"private void showHelp() {\n if (sidebar != null) {\n openSidebar();\n if (help == null) {\n help = SimpleContentFragment.newInstance(FILE_HELP);\n }\n getFragmentManager().beginTransaction().addToBackStack(null).replace(R.id.sidebar, help, HELP).commit();\n } else {\n ...
"public static FileSystem getLocalFileSystem() throws IOException {\n URI localUri;\n try {\n localUri = isWindows() ? new URI(\"String_Node_Str\") : new URI(\"String_Node_Str\");\n } catch (URISyntaxException e) {\n throw new IOException(\"String_Node_Str\");\n }\n return get(localUri);\n}...
"public void handleBeforeClose(IDataSetInstanceHandle dataSet) {\n if (reportContext == null)\n return;\n try {\n if (!this.useBeforeCloseEventHandler) {\n JSScriptStatus status = handleJS(dataSet.getScriptScope(), dataSet.getName(), BEFORE_CLOSE, dataSetHandle.getBeforeClose());\n ...
"public void delete(Order order) {\n repository.deleteById(order.getID());\n}\n"
"public MenuItemUI getItemUI(final JMenuItem jMenuItem, final Entry entry) {\n return new DefaultMenuItemUI(jMenuItem) {\n public void installUI(final JComponent c) {\n super.installUI(c);\n }\n } else {\n return new DefaultMenuItemUI(jMenuItem) {\n public void installUI...
"public void testStyleCamelCase() {\n DivElement div = Document.get().createDivElement();\n div.getStyle().setProperty(\"String_Node_Str\", \"String_Node_Str\");\n assertEquals(\"String_Node_Str\", div.getStyle().getProperty(\"String_Node_Str\"));\n div.getStyle().setPropertyPx(\"String_Node_Str\", 10);\n ...
"private URL[] getSparkClassloaderURLs(ClassLoader classLoader) throws IOException {\n List<URL> urls = ClassLoaders.getClassLoaderURLs(classLoader, new LinkedList<URL>());\n if (classLoader.getResource(\"String_Node_Str\") == null) {\n Iterator<URL> itor = urls.iterator();\n while (itor.hasNext()) ...
"protected boolean processFile(AbstractFile file, Object recurseParams) {\n if (getState() == INTERRUPTED)\n return false;\n AbstractFile destFolder = recurseParams == null ? baseDestFolder : (AbstractFile) recurseParams;\n boolean isFileInBaseFolder = files.indexOf(file) != -1;\n if (mode == UNPACK_...
"public Controller createController(UserRequest lureq, WindowControl lwControl) {\n lwControl.getWindowBackOffice().getChiefController().addBodyCssClass(\"String_Node_Str\");\n return new MembersPrintController(lureq, lwControl, getTranslator(), ownerList, coachList, participantList, waitingtList, showOwners, sho...
"public byte[] toByteArray() {\n byte[] in = bi.and(f.getMask()).toByteArray();\n byte[] out = new byte[f.getb() / 8];\n for (int i = 0; i < in.length; i++) {\n out[i] = in[in.length - 1 - i];\n }\n for (int i = in.length; i < out.length; i++) {\n out[i] = 0;\n }\n return out;\n}\n"
"public Span postProcess(Span span, List<SpanEvent> spanEventList) {\n span.finish();\n if (CollectionUtils.hasLength(spanEventList)) {\n final long spanStartTime = span.getStartTime();\n spanEventCompressor.compress(spanEventList, spanStartTime);\n span.setSpanEventList((List) spanEventList)...
"public static void main(String[] args) throws Exception {\n if (args.length >= 1 && args[0].equals(\"String_Node_Str\")) {\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_S...
"public void postEntitlement() {\n Consumer c = mock(Consumer.class);\n PoolHelper ph = mock(PoolHelper.class);\n Entitlement e = mock(Entitlement.class);\n ConsumerType type = mock(ConsumerType.class);\n Pool pool = mock(Pool.class);\n Product product = mock(Product.class);\n when(e.getPool()).the...
"public void run() {\n if (showImageShell == null) {\n showImageShell = new ShowImageShell(display, id, imageWrapper, new DisposeListener() {\n public void widgetDisposed(DisposeEvent e) {\n showImageShell = null;\n }\n });\n shells.put(id, showImageShell);\n...
"public void clickNodes(Node[] nodes) {\n Node n = nodes[0];\n if (sourceNode == null) {\n sourceNode = n;\n shortestPathPanel.setResult(\"String_Node_Str\");\n shortestPathPanel.setStatus(NbBundle.getMessage(ShortestPath.class, \"String_Node_Str\"));\n } else if (n != sourceNode) {\n ...
"public boolean publishImageMosaic(String workspace, String storeName, File zipFile, ParameterConfigure configure, NameValuePair... params) throws FileNotFoundException {\n return publishCoverage(workspace, storeName, CoverageStoreExtension.imagemosaic, \"String_Node_Str\", zipFile, configure, params);\n}\n"
"public boolean onItemLongClick(AdapterView<?> av, View v, int position, long id) {\n if (position >= offset) {\n ENSPopUp Menu = new ENSPopUp(con, ENSArray.get(position).getVon().getUsername(), ENSArray.get(position).getVon().getId(), ENSArray.get(position).getENS_id(), ENSArray.get(position).getBetreff(), t...
"protected IStatus checkJavaType(String value) {\n return JavaConventions.validateIdentifier(value, JavaCore.VERSION_1_3, JavaCore.VERSION_1_3);\n}\n"
"private void evaluateArgsValue(int aggrIndex, IAggrInfo aggrInfo, int i) throws DataException {\n if (i >= aggrInfo.getArgument().length) {\n return;\n }\n IBaseExpression argExpr = aggrInfo.getArgument()[i];\n if (!isOptional) {\n checkExpression(aggrInfo, argExpr);\n } else if (argExpr =...
"public void init() {\n pattern = Pattern.compile(format);\n subscribeTo(FunctionUtils.functions());\n subscribeTo(PHPGrammar.ASSIGNMENT_EXPR, PHPGrammar.ASSIGNMENT_BY_REFERENCE);\n}\n"
"public void onSuccess(Object response) {\n String method = \"String_Node_Str\";\n Map<String, String> parameters = new HashMap<String, String>();\n parameters.put(\"String_Node_Str\", \"String_Node_Str\");\n JSONObject payload = getMethodBody(instanceId, method, parameters);\n ResponseListener<Object> p...
"public List<PeriodVo> listPeriods() {\n List<PeriodVo> periodVos;\n EntityManager entityManager = null;\n try {\n entityManager = getEntityManagerFactory().createEntityManager();\n periodVos = getServiceFactory().getPeriodsService().list(entityManager);\n } catch (Exception enException) {\n ...
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_youtube);\n YouTubePlayerSupportFragment mPlayerFragment = (YouTubePlayerSupportFragment) getSupportFragmentManager().findFragmentById(R.id.youtube_fragment);\n mPlayerFragment.initial...
"public void addSeriesToXYZDataset(DefaultXYZDataset dataset, String keyOfDataset) {\n final int size = keyToVal.size();\n double[] xDouble = new double[size];\n double[] yDouble = new double[size];\n double[] zDouble = new double[size];\n int i = 0;\n for (MultipleKey key : keyToVal.keySet()) {\n ...
"public static void handleDefaultValue(MetadataColumn column) {\n if (column == null) {\n return;\n }\n String talendType = column.getTalendType();\n if (talendType == null) {\n return;\n }\n Expression initialValue = column.getInitialValue();\n if (initialValue == null) {\n re...
"public void testParentIsObject_GRE528() {\n runConformTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\");\n checkGCUDeclaration(\"String_Node_Str\", \"String_Node_Str\" ...
"public void execute() {\n glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fboId);\n}\n"
"public boolean onUpdateSelection(final int oldSelStart, final int oldSelEnd, final int newSelStart, final int newSelEnd) {\n if (mConnection.isBelatedExpectedUpdate(oldSelStart, newSelStart, oldSelEnd, newSelEnd)) {\n return false;\n }\n mSpaceState = SpaceState.NONE;\n final boolean selectionChange...
"public void initialize(IMessaging messaging, IConfig props) throws IOException {\n m_bossGroup = new NioEventLoopGroup();\n m_workerGroup = new NioEventLoopGroup();\n initializePlainTCPTransport(messaging, props);\n initializeWebSocketTransport(messaging, props);\n String sslTcpPortProp = props.getPrope...
"public void testArgumentsChecksumReplica() {\n String expectedErrorMessage = \"String_Node_Str\" + \"String_Node_Str\" + Replica.getReplicaFromName(TestInfo.BATCH_CS_REPLICA_NAME) + \"String_Node_Str\" + Replica.getReplicaFromName(TestInfo.BATCH_CS_REPLICA_NAME).getType() + \"String_Node_Str\";\n String[] args =...
"public static Rule getRuleByName(final String ruleName, Environment env) throws ExternalPackageException, InterruptedException {\n List<Rule> rules = getRules(env, true, new Function<Package, Iterable<Rule>>() {\n\n public Iterable<Rule> apply(Package externalPackage) {\n Rule rule = externalPacka...
"public synchronized Connection getConnection() {\n Connection connection = null;\n if (pool.size() > 0) {\n connection = pool.firstElement();\n pool.removeElementAt(0);\n try {\n if (con.isClosed()) {\n logger.debug(\"String_Node_Str\");\n con = getCo...
"public synchronized void elementsChanged(Object[] updatedElements) {\n for (int i = 0; i < updatedElements.length; i++) {\n if (!(updatedElements[i] instanceof AttributeLineElement)) {\n if (searchResult.getMatchCount(updatedElements[i]) > 0) {\n insert(updatedElements[i], true);\n ...
"public void openStartElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver) {\n super.openStartElement(xPathFragment, namespaceResolver);\n currentLevelPrefixMappings = null;\n prefixMappings.add(currentLevelPrefixMappings);\n if (isStartElementOpen) {\n openAndCloseStartElement()...
"private void applyFocusableFlag(State state) {\n boolean panelFocusable = state.statusBarFocusable && state.panelExpanded;\n if (state.isKeyguardShowingAndNotOccluded() && state.keyguardNeedsInput && state.bouncerShowing || BaseStatusBar.ENABLE_REMOTE_INPUT && panelFocusable) {\n mLpChanged.flags &= ~Wind...
"public void writeSet(MethodVisitor visitor) {\n visitor.visitVarInsn(this.type.getStoreOpcode(), this.index);\n}\n"
"public Void call() throws Exception {\n while (numCompletedInputs.get() < numInputs) {\n if (numRunningFetchers.get() >= numFetchers || pendingHosts.size() == 0) {\n lock.lock();\n try {\n wakeLoop.await();\n } finally {\n lock.unlock();\n ...
"protected static Rect findFreeSpace(Point start, ArrayList<Room> collision, int maxSize) {\n Rect space = new Rect(start.x - maxSize, start.y - maxSize, start.x + maxSize, start.y + maxSize);\n ArrayList<Room> colliding = new ArrayList<>(collision);\n do {\n Iterator<Room> it = colliding.iterator();\n ...
"private void updateDataOffset() {\n int newDataOffset = scroller.getCurrX() / scrollerBucketSize;\n newDataOffset = Math.max(0, newDataOffset);\n newDataOffset = Math.min(maxDataOffset, newDataOffset);\n if (newDataOffset != dataOffset) {\n dataOffset = newDataOffset;\n scrollController.onDat...
"public void exportSubGraph(List<Set<URI>> vertexSubSets, Writer[] outputWriters) {\n int i = 0;\n Iterator<Set<Resource>> it = vertexSubSets.iterator();\n while (it.hasNext()) {\n Graph<URI, NamedEdge> componentGraph = getGraphForComponent(it.next());\n new DOTExporter<URI, NamedEdge>(new Intege...
"private String[] validateArgs(String[] arguments) {\n if (arguments.length < PROGRAM_WRAPPER_ARGUMENTS_SIZE) {\n throw new IllegalArgumentException(\"String_Node_Str\" + \"String_Node_Str\");\n }\n return arguments;\n}\n"
"public Cron validate() {\n for (CronConstraint constraint : getCronDefinition().getCronConstraints()) {\n if (!constraint.validate(this)) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", asString(), constraint.getDescription()));\n }\n }\n for (Map.Entry<CronF...
"private String createBitarchiveAppId() throws UnknownID {\n String id;\n id = SystemUtils.getLocalIP();\n try {\n String applicationInstanceId = Settings.get(CommonSettings.APPLICATION_INSTANCE_ID);\n if (!applicationInstanceId.isEmpty()) {\n id += \"String_Node_Str\" + applicationIns...
"public static SlackSession createWebSocketSlackSession(String authToken) {\n return new SlackWebSocketSessionImpl(null, authToken, true, true, 0, null);\n}\n"
"public BptSlot internalGetNextBlock(World world, IBuilderInventory inv, LinkedList<BptSlot> list) {\n BptSlot result = null;\n while (list.size() > 0) {\n BptSlot slot = list.getFirst();\n if (slot.blockId == world.getBlockId(slot.x, slot.y, slot.z)) {\n list.removeFirst();\n } el...
"protected boolean hasSerializationOverviewTags(VariableElement field) {\n Content output = new ContentBuilder();\n TagletWriter.genTagOutput(configuration.tagletManager, field, configuration.tagletManager.getBlockTaglets(field), getTagletWriterInstance(false), output);\n return !output.isEmpty();\n}\n"
"public boolean acceptsURL(String u) throws SQLException {\n boolean res = this.driver.acceptsURL(u);\n if (logger.isLoggable(Level.FINER))\n logger.log(Level.FINER, \"String_Node_Str\" + driverClass + \"String_Node_Str\" + u + \"String_Node_Str\" + res);\n return res;\n}\n"
"public String getSelectedExprValue() {\n String exprValue = null;\n if (selectedIndices != null && selectedIndices.length > 0) {\n int firstIndex = selectedIndices[0];\n Object modelValue = modelValueList.get(firstIndex);\n String viewerValue = (String) viewerValueList.get(firstIndex);\n ...
"public void killed() {\n LOG.debug(\"String_Node_Str\", programId);\n Retries.supplyWithRetries(new Supplier<Void>() {\n public Void get() {\n store.setStop(programId, runId, TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis()), ProgramController.State.KILLED.getRunStatus());\n ...
"private boolean refreshListIfRightPath(String path) {\n if (!path.startsWith(this.watcher.getZNodePaths().rsZNode)) {\n return false;\n }\n return refreshOtherRegionServersList(true);\n}\n"
"private void initOptions() {\n ConfigurableOption wrappingText = initializeWrappingText();\n options = new IConfigurableOption[] { wrappingText };\n}\n"
"public void test() throws IOException {\n SinaBlogProcesser sinaBlogProcesser = new SinaBlogProcesser();\n FreemarkerPipeline pipeline = new FreemarkerPipeline(\"String_Node_Str\");\n Spider.me().pipeline(new FilePipeline()).pipeline(pipeline).schedular(new FileCacheQueueSchedular(\"String_Node_Str\")).proces...
"private static VarSet createVarSet(int n, VarType type) {\n VarSet vars = new VarSet();\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if (i != j) {\n String name = LinkVar.getDefaultName(i, j);\n vars.add(new LinkVar(type, name, i, j));\n ...
"public void onClick(View arg0) {\n if (!checkDB.isChecked() & !checkExcel.isChecked()) {\n Toast.makeText(ConfigActivity.this, getString(R.string.noexportcheck), Toast.LENGTH_LONG).show();\n return;\n }\n if (!onlyUnique.isChecked() & !allColumns.isChecked()) {\n Toast.makeText(ConfigActi...
"public DatabaseConnection createConnection(ConnectionParameters parameters) {\n String dbType = parameters.getDbType();\n boolean isNeedSchema = EDatabaseTypeName.getTypeFromDbType(dbType).isNeedSchema();\n String productName = EDatabaseTypeName.getTypeFromDisplayName(dbType).getProduct();\n String schema ...
"public void setRuleVisible(boolean ruleVisible) {\n if (!(this instanceof MageSingleton)) {\n this.ruleVisible = ruleVisible;\n }\n}\n"
"public Response<Void> rollbackTransaction(SlaveContext context) {\n Transaction otherTx = suspendOtherAndResumeThis(context);\n try {\n Transaction tx = transactions.remove(context);\n if (tx == null) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n graphDbConfig....
"public PtNodeInfo readPtNode(int ptNodePos, FormatOptions options) {\n int addressPointer = ptNodePos;\n final int flags = PtNodeReader.readPtNodeOptionFlags(mDictBuffer);\n addressPointer += FormatSpec.PTNODE_FLAGS_SIZE;\n final int parentAddress = PtNodeReader.readParentAddress(mDictBuffer, options);\n ...
"public boolean isPlayerReady() {\n return YTPSTATE_INVALID != ytpGetState();\n}\n"
"public void enumerateTableColumns(QueryModel model) throws ParserException {\n final ObjList<QueryModel> jm = model.getJoinModels();\n if (model.getTableName() != null) {\n RecordMetadata m = model.getTableMetadata(engine, csPool.next());\n for (int i = 0, k = m.getColumnCount(); i < k; i++) {\n ...
"public void onClick(View v) {\n KeyBoardUtils.closeKeybord(eEtOutMoney, AccountsTransferActivity.this);\n KeyBoardUtils.closeKeybord(eEtInMoney, AccountsTransferActivity.this);\n selectItem = 1;\n Intent intent = new Intent(AccountsTransferActivity.this, SelectAccountActivity.class);\n if (inAccountID >...
"public boolean affectEntity(float radius, Entity entity, boolean doExplosion) {\n boolean explosionCreated = false;\n if (entity == this.controller) {\n return false;\n }\n if (entity instanceof IExplosiveIgnore) {\n if (((IExplosiveIgnore) entity).canIgnore(this)) {\n return false...
"private Composite build(final Composite parent) {\n Composite group = new Composite(parent, SWT.NONE);\n group.setLayoutData(SWTUtil.createFillGridData());\n GridLayout groupInputGridLayout = new GridLayout();\n groupInputGridLayout.numColumns = 2;\n group.setLayout(groupInputGridLayout);\n GridData ...
"public static void main(String[] args) throws Exception {\n final String baseDir = args.length > 0 ? args[0] : \"String_Node_Str\";\n final String sourceDir = baseDir + \"String_Node_Str\";\n Server server = new Server();\n SelectChannelConnector connector = new SelectChannelConnector();\n connector.set...
"public void authorize(AuthorizeListener listener) {\n mAuthService.getToken(mClientId, mClientSecret, mRedirectUri, AUTHORIZATION_CODE, mAuthCode).enqueue(new Callback<OAuth2Tokens>() {\n\n public void onResponse(Call<OAuth2Tokens> call, Response<OAuth2Tokens> response) {\n token = response.body()...
"public Key readIndex() {\n checkActive();\n SwordBookMetaData bmd = getBookMetaData();\n String charset = bmd.getBookCharset();\n keys = new DefaultKeyList(null, bmd.getName());\n boolean isDailyDevotional = bmd.getBookCategory().equals(BookCategory.DAILY_DEVOTIONS);\n Calendar greg = new GregorianCa...
"private Composite createUniqueConstraintPanel(Composite parent) {\n Composite thePanel = WidgetFactory.createPanel(parent, SWT.NONE, 1, 2);\n GridLayoutFactory.fillDefaults().numColumns(2).margins(10, 10).applyTo(thePanel);\n GridDataFactory.fillDefaults().grab(true, true).applyTo(thePanel);\n this.include...
"public String join(String openid) {\n Optional<ApplicationForm> applicationForm = joinService.queryForm(openid);\n if (applicationForm.isPresent() && applicationForm.get().getName() != null) {\n return \"String_Node_Str\";\n }\n return \"String_Node_Str\";\n}\n"
"protected void outAnim() {\n AnimationDesc fa = renderer.getCurrentAnimation();\n if (fa != null) {\n if (fa.sound != null && repeatType != Tween.Type.REVERSE) {\n playSound(fa.sound);\n }\n Vector2 inD = fa.inD;\n if (inD != null) {\n float s = EngineAssetManage...
"protected void updateMessagesList() {\n initListView();\n}\n"
"protected boolean isValid(Double object) {\n return super.isValid(object) && object >= 0D && object < Double.MAX_VALUE && object != Double.NaN;\n}\n"
"public void setReportsJSON(String reportsJSON) {\n try {\n JSONArray jsonArray = new JSONArray(reportsJSON);\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject report = jsonArray.getJSONObject(i);\n if (!report.has(SavedSearchDetails.NAME)) {\n throw new...
"public boolean onTouch(View view, MotionEvent motionEvent) {\n switch(motionEvent.getAction()) {\n case MotionEvent.ACTION_DOWN:\n if (isShadowEnabled) {\n this.setPadding(mPaddingLeft, mShadowHeight, mPaddingRight, 0);\n }\n break;\n case MotionEvent.AC...
"public boolean solve(boolean least) {\n Object init = least ? _cpo.bottom() : _cpo.top();\n if (init == null) {\n throw new InvalidStateException(\"String_Node_Str\" + \"String_Node_Str\");\n }\n for (Enumeration e = _Clist.keys(); e.hasMoreElements(); ) {\n InequalityTerm variable = (Inequal...
"protected void drawGeometry(PGraphics g) {\n PShape3D p3d = (PShape3D) parent;\n int numTextures;\n float pointSize;\n pointSize = PApplet.min(g.strokeWeight, PGraphicsAndroid3D.maxPointSize);\n gl.glPointSize(pointSize);\n gl.glEnableClientState(GL11.GL_NORMAL_ARRAY);\n gl.glBindBuffer(GL11.GL_AR...
"private void emptyLibs() {\n File libsDir = org.eclipse.core.runtime.Platform.getLocation().append(JavaUtils.JAVA_PROJECT_NAME).append(\"String_Node_Str\").toFile();\n if (libsDir.exists() && libsDir.isDirectory()) {\n FilesUtils.emptyFolder(libsDir);\n }\n}\n"
"public static Snapshot named(final String snapshotId) {\n return new Snapshot((UserFullName) null, snapshotId);\n}\n"
"private void hashNotInAccount(UploadItem uploadItem) {\n MFConfiguration.getStaticMFLogger().logMessage(TAG, \"String_Node_Str\");\n InstantProcess process = new InstantProcess(mfTokenFarm, this, uploadItem);\n Thread thread = new Thread(process);\n thread.start();\n}\n"
"private boolean deleteDir(File directory) throws IOException {\n if (!directory.isDirectory()) {\n throw new FileNotFoundException(directory.getPath());\n }\n boolean allDeletesSucceeded = true;\n if (FileUtils.safeIsRealDirectory(directory)) {\n File[] entries = directory.listFiles();\n ...