content
stringlengths
40
137k
"public String getConnectOptions() {\n if (serviceContext.supportsConnects()) {\n ConnectOptionsContext context = serviceContext.getConnectOptionsContext();\n JSONObject jsonOptions = new JSONObject();\n try {\n if (context != null) {\n Map<String, Object> connectOption...
"private void onConnect(final SelectionKey key) throws IOException {\n SocketChannel channel = null;\n try {\n channel = (SocketChannel) key.channel();\n } finally {\n closeables.add(channel);\n }\n final Attached attached = (Attached) key.attachment();\n try {\n if (!channel.fini...
"public ENSObject parseJSON(JSONObject JSON) {\n try {\n this.setBetreff(JSON.getString(\"String_Node_Str\"));\n this.setTime(JSON.getString(\"String_Node_Str\"));\n if (JSON.has(\"String_Node_Str\"))\n this.setText(JSON.getString(\"String_Node_Str\"));\n UserObject von = new U...
"public void fire() throws IllegalActionException {\n for (int i = 0; i < publish.getWidth(); i++) {\n if (publish.hasToken(i)) {\n StringToken token = (StringToken) publish.get(i);\n String tokenString = token.stringValue();\n JsonObject msg = new JsonObject().putString(\"Str...
"public SnsHttpDelegate produceDelegateFor(PushNotificationServiceConfig config, String realm, MessageDispatcher messageDispatcher) throws PushNotificationException {\n AmazonSNSClient service = new SnsClientFactory().produce(config);\n return new SnsHttpDelegate(service, config, router, snsMessageResource, pushM...
"public ArrayList<Integer> getExecutableAddresses() {\n ArrayList<Integer> executableAddresses = new ArrayList<Integer>();\n for (LineData data : lineInfo) {\n for (LineEntry entry : data.lineEntries) {\n executableAddresses.add(entry.address);\n }\n }\n return executableAddresses;\...
"public void setUp() {\n cacheFactoryMock = PowerMock.createMock(WBCacheFactory.class);\n freeMarkerFactoryMock = PowerMock.createMock(WBFreeMarkerFactory.class);\n configurationMock = PowerMock.createMock(Configuration.class);\n templateLoaderMock = PowerMock.createMock(WBFreeMarkerTemplateLoader.class);\n...
"protected int doWork() {\n IoUtil.assertFileIsReadable(INPUT);\n if (SEQUENCE_DICTIONARY != null)\n IoUtil.assertFileIsReadable(SEQUENCE_DICTIONARY);\n IoUtil.assertFileIsWritable(OUTPUT);\n final VCFFileReader reader = new VCFFileReader(INPUT);\n final VCFHeader header = new VCFHeader(reader.get...
"public static PoreBlock of(BlockLoc handle) {\n return converter.apply(handle);\n}\n"
"public List<ActivityTest> findAll(ActivityID activity) {\n if (activity == null) {\n return null;\n }\n ActivityPK key = ObjectFactory.getActivityPK(activity);\n Query query = getSession().getNamedQuery(\"String_Node_Str\");\n query.setParameter(\"String_Node_Str\", key.getSemester());\n query...
"public void run() {\n final ITmfTrace[] traces = new ITmfTrace[tl.size()];\n final TmfExperimentElement exp = uiexperiment.get(0);\n for (int i = 0; i < tl.size(); i++) {\n ITmfTrace trace = tl.get(i).instantiateTrace();\n ITmfEvent traceEvent = tl.get(i).instantiateEvent();\n if (trace =...
"public int getDroppedExp() {\n return this.getHandle().getExp();\n}\n"
"public boolean disassociateIpAddress(long ipAddressId) {\n Long userId = UserContext.current().getCallerUserId();\n Account caller = UserContext.current().getCaller();\n IPAddressVO ipVO = _ipAddressDao.findById(ipAddressId);\n if (ipVO == null) {\n throw new InvalidParameterValueException(\"String_...
"protected void refreshData() {\n try {\n if (this.comitting)\n return;\n this.refreshing = true;\n WSUniverse wsUniverse = (WSUniverse) (getXObject().getWsObject());\n universe = new Universe(\"String_Node_Str\");\n universe.setName(wsUniverse.getName());\n unive...
"private final boolean bringUpServiceLocked(ServiceRecord r, int intentFlags, boolean whileRestarting) {\n if (r.app != null && r.app.thread != null) {\n sendServiceArgsLocked(r, false);\n return true;\n }\n if (!whileRestarting && r.restartDelay > 0) {\n return true;\n }\n if (DEBUG...
"public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {\n ValidationUtil.isNotNull(unit, \"String_Node_Str\");\n long deadline = timeout == 0L ? -1 : Clock.currentTimeMillis() + unit.toMillis(timeout);\n for (; ; ) {\n Thread.sleep(100);\n if...
"private void updateSegmentTreeRangeLazy(int[] segmentTree, int[] lazy, int startRange, int endRange, int delta, int low, int high, int pos) {\n if (low > high) {\n return;\n }\n if (lazy[pos] != 0) {\n if (low != high) {\n segmentTree[2 * pos + 1] += lazy[pos];\n segmentTre...
"public List<IGraphItem> getSearchResult() {\n if (iSearchDepth < 1) {\n return new ArrayList<IGraphItem>(0);\n }\n List<IGraphItem> resultList = new ArrayList<IGraphItem>();\n List<IGraphItem> tmpList = this.itemSource.getAllItemsByProp(prop);\n Iterator<IGraphItem> iterTmpGraphItems = tmpList.it...
"public IBinder onBind(Intent intent) {\n _torInstance = this;\n initTorPaths();\n new Thread() {\n public void run() {\n findExistingProc();\n }\n }.start();\n if (ITorService.class.getName().equals(intent.getAction())) {\n return mBinder;\n } else\n return null...
"public void onComplete(Task<AnnotatedData<LeaderboardScore>> task) {\n if (task.isSuccessful()) {\n AnnotatedData<LeaderboardScore> result = task.getResult();\n LeaderboardScore leaderboardScore = result.get();\n long score = -1;\n long rank = -1;\n if (leaderboardScore != null) {...
"private void serveChangesFeed(RestServiceRequest rsr, long since, long maxDurationSeconds) throws IOException, CoreException {\n if (!rsr.request.isAsyncSupported())\n throw new IllegalStateException(\"String_Node_Str\");\n if (since < -1)\n throw new IllegalArgumentException(\"String_Node_Str\");\...
"private void incrementPredecessor() {\n if (predecessor.siblingAfter != null && predecessor.siblingAfter != current) {\n nodesToAttach.queueOutOfOrderNodeForAttaching(predecessor.siblingAfter);\n predecessor.siblingAfter.siblingBefore = null;\n predecessor.siblingAfter = null;\n }\n prede...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Resources res = getResources();\n ColorDrawable plum = new ColorDrawable(getResources().getColor(R.color.plum));\n int shadowPlum = res....
"public OutputStream putNextEntry(String name) throws java.io.IOException {\n name = name.replace('/', File.separatorChar);\n File newFile = new File(archive, name);\n if (newFile.exists()) {\n if (!deleteEntry(name, false) && uri != null) {\n deplLogger.log(Level.FINE, \"String_Node_Str\", n...
"public static int[] toPrimitive(Integer[] integers) {\n int[] ints = new int[integers.length];\n int i = 0;\n for (Integer n : integers) {\n ints[i++] = n;\n }\n return ints;\n}\n"
"public void removeOpenPaths(int[][] paths) {\n int newPathLength = paths != null ? paths.length : 0;\n if (newPathLength > 0 && !_opens.isEmpty()) {\n for (TreeNode<E> e : getNodesByPath(paths)) {\n if (_opens.containsKey(e)) {\n _opens.remove(e);\n fireOpenChanged...
"public NamedComponent<JongoCollection> customize(NamedComponent<JongoCollection> namedComponent) {\n if (namedComponent.getName().getName().equals(given.getCollection())) {\n Mapper mapper = satisfiedBOM.getOne(mapperQuery).get().getComponent();\n return new NamedComponent<>(namedComponent.getName(), ...
"private ScannerFields getScannerFields(MetricsScanQuery query, boolean shouldMatchAllTags) {\n int startTimeBase = getTimeBase(query.getStartTime());\n int endTimeBase = getTimeBase(query.getEndTime());\n byte[][] columns = null;\n if (startTimeBase == endTimeBase) {\n int startCol = (int) (query.ge...
"private void pauseTimer() {\n status = Status.PAUSED;\n this.pauseTime = System.currentTimeMillis();\n handler.removeCallbacks(Countdown);\n}\n"
"public Dosage setRate(Type value) throws FHIRFormatError {\n if (value != null && !(value instanceof Ratio || value instanceof Range || value instanceof Quantity))\n throw new FHIRFormatError(\"String_Node_Str\" + value.fhirType());\n this.rate = value;\n return this;\n}\n"
"private void checkAfterEncoding(final ARXConfiguration config, final DataManager manager) {\n if (config.isPrivacyModelSpecified(KAnonymity.class)) {\n KAnonymity c = config.getPrivacyModel(KAnonymity.class);\n if ((c.getK() > numberOfOutputRecords) || (c.getK() < 1)) {\n throw new IllegalA...
"protected String writeString(List<String> items) {\n int size = items.size();\n StringBuffer buf = new StringBuffer(size * 50);\n buf.append(\"String_Node_Str\");\n for (int i = 0; i < size; i++) {\n buf.append(items.get(i));\n if (i != size - 1) {\n String trim = ARG_DELIMITER.tri...
"private IntentFieldBinding getIntentFieldBinding(Element element) throws InvalidTypeException {\n TypeMirror type = element.asType();\n if (type instanceof TypeVariable) {\n type = ((TypeVariable) type).getUpperBound();\n }\n String name = element.getSimpleName().toString();\n String intentType =...
"public void updateDeserializer(SDeserializerPluginConfiguration deserializer) throws ServerException, UserException {\n requireRealUserAuthentication();\n DatabaseSession session = getBimServer().getDatabase().createSession();\n try {\n DeserializerPluginConfiguration convert = session.get(deserializer...
"private void verifyValues(ContentValues values) {\n if (!values.containsKey(FinchVideo.SimpleVideos.TITLE_NAME)) {\n Resources r = Resources.getSystem();\n values.put(FinchVideo.SimpleVideos.TITLE_NAME, r.getString(android.R.string.untitled));\n }\n if (!values.containsKey(FinchVideo.SimpleVideo...
"public String saveCassandraStart(final String streamName) {\n try {\n ssaw.api().saveToCassandra(streamName);\n return \"String_Node_Str\".concat(streamName).concat(\"String_Node_Str\");\n } catch (StratioStreamingException e) {\n throw new StreamingShellException(e);\n }\n}\n"
"public void testInvalidKeyset() throws Exception {\n KeyFormat format = KeyFormat.newBuilder().setTypeUrl(macTypeUrl).build();\n KeysetManager manager = new KeysetManager.Builder().setKeyFormat(format).build();\n manager.rotate();\n Keyset keyset = manager.getKeysetHandle().getKeyset();\n KeyData echoAe...
"protected void createColumnDefinitions(TypeElement typeElement) {\n List<? extends Element> elements = ElementUtility.getAllElements(typeElement, manager);\n ColumnValidator columnValidator = new ColumnValidator();\n OneToManyValidator oneToManyValidator = new OneToManyValidator();\n for (Element element :...
"public CustomProgressDialog generateProgressDialog(int taskId) {\n String title, message;\n switch(taskId) {\n case ModernHttpTask.SIMPLE_HTTP_TASK_ID:\n title = Localization.get(\"String_Node_Str\");\n message = Localization.get(\"String_Node_Str\");\n break;\n def...
"public static DASInfo getStorageInfo() {\n DASInfo conf = null;\n TransactionResource tran = Entities.transactionFor(DASInfo.class);\n try {\n conf = Transactions.find(new DASInfo());\n } catch (Exception e) {\n LOG.warn(\"String_Node_Str\" + StorageProperties.NAME + \"String_Node_Str\");\n ...
"protected List<SearchResultItem> pickSearchResultItemsFromDuplicateGroups(SearchResult searchResult) {\n List<TreeSet<SearchResultItem>> duplicateGroups = searchResult.getDuplicateDetectionResult().getDuplicateGroups();\n return duplicateGroups.stream().map(x -> {\n return x.stream().sorted(Comparator.com...
"private Long getAppIDForSession(int sessionId, boolean shouldAssertNewSession) {\n synchronized (SESSION_LOCK) {\n if (sessionMap == null) {\n Log.w(TAG, \"String_Node_Str\");\n sessionMap = new SparseArray<String>();\n }\n Long appId = sessionMap.get(sessionId);\n ...
"protected void doSave() {\n String s = writeString(list);\n if (s != null && getJobProcess() != null) {\n executeCommand(new PropertyChangeCommand(getJobProcess(), EParameterName.JOB_RUN_VM_ARGUMENTS.getName(), s));\n }\n}\n"
"private void doImport(final String pluginId, final String zipPath, final String jobName) {\n synchronized (isAlreadyExecuteOpenJob) {\n if (isAlreadyExecuteOpenJob) {\n return;\n }\n isAlreadyExecuteOpenJob = true;\n }\n if (pluginId == null || pluginId.isEmpty() || zipPath == ...
"protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) {\n AntialiasingManager.activateAntialiasing(g);\n super.paintBackground(g, menuItem, bgColor);\n boolean isToolBarExtended = new Boolean(GuiActivator.getResources().getSettingsString(\"String_Node_Str\")).booleanValue();\n if (!...
"public int onStartCommand(Intent intent, int flags, int startId) {\n startForeground(notifMgr.getForegroundNotificationId(), notifMgr.getForegroundNotification());\n if (intent.getExtras() != null && intent.getExtras().containsKey(\"String_Node_Str\") && ((Boolean) intent.getExtras().get(\"String_Node_Str\")))\n...
"public static Optional<String> readResource(String packagePath) {\n ClassLoader classLoader = UI.class.getClassLoader();\n File file = new File(classLoader.getResource(packagePath).getFile());\n BufferedReader reader;\n StringBuilder sb = new StringBuilder();\n try {\n reader = new BufferedReader...
"public void run() {\n boolean synthAvailable = false;\n String utteranceId = \"String_Node_Str\";\n Log.i(\"String_Node_Str\", \"String_Node_Str\" + speechItem.mFilename);\n try {\n synthAvailable = synthesizerLock.tryLock();\n if (!synthAvailable) {\n Thread.sleep(100);\n ...
"public void run() {\n TreeNode treeNode = null;\n boolean needWarning = false;\n if (input) {\n treeNode = XmlmapFactory.eINSTANCE.createTreeNode();\n if (!parent.getOutgoingConnections().isEmpty()) {\n needWarning = true;\n }\n } else {\n treeNode = XmlmapFactory.eIN...
"private void unsetJavaBreakpointUpdater() {\n try {\n ISourceViewer viewer = getSourceViewer();\n if (viewer != null) {\n IAnnotationModel model = viewer.getAnnotationModel();\n if (model instanceof AbstractMarkerAnnotationModel) {\n ReflectionUtils.executePrivateM...
"public Map<String, Object> next() {\n if (!rowIt.hasNext() && wideRowCounterIt.hasNext()) {\n this.currentWideRowCounter = wideRowCounterIt.next();\n try {\n resetRowIt();\n } catch (RhombusException re) {\n re.printStackTrace();\n return null;\n }\n }...
"public static void main(String[] args) throws Exception {\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (UnsupportedLookAndFeelException e) {\n }\n SlippyTileExample slippy = new SlippyTileExample();\n Example example = Example.showWithSwing(slippy);\n ...
"private boolean execute(MapCorrectionAction action) {\n if (action.getStep() == ActionStep.FINISHED) {\n action.setNextStep(ActionStep.FINISHED);\n } else if (action.getNextStep() == ActionStep.CANCELLED) {\n activeTileAction = null;\n return true;\n }\n MapHex hex = action.getLocation...
"protected KeyboardAddOnAndBuilder createConcreteAddOn(Context askContext, Context context, String prefId, int nameId, String description, int sortIndex, AttributeSet attrs) {\n final int layoutResId = attrs.getAttributeResourceValue(null, XML_LAYOUT_RES_ID_ATTRIBUTE, AddOn.INVALID_RES_ID);\n final int landscapeL...
"default public <T> void batchUpdate(String query, int batchSize, Collection<T> params, Function<T, ?>... paramMappers) {\n PreparedStatement stmt = null;\n try {\n stmt = this.prepare(query);\n this.setAutoCommit(false);\n Iterator<T> itr = params.iterator();\n for (int i = 1; itr.has...
"public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) {\n if (unmarshalRecord.isNil() && xmlCompositeObjectMapping.getNullPolicy().isNullRepresentedByXsiNil()) {\n unmarshalRecord.resetStringBuffer();\n return;\n }\n if (null == unmarshalRecord.getChildRecord()) {\...
"protected Entity findPlayerToAttack() {\n if (this.fleeingTick > 0) {\n return null;\n }\n if (this.isInLove()) {\n List list = this.worldObj.getEntitiesWithinAABB(EntityChocobo.class, this.boundingBox.expand(8F, 8F, 8F));\n for (int i = 0; i < list.size(); i++) {\n EntityAnima...
"protected void loadDataParseFile(BufferedReader brFile, final int iNumberOfLinesInFile) throws IOException {\n allocateStorageBufferForTokenPattern();\n progressBarSetStoreInitTitle(\"String_Node_Str\" + this.getFileName(), 0, alTargetStorages.size());\n String sLine;\n int iColumnIndex = 0;\n int iPars...
"private DiscoverQuery buildCommonDiscoverQuery(Context context, DiscoveryConfiguration discoveryConfiguration, String query, List<SearchFilter> searchFilters, String dsoType) throws InvalidSearchFilterException, InvalidDSpaceObjectTypeException {\n DiscoverQuery queryArgs = buildBaseQueryForConfiguration(discoveryC...
"public String getType(GenClass context) {\n if (isFeatureMapType())\n return getEffectiveFeatureMapWrapperInterface();\n if (isMapType())\n return getEffectiveMapType(context, getEcoreTypedElement().getEGenericType(), getMapEntryTypeGenClass());\n if (isMapEntryType())\n if (isListType())...
"private int deliverTrackballEventPostIme(QueuedInputEvent q) {\n final MotionEvent event = (MotionEvent) q.mEvent;\n if (mView == null || !mAdded) {\n return EVENT_NOT_HANDLED;\n }\n if (mView.dispatchTrackballEvent(event)) {\n ensureTouchMode(false);\n mLastTrackballTime = Integer.MIN...
"protected IFigure createFigure() {\n SubjobContainer container = (SubjobContainer) this.getModel();\n Boolean isDisplaySubjobs = (container).isDisplayed();\n if (!isDisplaySubjobs) {\n Figure figure = new FreeformLayer();\n figure.setLayoutManager(new FreeformLayout());\n return figure;\n...
"public void doPostProcessing(Context context, HttpServletRequest request, HttpServletResponse response, SubmissionInfo subInfo, int status) throws ServletException, IOException, SQLException, AuthorizeException {\n String buttonPressed = UIUtil.getSubmitButton(request, UploadStep.NEXT_BUTTON);\n boolean fileRequ...
"public List<AbstractRepositoryAction> getActions(IRepositoryViewObject viewObj) {\n List<AbstractRepositoryAction> actions = new LinkedList<AbstractRepositoryAction>();\n Item item = viewObj.getProperty().getItem();\n if (item instanceof MDMItem) {\n if (item instanceof ContainerItem) {\n Fo...
"protected APIResponse.CODE doInBackground(String... params) {\n eventKey = params[0];\n if (params.length == 2) {\n teamKey = params[1];\n } else {\n teamKey = \"String_Node_Str\";\n }\n APIResponse<Event> eventResponse;\n try {\n eventResponse = DataManager.Events.getEvent(activ...
"public static NodeRef resolveToNodeRef(Store store, String uuid, String path, NodeService nodeService, SearchService searchService, NamespaceService namespaceService) {\n if (store == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n NodeRef nodeRef = null;\n NodeRef rootNodeR...
"private static void findHelpers() {\n Class[] classes = { AppleCoreHelper.class, BluePowerHelper.class, BotaniaHelper.class, ChocoCraftHelper.class, ExNihiloHelper.class, HarvestcraftHelper.class, HungerOverhaulHelper.class, MagicalCropsHelper.class, MFRHelper.class, MinetweakerHelper.class, MobDropCropsHelper.clas...
"public static List<Map<String, Object>> getTableValues(Properties tableProperties, IElementParameter param) {\n List<Map<String, Object>> table = new ArrayList<Map<String, Object>>();\n if (param.getListItemsDisplayCodeName().length == 0) {\n return table;\n }\n Property property = tableProperties.g...
"public void before() throws Exception {\n databaseHelper.addObject(MNTNER);\n databaseHelper.addObjectToSource(\"String_Node_Str\", MNTNER);\n nrtmServer.start();\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n System.s...
"private void teleportEntity(World world, World destWorld, Entity entity, double newX, double newY, double newZ) {\n if (entity instanceof EntityPlayer) {\n if (world.provider.dimensionId != destWorld.provider.dimensionId) {\n TeleportationTools.teleportToDimension((EntityPlayer) entity, destWorld....
"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 String originalName...
"public static ConnectionStatus testConnection(String dbType, String url, String username, String pwd, String schema, final String driverClassName, final String driverJarPath, String dbVersionString, String additionalParam) {\n Connection connection = null;\n ConnectionStatus connectionStatus = new ConnectionStat...
"public void setDroppedExp(int exp) {\n this.getHandle().setExp(exp);\n}\n"
"public void onAttach(Activity activity) {\n super.onAttach(activity);\n navigationDrawerCallbacks = (NavigationDrawerCallbacks) activity;\n}\n"
"public void validateRegistration() {\n if (isProductRegistered()) {\n return;\n }\n URL registURL = null;\n try {\n IBrandingService brandingService = (IBrandingService) GlobalServiceRegister.getDefault().getService(IBrandingService.class);\n String uniqueId = DefaultTokenCollector.cal...
"public void testMDTMForFile() throws Exception {\n assertFalse(TEST_FILE1.exists());\n assertTrue(TEST_FILE1.createNewFile());\n Calendar expected = Calendar.getInstance(TimeZone.getTimeZone(\"String_Node_Str\"));\n expected.clear();\n expected.setTimeInMillis(TEST_FILE1.lastModified());\n assertEqua...
"public void deploy(AuthToken token, final ResourceIdentifier resource) throws AppFabricServiceException {\n LOG.debug(\"String_Node_Str\" + resource.toString());\n if (!sessions.containsKey(resource.getAccountId())) {\n throw new AppFabricServiceException(\"String_Node_Str\");\n }\n final SessionInf...
"public void setClientState(CellClientState clientState) {\n super.setClientState(clientState);\n AppConventionalCellClientState state = (AppConventionalCellClientState) clientState;\n appName = state.getAppName();\n if (state.getLaunchLocation().equalsIgnoreCase(\"String_Node_Str\") && state.getLaunchUser(...
"private String translate(String program) {\n XProgram init;\n try {\n init = XParser.program(program);\n } catch (ParserException e) {\n int col = e.getLocation().column;\n int line = e.getLocation().line;\n topArea.requestFocusInWindow();\n topArea.area.setCaretPosition(top...
"private void showGui() {\n if (view == null) {\n view = new FolderWatchView();\n view.getBroadcaster().addListener(new SwitchPanelListener() {\n public void onPanelEvent(SwitchPanelEvent event) {\n if (event.getEventID() == SwitchPanelEvent.ON_REMOVE) {\n s...
"private String getDocWikiFileName(String filePath) {\n String name = Disks.getRelativePath(rootDir, Files.findFile(filePath));\n int pos = name.lastIndexOf('.');\n if (pos > 0)\n name = name.substring(0, pos);\n return name.replace('/', '_').replace('.', '_');\n}\n"
"public void start(Brain brain) {\n List<AttackDirection> attackDirs = new ArrayList<>(brain.getWorld().getAttackDirections(brain.getEntityOwner()));\n this.getActionResult().setSuccess(attackDirs);\n}\n"
"private void updateReportParameter(int index) {\n String setting = UIPlugin.getDefault().getPreferenceStore().getString(\"String_Node_Str\");\n if (MessageDialogWithToggle.ALWAYS.equals(setting)) {\n updateReportParameterValue(index, bindedReportParameterName);\n } else {\n OdaDataSetParameterHa...
"private SortedSet<Description> getNegClassCandidatesRecursive(Description index, Description lowerClass) {\n SortedSet<Description> candidates = new TreeSet<Description>(conceptComparator);\n for (Description candidate : subHierarchy.getSuperClasses(lowerClass)) {\n if (!isDisjoint(new Negation(candidate)...
"protected DataHandle getHandle() {\n if (model != null) {\n if (target == ModelPart.INPUT) {\n handle = model.getInputConfig().getInput().getHandle();\n if (model.getViewConfig().isSubset() && model.getOutputConfig() != null && model.getOutputConfig().getConfig() != null && handle != nu...
"public Schema getSchema() {\n Schema schema = null;\n try {\n schema = xmlParser.getXMLSchema();\n } catch (UnsupportedOperationException ex) {\n }\n return schema;\n}\n"
"public boolean requestChildRectangleOnScreen(View child, Rect rect, boolean immediate) {\n rect.offset(child.getLeft() - child.getScrollX(), child.getTop() - child.getScrollY());\n int height = getHeight() - getHorizontalScrollbarHeight();\n int screenTop = mScrollY;\n int screenBottom = screenTop + height...
"public void testSymthesisWOOrale() throws Exception {\n AstorMain main1 = new AstorMain();\n CommandSummary cs = MathCommandsTests.getMath70Command();\n cs.command.put(\"String_Node_Str\", \"String_Node_Str\");\n cs.command.put(\"String_Node_Str\", \"String_Node_Str\");\n cs.command.put(\"String_Node_St...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n Timber.plant(new Timber.DebugTree());\n if (savedInstanceState == null) {\n getSupportFragmentManager().beginTransaction().addToBackStack(this.toString()).replace(R....
"public static IToken tokenize(String code) {\n int len = code.length();\n StringBuilder buf = new StringBuilder(20);\n IToken first = new InferredSemicolon(0, 0);\n IToken prev = first;\n int start = 0;\n int lineNumber = 1;\n char l = 0;\n char c = 0;\n int type = 0;\n int subtype = 0;\n...
"private String embedFile(String filename, boolean base64encode) {\n if (filename == null)\n return null;\n if (filename.startsWith(VpnProfile.INLINE_TAG))\n return filename;\n File possibleFile = findFile(filename);\n if (possibleFile == null)\n return filename;\n else\n retu...
"protected void updateSite2SiteVpnConnectionState(final List<DomainRouterVO> routers) {\n for (final DomainRouterVO router : routers) {\n final List<Site2SiteVpnConnectionVO> conns = _s2sVpnMgr.getConnectionsForRouter(router);\n if (conns == null || conns.isEmpty()) {\n continue;\n }\...
"public BigDecimal getValue(double low, double high, Estimator estimator) {\n if (low > high)\n throw new IllegalArgumentException(\"String_Node_Str\" + \"String_Node_Str\");\n return getValue(new Interval<BigDecimal>(low, high, false, false), estimator);\n}\n"
"static void initializeKeys(Object[] key, Object[] absent, int size) {\n if (eclass == Object.class || eclass == Integer.class) {\n initInts(key, absent, size);\n } else if (eclass == Float.class) {\n initFloats(key, absent, size);\n } else if (eclass == Double.class) {\n initDoubles(key, ...
"public void onSmileClick() {\n int smilesLayoutHeight = getSmileLayoutSizeInPixels();\n if (isSmilesLayoutShowing()) {\n hideSmileLayout();\n } else {\n smilesAnimator.animateHeightFrom(Consts.ZERO_INT_VALUE, smilesLayoutHeight);\n }\n}\n"
"public void configurePipeline(PipelineConfigurer pipelineConfigurer) {\n pipelineConfigurer.usePluginClass(\"String_Node_Str\", Context.INITIAL_CONTEXT_FACTORY, \"String_Node_Str\", PluginProperties.builder().build());\n}\n"
"private void updateEditorSettings() {\n if (!AppPrefs.isVisualEditorAvailable()) {\n PreferenceScreen preferenceScreen = (PreferenceScreen) findPreference(getActivity().getString(R.string.pref_key_account_settings_root));\n PreferenceCategory editor = (PreferenceCategory) findPreference(getActivity()....
"public void testJDTClassNode_633() {\n try {\n JDTResolver.recordInstances = true;\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\" + \"String_Nod...
"public void createLava(Block block) {\n if (isEarthbendableMaterial(block.getType(), player)) {\n TempBlock tblock = new TempBlock(block, Material.STATIONARY_LAVA, (byte) 0);\n TEMP_LAVA_BLOCKS.add(tblock);\n affectedBlocks.add(tblock);\n if (allowNaturalFlow)\n TempBlock.inst...
"public void handleEvent(Event event) {\n GC gc = event.gc;\n Rectangle area = table.getClientArea();\n Color previousBgColor = gc.getBackground();\n gc.setBackground(emptyZoneColor);\n int starty = table.getHeaderHeight() + table.getItemCount() * table.getItemHeight() - table.getVerticalBar().getSelecti...