content
stringlengths
40
137k
"public static void fetchUsers(final String blogId, final int localTableBlogId, final int offset, final FetchUsersCallback callback) {\n com.wordpress.rest.RestRequest.Listener listener = new RestRequest.Listener() {\n public void onResponse(JSONObject jsonObject) {\n if (jsonObject != null && call...
"protected Set<String> extractAllLibs() {\n Set<String> libsRequiredByJob = new HashSet<String>();\n Set<ModuleNeeded> neededModules = JavaProcessorUtilities.getNeededModulesForProcess(process);\n if (!ProcessorUtilities.isExportConfig()) {\n JavaProcessorUtilities.addLog4jToJarList(neededLibraries);\n ...
"public void testResultMaxOut() throws Exception {\n _messages.clear();\n _shouldRun = true;\n Thread[] udpLoopers = new Thread[NUM_UDP_LOOPS];\n for (int i = 0; i < NUM_UDP_LOOPS; i++) {\n final int index = i;\n udpLoopers[i] = new Thread() {\n public void run() {\n ...
"public boolean isEmpty() throws BirtException {\n return exprManager.getBindingExprs().isEmpty();\n}\n"
"public void afterPropertiesSet() throws LiquibaseException {\n Connection c = null;\n try {\n c = getDataSource().getConnection();\n Migrator migrator = createMigrator(c);\n if (StringUtils.trimToNull(contexts) != null) {\n migrator.setContexts(contexts);\n }\n setup...
"protected String[] getDefinedRange(String inString) {\n isPercent = inString.indexOf('%') > 0;\n String[] threshold = IndicatorHelper.getDataThreshold(indicator);\n if (threshold == null) {\n if (flag) {\n threshold = IndicatorHelper.getIndicatorThresholdInPercent(indicator);\n } else...
"protected void createColumns(final TableViewerCreator<B> tableViewerCreator, final Table table) {\n PropertiesTableEditorModel model = getModel();\n TalendProposalProvider processProposalProvider = new TalendProposalProvider(model.getProcess());\n String[] titles = model.getTitles();\n final Object[] items...
"public static void setDefaultNamespaceContext(final NamespaceContext aNamespaceContext) {\n s_aRWLock.writeLocked(() -> {\n s_aNamespaceContext = aNamespaceContext;\n } finally {\n s_aRWLock.writeLock().unlock();\n }\n}\n"
"public BayesianNetwork toBayesianNetwork(DAG dag) {\n ConditionalDistribution[] dists = new ConditionalDistribution[dag.getStaticVariables().getNumberOfVars()];\n this.distributionList.parallelStream().forEach(dist -> dists[dist.getVariable().getVarID()] = EF_DistributionBuilder.toDistributionGeneral(dist));\n ...
"public static void main(String[] args) throws ParseException, IOException {\n String[] features = 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 String clazz = \"String_Node...
"public static IRepositoryViewObject getRepositoryObjectById(final String id) {\n if (id == null || \"String_Node_Str\".equals(id) || RepositoryNode.NO_ID.equals(id)) {\n return null;\n }\n IProxyRepositoryFactory factory = CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();\n try {\n ...
"public void writeGet_Unwrap(MethodWriter writer, int lineNumber) throws BytecodeException {\n if (this.refType != null) {\n this.refType.writeUnwrap(writer);\n }\n}\n"
"private void getChildrenFile(GridFtpActionItem actionItem, String source) {\n try {\n si.ls(source, 1);\n } catch (final Exception e) {\n actionItem.setException(e);\n return;\n }\n}\n"
"public void removeRepository(String groupName, String repo, boolean uninstall) throws Exception {\n Group group = groupManager.findGroupByName(groupName);\n if (group == null) {\n throw new IllegalArgumentException(\"String_Node_Str\" + groupName + \"String_Node_Str\");\n }\n if (eventProducer.getSw...
"public void filterResolvable(Collection<BundleRevision> candidates) {\n if (!this.triggerInRegion) {\n Iterator<BundleRevision> i = candidates.iterator();\n while (i.hasNext()) {\n if (isMember(i.next())) {\n i.remove();\n }\n }\n }\n}\n"
"public ChannelConfig createChannel(ChannelConfig configuration) {\n logger.info(\"String_Node_Str\", configuration);\n channelValidator.validate(configuration, null, false);\n channelConfigDao.upsert(configuration);\n notify(configuration, null);\n TagWebhook.updateTagWebhooksDueToChannelConfigChange(co...
"public int getId() {\n return invId >= 0 ? (1000 * invId) + slotId : slotId;\n}\n"
"public String getStdOut(String id) {\n if (this.statusRet == null)\n return null;\n return this.statusRet.getStdout();\n}\n"
"public static void zeroSmall(VM_Address start, VM_Extent len) throws VM_PragmaInline {\n VM_Address end = start.add(len);\n for (VM_Address i = start; i.LT(end); i = i.add(BYTES_IN_INT)) VM_Magic.setMemoryInt(i, 0);\n}\n"
"public void onPostInit() {\n GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ICBM.blockFoFStation), \"String_Node_Str\", \"String_Node_Str\", 'C', InventoryUtility.getBlock(\"String_Node_Str\"), 'R', UniversalRecipe.CIRCUIT_T2.get(), 'P', UniversalRecipe.PRIMARY_PLATE.get()));\n}\n"
"public void ownerShouldSeeOwnEntitlements() {\n consumerResource.bind(consumer.getUuid(), pool.getId(), null, null, 1, null, null);\n consumerResource.bind(consumer.getUuid(), pool.getId(), null, null, 1, null, null);\n consumerResource.bind(consumer.getUuid(), pool.getId(), null, null, 1, null, null);\n s...
"static boolean isBool(Class<?> type) {\n return type == Boolean.TYPE;\n}\n"
"private void removeConstructionMarks(IMapArea area, IMapArea notIn) {\n for (ISPosition2D pos : new MapShapeFilter(area, map.getWidth(), map.getHeight())) {\n if (!notIn.contains(pos)) {\n map.setConstructMarking(pos, (byte) -1);\n }\n }\n}\n"
"public void setValue(BindELContext ctx, Object value) {\n int idx = BindComboitemRenderer.this.getRenderedIndex(cb, nci.getIndex());\n ListModel<?> listmodel = cb.getModel();\n if (idx >= 0 && idx < listmodel.getSize()) {\n if (listmodel instanceof ListModelArray) {\n ((ListModelArray<Object...
"private void handleSourceActions(String actionCommand) {\n fireSourceUpdated(actionCommand);\n}\n"
"private IColumnRenderInfo findRenderInfo() {\n IGLElementParent p = summary.getParent();\n while (!(p instanceof IColumnRenderInfo) && p != null) p = p.getParent();\n return (IColumnRenderInfo) p;\n}\n"
"private Object getNestedQueryConstructorValue(ResultSet rs, ResultMapping constructorMapping, String columnPrefix) throws SQLException {\n final String nestedQueryId = constructorMapping.getNestedQueryId();\n final MappedStatement nestedQuery = configuration.getMappedStatement(nestedQueryId);\n final Class<?>...
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n UUID creatureId = (UUID) this.getValue(\"String_Node_Str\");\n Card creature = game.getCard(creatureId);\n if (creature != null) {\n Play...
"public static boolean sendMessage(String subject, String msg) {\n if (!shouldSendEmail()) {\n return false;\n }\n createSession();\n try {\n MimeMessage message = new MimeMessage(l_session);\n message.setFrom(new InternetAddress(getUsername()));\n if (getAddressList().size() == ...
"protected void onResume() {\n super.onResume();\n XposedApp.setColors(getSupportActionBar(), getColor(this), this);\n ThemeUtil.reloadTheme(this);\n if (leftActivityWithSlideAnim)\n NavUtil.setTransitionSlideLeave(this);\n leftActivityWithSlideAnim = false;\n}\n"
"private void createHealthCheckerInternal(String url, String interval, String timeout, LbConfig lbConfig, String lbConfigName, String target) {\n if (lbConfigName == null) {\n String msg = localStrings.getLocalString(\"String_Node_Str\", \"String_Node_Str\");\n report.setActionExitCode(ActionReport.Exi...
"public static Class<?> unwrapProxyTypes(Class<?> type, ClassLoader... loaders) {\n Class<?> result = type;\n if (isProxyType(result)) {\n Class<?> superclass = result.getSuperclass();\n while (superclass != null && !superclass.getName().equals(Object.class.getName()) && isProxyType(superclass)) {\n...
"public String copyTemplate(Service service) throws IOException {\n URL scriptFile = ClassLoader.getSystemResource(\"String_Node_Str\");\n URL destURL = RecipeDeployer.destURL;\n File srcFolder = new File(scriptFile.getFile());\n File destFolder = new File(destURL.getFile().concat(\"String_Node_Str\" + serv...
"public void getVarConfigAsArray(int configIndex, int[] putInto) {\n if (putInto.length != this.size())\n throw new IllegalArgumentException();\n int i = putInto.length - 1;\n for (int v = this.size() - 1; v >= 0; v--) {\n Var var = this.get(v);\n putInto[i--] = configIndex % var.getNumSta...
"private void setNodesAndParents() throws ExceptionHugin {\n List<Attribute> atts = new ArrayList<>();\n NodeList huginNodes = this.huginBN.getNodes();\n int numNodes = huginNodes.size();\n for (int i = 0; i < numNodes; i++) {\n Node n = (Node) huginNodes.get(i);\n if (n.getKind().compareTo(Ne...
"public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {\n BookAction action = (BookAction) scriptEntry.getObject(\"String_Node_Str\");\n Item book = (Item) scriptEntry.getObject(\"String_Node_Str\");\n String scriptName = (String) scriptEntry.getObject(\"String_Node_Str\");\n Player...
"private MatcherOperand joinOr() {\n MatcherOperand operand = null;\n for (String baseClassName : baseClassNames) {\n if (operand == null) {\n operand = new ClassInternalNameMatcherOperand(baseClassName);\n } else {\n final MatcherOperand classMatcherOperand = new ClassInternal...
"public void addSubstitutableElement(ElementDeclaration element) {\n if (element != this && element != null) {\n QName elementName = element.getElementName();\n for (ElementDeclaration substitutableElement : substitutableElements) {\n if (substitutableElement.getElementName().equals(elementN...
"private static Set<IFile> getNestedPatternFiles(Set<IFile> list, IFolder folder) {\n try {\n for (IResource resource : folder.members()) {\n if (resource instanceof IFile) {\n IFile file = (IFile) resource;\n if (FactoriesUtil.PATTERN.equals(file.getFileExtension())) ...
"private final void performLayoutAndPlaceSurfacesLockedInner(boolean recoveringMemory) {\n final long currentTime = SystemClock.uptimeMillis();\n final int dw = mDisplay.getWidth();\n final int dh = mDisplay.getHeight();\n int i;\n if (mFocusMayChange) {\n mFocusMayChange = false;\n updateF...
"public void doRun() throws InterruptedException {\n long startTime = System.currentTimeMillis();\n this.ticksElapsed.getAndIncrement();\n if (this.pausedTicking) {\n this.calcAndWait(0);\n return;\n }\n if (this.ticksToWait.get() > 0) {\n this.ticksToWait.getAndDecrement();\n ...
"void registerListener(EventListener listener) {\n String queueName = QUEUE_ADDRESS + \"String_Node_Str\" + listener.getClass().getCanonicalName();\n log.debug(\"String_Node_Str\", queueName);\n try {\n try {\n session.createQueue(QUEUE_ADDRESS, queueName, true);\n log.debug(\"Stri...
"public boolean callBeforePresent() {\n if (widget.isCallBeforePresent() && hasPropertyChangeListener()) {\n return new ComponentServiceCaller(widget.getContent().getDisplayName(), widget.isLongRunning()) {\n protected void doWork() throws Throwable {\n componentProperties = componen...
"private void solveSubProblem(int subProblemIndex, int[] variableIndexes, Vector variableCopiesSum) {\n Vector variables = variableCopies.get(subProblemIndex);\n Vector multipliers = lagrangeMultipliers.get(subProblemIndex);\n Vector consensusVariables = Vectors.build(variableIndexes.length, currentPoint.type(...
"public void visitNode(AstNode astNode) {\n if (astNode.is(PHPGrammar.FOR_STATEMENT)) {\n pendingCounters = getLoopsCounters(astNode);\n } else if (astNode.is(PHPGrammar.STATEMENT)) {\n counters.addAll(pendingCounters);\n pendingCounters = Collections.emptySet();\n } else if (!counters.isE...
"public void enableScreenAfterBoot() {\n readLidState();\n updateRotation(Surface.FLAGS_ORIENTATION_ANIMATION_DISABLE);\n}\n"
"private boolean shouldNotDecorate(INodePO gnode, IDecoration decoration) {\n return gnode == null || gnode.getParentNode() == null || UINodeBP.getTestSuiteOfNode(gnode) == null || decoration.getDecorationContext() instanceof JBEditorDecorationContext || gnode instanceof IProjectPO;\n}\n"
"protected String getTableFromName() {\n String name = getName();\n int startTable = name.lastIndexOf(PATH_SEPARATOR);\n int endTable = name.indexOf(\"String_Node_Str\", startTable);\n return name.substring((startTable + 1), endTable);\n}\n"
"final static Capsule myCapsule(List<String> args) {\n if (CAPSULE == null) {\n final ClassLoader ccl = Thread.currentThread().getContextClassLoader();\n try {\n Thread.currentThread().setContextClassLoader(MY_CLASSLOADER);\n final Capsule capsule = newCapsule(MY_CLASSLOADER, find...
"public void testWithNativeIOSApp() throws InterruptedException {\n SeLionReporter.log(\"String_Node_Str\", true);\n List<WebElement> cells = Grid.driver().findElements(By.className(\"String_Node_Str\"));\n assertEquals(9, cells.size());\n WebElement first = cells.get(0);\n first.click();\n Thread.sle...
"public View make(Ioc ioc, String type, String value) {\n type = type.toLowerCase();\n if (VIEW_JSP.equals(type))\n return new JspView(value);\n if (VIEW_JSON.equals(type))\n if (Strings.isBlank(value))\n return UTF8JsonView.COMPACT;\n else {\n if (value.charAt(0) == ...
"public void setItemText() {\n if (items != null && index >= 0 && index < items.size()) {\n OsisItem item = items.get(index);\n String book = bible.get(Bible.TYPE.BOOK, bible.getPosition(Bible.TYPE.OSIS, item.book)) + item.chapter;\n if (!verse.equals(\"String_Node_Str\") || !end.equals(\"String...
"private void check(CompileCodeTestCase testCase) {\n System.out.println(testCase);\n NMethod nMethod = testCase.deoptimizeAndCompile();\n if (nMethod == null) {\n throw new Error(testCase + \"String_Node_Str\");\n }\n InstalledCode installedCode = testCase.toInstalledCode();\n String str1 = Co...
"private Constructor<?> getContructor(String className) throws XulException {\n Constructor<?> con = constructorCache.get(className);\n if (con != null) {\n return con;\n }\n Class<?> c = null;\n for (ClassLoader loader : classloaders) {\n try {\n c = loader.loadClass(className);...
"public void testAndroid2MLimit() throws Exception {\n final String content;\n {\n char[] chars = new char[2 * 1024 * 1024 + 10 * 1024];\n Arrays.fill(chars, 'a');\n content = new String(chars);\n chars = null;\n }\n Map<String, Object> props = new HashMap<String, Object>();\n ...
"public boolean equalsAsOption(PossibleAction action) {\n if (!(action instanceof MapCorrectionAction))\n return false;\n return true;\n}\n"
"protected boolean doStartup() {\n if (!super.doStartup()) {\n return false;\n }\n tempWorkDir = options.getWorkDir() == null;\n if (tempWorkDir) {\n try {\n options.setWorkDir(Utility.makeTemporaryDirectory(null, \"String_Node_Str\"));\n } catch (IOException e) {\n ...
"public String viewArchivedOrders() {\n String column = getColumnFilter();\n List<Orders> orderEntityList = new ArrayList<Orders>();\n if (StringUtils.isNotBlank(column)) {\n if (column.equals(\"String_Node_Str\")) {\n List<Customer> customerEntityList = customerService.findCustomersByCriteri...
"protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n if (resultCode == RESULT_RESTART) {\n startNextFetch();\n return;\n }\n try {\n switch(requestCode) {\n case INIT_APP:\n if (resultCode == RESULT_CANCELED) {\n ...
"public void removeEdges(final Tokens.Action action, final Direction direction, final String... labels) {\n if (action.equals(Tokens.Action.KEEP)) {\n final Set<String> keep = new HashSet<String>(Arrays.asList(labels));\n if (direction.equals(BOTH) || direction.equals(OUT)) {\n if (labels.le...
"public void outputTrace(BuildId buildId) throws InterruptedException {\n Future<?> unused = executor.submit(() -> {\n try {\n outputStream.write(String.format(\"String_Node_Str\", exitCode.orElse(-1)).getBytes(Charsets.UTF_8));\n outputStream.close();\n } catch (IOException e) {\...
"public void onClick(View v) {\n getActivity().setTitle(remoteType);\n hideMoveBar();\n fab.show();\n fab.setVisibility(View.VISIBLE);\n getActivity().findViewById(R.id.action_select_all).setVisibility(View.VISIBLE);\n recyclerViewAdapter.setMoveMode(false);\n isInMoveMode = false;\n String oldP...
"public void join(Player pl) {\n AutoRefPlayer apl = new AutoRefPlayer(pl, this);\n if (players.contains(apl))\n return;\n players.add(apl);\n if (match != null && match.getCurrentState() != eMatchStatus.PLAYING)\n pl.teleport(getSpawnLocation());\n pl.setGameMode(GameMode.SURVIVAL);\n i...
"public static String convertTimeline(int spriteId, List<Integer> oneInstanceShapes, String backgroundColor, List<Tag> tags, List<Tag> timelineTags, HashMap<Integer, CharacterTag> characters, String name) {\n String ret = \"String_Node_Str\";\n ret += \"String_Node_Str\" + name + \"String_Node_Str\";\n ret += ...
"public void checkIncludeSpecifiedCardsLimitedCopies() {\n Random gen = new Random();\n ImplementedCard card1, card2;\n card1 = referenceCards.get(gen.nextInt(referenceCards.size()));\n card2 = referenceCards.get(gen.nextInt(referenceCards.size()));\n DeckFactoryBuilder builder = new DeckFactoryBuilder()...
"protected Object getDistinctColorProperty(DesignElementHandle handle, DesignElementHandle parentHandle, String name) {\n Object value = handle.getProperty(name);\n int intValue = getColorValue(value);\n String strValue;\n if (intValue == -1) {\n return null;\n }\n if (value instanceof Integer)...
"public static void main(String[] args) {\n final int width = 1650;\n final int height = 750;\n final int numSites = 3000;\n final long seed = 92070987606126L;\n final Random r = new Random(seed);\n System.out.println(\"String_Node_Str\" + seed);\n final Voronoi v = new Voronoi(numSites, width, hei...
"public byte[] transform(ClassLoader loader, String classDesc, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) {\n if (classBeingRedefined != null || inactive || CapturedType.isNotToBeCaptured(loader, protectionDomain, classDesc)) {\n return null;\n }\n ClassRead...
"protected LinkedHashMap<Network, NicProfile> createRouterNetworks(Account owner, boolean isRedundant, DeploymentPlan plan, Network guestNetwork, Pair<Boolean, PublicIp> publicNetwork) throws ConcurrentOperationException, InsufficientAddressCapacityException {\n boolean setupPublicNetwork = false;\n if (publicNet...
"private void initOptions() {\n ConfigurableOption wrappingText = new ConfigurableOption(TEXT_WRAPPING);\n wrappingText.setDisplayName(Messages.getString(\"String_Node_Str\"));\n wrappingText.setDataType(IConfigurableOption.DataType.BOOLEAN);\n wrappingText.setDisplayType(IConfigurableOption.DisplayType.CHE...
"private XMLReader getNewXMLReader(Class clazz, MediaType mediaType) {\n if (mediaType.isApplicationJSON()) {\n return new JSONReader(xmlUnmarshaller.getAttributePrefix(), xmlUnmarshaller.getNamespaceResolver(), xmlUnmarshaller.getNamespaceResolver() != null, xmlUnmarshaller.isIncludeRoot(), xmlUnmarshaller.g...
"public void isApplicationIdentityStoreHanderTrue() {\n final Set<Type> types = new HashSet<Type>();\n types.add(new TypeLiteral<Bean>() {\n }.getType());\n types.add(new TypeLiteral<IdentityStoreHandler>() {\n }.getType());\n context.checking(new Expectations() {\n {\n one(pb).getBe...
"public void onPreviewsLoaded(List<TodoListPreviewViewModel> previews) {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getContext());\n boolean permanentDelete = !sharedPreferences.getBoolean(KEY_PREF_TODO, true);\n this.previews = previews;\n this.mAdapter = new Flex...
"public void clearRecords() {\n List<IProcess2> list = getOpenedProcessList();\n if (list != null) {\n list.clear();\n }\n list = getProcessList();\n if (list != null) {\n list.clear();\n }\n MultiKeyMap map = getOpenProcessMap();\n if (map != null) {\n map.clear();\n }\n...
"protected double computeUnweighted(double tl_x, double tl_y, double samplePeriod) {\n tl_x += 0.5;\n tl_y += 0.5;\n double Dx = 0, Dy = 0;\n int i = 0;\n for (int y = 0; y < width; y++) {\n int pixelY = (int) (tl_y + y * samplePeriod);\n for (int x = 0; x < width; x++, i++) {\n ...
"private String getParentXPath(String xpath) {\n return xpath + \"String_Node_Str\";\n}\n"
"private VariablePlaceholder createParticularTOS(CtStatement ingredientStatement, Set<String> targetPlaceholders, List<CtVariableAccess> varAccessCollected) {\n Map<String, String> placeholderVarNamesMappings = new HashMap<>();\n MapList<String, CtVariableAccess> placeholdersToVariables = new MapList<>();\n Li...
"public boolean checkTrigger(GameEvent event, Game game) {\n ZoneChangeEvent zEvent = (ZoneChangeEvent) event;\n if (zEvent.getFromZone() == Zone.BATTLEFIELD && zEvent.getToZone() == Zone.GRAVEYARD) {\n if (filter.match(zEvent.getTarget(), this.getSourceId(), this.getControllerId(), game)) {\n i...
"protected void initialize() {\n if (parameter == null) {\n parameter = new TextLengthParameter();\n parameter.setUseBlank(true);\n }\n}\n"
"public LibraryNode getHead() {\n return getLibrary();\n}\n"
"public void commitTyped(final InputConnection ic) {\n if (!mWordComposer.isComposingWord())\n return;\n final CharSequence typedWord = mWordComposer.getTypedWord();\n mWordComposer.onCommitWord(WordComposer.COMMIT_TYPE_USER_TYPED_WORD);\n if (typedWord.length() > 0) {\n if (ic != null) {\n ...
"public void testDayLightSavingsSwitch() {\n try {\n String expression = \"String_Node_Str\";\n CronParser parser = new CronParser(CronDefinitionBuilder.instanceDefinitionFor(CronType.QUARTZ));\n Cron cron = parser.parse(expression);\n DateTimeFormatter formatter = DateTimeFormat.forPatte...
"protected final double adjustVerticalDueToHorizontal(double dBlockY, double dBlockHeight, AllAxes aax) throws ChartException, IllegalArgumentException {\n final OneAxis axPH = aax.areAxesSwapped() ? aax.getPrimaryOrthogonal() : aax.getPrimaryBase();\n final OneAxis axPV = aax.areAxesSwapped() ? aax.getPrimaryBas...
"private Bytes toKey(final net.openhft.lang.io.Bytes key) {\n final long position = key.position();\n try {\n NativeBytesStore<Void> byteStore = NativeBytesStore.nativeStoreWithFixedCapacity(key.remaining());\n int i = (int) key.position();\n while (key.remaining() > 0) {\n byteSto...
"public void read(Json json, JsonValue jsonData) {\n duration = json.readValue(\"String_Node_Str\", Float.class, jsonData);\n time = json.readValue(\"String_Node_Str\", Float.class, jsonData);\n ;\n reverse = json.readValue(\"String_Node_Str\", Boolean.class, jsonData);\n began = json.readValue(\"String_...
"public void drawRight(float x, float y, float maxWidth, DisplayHandler.Background background, int backgroundColor, int textColor) {\n DisplayHandler.Background bg = background;\n int bgColor = backgroundColor;\n int textCol = textColor;\n if (this.backgroundColor != null)\n bgColor = this.background...
"public boolean applies(GameEvent event, Ability source, Game game) {\n if (event.getType() == EventType.ENTERS_THE_BATTLEFIELD) {\n Permanent creature = game.getPermanent(event.getTargetId());\n if (creature != null && creature.getControllerId().equals(source.getControllerId()) && creature.getCardType...
"public int doStartTag() throws JspException {\n if (null != snip) {\n Map dublinCore = DublinCore.generate(snip);\n try {\n JspWriter out = pageContext.getOut();\n if (\"String_Node_Str\".equals(format)) {\n Iterator iterator = dublinCore.keySet().iterator();\n ...
"public void add(long entityId, Map<String, Object> properties) {\n try {\n Document document = identifier.entityType.newDocument(entityId);\n for (Map.Entry<String, Object> entry : properties.entrySet()) {\n String key = entry.getKey();\n Object value = entry.getValue();\n ...
"public void onPlayerChat(PlayerChatEvent event) {\n String name = event.getPlayer().getName();\n String message = event.getMessage();\n j2.chat.addChat(name, message);\n j2.irc.ircMsg(\"String_Node_Str\" + name + \"String_Node_Str\" + message);\n j2.chat.msgAll(ChatColor.WHITE + \"String_Node_Str\" + j2...
"private void getSymmetryAxes(List<Axis> symmAxes, Matrix4d prior, int level, int firstRepeat) {\n if (level >= getNumLevels()) {\n return;\n }\n Axis elem = axes.get(level);\n Matrix4d elemOp = elem.getOperator();\n Matrix4d currAxisOp = new Matrix4d(prior);\n currAxisOp.invert();\n currAxi...
"public int size() {\n return this.size();\n}\n"
"public static void afterClass() throws ExecutionException, InterruptedException {\n if (storage != null && !RemoteGcsHelper.forceDelete(storage, BUCKET, 5, TimeUnit.SECONDS) && log.isLoggable(Level.WARNING)) {\n log.log(Level.WARNING, \"String_Node_Str\", BUCKET);\n }\n}\n"
"public void saveDataWithException(long globalId, long shardingId) {\n TestGlobalEntity testGlobalEntity = new TestGlobalEntity();\n testGlobalEntity.setId(globalId);\n TestEntity testEntity = new TestEntity();\n testEntity.setId(shardingId);\n testEntity.setTestInt(10);\n storageClient.globalSave(tes...
"public void stop() {\n LOGGER.info(\"String_Node_Str\");\n supervisor.stop();\n lifecycleState = LifecycleState.STOP;\n}\n"
"public static void buildBackground(StringBuffer styleBuffer, IStyle style, HTMLReportEmitter emitter) {\n buildProperty(styleBuffer, HTMLTags.ATTR_BACKGROUND_COLOR, style.getBackgroundColor());\n String image = style.getBackgroundImage();\n if (image == null || \"String_Node_Str\".equalsIgnoreCase(image)) {\n...
"protected DesignElementHandle createElement(SlotHandle slotHandle, String type) throws Exception {\n DesignElementFactory factory = DesignElementFactory.getInstance();\n SharedStyleHandle handle = factory.newStyle(theme, null);\n StyleBuilder builder = new StyleBuilder(PlatformUI.getWorkbench().getDisplay().g...
"public String getUnitName(String key) {\n IChoice choice = ChoiceSetFactory.getDimensionChoiceSet(getElement(), getProperty()).findChoiceByDisplayName(key);\n if (choice == null) {\n return null;\n }\n return choice.getName();\n}\n"
"public void write(ByteBuf buf) {\n buf.writeByte(this.bitsPerBlock);\n wvint(buf, this.palette.size());\n ShortArrayList palette;\n synchronized (this.palette) {\n palette = this.palette;\n }\n for (int i = 0; i < palette.size(); i++) {\n wvint(buf, palette.getShort(i));\n }\n wvi...
"private static AssessmentItem createAssessmentItem() {\n AssessmentItem assessmentItem = AssessmentItemFactory.createAssessmentItem(QTI21QuestionType.kprim, \"String_Node_Str\");\n NodeGroupList nodeGroups = assessmentItem.getNodeGroups();\n double maxScore = 1.0d;\n Identifier responseDeclarationId = Iden...