content stringlengths 40 137k |
|---|
"private void addCommaCheckingFirst() {\n if (first.get(level) != Boolean.FALSE) {\n first.put(level, false);\n } else {\n writer.elementSeparator();\n }\n}\n"
|
"private void updateROCSelection(String classValue) {\n if (rocCombo.getItemCount() == 0) {\n return;\n }\n int index = 0;\n for (TableItem item : rocTable.getItems()) {\n if (item.getText(0).equals(classValue)) {\n rocTable.select(index);\n if (item.getData() != null) {\... |
"private Collection<ContentKey> queryKeys(DateTime time) {\n TimeQuery timeQuery = TimeQuery.builder().channelName(channel).startTime(time).unit(timedWebhook.getUnit()).stable(false).epoch(Epoch.IMMUTABLE).build();\n return channelService.queryByTime(timeQuery);\n}\n"
|
"private void updateMessageLine() {\n String errorMessage = validateName();\n if (errorMessage == null) {\n if (!isStatic() && columnChooser != null && columnChooser.getItemCount() == 0) {\n errorMessage = ERROR_MSG_NO_AVAILABLE_COLUMN;\n }\n if (defaultValue == null && (PARAM_CONT... |
"private void recarregaEnergiaAgente(Agente a) {\n a.ganhaEnergia(Constants.PONTO_ENERGIA_ENTREGA_TURNO);\n gastaEnergia(Constants.PONTO_ENERGIA_ENTREGA_TURNO);\n a.sinalizaRecebeuEnergia();\n System.out.println(\"String_Node_Str\" + getId() + \"String_Node_Str\" + a);\n}\n"
|
"public boolean register(Player theplayer, String password, String email, String ipAddress) throws IOException, SQLException {\n if (password.length() < Integer.parseInt(Config.password_minimum)) {\n Messages.sendMessage(Message.password_minimum, theplayer, null);\n return false;\n } else if (passwo... |
"public Object getValueAt(int rowIndex, int columnIndex) {\n switch(columnIndex) {\n case 0:\n return rowIndex + \"String_Node_Str\";\n case 1:\n return configuration.getBooleanProperty(getConfigParamKey(plugins.get(rowIndex)), false) ? JDLocale.L(\"String_Node_Str\", \"String_Nod... |
"private void initBcelWorld(IMessageHandler handler) throws IOException {\n List cp = buildConfig.getBootclasspath();\n cp.addAll(buildConfig.getClasspath());\n BcelWorld bcelWorld = new BcelWorld(cp, handler, null);\n bcelWorld.setBehaveInJava5Way(buildConfig.getBehaveInJava5Way());\n bcelWorld.setTarge... |
"private Text[] formatSnippets(List<Snippet> snippets) throws IOException {\n final SnippetFormatter formatter;\n if (getOption(\"String_Node_Str\", FALSE)) {\n formatter = new OffsetSnippetFormatter();\n } else if (getOption(OPTION_RETURN_DEBUG_GRAPH, false)) {\n formatter = new GraphvizSnippetF... |
"void showDirectoryPicker() {\n if (ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[] { Manifest.permission.READ_EXTERNAL_STORAGE }, REQUEST_CODE_PERMISSION_STORAGE);\n } else {\n Dire... |
"public void testGetRunes() {\n try {\n handler.getRuneList(ItemData.ALL);\n } catch (RequestException ex) {\n System.out.println(\"String_Node_Str\");\n ex.printStackTrace();\n }\n}\n"
|
"public void dropTable(String tableName) throws InterruptedException, IOException {\n if (Table.RECORD.name.equals(tableName)) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n HBaseAdmin hbaseAdmin = new HBaseAdmin(configuration);\n try {\n if (hbaseAdmin.tableExists(hbaseTab... |
"private static IType readType(String desc, int start, int end) {\n int array = 0;\n while (desc.charAt(start) == '[') {\n array++;\n start++;\n }\n switch(desc.charAt(start)) {\n case 'V':\n return Types.VOID.getArrayType(array);\n case 'Z':\n return Types.... |
"private double getMax(double[] a, int o, int l) {\n double r = 0;\n for (int i = o; i < o + l; i += 2) {\n if (Math.abs(a[i]) > r)\n r = a[i];\n }\n return r;\n}\n"
|
"protected synchronized void dialogChanged() {\n if (fileTextDirty) {\n rootfilePath = getRootFilename();\n if (\"String_Node_Str\".equals(rootfilePath)) {\n reportError(\"String_Node_Str\");\n return;\n } else if (!new File(rootfilePath).exists()) {\n reportWarn... |
"public void testJSONMarshalToOutputStream() throws Exception {\n getJSONMarshaller().setProperty(MarshallerProperties.MEDIA_TYPE, \"String_Node_Str\");\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n getJSONMarshaller().marshal(getWriteControlObject(), os);\n } catch (Exception e... |
"public StringBuilder visitType(TypeElement t, Void _) {\n ClassTree ct = trees.getTree(t);\n if (ct == null)\n return null;\n switch(t.getNestingKind()) {\n case ANONYMOUS:\n String binaryName = elements.getBinaryName(t).toString();\n int idx = binaryName.lastIndexOf('$');\... |
"public BlockRayBuilder direction(Vector3d direction) {\n checkState(this.direction == null, \"String_Node_Str\");\n checkNotNull(direction, \"String_Node_Str\");\n checkArgument(direction.lengthSquared() != 0, \"String_Node_Str\");\n this.direction = direction.normalize();\n return this;\n}\n"
|
"private String GetBin(long value, int nr_of_bits) {\n StringBuffer Bits = new StringBuffer();\n long mask = (1L << (nr_of_bits - 1));\n int count;\n if (nr_of_bits == 1)\n Bits.append(\"String_Node_Str\");\n else\n Bits.append(\"String_Node_Str\");\n for (count = 0; count < nr_of_bits; ... |
"private void addBipushInsn(MethodVisitor mv, int val) {\n switch(val) {\n case 0:\n mv.visitInsn(ICONST_0);\n break;\n case 1:\n mv.visitInsn(ICONST_1);\n break;\n case 2:\n mv.visitInsn(ICONST_2);\n break;\n case 3:\n ... |
"private void createNodeContainerList() {\n int firstIndex = 0;\n int index = 0;\n nodeContainerList = new ArrayList<NodeContainer>();\n connections = new ArrayList<IConnection>();\n createdNames = new ArrayList<String>();\n Map<String, String> oldNameTonewNameMap = new HashMap<String, String>();\n ... |
"public Map<String, Object> getContext(Template template, Model context) {\n if (template.getTemplateContext() == null) {\n return null;\n }\n return tcs.getContext(template.getTemplateContext(), bean);\n}\n"
|
"protected InvoiceLine createInvoiceLine() throws AxelorException {\n InvoiceLine invoiceLine = new InvoiceLine();\n invoiceLine.setInvoice(invoice);\n invoiceLine.setProduct(product);\n invoiceLine.setProductName(productName);\n invoiceLine.setDescription(description);\n invoiceLine.setPrice(price);\... |
"protected ArrayList<ElementLayout> createHeaderBarElements(DefaultBrickLayoutTemplate layoutTemplate) {\n ArrayList<ElementLayout> headerBarElements = new ArrayList<ElementLayout>();\n ElementLayout captionLayout = new ElementLayout(\"String_Node_Str\");\n captionLayout.setPixelSizeY(CAPTION_HEIGHT_PIXELS);\n... |
"private void testFactTableSaveAndLoad3(IDocumentManager documentManager) throws IOException, BirtException, DataException {\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] = ... |
"public void insertConversations(List<AVIMConversation> conversations) {\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n db.beginTransaction();\n for (AVIMConversation conversation : conversations) {\n ContentValues values = new ContentValues();\n values.put(COLUMN_ATTRIBUTE, JSON.toJSONS... |
"public void testProperties() throws IOException {\n Assert.assertEquals(400, addProperties(application).getResponseCode());\n Map<String, String> appProperties = ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n Assert.assertEquals(200, addProperties(applic... |
"public void popupMenuCanceled(PopupMenuEvent e) {\n if (hiddenWindow != null) {\n hiddenWindow.dispose();\n hiddenWindow = null;\n }\n}\n"
|
"public MeshBase clone() {\n MeshBase mesh = null;\n try {\n mesh = (MeshBase) super.clone();\n } catch (CloneNotSupportedException e) {\n throw new InternalErrorException(\"String_Node_Str\" + e);\n }\n mesh.myVertices = new ArrayList<Vertex3d>();\n for (int i = 0; i < myVertices.size()... |
"public void initGame() {\n _timerTicksPerSecond = Sys.getTimerResolution();\n _font1 = new TrueTypeFont(new Font(\"String_Node_Str\", Font.PLAIN, 12), true);\n ShaderManager.getInstance();\n glEnable(GL_CULL_FACE);\n glEnable(GL_DEPTH_TEST);\n glDepthFunc(GL_LEQUAL);\n glShadeModel(GL11.GL_SMOOTH)... |
"public void restoreState(Object[] state) {\n currentStateEventChunk = (ComplexEventChunk<StateEvent>) state[0];\n pendingStateEventList = (LinkedList<StateEvent>) state[1];\n newAndEveryStateEventList = (LinkedList<StateEvent>) state[2];\n}\n"
|
"protected String getLocalizedString(String resourceKey, String text) {\n if (context.getReport() == null || resourceKey == null) {\n return text;\n }\n String ret = context.getReport().getMessage(resourceKey, context.getLocale());\n if (ret == null || \"String_Node_Str\".equals(ret)) {\n logg... |
"protected void onDraw(Canvas c) {\n isBusy = true;\n c.concat(matrix0);\n c.save();\n drawGridLines(c, canvasWidth * gridDensity, canvasHeight * gridDensity);\n c.concat(matrix);\n c.drawPath(path, linePaint);\n if (xShift <= cursorX && cursorX <= xShift + canvasWidth / xZoom) {\n c.drawLin... |
"public Object removeIfSame(String name, Object key, Object value, long timeout, long txnId) {\n return txnalRemove(OP_CMAP_REMOVE_IF_SAME, name, key, value, timeout, txnId);\n}\n"
|
"public void addPages() {\n configureRolePage = new ConfigureRolePage();\n addPage(configureRolePage);\n}\n"
|
"public void testHistogramQueryFull() {\n final int NB_REQ = 10;\n List<Long> results = backend.histogramQuery(tStart, tEnd, NB_REQ);\n assertEquals(NB_REQ, results.size());\n long count = 0;\n for (long val : results) {\n count += val;\n }\n assertEquals(totalNbEvents, count);\n assertEq... |
"public void testJSONMarshalToStringWriter() throws Exception {\n getJSONMarshaller().setProperty(MarshallerProperties.MEDIA_TYPE, \"String_Node_Str\");\n StringWriter sw = new StringWriter();\n try {\n getJSONMarshaller().marshal(getWriteControlObject(), sw);\n } catch (Exception e) {\n asser... |
"public static RawLDBackendState getRawLDBackendState(SwordBookMetaData metadata) throws BookException {\n ensureNotShuttingDown();\n RawLDBackendState state = getInstance(metadata);\n if (state == null) {\n LOGGER.trace(\"String_Node_Str\", metadata.getInitials());\n return new RawLDBackendState... |
"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 scopedValue = _scope.get(functionName);\n if (!(sco... |
"public int runJob() throws Exception {\n Configuration conf = super.getConf();\n if (conf == null) {\n conf = new Configuration();\n setConf(conf);\n }\n PrimaryIndex inputPrimaryIndex = null;\n final CloseableIterator<Index<?, ?>> it1 = inputDataStoreOptions.createIndexStore().getIndices(... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n setContentView(R.layout.activity_draw_chart);\n mChart = (LineChart) findViewById(R.id.chart1);\n m... |
"static void compress(byte[] input, DataOutput out) throws IOException {\n Deflater deflater = new Deflater();\n deflater.setLevel(Deflater.DEFAULT_COMPRESSION);\n deflater.setStrategy(Deflater.FILTERED);\n deflater.setInput(input);\n deflater.finish();\n byte[] buf = new byte[COMPRESSION_BUFFER_LENGT... |
"public synchronized PostcodeResult lookupFull(String postcode) {\n if (service != null) {\n return service.lookupFull(postcode);\n }\n log.debug(\"String_Node_Str\", postcode);\n postcode = StringUtils.stripSpaces(postcode);\n int trimmedLength = postcode.length() - 3;\n if (trimmedLength < 2 ... |
"private void deregisterDependencyForJAR(final JarPackageFragmentRoot root) {\n Optional<IJavaProject> optionalJavaProject = getIJavaProjectForPackageFragmentRoot(root);\n if (!optionalJavaProject.isPresent()) {\n return;\n }\n IJavaProject javaProject = optionalJavaProject.get();\n if (isPartOfTh... |
"public void testOnTransactionRestored() throws Exception {\n final Set<Boolean> flags = new HashSet<Boolean>();\n final IBillingObserver observer = new MockBillingObserver() {\n\n public void onTransactionsRestored() {\n flags.add(true);\n }\n public void onPurchaseIntent(String i... |
"public static Operations retrieveFilterOperation(Operator operator, boolean indexed) {\n Operations operation = null;\n switch(operator) {\n case EQ:\n if (indexed)\n operations.add(Operations.FILTER_INDEXED_EQ);\n else\n operations.add(Operations.FILTER... |
"private static Context getContext() {\n Context context = null;\n try {\n Class<?> cam = Class.forName(\"String_Node_Str\");\n Object am = cam.getMethod(\"String_Node_Str\").invoke(null);\n if (am != null) {\n Field contextField = cam.getDeclaredField(\"String_Node_Str\");\n ... |
"private List<TimedEvent> _getNextEventsToFire() throws IllegalActionException {\n List<TimedEvent> events = new LinkedList<TimedEvent>();\n for (Actor actor : _eventQueues.keySet()) {\n TreeSet<Time> set = _eventQueues.get(actor);\n for (TimedEvent event : _eventsInExecution) {\n if (eve... |
"private void creatNewExpressLine(RegularExpression regularExpress) {\n final Composite expressComp = new Composite(componentsComp, SWT.NONE);\n expressComp.setLayout(new GridLayout(10, false));\n final CCombo combo = new CCombo(expressComp, SWT.BORDER);\n combo.setEditable(false);\n combo.setItems(remai... |
"public boolean isExportedMethod(JMethod method) {\n return isInteropEnabled() && method.getExportName() != null && !method.isNoExport();\n}\n"
|
"public static void setCurrentChattingConvid(String currentChattingConvid) {\n ChatManager.currentChattingConvid = currentChattingConvid;\n}\n"
|
"public int getStrLen(int col) {\n return colA(col).getInt(colB(col).getLong(recordIndex * 8));\n}\n"
|
"private static String getMeasurement() {\n final String audibleMode = prefs.getString(\"String_Node_Str\", \"String_Node_Str\");\n final float min = prefs.getFloat(\"String_Node_Str\", 60f);\n final float max = prefs.getFloat(\"String_Node_Str\", 120f);\n String measurement = \"String_Node_Str\";\n swit... |
"private static byte[] getDEREncodedSignature(byte[] signatureValue) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n byte[] r = new byte[32];\n byte[] s = new byte[32];\n try {\n System.arraycopy(rawSignatureValue, 0, r, 0, 32);\n System.arraycopy(rawSignatureValue, 32, s, 0, 3... |
"public void wander() {\n PrioritySteering<Vector2> prioritySteering = new PrioritySteering(this, 0.0001f);\n RaycastCollisionDetector<Vector2> raycastCollisionDetector = new CreatureRayCastCollisionDetector(worldState);\n RaycastObstacleAvoidance<Vector2> raycastObstacleAvoidanceSB = new RaycastObstacleAvoida... |
"public void addSheetsParameters() {\n if (Boolean.toString(excelBean.isSelectAllSheets()) != null) {\n IElementParameter param = this.getElementParameter(\"String_Node_Str\");\n if (param != null) {\n param.setValue(Boolean.toString(excelBean.isSelectAllSheets()));\n }\n }\n Ar... |
"public void readLocked() {\n if (mFile == null) {\n Slog.w(\"String_Node_Str\", \"String_Node_Str\");\n return;\n }\n mUidStats.clear();\n try {\n File file = mFile.chooseForRead();\n if (!file.exists()) {\n return;\n }\n FileInputStream stream = new Fil... |
"public static ArrayList<Point3f>[] getClassCoordinates(ImagePlus labelImage, ImagePlus mask) {\n final ArrayList<Point3f>[] classPoints = new ArrayList[2];\n classPoints[0] = new ArrayList<Point3f>();\n classPoints[1] = new ArrayList<Point3f>();\n final int width = labelImage.getWidth();\n final int hei... |
"public static void identifyUnconstrainedNegativeBinomialPoints(SAMFileReader sfr, String chr, int start, int end, int maxBins, int binSize, int minCP, Strandedness strandedness, boolean isNegativeStrand, double alpha_0, double beta_0, int nb_r, int r, double p, double min_fold, int confidence_interval, GTFWriter gw) {... |
"public void appendAgentInfo(NodeList nodeList, LinkDataDuplexMap linkDataDuplexMap, AgentInfoService agentInfoService) {\n for (Node node : nodeList.getNodeList()) {\n appendServerInfo(node, linkDataDuplexMap, agentInfoPopulator);\n }\n}\n"
|
"public void setup() throws Exception {\n synchronized (GeoWaveITRunner.MUTEX) {\n if (jettyServer == null) {\n try {\n jettyServer = new Server();\n final SocketConnector conn = new SocketConnector();\n conn.setPort(JETTY_PORT);\n conn.se... |
"public synchronized void internalShutdown() {\n msgLog.logMessage(\"String_Node_Str\" + machineId + \"String_Node_Str\" + this, true);\n if (this.updatePuller != null) {\n msgLog.logMessage(\"String_Node_Str\");\n this.updatePuller.shutdown();\n msgLog.logMessage(\"String_Node_Str\");\n ... |
"void mapReferencesFromDBObject(BasicDBObject dbObject, MappedField mf, Object entity) {\n String name = mf.getName();\n Class fieldType = mf.getType();\n try {\n if (mf.isMap()) {\n Class referenceObjClass = mf.getSubType();\n Map map = (Map) tryConstructor(HashMap.class, mf.getCT... |
"public String diff(String fromRevisionId, String toRevisionId, String path, int depth) throws MicroKernelException {\n if (fromRevisionId.equals(toRevisionId)) {\n return \"String_Node_Str\";\n }\n if (true) {\n return \"String_Node_Str\";\n }\n if (depth != 0) {\n throw new MicroKe... |
"public void updatePortProfile(String name, SwitchPortMode mode, List<Pair<VsmCommand.OperationType, String>> params) throws CloudRuntimeException {\n String command = VsmCommand.getUpdatePortProfile(name, mode, params);\n if (command != null) {\n command = command.concat(SSH_NETCONF_TERMINATOR);\n ... |
"public static void main(String[] args) throws ClassNotFoundException, SQLException, IOException, ConfigurationException, WikapidiaException, DaoException {\n Options options = new Options();\n options.addOption(new DefaultOptionBuilder().hasArg().withLongOpt(\"String_Node_Str\").withDescription(\"String_Node_Str... |
"public JailCell getEmptyCell() {\n for (JailCell c : cells) {\n if (c.getPlayerName() == null || c.getPlayerName().trim().equals(\"String_Node_Str\") || !Jail.prisoners.containsKey(c.getPlayerName())) {\n return c;\n }\n }\n return null;\n}\n"
|
"protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n if (!drawHint || TextUtils.isEmpty(hint)) {\n return;\n }\n final float y = ((float) canvas.getHeight() + bounds.height()) / 2;\n final float max = ((float) canvas.getWidth() - bounds.width()) / 2;\n final float min = padding;\n ... |
"public void writeChar(int v) throws IOException {\n if (position < this.end - 1) {\n this.memory[position++] = (byte) ((v >> 8) & 0xff);\n this.memory[position++] = (byte) ((v >> 0) & 0xff);\n } else {\n throw new EOFException();\n }\n}\n"
|
"private void handleActionCreateKey(Intent intent) {\n ActionBarHelper.setDoneCancelView(getSupportActionBar(), R.string.btn_save, new View.OnClickListener() {\n public void onClick(View v) {\n saveClicked();\n }\n }, R.string.btn_do_not_save, new View.OnClickListener() {\n public ... |
"IQueryResults executeQuery(IQueryDefinition queryDefn, Iterator paramBindingIt, Iterator filterIt, Iterator bindingIt, boolean keepDataSetFilter, boolean disAllowAggregation) throws BirtException {\n defineDataSourceDataSet(queryDefn, keepDataSetFilter, disAllowAggregation);\n populateQueryDefn(queryDefn, paramB... |
"private void notifyAttributeUpdate(String attributeEvent, Bundle extrasBundle) {\n if (observersList.isEmpty())\n return;\n if (attributeEvent != null) {\n for (IObserver observer : observersList) {\n try {\n observer.onAttributeUpdated(attributeEvent, extrasBundle);\n ... |
"private void updateSlicePart(ListPartsResult listPartsResult) {\n if (listPartsResult != null && listPartsResult.listParts != null) {\n List<ListParts.Part> parts = listPartsResult.listParts.parts;\n if (parts != null) {\n for (ListParts.Part part : parts) {\n if (partStructM... |
"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... |
"protected void resolve() {\n StackObject top = null;\n try {\n top = state.getStack().peek();\n top.resolve(this);\n } finally {\n if (top != null) {\n state.getStack().remove(top);\n while (state.hasSimultaneousEvents()) {\n state.handleSimultaneousEv... |
"public final EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map map) {\n synchronized (this) {\n try {\n EntityManagerFactory emf = new EntityManagerFactoryImpl(info, map);\n return emf;\n } catch (PersistenceUnitConfigurationException pcex) {\... |
"public void testBetween() throws Exception {\n FilterDescriptor idFilter = new FilterDescriptor(FilterCondition.AND, \"String_Node_Str\", FilterOperator.BETWEEN, new int[] { 2, 4 });\n Map<String, Object> queryParams = MybatisQueryProvider.getWhereQueryParamMap(ProductView.class, \"String_Node_Str\", idFilter);\... |
"public int size() {\n int s = 0;\n s += VarInt.sizeOf(index);\n s += 8;\n s += Utils.sizeOfInt48();\n s += Utils.sizeOfNulsData(p2PKHScript);\n return s;\n}\n"
|
"public void pushActorDeclaration(String actorName) throws PtalonScopeException {\n String uniqueName = _uniqueSymbol(actorName);\n if (_currentActorTree == null) {\n _currentActorTree = new ActorTree(null, uniqueName);\n _trees.add(_currentActorTree);\n } else {\n _currentTree = _currentT... |
"public static String mergePaths(String... items) {\n StringBuilder result = new StringBuilder();\n for (String item : items) {\n boolean trimThisMerge = result.length() > 0 && !result.toString().endsWith(\"String_Node_Str\") && !result.toString().endsWith(\"String_Node_Str\") && !result.toString().endsWit... |
"public Domain getUserDomian() {\n if (getBinsData() != null) {\n List<SliceEntity> tableData = (List<SliceEntity>) getBinsData();\n Domain userDomain = DomainHelper.createDomain(\"String_Node_Str\");\n for (SliceEntity entity : tableData) {\n try {\n double min = Doubl... |
"public View getVisibleKeyboardView() {\n if (isShowingEmojiPalettes()) {\n return mEmojiPalettesView;\n }\n return mKeyboardView;\n}\n"
|
"public void transformBlock(World world, Random random, Phase phase, BlockCoord coord, Block sourceBlock, int sourceMetadata) {\n BiomeGenBase biome = world.getBiomeGenForCoords(coord.x, coord.z);\n Block topBlock = biome.topBlock != null ? biome.topBlock : Blocks.air;\n Block fillerBlock = biome.fillerBlock !... |
"private ProtocolProviderService installAccount(ProtocolProviderFactory providerFactory, String userName, String passwd) throws OperationFailedException {\n HashMap<String, String> accountProperties = new HashMap<String, String>();\n accountProperties.put(ProtocolProviderFactory.PROTOCOL, getProtocol());\n Str... |
"public void openFile(String filename) {\n currentFileName = ctx.getHomeDirectory().getAbsolutePath() + \"String_Node_Str\" + filename + \"String_Node_Str\";\n String text = new String();\n String str;\n try {\n BufferedReader in = new BufferedReader(new FileReader(currentFileName));\n try {\n... |
"public static String getWindowsTheme() {\n String classic = \"String_Node_Str\";\n String xp = \"String_Node_Str\";\n String themeActiveKey = \"String_Node_Str\";\n Boolean themeActive = (Boolean) java.awt.Toolkit.getDefaultToolkit().getDesktopProperty(themeActiveKey);\n if (themeActive == null)\n ... |
"protected DispositionSchedule checkDispositionActionExecutionValidity(NodeRef nodeRef, NodeRef nextDispositionActionNodeRef, boolean throwError) {\n DispositionSchedule di = dispositionService.getDispositionSchedule(nodeRef);\n if (di == null) {\n if (throwError) {\n throw new AlfrescoRuntimeEx... |
"private void prepareLevels(QueryDefinition query, TabularHierarchyHandle hierHandle, List metaList) throws AdapterException {\n try {\n List levels = hierHandle.getContents(TabularHierarchyHandle.LEVELS_PROP);\n for (int j = 0; j < levels.size(); j++) {\n TabularLevelHandle level = (Tabular... |
"public void run() {\n XMLReader xr;\n try {\n xr = new SAXParser();\n xr.setContentHandler(this);\n xr.setErrorHandler(this);\n URL url = null;\n Reader file = null;\n try {\n File f = new File(xmlFile);\n url = f.toURL();\n file = new In... |
"protected void init() throws BirtException {\n if (PropertyUtil.isInlineElement(image)) {\n root = new ImageInlineContainer(parent, context, image);\n } else {\n root = new ImageBlockContainer(parent, context, image);\n }\n root.initialize();\n root.setAllocatedWidth(parent.getMaxAvaWidth(... |
"public ComponentInstance newGravityChannel(String id, String uri, String context) {\n try {\n Dictionary properties = new Hashtable();\n properties.put(\"String_Node_Str\", id);\n properties.put(\"String_Node_Str\", context);\n properties.put(\"String_Node_Str\", \"String_Node_Str\");\n ... |
"protected Command createComboCommand(CCombo combo) {\n IMetadataTable repositoryMetadata = null;\n String fullParamName = (String) combo.getData(PARAMETER_NAME);\n IElementParameter switchParam = elem.getElementParameter(EParameterName.REPOSITORY_ALLOW_AUTO_SWITCH.getName());\n String value = new String(\"... |
"public ExploreService get() {\n File hiveDataDir = new File(cConf.get(Constants.Explore.LOCAL_DATA_DIR));\n File defaultScratchDir = new File(hiveDataDir, cConf.get(Constants.AppFabric.TEMP_DIR));\n if (System.getProperty(HiveConf.ConfVars.SCRATCHDIR.toString()) == null) {\n System.setProperty(HiveConf... |
"public boolean updateProperty(SqlgElement sqlgElement, String key, Object value) {\n SchemaTable schemaTable = SchemaTable.of(sqlgElement.getSchema(), sqlgElement.getTable());\n if (Vertex.class.isAssignableFrom(sqlgElement.getClass())) {\n Pair<SortedSet<String>, Map<SqlgVertex, Map<String, Object>>> tri... |
"public static void render404() {\n sendError(HttpServletResponse.SC_NOT_FOUND, \"String_Node_Str\");\n}\n"
|
"private T getTileFromCache(final String k, final MrsTileReader<T> reader, TileIdWritable id) {\n if (!tilecache.containsKey(k)) {\n tilecache.put(k, new LRUMap(4));\n }\n Map<TileIdWritable, T> cache = tilecache.get(k);\n if (cache.containsKey(id)) {\n System.err.println(\"String_Node_Str\" +... |
"public void run() {\n while (true) {\n System.out.println(\"String_Node_Str\");\n try {\n while (stillLive(survey)) {\n Record record = ResponseManager.getRecord(survey);\n for (HIT hit : record.getAllHITs()) {\n String hitid = hit.getHITId()... |
"public int multiplyExperience(int originalExperience, int entityAmount) {\n int newExperience;\n if (sm.config.getCustomConfig().isDouble(\"String_Node_Str\")) {\n Algorithm algorithm = Algorithm.valueOf(sm.config.getCustomConfig().getString(\"String_Node_Str\"));\n if (algorithm == LEGACY) {\n ... |
"public PreparedStatement request() {\n try {\n return new SoarPreparedStatement(db.prepareStatement(sql), sql);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return null;\n}\n"
|
"public boolean handleResponse(List<RatingItem> ratings) {\n Cursor episodes = getContentResolver().query(Episodes.EPISODES, new String[] { EpisodeColumns.ID }, EpisodeColumns.RATED_AT + \"String_Node_Str\", null, null);\n List<Long> episodeIds = new ArrayList<>();\n while (episodes.moveToNext()) {\n fi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.