content stringlengths 40 137k |
|---|
"public void addSkill(String skillName) {\n DBSkills skillsdb = new DBSkills();\n SingleSkill skill = SkillsConfig.getSingleSkill(skillName);\n if (RCPermissions.addParent(player, skill.getGroup())) {\n skillsdb.setPlayer(player);\n skillsdb.setSkillName(skillName);\n skillsdb.setGroupName... |
"public static List<javax.portlet.Event> processEvent(UIPortlet uiPortlet, javax.portlet.Event event) {\n log.info(\"String_Node_Str\" + event.getName() + \"String_Node_Str\" + uiPortlet.getWindowId());\n try {\n PortletContainerService service = uiPortlet.getApplicationComponent(PortletContainerService.cl... |
"public void testMTD4() throws IOException {\n int[] values = new int[] { 2002, 1, 2, 4 };\n String[] types = new String[] { TimeMember.TIME_LEVEL_TYPE_YEAR, TimeMember.TIME_LEVEL_TYPE_QUARTER, TimeMember.TIME_LEVEL_TYPE_MONTH, TimeMember.TIME_LEVEL_TYPE_WEEK_OF_MONTH };\n TimeMember timeMember = new TimeMembe... |
"public void execute(Map transientVars, Map args, PropertySet ps) throws WorkflowException {\n AbstractAttribute attribute = getAttribute(transientVars, args);\n AbstractAttributeValue date = attributableUtil.newAttributeValue();\n date.setDateValue(new Date());\n date.setAttribute(attribute);\n if (attr... |
"public boolean tryCaptureView(View view, int i) {\n boolean ret = mDragHelper.isEdgeTouched(mEdgeFlag, i);\n if (ret) {\n if (mDragHelper.isEdgeTouched(EDGE_LEFT, i)) {\n mTrackingEdge = EDGE_LEFT;\n } else if (mDragHelper.isEdgeTouched(EDGE_RIGHT, i)) {\n mTrackingEdge = EDGE... |
"public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n final Info info = (Info) o;\n if (containers != info.containers) {\n return false;\n }\n if (debug != null ? !debug.equals(info.deb... |
"private Payload getPayload(Context context, MeetingCenter center) {\n final Payload payload = new Payload();\n payload.setTransactionDate(DateHelper.getPayloadDate(context));\n payload.setCalendarId(center.getCollectionMeetingCalendar().getCalendarInstanceId());\n return payload;\n}\n"
|
"public boolean isAnonymous(HashGroupifyEntry entry) {\n int[] buckets = entry.distribution.getBuckets();\n int totalElements = 0;\n for (int i = 0; i < buckets.length; i += 2) {\n if (buckets[i] != -1) {\n totalElements += buckets[i + 1];\n }\n }\n double val = 1.0d;\n for (i... |
"void animationDidComplete(APAAnimationState animationState) {\n switch(animationState) {\n case Death:\n final APAMultiplayerLayeredCharacterScene scene = getCharacterScene();\n SKEmitterNode emitter = (SKEmitterNode) sharedDeathEmitter.copy();\n emitter.setZPosition(-0.8);\n... |
"public boolean varNameUsed(String name) {\n Deque<Block> blocks = new ArrayDeque<Block>();\n blocks.add(this.mainBlock);\n while (!blocks.isEmpty()) {\n Block curr = blocks.pop();\n for (Var v : curr.variables) {\n if (v.name().equals(name))\n return true;\n }\n ... |
"private void testFactTableSaveAndLoad(IDocumentManager documentManager) 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_St... |
"public Void invoke(File ws, VirtualChannel channel) throws IOException {\n ZipOutputStream zos = new ZipOutputStream(new BufferedOutputStream(os));\n if (flatten) {\n archive(ws, getModuleLocations()[0].getModule(), zos, true);\n } else {\n for (ModuleLocation moduleLocation : getModuleLocations... |
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n if (xPathFragment.hasLeafElementType()) {\n marshalRecord.setLeafElementType(xPathFragment.... |
"DateTime nextClosestMatch(DateTime date) throws NoSuchValueException {\n List<Integer> year = yearsValueGenerator.generateCandidates(date.getYear(), date.getYear());\n TimeNode days = generateDays(cronDefinition, date);\n int lowestMonth = months.getValues().get(0);\n int lowestDay = days.getValues().get(0... |
"public void run() {\n try {\n super.run();\n ISelection selection = view.getViewer().getSelection();\n TreeObject xobject = (TreeObject) ((IStructuredSelection) selection).getFirstElement();\n xobject = LocalTreeObjectRepository.getInstance().registerNewTreeObject(xobject);\n Tree... |
"public static void onLinkClicked(Activity activity, String url, boolean forceNoImage) {\n if (!forceNoImage) {\n final String imageUrl = getImageUrl(url);\n if (imageUrl != null) {\n final Intent intent = new Intent(activity, ImageViewActivity.class);\n intent.setData(Uri.parse(i... |
"public int recoverTier(int segmentIndex) {\n s.freeList.clearAll();\n Logger log = lh.LOG;\n VanillaChronicleHash<?, ?, ?, ?> h = mh.h();\n CompactOffHeapLinearHashTable hl = h.hashLookup;\n long hlAddr = s.tierBaseAddr;\n long hlPos = 0;\n do {\n long hlEntry = hl.readEntry(hlAddr, hlPos);... |
"public static void updateRegressionTestCases(ProjectRepairFacade projectConfig) {\n List<String> original = projectConfig.getProperties().getRegressionTestCases();\n List<String> refined = refineListofRegressionTestCases(original);\n if (!refined.isEmpty())\n projectConfig.getProperties().setRegression... |
"public static boolean hasSuperClass(Class<?> has, Class<?> in) {\n if (in.equals(has)) {\n return true;\n }\n boolean match = false;\n if (in.getSuperclass() != null && in.getSuperclass().equals(Object.class)) {\n return match;\n }\n match = hasSuperClass(has, in.getSuperclass());\n ... |
"private List<UtilizationValue> getEndingBalance(Commodity commodity, Date startDate, Date endDate) throws Exception {\n List<StockItemSnapshot> stockItemSnapshots = stockItemSnapshotService.get(commodity, DateUtil.addDayOfMonth(startDate, -1), endDate);\n List<UtilizationValue> utilizationValues = new ArrayList<... |
"public void storeCookies(CookieStore cookieStore) throws JSONException, IOException {\n System.out.println(\"String_Node_Str\" + basicCookies.getCookies());\n System.out.println(\"String_Node_Str\" + cookieStore.getCookies());\n basicCookies.clearExpired(new Date());\n if (basicCookies.getCookies().size() ... |
"byte[] getBytes() {\n ByteBuffer buffer = ByteBuffer.allocate(4 + 4 + 8 + 4 + (version < 3 ? (4 + 4) : (8 + 8)) + 4 + 32 + 32 + (32 + 32) + 8 + (blockATs != null ? blockATs.length : 0) + 64);\n buffer.order(ByteOrder.LITTLE_ENDIAN);\n buffer.putInt(version);\n buffer.putInt(timestamp);\n buffer.putLong(... |
"private void drawerItemSelected(DrawerItem item) {\n if (item == null || item.isSelected(this)) {\n closeDrawer();\n return;\n }\n ActivityId activityId = item.getDrawerItemId().toActivityId();\n if (activityId != ActivityId.UNKNOWN) {\n ActivityId.trackLastActivity(WPDrawerActivity.th... |
"protected boolean isStraight(IPartHost host, final EnumSet<AEPartLocation> sides) {\n if (sides.size() != 2) {\n return false;\n }\n Iterator<AEPartLocation> it = sides.iterator();\n EnumFacing firstSide = it.next().getFacing();\n EnumFacing secondSide = it.next().getFacing();\n if (firstSide.... |
"void populateCachedDataSets(DataEngineImpl dataEngine, IDataQueryDefinition[] qds) throws DataException {\n if (qds != null) {\n queryDefns.addAll(Arrays.asList(qds));\n List temp = new ArrayList();\n List temp2 = new ArrayList();\n this.cachedDataSetNames.clear();\n for (IDataQue... |
"private void defineDataSet(DataSetHandle handle) throws AdapterException, BirtException {\n if (handle == null)\n throw new AdapterException(ResourceConstants.DATASETHANDLE_NULL_ERROR);\n DataSourceHandle dataSourceHandle = handle.getDataSource();\n if (dataSourceHandle != null) {\n IBaseDataSou... |
"public void onRead(WireIn inWire, WireOut outWire) {\n if (inWire.isEmpty())\n return;\n inWire.read(() -> \"String_Node_Str\").text();\n}\n"
|
"public synchronized void update() {\n if (Dungeon.hero == null) {\n return;\n }\n super.update();\n if (!freezeEmitters)\n water.offset(0, -5 * Game.elapsed);\n Actor.process();\n if (Dungeon.hero.ready && !Dungeon.hero.paralysed) {\n log.newLine();\n }\n if (tagAttack != a... |
"public Response deleteCommunity(Integer communityId, String user_ip, String user_agent, String xforwarderfor, HttpHeaders headers, HttpServletRequest request) throws WebApplicationException {\n log.info(\"String_Node_Str\" + communityId + \"String_Node_Str\");\n org.dspace.core.Context context = null;\n try {... |
"public void acceptInvitation(ChatRoomInvitation invitation) {\n ChatRoom chatRoom = invitation.getTargetChatRoom();\n byte[] password = invitation.getChatRoomPassword();\n ChatRoomsList chatRoomsList = mainFrame.getChatRoomsListPanel().getChatRoomsList();\n chatRoomsList.addChatRoom(new ChatRoomWrapper(cha... |
"protected void handleKeyPressedEvent(KeyEvent event) {\n if (event.character == 'b') {\n glScatterplot.toggleSpecialAxisMode();\n return;\n }\n switch(event.keyCode) {\n case SWT.ARROW_UP:\n glScatterplot.upDownSelect(false);\n break;\n case SWT.ARROW_DOWN:\n ... |
"public Map<K, V> loadAll(Iterable<? extends K> keys) {\n HashMap<K, V> map = new HashMap<K, V>();\n for (K key : keys) {\n map.put(key, null);\n }\n return map;\n}\n"
|
"public static void main(String[] args) throws JATEException {\n try {\n AppATEACLRDTECTest appATETest = new AppATEACLRDTECTest(solrHome.toString(), solrCoreName);\n boolean reindex = false;\n if (args.length > 0) {\n try {\n reindex = Boolean.valueOf(args[0]);\n ... |
"public void onEvent(CommandEvent event) {\n HashMap<String, Long> loggedIn = event.getController().getCurrentlyLoggingIn();\n if (loggedIn.keySet().contains(event.getUser())) {\n event.setCancelled(true);\n }\n}\n"
|
"private IResultIterator getResultSetOfCascadingGroup(CascadingParameterGroupHandle parameterGroup) {\n if (parameterGroup == null)\n return null;\n DataSetHandle dataSet = parameterGroup.getDataSet();\n if (dataSet != null) {\n try {\n QueryDefinition queryDefn = createQueryDefinition... |
"public void testLength(String s, int size) throws AxelorException {\n if (s.length() != size) {\n throw new AxelorException(String.format(I18n.get(IExceptionMessage.CFONB_TOOL_NB_OF_CHAR_PER_LINE), size), IException.CONFIGURATION_ERROR);\n }\n}\n"
|
"public int synthesizeToFile(String text, HashMap<String, String> params, String filename) {\n synchronized (mStartLock) {\n int result = ERROR;\n if (!mStarted) {\n return result;\n }\n try {\n if ((params != null) && (!params.isEmpty())) {\n String e... |
"public static void loadSettings() throws IOException {\n for (ConfigurationArray config : CONFIG_DEFINITIONS) {\n settingRepo.createConfiguration(config.name, config.value).save();\n }\n for (ProgramsArray programDefinition : PROGRAMS_DEFINITIONS) {\n settingRepo.createProgram(programDefinition.... |
"public Object visitLocalVarDeclNode(LocalVarDeclNode node, LinkedList args) {\n node.setInitExpr((TreeNode) node.getInitExpr().accept(this, args));\n NameContext ctx = (NameContext) args.get(0);\n Environ env = ctx.environ;\n NameNode name = node.getName();\n String varName = name.getIdent();\n Decl ... |
"public void stateChanged(ChangeEvent e) {\n if (dontUpdate == true) {\n return;\n }\n Object o = e.getSource();\n if (myRecipe != null) {\n if (o == postBoilText) {\n try {\n NumberFormat format = NumberFormat.getInstance(Locale.getDefault());\n Number... |
"private void drawScore(Canvas canvas) {\n canvas.setFont(\"String_Node_Str\", 18);\n int textLen = canvas.getWidth(\"String_Node_Str\");\n int x = canvas.getWidth() / 2 - textLen;\n int y = canvas.getHeight() - 10;\n int width = 50;\n canvas.fillRect(x, y - 15, width, 20, 0x8fffffff & ClientTeam.ALLI... |
"public Request<Q, R> execute(ServiceConfiguration config) {\n this.doInitializeCallback(config);\n try {\n Logger.getLogger(this.cb.getClass()).debug(\"String_Node_Str\" + config);\n if (!this.handler.fire(config, this.request)) {\n LOG.error(\"String_Node_Str\" + this.request);\n ... |
"public CountStatistic getNumConnTimedOut() {\n return numConnTimedOut;\n}\n"
|
"private void recieveData() {\n byte[] buf = new byte[1024];\n int len = 0;\n try {\n Log.d(\"String_Node_Str\", \"String_Node_Str\");\n Log.d(\"String_Node_Str\", serverSocket.getLocalSocketAddress().toString());\n Log.d(\"String_Node_Str\", String.valueOf(serverSocket.getLocalPort()));\n... |
"public void removeFromPool(Channel channel) {\n if (!oneNetClientContextConfig.isLocalPool()) {\n channel.close();\n } else {\n try {\n localPool.invalidateObject(channel);\n } catch (Exception e) {\n log.info(e.getMessage() + localPool.getNumActive() + \"String_Node_St... |
"public IBaseQueryResults execute(IBasePreparedQuery query, IBaseQueryResults outerResults, ScriptContext context) throws AdapterException {\n try {\n IDataScriptEngine engine = (IDataScriptEngine) context.getScriptEngine(IDataScriptEngine.ENGINE_NAME);\n Scriptable scope = engine.getJSScope(context);\... |
"public void replaceTokenFields(SootClass entityClass, int depth, Set unsafeLocalSet, boolean debug) {\n boolean doneSomething = false;\n if (debug) {\n System.err.println(\"String_Node_Str\" + entityClass + \"String_Node_Str\" + depth);\n System.out.println(\"String_Node_Str\" + entityClass + \"Str... |
"public File getTemporaryPath(String arcFileName, long requestedSize) throws ArgumentNotValid, IOFailure {\n ArgumentNotValid.checkNotNullOrEmpty(arcFileName, \"String_Node_Str\");\n ArgumentNotValid.checkNotNegative(requestedSize, \"String_Node_Str\");\n for (File dir : archivePaths) {\n long bytesFree... |
"protected void decompressTile(final File outputFile, int jp2TileX, int jp2TileY) throws IOException {\n final int tileIndex = tileLayout.numXTiles * jp2TileY + jp2TileX;\n ProcessBuilder builder;\n if (S2Config.OPJ_DECOMPRESSOR_EXE != null) {\n if (org.apache.commons.lang.SystemUtils.IS_OS_WINDOWS) {\n... |
"private String readString(DataInputStream stream, int length) throws IOException {\n StringBuffer buffer = new StringBuffer();\n for (int i = 0; i < length; i++) {\n buffer.append((char) readByte(stream));\n }\n return buffer.toString();\n}\n"
|
"private void loadLists() {\n try {\n createFiles();\n blacklistedIDs = gson.fromJson(Files.newBufferedReader(blacklistPath), Set.class);\n whitelistedIDs = gson.fromJson(Files.newBufferedReader(whitelistPath), Set.class);\n } catch (IOException e) {\n logger.error(\"String_Node_Str\",... |
"public static void init() {\n potato = new BlockModPlant(net.minecraft.init.Items.potato);\n carrot = new BlockModPlant(net.minecraft.init.Items.carrot);\n melon = new BlockModPlant(net.minecraft.init.Items.melon);\n pumpkin = new BlockModPlant(Item.getItemFromBlock(Blocks.pumpkin));\n sugarcane = new B... |
"public void testHostScope() {\n HostScope hostScope = new HostScope(1L, 1L);\n HostScope hostScope2 = new HostScope(1L, 1L);\n HostScope hostScope3 = new HostScope(2L, 1L);\n Assert.assertTrue(hostScope.isSameScope(hostScope2));\n Assert.assertFalse(hostScope.isSameScope(hostScope3));\n}\n"
|
"public Argument getArgumentReturn() {\n try {\n _workspace.getReadAccess();\n Iterator arguments = this.argumentsList().iterator();\n Argument returnValue = null;\n while (arguments.hasNext()) {\n Argument argument = (Argument) arguments.next();\n if (argument != nu... |
"public static void main(String[] rags) {\n Parameters.initializeParameterCollections(new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" });\n System.out.println();\n}\n"
|
"public IReportDocument openReportDocument(String systemId, IDocArchiveReader archive, Map options) throws EngineException {\n ReportDocumentReader reader = new ReportDocumentReader(systemId, engine, archive);\n if (options == null) {\n options = new HashMap();\n }\n intializeModuleOptions(options);\... |
"public final Simple_declContext simple_decl() throws RecognitionException {\n Simple_declContext _localctx = new Simple_declContext(_ctx, getState());\n enterRule(_localctx, 96, RULE_simple_decl);\n int _la;\n try {\n enterOuterAlt(_localctx, 1);\n {\n {\n setState(4... |
"public Controller importNode(File importDirectory, ICourse course, boolean unattendedImport, UserRequest ureq, WindowControl wControl) {\n CoursePropertyManager cpm = course.getCourseEnvironment().getCoursePropertyManager();\n if (getChecklistKey(cpm) != null)\n deleteChecklistKeyConf(cpm);\n File impo... |
"public synchronized BlobStoreContext getBlobStoreContext() {\n if (context == null) {\n if (location == null) {\n Preconditions.checkNotNull(locationSpec, \"String_Node_Str\");\n Preconditions.checkNotNull(mgmt, \"String_Node_Str\");\n location = (JcloudsLocation) mgmt.getLoc... |
"public void beforeStory(Story story, boolean b) {\n currentStory = story;\n if (!isFixture(story)) {\n String requestedDriver = getRequestedDriver(story.getMeta());\n if (StringUtils.isNotEmpty(requestedDriver)) {\n ThucydidesWebDriverSupport.initialize(requestedDriver);\n } else ... |
"public void testBdEeDemoComplete() throws Exception {\n Assert.assertTrue(eeResManager instanceof FileResourcesUnityManager);\n Iterator path = eeResManager.getPaths().iterator();\n String firstFilePath = ((Path) path.next()).toPortableString();\n String eeDemoName = demoName.substring(0, demoName.indexOf(... |
"protected void addAuthorityNameIfMatches(Set<String> authorities, String authorityName, AuthorityType type, Pattern pattern) {\n if (isAuthorityNameMatching(authorityName, type)) {\n if (pattern == null) {\n authorities.add(authorityName);\n } else {\n if (pattern.matcher(getShor... |
"public SubmissionFieldProfile create(FieldProfile fieldProfile) {\n SubmissionFieldProfile submissionfieldProfile = submissionFieldProfileRepo.findByFieldPredicateAndInputTypeAndRepeatableAndOptionalAndUsageAndHelpAndMappedShibAttribute(fieldProfile.getFieldPredicate(), fieldProfile.getInputType(), fieldProfile.get... |
"public void run() {\n application.handleException(null, ae);\n}\n"
|
"public void visitFunctionApplicationNode(ASTPtFunctionApplicationNode node) throws IllegalActionException {\n ptolemy.data.Token value = null;\n String functionName = node.getFunctionName();\n if ((functionName != null) && (_scope != null)) {\n value = _scope.get(node.getFunctionName());\n }\n if... |
"public void writeEntry(String s) {\n write(INDENTS[sectionLevel]);\n write(s);\n}\n"
|
"public void addMappingToOwner(boolean sdoMethodAttributeAccessor, int indexToAdd) {\n if (xmlMapping != null) {\n if (sdoMethodAttributeAccessor) {\n SDOMethodAttributeAccessor accessor = null;\n if (this.getType().isDataType()) {\n Class theClass = getType().getInstanceC... |
"private static float xpoly(float x, float y) {\n x *= (float) preScaleX;\n y *= (float) preScaleY;\n return (float) (postScaleX * (c0[0] + c0[1] * x + c0[2] * y + c0[3] * x * x + c0[4] * x * y + c0[5] * y * y + myRandom.nextDouble() * noise));\n}\n"
|
"private boolean __match_val(final Object mtc, Object val) {\n Mirror<?> mi = Mirror.me(mtc);\n if (null == val) {\n return mi.isStringLike() && Strings.isEmpty(mtc.toString());\n }\n Pattern regex = mi.is(Pattern.class) ? (Pattern) mtc : null;\n if (mi.isStringLike()) {\n final String s = ... |
"private void filterOutGeneralTypes(Multimap<Var, Triple> var2Triples) {\n for (Var subject : var2Triples.keySet()) {\n Collection<Triple> triplePatterns = var2Triples.get(subject);\n Collection<Triple> triplesPatterns2Remove = new HashSet<Triple>();\n for (Triple tp : triplePatterns) {\n ... |
"protected void _branchUnblocked(ProcessReceiver rcvr) {\n synchronized (_internalLock) {\n if (_blocked) {\n if (_branchesBlocked != _branchesStarted) {\n throw new InternalErrorException(((Nameable) getParent()).getName() + \"String_Node_Str\" + \"String_Node_Str\");\n }... |
"public static String getResponseFromServer(final String url, String encoding) {\n try {\n return getResponseFromServer(new URL(url), HttpsURLConnectionFactory.INSTANCE, encoding);\n } catch (final MalformedURLException e) {\n throw new IllegalArgumentException(e);\n }\n}\n"
|
"static public Color fromInt(int rgb) {\n int red = (rgb >> 16) & 0xFF;\n int green = (rgb >> 8) & 0xFF;\n int blue = rgb & 0xFF;\n return new Color(red, green, blue);\n}\n"
|
"private void updateSchema() {\n Object updateObject = result.getUpdateObject();\n if (updateObject == null) {\n return;\n }\n if (updateObject instanceof Node) {\n Node node = (Node) updateObject;\n boolean builtIn = true;\n final IExternalNode externalNode = node.getExternalNod... |
"private void startTestSuiteForStory(Story story) {\n String storyName = removeSuffixFrom(story.getName());\n String storyTitle = NameConverter.humanize(storyName);\n net.thucydides.core.model.Story userStory = net.thucydides.core.model.Story.withIdAndPath(storyName, storyTitle, story.getPath()).withNarrative(... |
"private ODataRequest parseRequest(final Scanner scanner, final boolean isChangeSet) throws BatchException {\n try {\n ODataRequest request;\n if (scanner.hasNext(REG_EX_REQUEST_LINE)) {\n scanner.next(REG_EX_REQUEST_LINE);\n currentLineNumber++;\n throw new BatchExcept... |
"public static void deleteAciContainerGroup(String credentialsId, String resourceGroup, String containerGroupName, String deployName) {\n final Azure azureClient = AzureContainerUtils.getAzureClient(credentialsId);\n final Map<String, String> properties = new HashMap<>();\n try {\n azureClient.genericRe... |
"public void validateGetMethodReturnType(Class returnType, IntegrityChecker checker) throws DescriptorException {\n super.validateGetMethodReturnType(returnType, checker);\n if (!this.typeIsValid(returnType)) {\n checker.handleError(DescriptorException.returnAndMappingWithTransparentIndirectionMismatch(thi... |
"private void genAppFunctionBody(Context context, SwiftAST appBody, List<Var> outputs, boolean hasSideEffects, boolean deterministic) throws UserException {\n assert (appBody.getType() == ExMParser.APP_BODY);\n assert (appBody.getChildCount() >= 1);\n SwiftAST cmd = appBody.child(0);\n assert (cmd.getType()... |
"public void hideGUI(Player p) {\n SpoutPlayer sp = SpoutManager.getPlayer(p);\n if (!sp.isSpoutCraftEnabled())\n return;\n if (!popups.containsKey(sp.getName()) || !activePopups.containsKey(sp.getName())) {\n return;\n }\n activePopups.remove(sp.getName());\n popups.get(sp.getName()).po... |
"public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {\n final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR));\n final String childType = CHILD_TYPE.resolveModelAttribute(context, operation).asString();\n final Resource resource = context.re... |
"protected ConfigurableOption initializeWrappingText() {\n ConfigurableOption wrappingText = new ConfigurableOption(TEXT_WRAPPING);\n wrappingText.setDisplayName(getMessage(\"String_Node_Str\"));\n wrappingText.setDataType(IConfigurableOption.DataType.BOOLEAN);\n wrappingText.setDisplayType(IConfigurableOpt... |
"public void initializeNodeValue() {\n XMLMapping xmlMapping = xmlChoiceMapping.getChoiceElementMappings().get(xmlField);\n choiceElementNodeValue = getNodeValueForMapping(xmlMapping);\n for (Entry<Class, XMLMapping> entry : xmlChoiceMapping.getChoiceElementMappingsByClass().entrySet()) {\n XMLField fie... |
"private WFState buildGlobalModel(GProtocolName fullname, GProtocolDecl gpd, Map<Role, EndpointFSM> egraphs, Map<Integer, WFState> seen) throws ScribbleException {\n Job job = getJob();\n if (!job.fair && !job.noLiveness) {\n for (Entry<Role, EndpointFSM> e : egraphs.entrySet()) {\n Role r = e.g... |
"protected boolean checkIfStuck(TimeStep timeStep, Brain brain) {\n PlayerEntity bot = brain.getEntityOwner();\n this.nextStuckCheck -= timeStep.getDeltaTime();\n if (this.nextStuckCheck < 0) {\n this.nextStuckCheck = 1500;\n if (Vector2f.Vector2fApproxEquals(previousPosition, bot.getPos(), 5.0f)... |
"public ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\");\n }\n User user = (User) command;\n if (request.getParameter(\"String_Node_Str\") != null) {... |
"public PreparedStatement prepare(String sql, Object[] params, int[] types) {\n try {\n PreparedStatement call;\n if (sql.trim().toLowerCase().startsWith(\"String_Node_Str\")) {\n call = base.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n } else {\n call = base.p... |
"protected JSONObject doInBackground(Void... params) {\n Set<String> set = new HashSet<>();\n JSONObject response = null;\n for (int x : mMap.keySet()) {\n set.add(mMap.get(x));\n }\n try {\n response = App.getPairInfo(set.toArray(new String[set.size()]));\n response = response == nu... |
"protected void doLoadDefault() {\n boolean confirm = MessageDialog.openConfirm(Display.getCurrent().getActiveShell(), Messages.getString(\"String_Node_Str\"), Messages.getString(\"String_Node_Str\"));\n if (confirm) {\n ICoreService coreService = null;\n if (GlobalServiceRegister.getDefault().isSer... |
"public boolean stopUIEditing(boolean looseFocus) {\n for (IWebFormController relatedController : visibleChildForms.keySet()) {\n if (!relatedController.stopUIEditing(looseFocus))\n return false;\n }\n return true;\n}\n"
|
"public void moveTaskToTop(int taskId) {\n final long origId = Binder.clearCallingIdentity();\n try {\n synchronized (mWindowMap) {\n Task task = mTaskIdToTask.get(taskId);\n if (task == null) {\n Slog.e(TAG, \"String_Node_Str\" + taskId + \"String_Node_Str\");\n ... |
"public void testEventsLoop() {\n JniTrace trace = null;\n JniEvent event = null;\n try {\n trace = JniTraceFactory.getJniTrace(tracepath, null, printLttDebug);\n } catch (JniException e) {\n fail(\"String_Node_Str\");\n }\n HashMap<String, Integer> eventCount = new HashMap<String, Integ... |
"private Err doBackgroundImportYtPlaylist(final ImportYtPlaylistResult mtpr, MultiThreadRunner mtrunner, final long plid, final String ytplid, final ProgressListener progl) throws InterruptedException {\n DB db = DB.get();\n YTSearchHelper.SearchArg sarg = new YTSearchHelper.SearchArg(null, YTSearchHelper.SearchT... |
"public boolean sendMessage(int id, MPIMessage message, MPIMessageListener callback) {\n lock.lock();\n try {\n boolean offer = pendingSends.offer(new MPISendRequests(id, message.getHeader().getEdge(), message, callback));\n LOG.info(String.format(\"String_Node_Str\", ++pendingSendCount, pendingSend... |
"public void waitUntilWidgetAppears(ICondition waitForWidget) {\n try {\n waitUntil(waitForWidget);\n } catch (TimeoutException e) {\n String message = \"String_Node_Str\";\n if (waitForWidget.getFailureMessage() != null) {\n message = waitForWidget.getFailureMessage();\n }\... |
"public static boolean isEnchanted(Item book) {\n return book != null && book.getType() == ItemType.EnchantedBook;\n}\n"
|
"ImportEndpoint getImportEndpoint(EndpointDescription ed) {\n return (closed) ? null : importReference.match(ed);\n}\n"
|
"private static void loadLib(String lib) {\n InputStream is = Os.class.getResourceAsStream(lib);\n if (is == null) {\n throw new FatalError(\"String_Node_Str\" + lib + \"String_Node_Str\");\n }\n try {\n File tempLib = null;\n try {\n tempLib = File.createTempFile(lib, \"Stri... |
"public void exportToColumn(String title, Query query) {\n Graph result;\n if (model.getCurrentQuery() == query) {\n GraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();\n GraphView view = model.getCurrentResult();\n if (view != null) {\n return;\n ... |
"public static HashMap<String, HashMap<?, ?>> refreshComments(Context ctx, Object[] commentParams) throws XMLRPCException {\n Blog blog = WordPress.currentBlog;\n client = new XMLRPCClient(blog.getUrl(), blog.getHttpuser(), blog.getHttppassword());\n String author, postID, comment, status, authorEmail, authorU... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.