content stringlengths 40 137k |
|---|
"public default double[] rowMeans() {\n int m = nrows();\n int n = ncols();\n double[] x = new double[m];\n for (int j = 0; j < n; j++) {\n for (int i = 0; i < m; i++) {\n x[i] += get(i, j);\n }\n }\n for (int i = 1; i < m; i++) {\n x[i] /= n;\n }\n return x;\n}\n... |
"private static void createRoles(final Configuration rodaConfig) throws GenericException {\n final Iterator<String> keys = rodaConfig.getKeys(\"String_Node_Str\");\n final Set<String> roles = new HashSet<>();\n while (keys.hasNext()) {\n roles.addAll(Arrays.asList(rodaConfig.getStringArray(keys.next()))... |
"public boolean isStriped() {\n return getStripingPolicy().getWidth() > 1;\n}\n"
|
"private static void writeUTF(DataOutputStream dos, String str) throws IOException {\n int strlen = str.length();\n int c = 0;\n int utflen = getBytesSize(str);\n dos.writeInt(utflen);\n int i = 0;\n for (; i < strlen; i++) {\n c = str.charAt(i);\n if (!((c >= 0x0001) && (c <= 0x007F)))\... |
"public void testZBar() throws KurentoMediaFrameworkException, InterruptedException {\n PlayerEndPoint player = mediaPipeline.createPlayerEndPoint(\"String_Node_Str\");\n ZBarFilter zbar = mediaPipeline.createZBarFilter();\n player.connect(zbar, KmsMediaType.VIDEO);\n final Semaphore sem = new Semaphore(0);... |
"private void minimizeToTray() {\n if (!SystemTray.isSupported()) {\n Mediator.getLogger(DaemonManager.class.getName()).log(Level.INFO, \"String_Node_Str\");\n return;\n }\n final PopupMenu popup = new PopupMenu();\n final TrayIcon trayIcon = new TrayIcon(Toolkit.getDefaultToolkit().getImage(\... |
"public boolean run(CommandLine cline) {\n if (!cline.hasOption(\"String_Node_Str\")) {\n setErrorMessage(\"String_Node_Str\");\n return false;\n }\n if (!cline.hasOption(\"String_Node_Str\")) {\n setErrorMessage(\"String_Node_Str\");\n return false;\n }\n String netfile = cli... |
"void startServer() {\n try {\n CassandraCli.cassandraSetUp();\n } catch (IOException e) {\n log.error(e.getMessage());\n } catch (TException e) {\n e.printStackTrace();\n } catch (InvalidRequestException e) {\n e.printStackTrace();\n } catch (UnavailableException e) {\n ... |
"protected String buildBookmarkAction(IAction action, IReportContext context) {\n if (action == null || context == null)\n return null;\n String baseURL = null;\n Object renderContext = getRenderContext(context);\n if (renderContext instanceof HTMLRenderContext) {\n baseURL = ((HTMLRenderConte... |
"public <T> T generateValue() {\n RandomFunction random = new RandomFunction(Integer.class, new Range(1, 9));\n Integer a = random.generateValue();\n Integer b = random.generateValue();\n Integer c = random.generateValue();\n Integer d = random.generateValue();\n Integer e = random.generateValue();\n ... |
"public static void main(String[] args) throws ConfigurationException, WikapidiaException {\n Options options = new Options();\n options.addOption(new DefaultOptionBuilder().withLongOpt(\"String_Node_Str\").withDescription(\"String_Node_Str\").create(\"String_Node_Str\"));\n options.addOption(new DefaultOption... |
"private synchronized void conditionallyUpdateTime() {\n if (doSetTimeNextQuery) {\n super.setTime(System.currentTimeMillis());\n doSetTimeNextQuery = false;\n }\n}\n"
|
"private StateMachine<ServiceConfiguration, Component.State, Component.Transition> buildStateMachine() {\n final TransitionAction<ServiceConfiguration> noop = Transitions.noop();\n return new StateMachineBuilder<ServiceConfiguration, State, Transition>(this.parent, State.PRIMORDIAL) {\n {\n in(S... |
"public boolean isItemValid(ItemStack itemStack) {\n return TileFarmer.isFeed(itemStack);\n}\n"
|
"public void render() {\n ShaderManager.getInstance().enableDefault();\n for (int i = 0; i < 2; i++) {\n if (i == 0) {\n glColorMask(false, false, false, false);\n } else {\n glColorMask(true, true, true, true);\n }\n for (BlockPosition gp : _gridPositions) {\n ... |
"public void setRelativePath(String relativePath) {\n this.relativePath = relativePath;\n validate();\n}\n"
|
"public void onLoadFinished(Loader<HashMap<String, List<Movie>>> arg0, HashMap<String, List<Movie>> data) {\n mRowsAdapter = new ArrayObjectAdapter(new ListRowPresenter());\n CardPresenter cardPresenter = new CardPresenter();\n int i = 0;\n for (Map.Entry<String, List<Movie>> entry : data.entrySet()) {\n ... |
"public void replaceVarWithPrefixedURI(String var, String uri) {\n SPARQL_Term subject;\n SPARQL_Property property;\n SPARQL_Value object;\n for (SPARQL_Triple triple : conditions) {\n subject = triple.getVariable();\n property = triple.getProperty();\n object = triple.getValue();\n ... |
"private static Series copyInstanceThis(Series src) {\n if (src == null) {\n return null;\n }\n SeriesImpl dest = new SeriesImpl();\n if (src.getLabel() != null) {\n dest.setLabel(LabelImpl.copyInstance(src.getLabel()));\n }\n if (src.getDataDefinition() != null) {\n EList<Query> ... |
"public void testListRecursive() {\n CachingFileManager fm = new CachingFileManager(CachingArchiveProvider.getDefault(), bCp, SourceLevelUtils.JDK1_8, false, true);\n Iterable<JavaFileObject> res = fm.list(StandardLocation.CLASS_PATH, \"String_Node_Str\", EnumSet.of(JavaFileObject.Kind.CLASS), true);\n assertE... |
"public final Function_argument_listContext function_argument_list() throws RecognitionException {\n Function_argument_listContext _localctx = new Function_argument_listContext(_ctx, getState());\n enterRule(_localctx, 84, RULE_function_argument_list);\n int _la;\n try {\n enterOuterAlt(_localctx, 1)... |
"public static VersionInfo fetchVersionInfo() {\n NetClient client = new NetClient();\n try {\n HttpResponse response = client.get(UPDATE_VERSION_FILE);\n int statusCode = response.getStatusLine().getStatusCode();\n if (App.DEBUG) {\n Log.d(TAG, \"String_Node_Str\" + statusCode);\n... |
"public void onTextChanged(CharSequence s, int start, int before, int count) {\n mEmailInput.setError(null);\n mIsSocialLogin = false;\n}\n"
|
"RowDeletor getRowDeletor(IThriftPool pool) {\n IThriftPool iThriftPool = pool;\n boolean success = false;\n while (!success) {\n if (iThriftPool != null) {\n Node[] nodes = ((CommonsBackedPool) iThriftPool).getCluster().getNodes();\n String host = nodes[0].getAddress();\n ... |
"public void sessionTest() {\n final AIConfiguration config = new AIConfiguration(getAccessToken(), getSubscriptionKey(), AIConfiguration.SupportedLanguages.English, AIConfiguration.RecognitionEngine.System);\n updateConfig(config);\n try {\n final AIDataService firstService = new AIDataService(Robolect... |
"public boolean evaluate(Graph graph, Edge edge) {\n if (edgeColumn != null) {\n Object obj = edge.getEdgeData().getAttributes().getValue(edgeColumn.getIndex());\n if (obj != null) {\n TimeInterval timeInterval = (TimeInterval) obj;\n min = Math.min(min, Double.isInfinite(timeInte... |
"private void progressCurrentAction() {\n progress += progressIncrease;\n if (progress >= 1) {\n setState(ENewMovableState.DOING_NOTHING);\n this.movableAction = EAction.NO_ACTION;\n }\n}\n"
|
"public void actionPerformed(ActionEvent e) {\n GameContext context = curAvatar.getAvatarCharacter().getContext();\n CharacterSteeringHelm helm = curAvatar.getAvatarCharacter().getContext().getSteering();\n helm.addTaskToTop(new GoTo(new Vector3f(0, 0, 0), context));\n helm.setEnable(true);\n}\n"
|
"public void createAppSettingBarControls(Composite composite) {\n GridLayout layout = new GridLayout(1, true);\n layout.verticalSpacing = 9;\n Label label = new Label(composite, SWT.NULL);\n label.setText(\"String_Node_Str\");\n m_appNameText = new Text(composite, SWT.BORDER | SWT.SINGLE);\n m_appName... |
"public int read(byte[] b, int off, int len) throws IOException {\n int value = in.read(b, off, len);\n if (value != -1) {\n partial += value;\n total += value;\n }\n return value;\n}\n"
|
"public void setMissing(Context ctx, boolean isMissing) {\n PreyConfig preyConfig = PreyConfig.getPreyConfig(ctx);\n HashMap<String, String> parameters = new HashMap<String, String>();\n parameters.put(\"String_Node_Str\", preyConfig.getApiKey());\n if (isMissing)\n parameters.put(\"String_Node_Str\"... |
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.my_space_fragment, container, false);\n}\n"
|
"private TransferEnvelopeReceiverList getReceiverList(final JobID jobID, final ChannelID sourceChannelID) {\n TransferEnvelopeReceiverList receiverList = this.receiverCache.get(sourceChannelID);\n if (receiverList == null) {\n try {\n while (true) {\n ConnectionInfoLookupResponse ... |
"public void testLogQueueNoDelay() throws Exception {\n logReceiver.setDelayMillis(0);\n BlockingQueue<DelayedLogEntry> queue = logReceiver.getLogQueue();\n final int numLogs = 5;\n Level[] levels = new Level[] { Level.FINEST, Level.FINE, Level.INFO, Level.WARNING, Level.SEVERE };\n Random random = new R... |
"protected void writeReportItem(DataOutputStream out, ReportItemDesign design) throws IOException {\n writeStyledElement(out, design);\n DimensionType x = design.getX();\n if (x != null) {\n IOUtil.writeShort(out, FIELD_X);\n writeDimension(out, x);\n }\n DimensionType y = design.getY();\n ... |
"public void writeStatement(MethodWriter writer) throws BytecodeException {\n if (this.action == null) {\n this.condition.writeStatement(writer);\n }\n org.objectweb.asm.Label startLabel = this.startLabel.target = new org.objectweb.asm.Label();\n org.objectweb.asm.Label endLabel = this.endLabel.targe... |
"public void attributeChanged(Attribute attribute) throws IllegalActionException {\n if ((attribute == width || attribute == xUnit || attribute == xInit) && plot != null) {\n super.attributeChanged(attribute);\n int widthValue = ((IntToken) width.getToken()).intValue();\n plot.setXRange(0.0, xUn... |
"public List<IRepositoryNode> getChildren() {\n afterGlobalFilter = new ArrayList<IRepositoryNode>();\n DatabaseConnection databaseConnection = getDatabaseConnection();\n if (databaseConnection != null) {\n EList<Package> dataPackage = databaseConnection.getDataPackage();\n if (dataPackage != nul... |
"public void getAutoCompleteContent(String searchValue, Map<String, String> resMap) {\n if (StringHelper.containsNonWhitespace(searchValue)) {\n String searchValueLower = searchValue.toLowerCase();\n for (BusinessGroup group : groupList) {\n if (group.getName() != null && group.getName().toL... |
"protected List<String> readString(String stringList) {\n if (stringList == null || \"String_Node_Str\".equals(stringList)) {\n return EMPTY_STRING_LIST;\n }\n ArrayList<String> result = new ArrayList<String>(50);\n for (String tmp : stringList.split(\"String_Node_Str\")) {\n if (tmp != null &... |
"public int update(final Uri uri, final ContentValues values, final String where, final String[] whereArgs) {\n Helpers.validateSelection(where, sAppReadableColumnsSet);\n SQLiteDatabase db = mOpenHelper.getWritableDatabase();\n int count;\n boolean startService = false;\n ContentValues filteredValues;\n... |
"public String onMessageReceived(String data) {\n EventMessage eventMessage = XMLConverUtil.convertToObject(EventMessage.class, data);\n if (eventMessage.getEvent() != null && eventMessage.getEvent().equals(\"String_Node_Str\")) {\n return new XMLTextMessage(eventMessage.getFromUserName(), eventMessage.get... |
"void onCall() {\n entries = new Entries(name, operation, predicate);\n}\n"
|
"public void call(String country) throws Exception {\n countInc();\n List<SimpleFeature> features = inputFeatureHandler(inputCollection, country, 0, WIKITYPE, countryState);\n writeQueue.add(features);\n writeToShpFile(outputFeatureSource, WIKITYPE, transaction, writeQueue.poll());\n ;\n}\n"
|
"private static List<ElementParameter> getParametersFromForm(IElement element, EComponentCategory category, ComponentProperties rootProperty, ComponentProperties compProperties, String parentPropertiesPath, Form form, Widget parentWidget, AtomicInteger lastRowNum) {\n List<ElementParameter> elementParameters = new A... |
"public int hashCode() {\n int hash = getClass().hashCode();\n hash += hash * 31 + JodaBeanUtils.hashCode(getForename());\n hash += hash * 31 + JodaBeanUtils.hashCode(getSurname());\n hash += hash * 31 + JodaBeanUtils.hashCode(getNumberOfCars());\n hash += hash * 31 + JodaBeanUtils.hashCode(getAddressLis... |
"private boolean maybeProcessDeclaration(NodeTraversal t, Node name, Node parent, NamedInfo info) {\n Node gramps = parent.getParent();\n switch(parent.getType()) {\n case Token.VAR:\n if (canMoveValue(collector, ref.getScope(), name.getFirstChild())) {\n return info.addDeclaratio... |
"public void testGetColumn1() {\n CwmZExpression<Double> exp = new CwmZExpression<Double>(SqlPredicate.EQUAL);\n String name = \"String_Node_Str\";\n TdColumn column = getColumn(name);\n TdTable table = getTable(tableName);\n column.setOwner(table);\n Double value = new Double(5.0);\n exp.setOperan... |
"private String getDateTime() {\n Calendar c = Calendar.getInstance();\n SimpleDateFormat sdf = new SimpleDateFormat(\"String_Node_Str\");\n return sdf.format(c.getTime());\n}\n"
|
"private static List getToCChildren(TOCNode node) {\n if (node.getChildren() == null)\n return null;\n List children = node.getChildren();\n List ret = new ArrayList();\n Iterator it = children.iterator();\n while (it.hasNext()) {\n TOCNode childNode = (TOCNode) it.next();\n ToC chil... |
"public float getValue(Point p) {\n float leftSide = getLeftSideValue(p);\n float diff = Math.abs(leftSide - constant);\n if (!isValid(leftSide, constant)) {\n diff = -diff;\n }\n return diff;\n}\n"
|
"public static void sendGrapplePacket(EntityPlayer player, int x, int y, int z) {\n ByteBuf buf = Unpooled.buffer();\n ByteBufOutputStream out = new ByteBufOutputStream(buf);\n try {\n out.writeByte(5);\n out.writeInt(player.worldObj.provider.dimensionId);\n out.writeInt(player.getEntityId... |
"public List<BillOfMaterial> getBillOfMaterialList(Product product) {\n return (List<BillOfMaterial>) BillOfMaterial.filter(\"String_Node_Str\", product).fetch();\n}\n"
|
"public byte[] doInTransform(Instrumentor instrumentor, ClassLoader classLoader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {\n try {\n logger.info(\"String_Node_Str\", classLoader);\n InstrumentClass testClass =... |
"public synchronized void updateDatabase(UploadAnswer answer) {\n if (answer.getErrorString().startsWith(\"String_Node_Str\")) {\n answer.setErrorString(answer.getErrorString().concat(\"String_Node_Str\"));\n }\n resultObj.setResultString(answer.getErrorString());\n resultObj.setState(answer.getUploa... |
"public static double binomialCoefficientDouble(final int n, final int k) {\n if (n < k) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (n < 0) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if ((n == k) || (k == 0)) {\n return 1d;\n }\n ... |
"private void saveCorners(Context context) {\n try {\n final File outFile = new File(context.getFilesDir(), \"String_Node_Str\");\n outFile.createNewFile();\n DataOutputStream writer = new DataOutputStream(new BufferedOutputStream(new GZIPOutputStream(new FileOutputStream(outFile))));\n f... |
"private HttpMethodBase createMethod(HttpClient client, Request request) throws IOException, FileNotFoundException {\n String methodName = request.getReqType();\n HttpMethodBase method = null;\n if (methodName.equalsIgnoreCase(\"String_Node_Str\") || methodName.equalsIgnoreCase(\"String_Node_Str\")) {\n ... |
"public void noargsTest() {\n Invocation invocation = new Invocation(\"String_Node_Str\");\n Operation op = xrService.getOperation(invocation.getName());\n Object result = op.invoke(xrService, invocation);\n assertNotNull(\"String_Node_Str\", result);\n Document doc = xmlPlatform.createDocument();\n X... |
"private void relabelGraphs2MultisetLabels(List<DirectedGraph<Vertex<String>, Edge<String>>> graphs, int startLabel, int currentLabel) {\n Map<String, Bucket<Vertex<String>>> bucketsV = new HashMap<String, Bucket<Vertex<String>>>();\n Map<String, Bucket<Edge<String>>> bucketsE = new HashMap<String, Bucket<Edge<St... |
"public Instruction nextInstruction(boolean blocking) throws GuacamoleException {\n try {\n do {\n if (usedLength > buffer.length / 2) {\n char[] newbuffer = new char[buffer.length * 2];\n System.arraycopy(newbuffer, 0, buffer, 0, usedLength);\n buffer =... |
"public void paste() {\n Clipboard clipboard = java.awt.Toolkit.getDefaultToolkit().getSystemClipboard();\n Transferable transferable = clipboard.getContents(this);\n GraphModel model = _getGraphModel();\n if (transferable == null)\n return;\n try {\n NamedObj container = (NamedObj) model.g... |
"public Document createDocument() throws XMLPlatformException {\n try {\n DocumentBuilder documentBuilder = getDocumentBuilderFactory().newDocumentBuilder();\n return documentBuilder.newDocument();\n } catch (Exception e) {\n throw XMLPlatformException.xmlPlatformCouldNotCreateDocument(e);\n ... |
"public synchronized void updateAccountInfo(final User u, final OAuthToken otoken) {\n if (DEBUG) {\n Log.d(\"String_Node_Str\", \"String_Node_Str\");\n }\n userId = u.id;\n userScreenName = u.screenName;\n Editor editor = sp.edit();\n editor.putString(getString(R.string.option_userid), u.id);\... |
"public void save(File baseDir, Set<WharfResolverMetadata> wharfResolverMetadatas) {\n File resolversFile = new File(baseDir, RESOLVERS_FILE_PATH);\n OutputStream stream = null;\n try {\n stream = new FileOutputStream(resolversFile);\n ObjectBuffer buffer = KryoFactory.createWharfResolverObjectBu... |
"private void addDelegates(CtClass target) throws NotFoundException, CannotCompileException {\n CtMethod[] modelMethods = modelClass.getDeclaredMethods();\n CtMethod[] targetMethods = target.getDeclaredMethods();\n for (CtMethod method : modelMethods) {\n if (Modifier.PRIVATE == method.getModifiers()) {... |
"public static MapRewritePolicy createPolicy(String mode, KeyValuePair[] pairs) {\n Mode op;\n if (mode == null) {\n op = Mode.Add;\n } else {\n op = Mode.valueOf(mode);\n if (op == null) {\n LOGGER.error(\"String_Node_Str\" + mode);\n return null;\n }\n }\n... |
"public boolean transferOutputs(IOPort port) throws IllegalActionException {\n boolean result = false;\n for (int i = 0; i < port.getWidthInside(); i++) {\n try {\n while (port.isKnownInside(i) && port.hasTokenInside(i)) {\n Token t = port.getInside(i);\n if (_isAss... |
"protected void runOneIteration() throws Exception {\n Log.debug(\"String_Node_Str\", reapFutures.size());\n if (reapFutures.size() < 1) {\n return;\n }\n for (Future<MetricResponse.Status> future : reapFutures) {\n try {\n Await.ready(future, Duration.parse(\"String_Node_Str\"));\n... |
"public void translateFromRow(Row row, Object entity) {\n byte[] rowKey = row.getKey();\n Object value = converter.convertFromNoSql(rowKey);\n ReflectionUtil.putFieldValue(entity, field, value);\n}\n"
|
"public Drawable getDrawable(String name, int density, boolean tileX, boolean tileY, int scaleToWidth, int scaleToHeight, boolean eternal, int forceDensity) {\n String densityPath = getPath(name, density);\n String commonPath = getPath(name);\n CacheableDrawable drawable = cache.get(densityPath + name);\n i... |
"private void extractVariables() {\n try {\n Attribute at = applicationRoot.attribute(Constants.APPLICATION_NAME_ATTRIBUTE);\n if (at != null) {\n nameWithNamePath = at.getText();\n String[] stlist = nameWithNamePath.split(\"String_Node_Str\");\n name = stlist[stlist.le... |
"public void addFolder(final String name) {\n ContentValues values = new ContentValues();\n values.put(DataContract.FoldersEntry.COLUMN_FOLDER_NAME, name);\n App.getAppContext().getContentResolver().insert(DataContract.FoldersEntry.CONTENT_URI, values);\n}\n"
|
"public ValidationErrors validate(Database database) {\n try {\n return customChange.validate(database);\n } catch (AbstractMethodError e) {\n return new ValidationErrors();\n }\n}\n"
|
"public static void addChecker(Check c) {\n checks.add(c);\n cB = new Phaser();\n cB.register();\n c.init(status, cB);\n}\n"
|
"public int run(String[] args) throws Exception {\n long startTime = System.currentTimeMillis() / 1000L;\n for (int i = 0; i < args.length; i++) {\n System.out.println(i + \"String_Node_Str\" + args[i]);\n }\n if (args.length < 2) {\n System.err.printf(\"String_Node_Str\" + \"String_Node_Str\"... |
"public String getClusterBalancerMap() {\n if (clusterContext == null) {\n return \"String_Node_Str\";\n }\n CollectionsFactory factory = clusterContext.getCollectionsFactory();\n Map<String, Collection<String>> balancers = factory.getMap(HttpBalancerService.BALANCER_MAP_NAME);\n if ((balancers ==... |
"public void setDate_created_gmt(long dateCreatedGmt) {\n this.dateCreatedGmt = dateCreatedGmt;\n}\n"
|
"public void formatTo(final StringBuilder buffer) {\n if (formattedMessage != null) {\n buffer.append(formattedMessage);\n } else {\n if (indices[0] < 0) {\n ParameterFormatter.formatMessage(buffer, messagePattern, argArray, usedCount);\n } else {\n ParameterFormatter.fo... |
"public SqlElasticPoolImpl withTags(Map<String, String> tags) {\n this.inner().withTags(new HashMap<>(tags));\n return this;\n}\n"
|
"public Response getJson(String subject, List<String> slabels, List<String> sAltLabels, String object, List<String> olabels, List<String> oAltLabels, String property, String from, String to, List<String> languages) {\n DefactoServer.log.log(Level.INFO, \"String_Node_Str\" + subject + \"String_Node_Str\" + property +... |
"public String methodBody() {\n if (_construct) {\n StringBuffer sb = new StringBuffer();\n if (_superParams > 0) {\n Iterator argsItr = _superArgs.listIterator();\n sb.append(ident + ident);\n sb.append(\"String_Node_Str\");\n for (int i = 0; i < _superParam... |
"public void testBoxedGetSet() {\n facet.set(0, 1, 3, Integer.valueOf(4));\n Assert.assertEquals(Integer.valueOf(4), facet.get(0, 1, 3));\n}\n"
|
"public FlowProvider createFlowProvider(String aDbId, final String aEntityId, String aSqlClause, final Fields aExpectedFields, Set<String> aReadRoles, Set<String> aWriteRoles) throws Exception {\n if (JAVASCRIPT_QUERY_CONTENTS.equals(aSqlClause)) {\n JSObject dataFeeder = createModule(aEntityId);\n if ... |
"public void initialize() throws IOException {\n SettingsManager settingsManager = SettingsManager.instance();\n String expectString;\n if (isOutgoing()) {\n _socket = new Socket(_host, _port);\n expectString = settingsManager.getConnectString();\n } else {\n expectString = settingsMana... |
"private boolean restoreRecentTaskLocked(TaskRecord task, int stackId) {\n if (stackId == INVALID_STACK_ID) {\n stackId = task.getLaunchStackId();\n } else if (stackId == DOCKED_STACK_ID && !task.canGoInDockedStack()) {\n stackId = FULLSCREEN_WORKSPACE_STACK_ID;\n }\n if (task.stack != null) {... |
"public void writeDataFormat(StyleEntry style) {\n if (style.getProperty(StyleConstant.DATA_TYPE_PROP) == Data.DATE && style.getProperty(StyleConstant.DATE_FORMAT_PROP) != null) {\n writer.openTag(\"String_Node_Str\");\n writer.attribute(\"String_Node_Str\", style.getProperty(StyleConstant.DATE_FORMAT_... |
"public DataSerializableFactory createFactory() {\n ConstructorFunction<Integer, IdentifiedDataSerializable>[] constructors = new ConstructorFunction[LEN];\n constructors[KEY_VALUE_SOURCE_MAP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {\n public IdentifiedDataSerializable createNew(I... |
"public final boolean isNumber() {\n return isSubtype(getNativeType(JSTypeNative.NUMBER_VALUE_OR_OBJECT_TYPE));\n}\n"
|
"public Node getCDATA(Node container) {\n int start = 0;\n int nested = 0;\n CDataState state = CDataState.INTERMEDIATE;\n int c;\n boolean isEmpty = true;\n boolean matches = false;\n boolean hasSrc = container.getAttrById(AttrId.SRC) != null;\n this.lines = this.in.getCurline();\n this.colu... |
"public static int ezlist(Player player, String[] args) {\n if (!player.canUseCommand(\"String_Node_Str\"))\n return EXIT_FAIL;\n if (!vMinecraftSettings.getInstance().cmdEzModo())\n return EXIT_FAIL;\n player.sendMessage(\"String_Node_Str\" + vMinecraftSettings.getInstance().ezModoList());\n ... |
"private void initColumnNames() {\n try {\n columns = ((DataSetEditor) this.getContainer()).getCurrentItemModel(true);\n if (columns != null) {\n columnExpressions = new String[columns.length];\n for (int n = 0; n < columns.length; n++) {\n columnExpressions[n] = co... |
"public void perform(final GraphRewrite event, EvaluationContext context) {\n ExecutionStatistics.get().begin(\"String_Node_Str\");\n try {\n WindupJavaConfigurationService windupJavaConfigurationService = new WindupJavaConfigurationService(event.getGraphContext());\n final WindupJavaConfigurationMo... |
"public synchronized boolean isValidWord(CharSequence word) {\n synchronized (mUpdatingLock) {\n if (mRequiresReload)\n startDictionaryLoadingTaskLocked();\n if (mUpdatingDictionary)\n return false;\n }\n return getWordFrequency(word) > -1;\n}\n"
|
"private void processEvents(NetData.NetMessage message) {\n boolean lagCompensated = false;\n PredictionSystem predictionSystem = CoreRegistry.get(PredictionSystem.class);\n for (NetData.EventMessage eventMessage : message.getEventList()) {\n Event event = eventSerializer.deserialize(eventMessage.getEve... |
"public List _getOpenContentPropertiesWithXMLRoots() {\n List returnList = new ArrayList();\n for (int i = 0, size = openContentProperties.size(); i < size; i++) {\n Property next = (Property) openContentProperties.get(i);\n XMLRoot root = new XMLRoot();\n String localName = ((SDOProperty) ne... |
"public List<EngineHostVO> findLostHosts(long timeout) {\n TransactionLegacy txn = TransactionLegacy.currentTxn();\n PreparedStatement pstmt = null;\n List<EngineHostVO> result = new ArrayList<EngineHostVO>();\n String sql = \"String_Node_Str\";\n try (PreparedStatement pstmt = txn.prepareStatement(sql))... |
"protected final void renderImpl(GLGraphics g, float w, float h) {\n g.save();\n switch(record.getLabel()) {\n case LEFT:\n w -= textWidth;\n g.move(textWidth, 0);\n break;\n case RIGHT:\n w -= textWidth;\n break;\n default:\n ... |
"void force() throws IOException {\n fileChannel.force(false);\n}\n"
|
"public boolean hasNextChild() {\n if (currentElement < totalElements) {\n return true;\n }\n if (endOfGroup) {\n return false;\n }\n while (!endOfGroup) {\n IResultSet rset = listingExecutor.getResultSet();\n GroupDesign groupDesign = (GroupDesign) getDesign();\n int e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.