content
stringlengths
40
137k
"public void setWorkDirBase(String baseDir) {\n synchronized (this) {\n _baseDir = baseDir;\n }\n}\n"
"static final AutoScale computeScale(IDisplayServer xs, OneAxis ax, DataSetIterator dsi, int iType, double dStart, double dEnd, Scale scModel, AxisOrigin axisOrigin, FormatSpecifier fs, RunTimeContext rtc, int direction, double zoomFactor, int iMarginPercent) throws ChartException {\n final Label la = ax.getLabel();...
"public void testExecute() throws Exception {\n final AtomicBoolean waiter = new AtomicBoolean(false);\n final boolean[] is = { false };\n this.target.execute(new RiakAction<RestRiakOperations>() {\n\n public void execute(RestRiakOperations operations) {\n operations.ping(new RiakResponseHand...
"public void testMapReduceLogs() throws Exception {\n testLogs(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", Constants.DEFAULT_NAMESPACE, null);\n testLogsFilter(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", Constants.DEFAULT_NAMESPACE, null);\n try {\n testLogsFilter(\...
"public void testOr() throws Exception {\n IntrinsicModel m = modelOf(\"String_Node_Str\");\n Assert.assertEquals(IntrinsicValue.UNDEFINED, m.intrinsicValue);\n assertFilter(m, \"String_Node_Str\");\n}\n"
"public void deleteApplication(String applicationId) {\n ApplicationContext appContext = AutoscalerContext.getInstance().getApplicationContext(applicationId);\n if (appContext == null) {\n String msg = String.format(\"String_Node_Str\", applicationId);\n throw new RuntimeException(msg);\n }\n ...
"protected void display() {\n try {\n Log.i(\"String_Node_Str\", getItem().toString());\n } catch (Exception e) {\n ACRA.getErrorReporter().handleException(e);\n }\n if (getItem().getCoverBitmap() != null) {\n ivCover.setVisibility(View.VISIBLE);\n ivCover.setImageBitmap(getItem(...
"public IType resolveType(ITypeVariable typeVar, IType concrete) {\n if (this.superType != null) {\n IType type = this.superType.resolveType(typeVar);\n if (type != Types.ANY) {\n return type.getConcreteType(concrete);\n }\n }\n for (int i = 0; i < this.interfaceCount; i++) {\n ...
"private boolean isGlobalOrSecureSettingRestrictedForUser(String setting, int userId) {\n String restriction = sSettingToUserRestrictionMap.get(setting);\n if (restriction == null) {\n return false;\n }\n return mUserManager.hasUserRestriction(restriction, UserHandle.of(userId));\n}\n"
"public ArrayList<String> setPasswordForNodes(String clusterName, ArrayList<String> ipsOfNodes, String password) {\n AuAssert.check(!ipsOfNodes.isEmpty());\n logger.info(\"String_Node_Str\" + clusterName);\n logger.info(\"String_Node_Str\" + ipsOfNodes.toString());\n ArrayList<String> failedIPs = null;\n ...
"public ReturnValue do_run() {\n WorkflowDataModelFactory factory = new WorkflowDataModelFactory(options, config, params, metadata);\n AbstractWorkflowDataModel dataModel = factory.getWorkflowDataModel();\n AbstractWorkflowEngine engine = this.getWorkflowEngine(dataModel);\n if (options.has(\"String_Node_St...
"public void visitScalarParameter(ScalarParameterHandle handle) {\n assert (handle.getName() != null);\n ScalarParameterDefn scalarParameter = new ScalarParameterDefn();\n scalarParameter.setHandle(handle);\n scalarParameter.setParameterType(IParameterDefnBase.SCALAR_PARAMETER);\n scalarParameter.setName...
"public final Collection<String> getHierarchyLevelNames() {\n return new MetadataScopeAdapter<String>(getMetadataScopes()) {\n\n protected MetadataScope wrap(final String value) {\n final DefaultMetadataScope scope = new DefaultMetadataScope();\n scope.setName(new SimpleInternationalStri...
"public void run(IAction action) {\n super.run(action);\n setDoNotContinue(false);\n if (getSootSelection().getType() == SootSelection.CLASSFILE_SELECTED_TYPE) {\n IClassFile cf = getSootSelection().getClassFile();\n IPackageFragmentRoot pfr = (IPackageFragmentRoot) cf.getAncestor(IJavaElement.PA...
"private PendingConfigBeanJob add(final ConfigBean cb, final CountDownLatch latch) {\n ConfigBean ancestor = cb;\n ConfigBean parent;\n while ((parent = asConfigBean(ancestor.parent())) != null) {\n ancestor = parent;\n }\n PendingConfigBeanJob job = null;\n if (ancestor.getProxyType().getName(...
"private void initialFireEvents(NetworkConfigurationChangeListener listener) {\n try {\n Enumeration<NetworkInterface> e = NetworkInterface.getNetworkInterfaces();\n while (e.hasMoreElements()) {\n NetworkInterface networkInterface = e.nextElement();\n if (isInterfaceLoopback(netw...
"public Object executeImpl(ExecutionEvent event) {\n TestCaseBrowser testSpecTreeView = (TestCaseBrowser) Plugin.getView(Constants.TC_BROWSER_ID);\n if (testSpecTreeView == null) {\n return null;\n }\n if (!(testSpecTreeView.getTreeViewer().getSelection() instanceof IStructuredSelection)) {\n ...
"private void tick() {\n RegisteredTask[] taskArray;\n synchronized (tasks) {\n taskArray = new RegisteredTask[tasks.size()];\n tasks.toArray(taskArray);\n }\n for (RegisteredTask task : taskArray) {\n task.check(tick);\n }\n}\n"
"protected void copySeriesDefinition(Object target) {\n Chart targetCM = context.getModel();\n if (target != null && target instanceof Chart) {\n targetCM = (Chart) target;\n }\n ExtendedItemHandle refHandle = getChartReferenceItemHandle();\n if (refHandle != null) {\n Chart srcChart = Char...
"public Object clone(Workspace workspace) throws CloneNotSupportedException {\n NonInterruptibleTimer newObject = (NonInterruptibleTimer) super.clone(workspace);\n newObject.output.setTypeSameAs(value);\n return newObject;\n}\n"
"private void storeKeyboardByAppMapping() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(mContext);\n Set<String> mapping = new HashSet<>(mAlphabetKeyboardIndexByPackageId.size());\n for (Map.Entry<String, CharSequence> aMapping : mAlphabetKeyboardIndexByPackageId.entry...
"public int removeFromInventory(PlayerInventory inventory, ItemStack item) {\n int amountLeft = item.getAmount();\n if (inventory.contains(item.getType(), item.getAmount())) {\n while (amountLeft > 0) {\n int firstFound = inventory.first(item.getType());\n if (inventory.getItem(firstF...
"public String NIFGerbil(InputStream input, NEDAlgo_HITS agdistis) throws IOException {\n org.aksw.gerbil.transfer.nif.Document document;\n String nifDocument = \"String_Node_Str\";\n String textWithMentions = \"String_Node_Str\";\n List<MeaningSpan> annotations = new ArrayList<>();\n try {\n docu...
"public Optional<InfoPacketClient> onMessageServer(EntityPlayerMP player) {\n World world = player.worldObj;\n TileEntity te = world.getTileEntity(pos);\n if (id == -1) {\n if (te instanceof PowerCellTileEntity) {\n PowerCellTileEntity powerCellTileEntity = (PowerCellTileEntity) te;\n ...
"private void onContainerAdded(Entity newContainer) {\n subscribe(newContainer, Startable.SERVICE_UP, eventHandler);\n if (!(newContainer instanceof Startable) || Boolean.TRUE.equals(newContainer.getAttribute(Startable.SERVICE_UP))) {\n onContainerUp(newContainer);\n }\n}\n"
"public void readData(ObjectDataInput in) throws IOException {\n hits = in.readInt();\n lastStoredTime = in.readLong();\n lastUpdateTime = in.readLong();\n lastAccessTime = in.readLong();\n in.readLong();\n}\n"
"public static void rotateSet(BuildJob parBuildJob, BlockPos coords, Block id, int meta) {\n coords = rotate(coords, parBuildJob.direction, new Vec3d(parBuildJob.build_startX, parBuildJob.build_startY, parBuildJob.build_startZ), new Vec3d(parBuildJob.build.map_sizeX, parBuildJob.build.map_sizeY, parBuildJob.build.ma...
"public void run() {\n long sent, received;\n long preTxPkts = -1, preRxPkts = -1;\n Activity newActivity;\n preTxPkts = txPkts;\n preRxPkts = rxPkts;\n if (netstat != null) {\n try {\n txPkts = netstat.getMobileTxPackets();\n rxPkts = netstat.getMobileRxPackets();\n ...
"public void run() {\n evaluate_unrestricted_nothread(sql, maxDisplayedRowCount, isUpdatable);\n}\n"
"private Object dispatchToStateAdapters(ResourceStateAdapter.Event event, boolean singleTaker, Object... args) {\n synchronized (_resourceStateAdapters) {\n Iterator<Map.Entry<String, ResourceStateAdapter>> it = _resourceStateAdapters.entrySet().iterator();\n Object result = null;\n while (it.ha...
"private void updateFiles(DefaultHttpClient httpClient) throws IOException, ClientProtocolException {\n final String url = SERVER_ROOT + \"String_Node_Str\";\n HttpGet httpRequest = new HttpGet(url);\n HttpResponse response = httpClient.execute(httpRequest);\n ZipInputStream inputStream = new ZipInputStream...
"protected Iconify.IconValue getNoDataIcon() {\n return Iconify.IconValue.fa_info_circle;\n}\n"
"private EnvTypePair analyzeExprFwd(Node expr, TypeEnv inEnv, JSType requiredType, JSType specializedType) {\n Preconditions.checkArgument(requiredType != null && !requiredType.isBottom());\n int exprKind = expr.getType();\n switch(exprKind) {\n case Token.EMPTY:\n return new EnvTypePair(inEn...
"public void reduceWithOneElementReturnsThatElement() {\n String result = Collections3.reduce(Collections.singletonList(\"String_Node_Str\"), null);\n assertThat(result, is(\"String_Node_Str\"));\n}\n"
"public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || !(o instanceof RESTNoun)) {\n return false;\n }\n RESTNoun restNoun = (RESTNoun) o;\n return context.equals(restNoun.context) && name.equals(restNoun.name);\n}\n"
"void collectPropertyNames(Set<String> props) {\n Set<PropertyMap> identitySet = Sets.newIdentityHashSet();\n collectPropertyNamesHelper(props, identitySet);\n}\n"
"public boolean onCommand(final CommandSender sender, final Command command, final String label, final String[] split) {\n if (!(sender instanceof Player)) {\n return false;\n }\n final Player player = (Player) sender;\n if (!VaultHelper.checkPerm(player, Settings.PERMPREFIX + \"String_Node_Str\")) {...
"private void updateFirstChildHeight(ExpandableView child, StackViewState childViewState, int childHeight, AmbientState ambientState) {\n int bottomPeekStart = ambientState.getInnerHeight() - mBottomStackPeekSize - mBottomStackSlowDownLength + ambientState.getScrollY();\n childViewState.height = (int) Math.max(Ma...
"public VirtualMachine migrateVirtualMachine(Long vmId, Host destinationHost) throws ResourceUnavailableException, ConcurrentOperationException, ManagementServerException, VirtualMachineMigrationException {\n Account caller = UserContext.current().getCaller();\n if (caller.getType() != Account.ACCOUNT_TYPE_ADMIN)...
"public long getQueueSize(QueuePriority prio) {\n if (prio == null)\n return -1;\n }\n synchronized (queueLock) {\n final ArrayList<QueueAction<?, ? extends Throwable>> ret = queue.get(prio);\n if (ret == null) {\n return -1;\n return ret.size();\n }\n}\n"
"public java.util.Date cast(String src, Class<?> toType, String... args) {\n try {\n return ((DateFormat) dateTimeFormat.clone()).parse(src);\n } catch (ParseException e1) {\n try {\n return dateFormat.parse(src);\n } catch (ParseException e) {\n throw Lang.wrapThrow(e);...
"public void visitUnionConstructNode(ASTPtUnionConstructNode node) throws IllegalActionException {\n if (node.isConstant() && node.isEvaluated()) {\n _evaluatedChildToken = node.getToken();\n return;\n }\n ptolemy.data.Token[] tokens = _evaluateAllChildren(node);\n int numChildren = node.jjtGe...
"public long getDeltaCacheMissCosts(CodeModification modification) {\n int deltaBytes = modification.getDeltaLocalCodesize();\n MethodInfo method = modification.getMethod();\n if (deltaBytes == 0)\n return 0;\n if (analysisType == AnalysisType.ALWAYS_HIT)\n return 0;\n WCETProcessorModel pm...
"public static Boolean permission(Player player, String line, PermissionDefault def) {\n Plugin plugin = Jail.instance.getServer().getPluginManager().getPlugin(\"String_Node_Str\");\n if (plugin != null && setupPermissions())\n return permission.has(player, line);\n else\n return player.hasPermis...
"protected MobileElement newMobileElement() {\n Class<? extends MobileElement> target = mobileElementMap.get(automation);\n if (target == null) {\n target = mobileElementMap.get(platform);\n }\n if (target == null) {\n throw new WebDriverException(new ClassNotFoundException(\"String_Node_Str\"...
"private InstructionHandle copyInstruction(MethodCode invokeeCode, StacksizeAnalysis stacksize, InstructionList il, InstructionHandle src, InstructionHandle next) {\n InstructionHandle ih;\n Instruction instr = src.getInstruction();\n Instruction c = invokerCode.copyFrom(invokee.getClassInfo(), instr);\n if...
"public void testSpecificUserJWTClaims() throws Exception {\n String accessToken;\n userManagementClient1 = new UserManagementClient(keyManagerContext.getContextUrls().getBackEndUrl(), user.getUserName(), user.getPassword());\n if (!userManagementClient1.roleNameExists(INTERNAL_ROLE_SUBSCRIBER)) {\n use...
"Animation createAspectScaledThumbnailEnterExitAnimationLocked(int thumbTransitState, int appWidth, int appHeight, int orientation, int transit, Rect containingFrame, Rect contentInsets, boolean isFullScreen) {\n Animation a;\n final int thumbWidthI = mNextAppTransitionStartWidth;\n final float thumbWidth = th...
"private void copyResourcesFromJarFile(File jarFile) throws IOException {\n ZipInputStream inStream = null;\n try {\n inStream = new ZipInputStream(new FileInputStream(jarFile));\n while (true) {\n ZipEntry entry = inStream.getNextEntry();\n if (entry == null)\n ...
"public void execute(AdminCommandContext context) {\n final ActionReport report = context.getActionReport();\n logger.entering(getClass().getName(), \"String_Node_Str\", new Object[] { destName, destType });\n try {\n validateJMSDestName(destName);\n validateJMSDestType(destType);\n } catch (I...
"public Object instantiateItem(ViewGroup container, int position) {\n ForegroundImageView cropImageView = new ForegroundImageView(CropActivity.this);\n final Resources res = getResources();\n cropImageView.setImageDrawable(res.getDrawable(images[position]));\n cropImageView.setForeground(res.getDrawable(R.d...
"public void setBuyableTrains() {\n if (operatingCompany == null)\n return;\n TrainManager trainMgr = gameManager.getTrainManager();\n int cash = operatingCompany.getCash();\n int cost;\n List<TrainI> trains;\n boolean hasTrains = operatingCompany.getPortfolio().getNumberOfTrains() > 0;\n bo...
"private boolean validateVolumeSizeRange(long size) {\n if (size < 0 || (size > 0 && size < (1024 * 1024 * 1024))) {\n throw new InvalidParameterValueException(\"String_Node_Str\");\n } else if (size > (_maxVolumeSizeInGb * 1024 * 1024 * 1024)) {\n throw new InvalidParameterValueException(\"String_N...
"public static void openLinkInBrowser(URL url) {\n if (url == null) {\n ErrorDisplay.showErrorWindow(\"String_Node_Str\", \"String_Node_Str\", null);\n return;\n }\n Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\n if (desktop != null && desktop.isSupported(Deskt...
"private LTTngTextTrace initializeEventStream() {\n if (testStream == null) {\n try {\n URL location = FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(), new Path(tracepath1), null);\n File testfile = new File(FileLocator.toFileURL(location).toURI());\n LTTngTextTra...
"public void testSuppressEs5StrictWarning() {\n CompilerOptions options = createCompilerOptions();\n options.setWarningLevel(DiagnosticGroups.ES5_STRICT, CheckLevel.WARNING);\n test(options, \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\");\n}\n"
"protected boolean setTimeoutFailure(final TestProcEnv env) {\n int n = ntimeouts.incrementAndGet();\n LOG.info(\"String_Node_Str\" + this + \"String_Node_Str\" + n);\n setState(ProcedureState.RUNNABLE);\n event.wake((AbstractProcedureScheduler) env.getProcedureScheduler());\n return false;\n}\n"
"private Concept _evaluateChild(int childNumber, Concept xValue) throws IllegalActionException {\n ptolemy.data.expr.ASTPtRootNode childNode = (ptolemy.data.expr.ASTPtRootNode) _ifNode.jjtGetChild(childNumber);\n return _evaluateNode(childNode, xValue);\n}\n"
"public void addWindow(PointerDetectorWindowMediaParam window, Continuation<Void> cont) {\n Map<String, MediaParam> params = newHashMapWithExpectedSize(1);\n params.put(ADD_NEW_WINDOW_PARAM_WINDOW, window);\n invoke(ADD_NEW_WINDOW, params, new VoidContinuationWrapper(cont));\n}\n"
"protected String internalGetValue(final int row, final int col) {\n final int key = col * 2;\n final int type = inverseMap[key];\n switch(type) {\n case AttributeTypeInternal.IDENTIFYING:\n return suppressionString;\n default:\n final int index = inverseMap[key + 1];\n ...
"protected IFigure createFigure() {\n ReportRootFigure figure = new ReportRootFigure();\n figure.setOpaque(true);\n figure.setShowMargin(showMargin);\n ReportDesignLayout layout = new ReportDesignLayout(this);\n Dimension size = DEFAULTSIZE;\n Rectangle bounds = new Rectangle(0, 0, size.width - 1, siz...
"private void retrieveProjectName(ItemRecord anyRecord) {\n Property property = anyRecord.getProperty();\n if (property != null) {\n InternalEObject author = (InternalEObject) property.getAuthor();\n if (author != null && !author.eIsProxy()) {\n Resource projResource = author.eResource();...
"void buildInputMethodListLocked(ArrayList<InputMethodInfo> list, HashMap<String, InputMethodInfo> map) {\n list.clear();\n map.clear();\n PackageManager pm = mContext.getPackageManager();\n List<ResolveInfo> services = pm.queryIntentServices(new Intent(InputMethod.SERVICE_INTERFACE), PackageManager.GET_MET...
"public void init() throws ComponentInitException {\n OWLOntologyManager manager = OWLManager.createOWLOntologyManager();\n Comparator<OWLNamedObject> namedObjectComparator = new Comparator<OWLNamedObject>() {\n public int compare(OWLNamedObject o1, OWLNamedObject o2) {\n return o1.getURI().comp...
"public long getNext(Session session) {\n boolean needsFlush = false;\n long result;\n synchronized (this) {\n if ((increment > 0 && value >= valueWithMargin) || (increment < 0 && value <= valueWithMargin)) {\n valueWithMargin += increment * cacheSize;\n flushValueWithMargin = valu...
"public Object[] getChildren(Object parentElement) {\n if (parentElement instanceof IFile) {\n IFile file = (IFile) parentElement;\n if (file.getName().endsWith(PluginConstant.REP_SUFFIX)) {\n TdReport findReport = RepResourceFileHelper.getInstance().findReport(file);\n Object[] a...
"public static void main(String[] args) throws Exception {\n InetAddress address = InetAddress.getLocalHost();\n int port = 5556;\n TlsSession session = createSession(address, port);\n MockDTLSClient client = new MockDTLSClient(session);\n DTLSTransport dtls = openDTLSConnection(address, port, client);\n...
"public void onNext(Object o) {\n HashMap<String, Object> map = (HashMap<String, Object>) o;\n Method method = (Method) map.get(\"String_Node_Str\");\n Class<?> parentClass = (Class<?>) map.get(\"String_Node_Str\");\n Reaction reaction = (Reaction) map.get(\"String_Node_Str\");\n try {\n method.in...
"protected static LinReg.Value process(Evaluator evaluator, ListCalc listCalc, DoubleCalc yCalc, DoubleCalc xCalc, boolean isTuples) {\n List members = listCalc.evaluateList(evaluator.push(false));\n evaluator = evaluator.push();\n SetWrapper[] sws = evaluateSet(evaluator, members, new DoubleCalc[] { yCalc, xC...
"public static Description parseConcept(String string) throws ParseException {\n String eq = \"String_Node_Str\" + string + \"String_Node_Str\";\n KBParser parser = new KBParser(new StringReader(eq));\n EquivalentClassesAxiom eqAxiom = parser.TBoxEquiv();\n return eqAxiom.getConcept2();\n}\n"
"public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {\n if (result != null) {\n return getResult();\n }\n processResult(remoteCall.getResponse(timeout, unit));\n return getResult();\n}\n"
"private void doMain(String[] args) throws Exception {\n System.out.println(String.format(\"String_Node_Str\", getClass().getSimpleName(), ProjectInfo.getVersion()));\n System.out.println();\n if (args.length < 1) {\n printHelp();\n return;\n }\n Action action = parseAction(args[0]);\n i...
"private void createComboLabels(Composite parent) {\n Label paramLabel = new Label(parent, SWT.NONE);\n paramLabel.setText(Messages.GDDataSetViewParameter);\n paramLabel.setData(SwtAUTHierarchyConstants.WIDGET_NAME, \"String_Node_Str\");\n Label dataSetLabel = new Label(parent, SWT.NONE);\n dataSetLabel....
"private static File getFile() {\n return new File(AssetsConverter.getAssetsFolder() + HISCORES_FILENAME);\n}\n"
"public void testParser() throws Exception {\n openDesign(FILE_NAME);\n assertNotNull(designHandle);\n TabularCubeHandle cube = (TabularCubeHandle) designHandle.findCube(\"String_Node_Str\");\n assertEquals(designHandle.findDataSet(\"String_Node_Str\"), cube.getDataSet());\n Iterator iter = cube.filtersI...
"public void setModulesNeededWithSubjobPerJob(String jobId, String jobVersion, Set<String> modulesNeeded) {\n String key = jobId + \"String_Node_Str\" + jobVersion;\n if (modulesNeeded == null) {\n modulesNeededWithSubjobPerJob.put(key, null);\n } else {\n modulesNeededWithSubjobPerJob.put(key, n...
"public void assignInternalParameters() throws PtalonRuntimeException {\n try {\n while (!_unassignedParameters.isEmpty()) {\n PtalonParameter parameter = _unassignedParameters.remove(0);\n String expression = _unassignedParameterValues.remove(0);\n String oldExpression = para...
"private void reloadGeometry(GLBuffer boundbuffer, MapRectangle area, MapDrawContext context) {\n boolean hasInvalidFields = !geometryInvalid.isEmpty();\n int width = context.getMap().getWidth();\n int height = context.getMap().getHeight();\n int oldbuffertop = oldBufferPosition.getLineY(0);\n int oldbuf...
"public static String[] indices(TableInfo tableInfo, WhereClause whereClause) {\n String[] indices;\n if (whereClause.noMatch()) {\n indices = org.elasticsearch.common.Strings.EMPTY_ARRAY;\n } else if (!tableInfo.isPartitioned()) {\n indices = new String[] { tableInfo.ident().esName() };\n } e...
"private void btnCancelActionPerformed(java.awt.event.ActionEvent evt) {\n try {\n if (!session.leaveTable(roomId, tableId)) {\n return;\n }\n } catch (Exception e) {\n logger.error(e);\n }\n closeDialog();\n}\n"
"protected int getModifiers(Member member) {\n ResolvedMember r = resolve(member);\n if (r == null)\n throw new BCException(\"String_Node_Str\" + member);\n return r.getModifiers();\n}\n"
"public Type getResultType(Validator validator, Exp[] args) {\n if (args.length == 0) {\n Dimension defaultTimeDimension = validator.getQuery().getCube().getTimeDimension();\n if (defaultTimeDimension == null) {\n throw MondrianResource.instance().NoTimeDimensionInCube.ex(getName());\n ...
"public static PoolConfiguration setPoolConfigPolicy(PersistenceUnitMetadata persistenceUnitMetadata, PoolConfiguration prop, Map<String, Object> puProperties) {\n Properties props = persistenceUnitMetadata.getProperties();\n String maxActivePerNode = null;\n String maxIdlePerNode = null;\n String minIdlePe...
"public void adjustTargets(Ability ability, Game game) {\n if (ability instanceof ConditionalTriggeredAbility) {\n for (Effect effect : ability.getEffects()) {\n if (effect instanceof DestroyTargetEffect) {\n Player attackedPlayer = game.getPlayer(effect.getTargetPointer().getFirst(g...
"public boolean inherits(ClassMemberInfo member, boolean checkInstanceOf) {\n ClassInfo cls = member.getClassInfo();\n if (checkInstanceOf && !isSubclassOf(cls)) {\n return false;\n }\n return canAccess(cls, member.getAccessType());\n}\n"
"public T near(double x, double y, boolean spherical) {\n return addGeoCrit(spherical ? FilterOperator.NEAR_SPHERE : FilterOperator.NEAR, new double[] { x, y }, null);\n}\n"
"private HttpResponse callService(String namespace, String app, String service, HttpMethod method, String endpoint) throws Exception {\n String serviceUrl = String.format(\"String_Node_Str\", app, service, endpoint);\n String versionedServiceUrl = getVersionedAPIPath(serviceUrl, Constants.Gateway.API_VERSION_3_TO...
"public DataSet<DataPosteriorAssignment> computePosteriorAssignment(List<Variable> latentVariables) {\n Attribute seq_id = this.dataFlink.getAttributes().getSeq_id();\n if (seq_id == null)\n throw new IllegalArgumentException(\"String_Node_Str\");\n try {\n Configuration config = new Configuratio...
"private static boolean hasJAXBAnnotation(Annotation[] annotations) {\n return getSomeJAXBAnnotation(annotations) != null;\n}\n"
"protected boolean isRemainingTermOnDelete() {\n return terms.size() <= 1 || !isNewTermEnabled();\n}\n"
"public final PostAggItem fieldAccess() throws RecognitionException {\n PostAggItem postAggItem = null;\n Token a = null;\n postAggItem = new PostAggItem(\"String_Node_Str\");\n try {\n {\n {\n a = (Token) match(input, ID, FOLLOW_ID_in_fieldAccess2309);\n int ...
"public void testIterator() throws InterruptedException {\n Map<Key, Collection<Value>> expectedValuesMap1 = collectData(generator1, INPUT_1_SIZE);\n Map<Key, Collection<Value>> expectedValuesMap2 = collectData(generator2, INPUT_2_SIZE);\n Map<Key, Collection<Match>> expectedMatchesMap = matchValues(expectedVa...
"private String getContentTypeHeader(final Map<String, List<String>> headers) {\n List<String> requestContentTypeList = headers.get(HttpHeaders.CONTENT_TYPE.toLowerCase(Locale.ENGLISH));\n String contentType = null;\n if (requestContentTypeList != null) {\n for (String requestContentType : requestConten...
"private boolean createSqlQuery(String dataFilterAsString, Indicator indicator) throws ParseException, AnalysisExecutionException {\n ModelElement analyzedElement = indicator.getAnalyzedElement();\n if (analyzedElement == null) {\n return traceError(\"String_Node_Str\" + indicator.getName());\n }\n T...
"public void draw(Batch batch, float alpha) {\n batch.setColor(Color.WHITE);\n final TextManagerUIStyle style = getStyle(subtitle);\n if (subtitle.type == Text.Type.TALK) {\n if (style.talkBubble != null) {\n float scale = DPIUtils.getTouchMinSize() / 4 / style.talkBubble.getMinHeight();\n ...
"private synchronized void buildApiClasses(Application app) {\n if (apiClasses == null) {\n apiClasses = new HashSet<>();\n if (app != null) {\n Set<Class<?>> classes = app.getClasses();\n if (classes != null) {\n final Class<?>[] template = {};\n add...
"public DocumentRevision[] createDocumentRevision(DocumentRevisionKey pOriginalDocRPK, String pTitle, String pDescription, String pWorkflowModelId, ACLUserEntry[] pACLUserEntries, ACLUserGroupEntry[] pACLUserGroupEntries, Map<String, Collection<String>> userRoleMapping, Map<String, Collection<String>> groupRoleMapping)...
"public boolean suck(IComputerAccess computer, IRobot robot) {\n World worldObj = robot.getWorld();\n Vec3 location = robot.getLocation();\n IInventory inventory = robot.getInventory();\n List<EntityItem> entities = worldObj.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getAABBPool().getAABB(locatio...
"private Bytes blockingFetchThrowable(long sizeLocation, long timeOutMs, final long transactionId, final long startTime) throws IOException {\n long timeoutTime = startTime + timeOutMs;\n for (; ; ) {\n if (clientChannel == null)\n clientChannel = lazyConnect(builder.timeoutMs(), builder.remoteA...
"protected ActionResult execute() throws EntityDoesNotExistException {\n String courseId = getRequestParamValue(Const.ParamsNames.COURSE_ID);\n String feedbackSessionName = getRequestParamValue(Const.ParamsNames.FEEDBACK_SESSION_NAME);\n InstructorAttributes instructorDetailForCourse = logic.getInstructorForGo...