content
stringlengths
40
137k
"private int[] getInsertPosition(List copiedCells, List originalCells, int columnIndex, boolean isInsert) {\n int[] insertPosition = null;\n int columnCount = adapter.getColumnCount();\n if (isInsert && (columnIndex == 0 || columnIndex == columnCount - 1)) {\n insertPosition = new int[size];\n if...
"public void changed(ObservableValue<? extends Boolean> ov, Boolean oldValue, Boolean newValue) {\n if (!disabled) {\n if (singleSelection) {\n disabled = true;\n for (BetterCheckListItem item : that.get().items) {\n item.setChecked(false);\n }\n that...
"public void sessionDestroyed(HttpSessionEvent event) {\n String sessionId = event.getSession().getId();\n ChartImageManager.clearSessionFiles(sessionId, event.getSession().getServletContext());\n}\n"
"public Object getAvg() {\n return doubleToBytes(avg);\n}\n"
"private void deleteReportFile(ReportFileRepNode repFileNode) {\n try {\n RepositoryNode parentNode = repFileNode.getParent();\n IPath location = Path.fromOSString(repFileNode.getResource().getProjectRelativePath().toOSString());\n IFile latestRepIFile = ResourceManager.getRootProject().getFile(...
"private boolean doProcess(ClusterInstanceActivatedEvent event, Topology topology) {\n String serviceName = event.getServiceName();\n String clusterId = event.getClusterId();\n if (TopologyServiceFilter.apply(serviceName)) {\n return false;\n }\n if (TopologyClusterFilter.apply(clusterId)) {\n ...
"private static Map<String, Class<?>> computeTypes(Map<String, Method> getters, Map<String, Method> setters) {\n Map<String, Class<?>> rt = new HashMap<String, Class<?>>();\n for (String propertyName : getters.keySet()) {\n Class<?> getterType = getters.get(propertyName).getReturnType();\n if (!isIt...
"public void testBasicIV4() throws Exception {\n this.GEN_add_filter = true;\n this.GEN_add_group = true;\n this.genBasicIV();\n this.closeArchiveWriter();\n DataEngineContext deContext2 = newContext(DataEngineContext.MODE_UPDATE, fileName, fileName);\n myPreDataEngine = DataEngine.newDataEngine(deCon...
"protected void fillMenu(Menu menu) {\n IRepositoryView repositoryView = RepositoryManagerHelper.findRepositoryView();\n if (repositoryView == null) {\n return;\n }\n if (repositoryView.containsRepositoryType(ERepositoryObjectType.PROCESS)) {\n IDesignerCoreService service = (IDesignerCoreServ...
"public static boolean isRegionProtectedFromBuildPostCache(Player player, String ability, Location loc) {\n boolean allowharmless = plugin.getConfig().getBoolean(\"String_Node_Str\");\n boolean respectWorldGuard = plugin.getConfig().getBoolean(\"String_Node_Str\");\n boolean respectPreciousStones = plugin.getC...
"public String getValueType() {\n return valueType;\n}\n"
"private Composite createParameterTableGroup(Composite parent) {\n Composite thePanel = WidgetFactory.createPanel(parent, SWT.NONE, 1, 1);\n GridLayoutFactory.fillDefaults().margins(10, 10).applyTo(thePanel);\n GridDataFactory.fillDefaults().grab(true, true).applyTo(thePanel);\n Composite buttonPanel = Widg...
"public Completeness parseDeclaration() {\n boolean isImport = token.kind == IMPORT;\n while (token.kind.isDeclaration()) {\n nextToken();\n }\n switch(token.kind) {\n case EQ:\n nextToken();\n if (token.kind == BRACES) {\n nextToken();\n ret...
"public final druidGParser.isoTime_return isoTime() throws RecognitionException {\n druidGParser.isoTime_return retval = new druidGParser.isoTime_return();\n retval.start = input.LT(1);\n Token d = null;\n try {\n int alt135 = 7;\n switch(input.LA(1)) {\n case DATE:\n ...
"public List<SoundStreamBlockTag> getBlocks() {\n List<SoundStreamBlockTag> ret = new ArrayList<>();\n populateSoundStreamBlocks(0, swf.tags, this, ret);\n return ret;\n}\n"
"public Short evaluate() {\n if (values.setDocument(docId) == 0) {\n return null;\n }\n return value;\n}\n"
"public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n Log.i(TAG, \"String_Node_Str\");\n if (!EulaActivity.checkEula(this)) {\n return;\n }\n setContentView(R.layout.shopping);\n Shopping.mContentResolver = getContentResolver();\n mGTalkSender = new GTalkSender(this);\n mUpda...
"protected void drawMarkers() {\n if (mMarkerView == null || !mDrawMarkerViews || !valuesToHighlight())\n return;\n for (int i = 0; i < mIndicesToHightlight.length; i++) {\n int xIndex = mIndicesToHightlight[i].getXIndex();\n if (xIndex <= mDeltaX && xIndex <= mDeltaX * mPhaseX)\n ...
"private static void cmdDecode(CommandLine cli) throws AndrolibException {\n ApkDecoder decoder = new ApkDecoder();\n int paraCount = cli.getArgList().size();\n String apkName = (String) cli.getArgList().get(paraCount - 1);\n File outDir = null;\n if (cli.hasOption(\"String_Node_Str\") || cli.hasOption(\...
"private void sendCatFilesToLoaders() {\n if (catFilesOutMessage == null)\n catFilesOutMessage = new message();\n while (!loadersQueue.isEmpty() && !workingCatFileQueue.isEmpty()) {\n Loader_0_0 aLoader = (Loader_0_0) loadersQueue.remove();\n CatFile aCatFile = (CatFile) workingCatFileQueue.r...
"private void createErrorsList(Composite top) {\n Group errorGroup = new Group(top, SWT.NONE);\n errorGroup.setLayout(new GridLayout());\n errorGroup.setText(Messages.getString(\"String_Node_Str\"));\n GridData gridData = new GridData(GridData.FILL_HORIZONTAL);\n gridData.heightHint = 100;\n errorGrou...
"private void checkForBallOutOfBounds() {\n if (ball.x < 0 || ball.getRight() > WIDTH) {\n ball.resetPosition();\n ball.reverseDirectionX();\n ball.reverseDirectionY();\n }\n}\n"
"public CacheConfiguration<K, V> build() {\n if (isReadThrough && cacheLoader == null) {\n throw new InvalidConfigurationException(\"String_Node_Str\");\n }\n if (isWriteThrough && cacheWriter == null) {\n throw new InvalidConfigurationException(\"String_Node_Str\");\n }\n return new Simple...
"private int getLevenshteinDistance(boolean[] l1, boolean[] l2) {\n if (l1 == null || l2 == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n int n = l1.length;\n int m = l2.length;\n if (n == 0) {\n return m;\n } else if (m == 0) {\n return n;\n }\n i...
"public static void compile() {\n ArrayList<CallStatement> calls = new ArrayList<CallStatement>();\n mainROM.add(new Command(\"String_Node_Str\", new Arg(-1), new Arg(CallStackPointer, 1), new Arg(CallStackPointer, 0), \"String_Node_Str\"));\n while (tokens.size() > 0) {\n clearS();\n if (tokens....
"public boolean isWellSelected(Well well) {\n if ((selection == null) || selection.isEmpty())\n return false;\n for (Well w : selection) {\n if (well.getPlateColumn().equals(w.getPlateColumn()) && well.getPlateRow().equals(w.getPlateRow()) && well.getPlate().getBarcode().equals(w.getPlate().getBarco...
"private void checkJavaVersion() {\n String javaVersion = System.getProperty(\"String_Node_Str\");\n if (javaVersion.startsWith(\"String_Node_Str\") || javaVersion.startsWith(\"String_Node_Str\") || javaVersion.startsWith(\"String_Node_Str\") || javaVersion.startsWith(\"String_Node_Str\") || javaVersion.startsWit...
"public void write(JavaWriter javaWriter) throws IOException {\n MockConditionQueryBuilder conditionQueryBuilder = new MockConditionQueryBuilder(\"String_Node_Str\");\n conditionQueryBuilder.appendCreation(tableDefinition.getModelClassName());\n int primaryColumnSize = tableDefinition.getPrimaryColumnDefinitio...
"public String getMimeType() {\n return StringUtils.notNullStr(mimeType);\n}\n"
"private CharSequence byteToString(final byte[] input) {\n final MutableString buffer = new MutableString();\n buffer.setLength(input.length);\n for (int i = 0; i < input.length; i++) {\n buffer.setCharAt(i, (char) input[i]);\n }\n return buffer;\n}\n"
"public void visitCollectionField(Field f, Type typeOfF, Object obj) {\n if (isFieldNull(f, obj)) {\n if (serializeNulls) {\n addChildAsElement(f, new JsonNull());\n }\n } else {\n if (typeOfF == null) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n ...
"public static Map<Class<? extends AbstractRule>, Rule> parseConfig(ConfigurationSection system) {\n Map<Class<? extends AbstractRule>, Rule> rules = Collections.emptyMap();\n rules = new HashMap<Class<? extends AbstractRule>, Rule>();\n rules.put(MurderedPetRule.class, new MurderedPetRule());\n return rule...
"private void goUpGroupHierarchyLdap(Set<String> groupDNs, int groupHierarchyLevels) throws Throwable {\n if (groupHierarchyLevels <= 0 || groupDNs.isEmpty()) {\n return;\n }\n Set<String> nextLevelGroups = new HashSet<String>();\n NamingEnumeration<SearchResult> groupSearchResultEnum = null;\n tr...
"private void initFormBindings(Component comp) {\n final ComponentCtrl compCtrl = (ComponentCtrl) comp;\n final Annotation formAnno = compCtrl.getAnnotation(FORM_ANNO);\n if (formAnno != null) {\n final List<String> saveExprs = new ArrayList<String>();\n final List<String> loadExprs = new ArrayLi...
"public void onBlockIgnite(final BlockIgniteEvent e) {\n if (DEBUG) {\n plugin.getLogger().info(e.getEventName());\n plugin.getLogger().info(e.getCause().name());\n }\n if (!inWorld(e.getBlock())) {\n return;\n }\n if (e.getBlock() != null && e.getBlock().getType().equals(Material.OB...
"private Map<String, Integer> getIndexVersionsFromCode(Path indexConfigsFolder, List<String> collections) {\n Map<String, Integer> ret = new HashMap<>();\n for (String collection : collections) {\n Path schemaFile = indexConfigsFolder.resolve(collection).resolve(\"String_Node_Str\").resolve(\"String_Node_S...
"private void player(Player player, String[] args) {\n if (args.length == 2) {\n LineTracer tracer = new LineTracer(player);\n Block b = tracer.getTargetBlock();\n if (b != null) {\n Entity mob = Canary.factory().getEntityFactory().newEntity(EntityType.valueOf(args[1].toUpperCase()), ...
"protected FileMetadata loadFileMetadata(String fileId, StripingPolicyImpl sp) throws IOException {\n _stat_fileInfoLoads = 0;\n FileMetadata info = new FileMetadata(sp);\n File fileDir = new File(generateAbsoluteFilePath(fileId));\n if (fileDir.exists()) {\n Map<Long, Long> largestObjVersions = new ...
"public Message generateMessage(long objectId, String model, String tag, Template template) throws ClassNotFoundException, InstantiationException, IllegalAccessException, AxelorException, IOException {\n if (!model.equals(template.getMetaModel().getFullName())) {\n throw new AxelorException(I18n.get(IExceptio...
"public ARXConfiguration addCriterion(PrivacyCriterion c) {\n criteria.add(c);\n return this;\n}\n"
"public synchronized void removeTrain(Train train) {\n synchronized (trains_here) {\n if (trains_here == null) {\n System.err.println(\"String_Node_Str\");\n }\n int pos = trains_here.indexOf(train);\n if (pos == -1) {\n System.err.println(\"String_Node_Str\");\n ...
"public void saveData() {\n String idPolicy;\n if (idPolicyCombo.getValue().get(\"String_Node_Str\").equals(\"String_Node_Str\"))\n idPolicy = IdGeneratedRecordIdPolicy.IDGENERATED;\n else\n idPolicy = \"String_Node_Str\";\n String idXPath = idXPathField.getValue();\n String harvestMethod =...
"public void addElements(BaseDocument doc, Element parent, String tag) {\n this.doc = doc;\n this.parent = parent;\n list.getItems().clear();\n list.getSelection().clear();\n if (parent != null) {\n NodeList nl;\n if (tag == null)\n nl = parent.getChildNodes();\n else {\n ...
"public List<Pair<String, Object>> execute(Map<String, Object> params) {\n Long id = (Long) params.get(BaseCmd.Properties.ID.getName());\n Long userId = (Long) params.get(BaseCmd.Properties.USER_ID.getName());\n if (userId == null) {\n userId = Long.valueOf(User.UID_SYSTEM);\n }\n DiskOfferingVO d...
"private GameResult playTurn(int turnCount, GameRecord record, ArtificialPlayer ai) throws HSException {\n beginTurn(boardModel);\n GameResult gameResult;\n gameResult = checkGameOver(turnCount, record);\n if (gameResult != null)\n return gameResult;\n List<HearthActionBoardPair> allMoves = playAI...
"public void watch(GameEvent event, Game game) {\n if (event.getType() == EventType.DAMAGED_PLAYER) {\n DamagedPlayerEvent dEvent = (DamagedPlayerEvent) event;\n if (dEvent.isCombatDamage()) {\n Permanent creature = game.getPermanent(dEvent.getSourceId());\n if (creature != null &...
"public ActionInvoker get(ActionContext ac) {\n String path = Mvcs.getRequestPath(ac.getRequest());\n ActionInvoker invoker = root.get(ac, path);\n if (invoker != null) {\n ActionChain chain = invoker.getActionChain(ac);\n if (chain != null) {\n if (log.isDebugEnabled()) {\n ...
"public void onPlayerEnterOnIsland(IslandEnterEvent e) {\n Player player = plugin.getServer().getPlayer(e.getPlayer());\n processPerms(player);\n}\n"
"private static void translateMLClfData(Config config) throws IOException, ClassNotFoundException {\n List<String> libSvmFiles = config.getStrings(\"String_Node_Str\");\n List<String> trecFiles = config.getStrings(\"String_Node_Str\");\n boolean dense = config.getBoolean(\"String_Node_Str\");\n int numFeatu...
"public static WebApplicationException notFound(String format, Object... args) {\n String msg = String.format(format, args);\n if (log.isDebugEnabled())\n log.debug(\"String_Node_Str\" + msg + \"String_Node_Str\");\n throw new WebApplicationException(Response.status(Response.Status.NOT_FOUND).type(Media...
"public boolean matches(IAtom targetAtom) {\n if (targetAtom instanceof IQueryAtom) {\n return ((IQueryAtom) targetAtom).matches(getQueryAtom());\n } else if (getQueryAtom() != null && getQueryAtom() instanceof IQueryAtom) {\n return ((IQueryAtom) getQueryAtom()).matches(targetAtom);\n } else {\n...
"protected Module createModule(TwillContext context) {\n return Modules.combine(super.createModule(context), new DiscoveryRuntimeModule().getDistributedModules(), new AuthModule(), new GatewayCommonHandlerModule(), new AppFabricGatewayModule(), new LogHandlerModule(), new MetricsHandlerModule(), new AbstractModule()...
"public void testWriteRecPosLenient() {\n try {\n Configuration config = new Configuration();\n config.setString(RecordOutputFormat.FILE_PARAMETER_KEY, this.tempFile.toURI().toString());\n config.setString(RecordOutputFormat.FIELD_DELIMITER_PARAMETER, \"String_Node_Str\");\n config.setInt...
"private void processInherits(List<Node> inheritsCalls) {\n for (Node n : inheritsCalls) {\n Node parent = n.getParent();\n Node superclassNameNode = n.getLastChild();\n Node subclassNameNode = n.getChildBefore(superclassNameNode);\n String subclassQname = subclassNameNode.getQualifiedNam...
"public Integer call() throws Exception {\n if (parent == null) {\n Object[] rootNodes = getRootNodes();\n for (int i = 0; i < rootNodes.length; i++) {\n if (ObjectUtils.equals(rootNodes[i], child)) {\n return i;\n }\n }\n return -1;\n }\n List<?...
"public void replacePreferredActivity(IntentFilter filter, int match, ComponentName[] set, ComponentName activity, int userId) {\n if (filter.countActions() != 1) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (filter.countDataAuthorities() != 0 || filter.countDataPaths() != 0 || ...
"public void testEval() throws Exception {\n EvaluationResult stats = new AUCEvaluator().evaluate(new File(\"String_Node_Str\"));\n log.info(String.valueOf(stats));\n assertTrue(stats.getScore() > 0.955);\n}\n"
"public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) {\n unmarshalRecord.removeNullCapableValue(this);\n UnmarshalRecord childRecord = unmarshalRecord.getChildRecord();\n if (null != childRecord) {\n Object childObject = childRecord.getCurrentObject();\n if (xmlAn...
"private void buildVariableExecutors(Expression expression, ConditionVisitor conditionVisitor) {\n if (expression instanceof And) {\n conditionVisitor.beginVisitAnd();\n conditionVisitor.beginVisitAndLeftOperand();\n buildVariableExecutors(((And) expression).getLeftExpression(), conditionVisitor...
"private void moveNPC(CommandSender sender, String name, int UID) {\n Location loc = PropertyPool.getLocationFromID(UID);\n if (loc != null) {\n PropertyPool.saveLocation(name, loc, UID);\n }\n plugin.handler.moveNPC(UID, ((Player) sender).getLocation());\n sender.sendMessage(StringUtils.yellowify...
"private Server mockServer() {\n final Server server = new Server();\n server.setUsername(USERNAME);\n server.setPassword(PASSWORD);\n Xpp3Dom email = new Xpp3Dom(EMAIL_PROPERTY);\n email.setValue(EMAIL);\n Xpp3Dom configuration = new Xpp3Dom(CONFIGURATION_PROPERTY);\n configuration.addChild(email)...
"public int getIntProperty(String key, int defaultValue) {\n return properties.containsKey(key) ? Integer.parseInt(properties.get(key)) : defaultValue;\n}\n"
"public Map<String, Object> getDefaultSetting() {\n if (defaultSettingMap.isEmpty()) {\n defaultSettingMap.put(DataMapTableView.LOOKUP_MODEL_SETTING, TMAP_LOOKUP_MODE.LOAD_ONCE);\n if (isMRProcess) {\n defaultSettingMap.put(DataMapTableView.MATCH_MODEL_SETTING, new IUIMatchingMode[] { TMAP_M...
"protected void copy(final Map<DataFile, DataFile> files) throws IOException {\n if (files == null)\n throw new NullPointerException(\"String_Node_Str\");\n for (Map.Entry<DataFile, DataFile> e : files.entrySet()) {\n final DataFile src = e.getKey();\n final DataFile dest = e.getValue();\n ...
"public List<Object[]> subList(long fromIndex, long toIndex, Map<Long, K> indexMap) {\n boolean stratToRecord = false;\n List<Object[]> returnList = new ArrayList<Object[]>();\n K fromKey = null;\n K toKey = null;\n if (indexMap != null) {\n fromKey = indexMap.get(fromIndex);\n toKey = inde...
"public static void tearDownAfterClass(String suffix) throws Exception {\n Path dirPath = new Path(\"String_Node_Str\");\n FileSystem fs = dirPath.getFileSystem(config);\n try {\n if (fs.exists(dirPath) && fs.isDirectory(dirPath)) {\n RemoteIterator<LocatedFileStatus> files = fs.listFiles(dir...
"protected double start(final int n, final double h, final CombinedEventsManager manager, final FirstOrderDifferentialEquations equations, final double t0, final double[] y) throws DerivativeException, IntegratorException {\n Arrays.fill(previousT, Double.NaN);\n Arrays.fill(previousF, null);\n starter.clearEv...
"public void refreshFigure() {\n int color = getBackgroundColor((MasterPageHandle) getModel());\n getFigure().setBackgroundColor(ColorManager.getColor(color));\n Dimension size = getMasterPageSize((MasterPageHandle) getModel());\n Rectangle bounds = new Rectangle(0, 0, size.width - 1, size.height - 1);\n ...
"public static void setup(String region) {\n strings = new HashMap<>();\n Locale locale = new Locale(region);\n for (String file : prop_files) {\n ResourceBundle bundle = ResourceBundle.getBundle(file, locale);\n Enumeration<String> keys = bundle.getKeys();\n while (keys.hasMoreElements())...
"private void visit(Node n) {\n if (temporaryMarked.contains(n)) {\n throw new IllegalArgumentException(\"String_Node_Str\" + n);\n }\n if (unmarked.contains(n)) {\n temporaryMarked.add(n);\n for (Relationship m : n.getRelationships(Direction.INCOMING, relTypes)) {\n if (!exclud...
"public void onConfigurationChanged(Configuration newConfig) {\n Log.d(TAG, \"String_Node_Str\");\n super.onConfigurationChanged(newConfig);\n if (mViewDisplayed) {\n showRootView(false);\n onAfterInflate();\n }\n}\n"
"public void grammarHit() {\n if (btnGrammar.isSelected()) {\n try {\n if (scrGrammar == null || scrGrammar.isDisposed()) {\n scrGrammar = ScrGrammarGuide.run(core);\n bindButtonToWindow(scrGrammar, btnGrammar);\n }\n scrGrammar.setVisible(true);\...
"public void writeExternal(DataOutputStream out) throws IOException {\n ExtUtil.writeString(out, ExtUtil.emptyIfNull(name));\n ExtUtil.writeNumeric(out, multiplicity);\n ExtUtil.write(out, new ExtWrapListPoly(ExtUtil.emptyIfNull(predicates)));\n}\n"
"public List<purejavahidapi.HidDeviceInfo> enumerateDevices() {\n try {\n List<purejavahidapi.HidDeviceInfo> list = new LinkedList<purejavahidapi.HidDeviceInfo>();\n GUID InterfaceClassGuid = new GUID(0x4d1e55b2, 0xf16f, 0x11cf, 0x88, 0xcb, 0x00, 0x11, 0x11, 0x00, 0x00, 0x30);\n SP_DEVINFO_DATA ...
"public void run() {\n HashMap<String, Object> params = new HashMap<String, Object>();\n params.put(RCDevice.ParameterKeys.INTENT_INCOMING_CALL, new Intent(RCDevice.ACTION_INCOMING_CALL, null, InstrumentationRegistry.getTargetContext(), IntegrationTests.class));\n params.put(RCDevice.ParameterKeys.INTENT_INCOM...
"public void setPatternExpression(PatternMasterDetailsPage editorPage, Pattern editorPattern, RegularExpression regularExpression) {\n this.editorPage = editorPage;\n pattern = editorPattern;\n this.regularExpression = regularExpression;\n String body = regularExpression.getExpression().getBody();\n this...
"public boolean moveToExile(UUID exileId, String name, UUID sourceId, Game game, ArrayList<UUID> appliedEffects) {\n Zone fromZone = game.getState().getZone(objectId);\n ZoneChangeEvent event = new ZoneChangeEvent(this.objectId, sourceId, ownerId, fromZone, Zone.EXILED, appliedEffects);\n if (!game.replaceEven...
"public static String resolveCommandName(final File programName) throws IllegalActionException {\n File commandFile = programName;\n if (System.getProperty(\"String_Node_Str\").startsWith(\"String_Node_Str\")) {\n File winComFil = new File(commandFile.toString() + \"String_Node_Str\");\n if (winComF...
"public boolean isScrolledToTop() {\n return (getChildCount() == 0 || getVerticalScrollOffset() == 0);\n}\n"
"public Object convertDataValueToObjectValue(Object dataValue, Session session, XMLUnmarshaller unmarshaller) {\n try {\n XmlAdapter adapter = this.xmlAdapter;\n if (unmarshaller != null) {\n HashMap adapters = (HashMap) unmarshaller.getProperty(JAXBUnmarshaller.XML_JAVATYPE_ADAPTERS);\n ...
"private String[] clean(String[] data) {\n ArrayList<String> clean = new ArrayList<>();\n for (String s : data) if (!(s = s.trim()).isEmpty())\n clean.add(s);\n return clean.toArray(new String[clean.size()]);\n}\n"
"protected void parseActivityDefinitionProperties(JsonObject json, ActivityDefinition res) throws IOException, FHIRFormatError {\n parseDomainResourceProperties(json, res);\n if (json.has(\"String_Node_Str\"))\n res.setUrlElement(parseUri(json.get(\"String_Node_Str\").getAsString()));\n if (json.has(\"S...
"protected Object decode(ChannelHandlerContext ctx, Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {\n String sentence = (String) msg;\n Matcher parser = heartbeatPattern.matcher(sentence);\n if (parser.matches()) {\n if (channel != null) {\n channel.write(\"String...
"public EntryObject key() {\n qb.attribute = KEY_ATTRIBUTE_NAME;\n return this;\n}\n"
"public ProductVariant getStockProductVariant(ProductVariant productVariant) {\n ProductVariant stockProductVariant = this.getProductVariant(productVariant.getProductVariantAttribute1(), productVariant.getProductVariantAttribute2(), productVariant.getProductVariantAttribute3(), productVariant.getProductVariantAttrib...
"public void testRefreshPoolsWithChangedSubscriptions() {\n Product prod = TestUtil.createProduct();\n productCurator.create(prod);\n Pool pool = createPoolAndSub(createOwner(), prod, new Long(1000), TestUtil.createDate(2009, 11, 30), TestUtil.createDate(2015, 11, 30));\n Owner owner = pool.getOwner();\n ...
"public static void main(String[] args) {\n ExampleTool example = new ExampleTool();\n Properties defaults = null;\n try {\n defaults = AppSetup.loadResourceProps(ExampleTool.class, \"String_Node_Str\");\n } catch (IOException e) {\n System.out.println(\"String_Node_Str\" + e.getMessage());\n ...
"private void programPage() {\n if (writing)\n System.out.println(\"String_Node_Str\" + cpu.getPC());\n writeStatus(PROGRAM_PAGE_MILLIS);\n ensureLoaded(blockWriteAddress);\n for (int i = 0; i < readMemory.length; i++) {\n readMemory[i] &= buffer[i];\n }\n writeBack(blockWriteAddress, re...
"public void onDrawFrame(GL10 gl) {\n float minDimension = mScreenWidth < mScreenHeight ? mScreenWidth : mScreenHeight;\n float maxDimension = mScreenWidth > mScreenHeight ? mScreenWidth : mScreenHeight;\n float rotationDegrees = -mRotation * 90;\n float numberSize = maxDimension / 20;\n float buttonSize...
"public DefaultEntity executeBatch() throws ArangoException {\n if (!this.httpManager.isBatchModeActive()) {\n throw new ArangoException(\"String_Node_Str\");\n }\n List<BatchPart> callStack = this.httpManager.getCallStack();\n this.cancelBatchMode();\n return this.batchDriver.executeBatch(callSta...
"public void testSpecificUserJWTClaims() throws Exception {\n server.setFinished(false);\n server.start();\n String subscriberUser = \"String_Node_Str\";\n String password = \"String_Node_Str\";\n String accessToken;\n if ((userManagementClient1 != null) && !userManagementClient1.userNameExists(\"Stri...
"public void handle(Message inputMessage, IMessageTarget messageTarget) {\n componentStatistics.incrementInboundMessages();\n if (inputMessage.getHeader().getOriginatingStepId().equals(sourceStepId)) {\n List<EntityData> datas = inputMessage.getPayload();\n multipliers.addAll(datas);\n multip...
"public void update(IUpdateable component) {\n if (component == dataComp) {\n PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {\n\n public void run() {\n if (!DataComponentComposite.this.isDisposed()) {\n refresh();\n } else {\n ...
"protected static void updateCurrentRequirmentInfo() {\n if (currentReq != null) {\n currentReq.action = Action.valueOf(spinnerPerkAction.getValue().toString());\n currentReq.extraData = textPerkExtraData.getText();\n currentReq.name = textPerkReqName.getText();\n }\n}\n"
"public Packet250CustomPayload getPacket() {\n isChunkDataPacket = false;\n byte[] dataOut = new byte[lastSize];\n System.arraycopy(bytes.toByteArray(), 0, dataOut, 0, lastSize);\n configureWrite(dataOut);\n return super.getPacket();\n}\n"
"private void doAppendToConsole(final IProcessMessage message) {\n if (consoleText.isDisposed()) {\n return;\n }\n setConsoleFont();\n String[] rows = message.getContent().split(\"String_Node_Str\");\n int rowLimit = getConsoleRowLimit();\n String content = null;\n if (rowLimit != SWT.DEFAUL...
"private AddonImpl loadAddon(AddonId addonId) {\n Assert.notNull(addonId, \"String_Node_Str\");\n AddonImpl addon = null;\n for (Addon existing : tree) {\n if (existing.getId().equals(addonId)) {\n addon = (AddonImpl) existing;\n break;\n }\n if (addon == null) {\n for...
"protected String getNext() {\n String next = null;\n while (next == null) {\n if (parent != null) {\n if (parent.hasNext()) {\n next = parent.next();\n } else {\n parent = null;\n }\n } else if (!references.hasNext()) {\n bre...
"public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {\n if (player instanceof EntityPlayer) {\n NBTTagCompound nbt = SteamToolHelper.checkNBT(stack);\n int ticks = nbt.getInteger(\"String_Node_Str\");\n int speed = nbt.getInteger(\"String_Node_Str\");\n ...
"public void sendMessage(String message) throws IOException {\n message = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + message;\n write(\"String_Node_Str\", \"String_Node_Str\" + message.getBytes(\"String_Node_Str\").length + \"String_Node_Str\" + message, false);\n}\n"