content stringlengths 40 137k |
|---|
"private ReturnValue inject(RunInfo run) throws Exception {\n int sequencerRunAccession = createRun(run);\n Set<LaneInfo> lanes = run.getLanes();\n List<Lane> existingLanes = metadata.getLanesFrom(sequencerRunAccession);\n if (existingLanes != null && !existingLanes.isEmpty()) {\n Boolean yorn = Cons... |
"public void sendPrivateMessage(String message) throws XMPPException, SmackException.NotConnectedException {\n QBChatMessage chatMessage = getQBChatMessage(message);\n privateChat.sendMessage(chatMessage);\n String roomJidId = opponentId + Consts.EMPTY_STRING;\n String attachUrl = Consts.EMPTY_STRING;\n ... |
"public void setDisabled(boolean disabled) {\n this.disabled = disabled;\n if (label != null) {\n if (!label.isDisposed()) {\n label.setEnabled(!disabled);\n }\n } else {\n cLabel.setEnabled(!disabled);\n }\n}\n"
|
"private static Sound precisionFilter(Sound sound, float percent) {\n float total = 100;\n if (percent == total) {\n return new Sound(sound.getSamples(), sound.getNbBytesPerFrame());\n }\n float nbSamples = sound.getSamples().length;\n float nbFiltered = percent / total * nbSamples;\n float inc... |
"public static List<DirectMessage> parseMessges(JSONArray a, int type) throws ApiException {\n if (a == null) {\n return null;\n }\n List<DirectMessage> dms = new ArrayList<DirectMessage>();\n try {\n for (int i = 0; i < a.length(); i++) {\n JSONObject o = a.getJSONObject(i);\n ... |
"private int getPeerBlocksToGet() {\n int chainHeight = (int) conn.getVersionMessage().bestHeight;\n if (chainHeight <= 0) {\n return -1;\n }\n int blocksToGet = chainHeight - blockChain.getChainHead().getHeight();\n return blocksToGet;\n}\n"
|
"public void finishAndRemoveTask() {\n checkCaller();\n synchronized (ActivityManagerService.this) {\n long origId = Binder.clearCallingIdentity();\n try {\n if (!removeTaskByIdLocked(mTaskId, false)) {\n throw new IllegalArgumentException(\"String_Node_Str\" + mTaskId);\n ... |
"public void load() {\n if (getDescriptorProvider() instanceof UnitPropertyDescriptorProvider) {\n deMeasureValue = ((UnitPropertyDescriptorProvider) getDescriptorProvider()).getMeasureValue();\n if (deMeasureValue == null)\n deMeasureValue = \"String_Node_Str\";\n if (!deMeasureValue... |
"private boolean filterRepositoryNode(TreeObject node) {\n if (node == null) {\n return false;\n }\n if (node.getType() == TreeObject.SUBSCRIPTION_ENGINE || node.getType() == TreeObject.SERVICE_CONFIGURATION || node.getType() == TreeObject.RESOURCES || node.getType() == TreeObject.WORKFLOW || node.getTy... |
"public static Type unpackedType(Typed t) {\n Type type = stripRefs(t.type());\n if (Types.isContainer(type) || Types.isContainerLocal(type)) {\n return unpackedContainerType(type);\n } else if (Types.isStruct(type) || Types.isStructLocal(type)) {\n return unpackedStructType((StructType) type);\n... |
"public Map getMinecartData(IComputerAccess computer, ISensorEnvironment env, int minecartId) {\n ArrayList<Integer> surroundingCarts = getMinecartIds(computer, env);\n if (surroundingCarts.contains(minecartId)) {\n Entity cart = env.getWorld().getEntityByID(minecartId);\n return EntityUtils.entityT... |
"protected void adaptFormToEditable() {\n super.adaptFormToEditable();\n loopTableEditorView.setReadOnly(isContextMode());\n this.fieldsTableEditorView.setReadOnly(false);\n}\n"
|
"private static Injector createInjector(CConfiguration cConf, Configuration hConf) {\n MapReduceContextConfig mapReduceContextConfig = new MapReduceContextConfig(hConf);\n Arguments arguments = mapReduceContextConfig.getProgramOptions().getArguments();\n String principal = arguments.getOption(ProgramOptionCons... |
"public boolean dispatchKeyEvent(KeyEvent event) {\n if (actionMode != null && event.getKeyCode() == KeyEvent.KEYCODE_BACK) {\n closeActionModeWithRedirect(true);\n return true;\n } else {\n isNeedToCloseWithoutRedirect = false;\n }\n return super.dispatchKeyEvent(event);\n}\n"
|
"private ETLBatchConfig convertBatchConfig(int minorVersion, String configStr, UpgradeContext upgradeContext) {\n UpgradeableConfig config;\n if (majorVersion == 3 && minorVersion == 2) {\n config = GSON.fromJson(configStr, co.cask.cdap.etl.proto.v0.ETLBatchConfig.class);\n } else if (minorVersion == 3)... |
"private Expression opargToExpr(Oparg in) {\n switch(in.getType()) {\n case INTVAL:\n return new LiteralInt(in.getIntLit());\n case BOOLVAL:\n return new LiteralInt(in.getBoolLit() ? 1 : 0);\n case STRINGVAL:\n return new TclString(in.getStringLit(), true);\n ... |
"public static Map getProperties(Object target) throws PropertyException {\n Map properties = new HashMap();\n Class clazz = target.getClass();\n Method[] methods = clazz.getMethods();\n for (int i = 0; i < methods.length; i++) {\n Method method = methods[i];\n String name = method.getName();\... |
"private static void applyLinkParameter(LinkParameter parameter, Map<String, Object> linkParameters) {\n String parameterName = parameter.name();\n if (parameterName == null || parameterName.isEmpty()) {\n parameterName = UNKNOWN_ELEMENT_NAME;\n }\n Object model = linkParameters.get(parameterName);\n... |
"public void setUp() throws Exception {\n lastContentPath = new LastContentPath(curator);\n}\n"
|
"public static GraphicalViewer getViewer(FigureCanvas figureCanvas) {\n Composite parent = figureCanvas;\n while (parent != null && !(parent.getData(Startup.TEST_GEF_VIEWER_DATA_KEY) instanceof GraphicalViewer)) {\n parent = parent.getParent();\n }\n if (parent != null) {\n return (GraphicalVi... |
"private List<UtilizationValue> getOpeningBalances(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 ArrayLis... |
"private BufferedImage decodeStrippedTiff(IFD ifd) throws Exception {\n TiffField<?> field = ifd.getField(TiffTag.COMPRESSION.getValue());\n short[] data = new short[] { 1 };\n if (field != null)\n data = (short[]) field.getData();\n TiffFieldEnum.Compression compression = TiffFieldEnum.Compression.f... |
"public void partClosed(IWorkbenchPartReference partRef) {\n IWorkbenchPart part = partRef.getPart(false);\n if (part != null && part instanceof ICEFormEditor) {\n ICEFormEditor activeEditor = (ICEFormEditor) partRef.getPart(false);\n if (activeEditor == editor) {\n setActiveEditor(null);... |
"public void testFutureMonitorDecreasing() {\n Monitor subMonitor = createDecreasingTestMonitor(10, 1);\n Monitor future = new FutureMonitor(EMPTY_PROPERTY, subMonitor, new TimeInterval(2, 4, IntervalBoundaryType.CLOSED), Collections.EMPTY_LIST);\n Monitor expected = createTestMonitor(7, 6, 5, 4, 3, 2);\n a... |
"public void reduce(Iterator<PactRecord> dataPoints, Collector out) {\n PactRecord next = null;\n CoordVector coordinates = new CoordVector();\n double[] coordinateSum = null;\n int count = 0;\n while (dataPoints.hasNext()) {\n next = dataPoints.next();\n double[] thisCoords = next.getField... |
"public final void parameters(final String[] par, final SnipeData v) {\n if (par.length == 0 || par[0].equalsIgnoreCase(\"String_Node_Str\")) {\n v.sendMessage(TextColors.AQUA, \"String_Node_Str\");\n StringBuilder types = new StringBuilder();\n for (EntityType type : Sponge.getRegistry().getAll... |
"protected void readLine(String line, DeckCardLists deckList) {\n if (line.length() == 0 || line.startsWith(\"String_Node_Str\")) {\n return;\n }\n boolean sideboard = false;\n if (line.startsWith(\"String_Node_Str\")) {\n line = line.substring(3).trim();\n sideboard = true;\n }\n ... |
"protected static void logEdgeScore(Edge e, double score) {\n if (LOGGER.isDebugEnabled())\n LOGGER.debug(String.format(\"String_Node_Str\", type(), Graphs.edgeToString(e), score));\n}\n"
|
"public double percentFloating() {\n RailInfo buildInfo = new RailInfo(getPos(), getWorld(), getFacing().getOpposite(), getType(), getDirection(), getLength(), getRotationQuarter(), getTurnQuarters(), getGauge(), getPlacementPosition(), getRailBed(), ItemStack.EMPTY, switchState);\n List<TrackBase> tracks = build... |
"public void onPostInit(FMLPostInitializationEvent event) {\n FluidHelper.init();\n Abilities.init();\n new VanillaTestSuite().build().save();\n new EETestSuite().build().save();\n}\n"
|
"public HilightedTextWriter toString(HilightedTextWriter writer, ConstantPool constants, HashMap<Integer, String> localRegNames, List<String> fullyQualifiedNames) {\n hilight(\"String_Node_Str\", writer);\n int idx = writer.getLength();\n object.toString(writer, constants, localRegNames, fullyQualifiedNames);\... |
"private ContentPacketExtension createContentPacketExtension(MediaType mediaType, JireconSessionInfo sessionInfo, JireconRecorderInfo recorderInfo, JireconTransportManager transportManager, JireconSrtpControlManager srtpControlManager) {\n logger.debug(this.getClass() + \"String_Node_Str\");\n IceUdpTransportPack... |
"public static void main(String[] args) {\n String inputString = \"String_Node_Str\";\n IDTypeParsingRules idTypeParsingRules = new IDTypeParsingRules();\n idTypeParsingRules.setSubStringExpression(TCGATestDataXMLGenerator.TCGA_ID_SUBSTRING_REGEX);\n String outputString = TabularDataParser.convertID(inputSt... |
"public double[] extract(Observation o) {\n double[] inputs = new double[numFeatures()];\n int[] worldState = new int[worldWidth * worldHeight];\n System.arraycopy(o.intArray, 0, worldState, 0, worldWidth * worldHeight);\n int in = 0;\n double holes = 0;\n int firstHeightIndex = in;\n double maxHei... |
"public boolean classEquals(IType type) {\n if (!type.isArrayType()) {\n return false;\n }\n IType elementType = type.getElementType();\n return this.type.classEquals(elementType) && this.type.isPrimitive() == elementType.isPrimitive();\n}\n"
|
"public void setOnselect(final String select) {\n if (table != null) {\n table.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\n\n public void valueChanged(ListSelectionEvent event) {\n if (event.getValueIsAdjusting() == true) {\n return;\n ... |
"public org.hl7.fhir.dstu2.model.Contract.LegalLanguageComponent convertLegalLanguageComponent(org.hl7.fhir.dstu3.model.Contract.LegalLanguageComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Contract.LegalLanguageComponent tgt = new org.hl7... |
"public Object getBackPageIdentifier() {\n return null;\n}\n"
|
"private static boolean parse(XmlInputReader reader, XmlInputObject context, String name) throws InputException {\n char character;\n int i;\n String n;\n XmlInputObject subContext;\n String string;\n Object token;\n token = reader.nextToken();\n if (BANG.equals(token)) {\n character = re... |
"private TestSuites getTestSuites(File report) {\n InputStream inputStream = null;\n try {\n XStream xstream = new XStream();\n xstream.setClassLoader(getClass().getClassLoader());\n xstream.aliasSystemAttribute(\"String_Node_Str\", \"String_Node_Str\");\n xstream.processAnnotations(Te... |
"private static void processBatteryIntent(final Context context, Intent intent) {\n boolean newData = false;\n if (Intent.ACTION_SCREEN_OFF.equals(intent.getAction())) {\n if (!screenOff)\n newData = true;\n screenOff = true;\n } else if (Intent.ACTION_SCREEN_ON.equals(intent.getAction... |
"private Object getDefaultValue(Annotation[] annos) {\n Object defval = null;\n if (annos != null) {\n for (Annotation annotation : annos) {\n if (Default.class.isAssignableFrom(annotation.getClass())) {\n try {\n Default def = (Default) annotation;\n ... |
"protected void loadReportVariable() {\n PageHintReader hintsReader = null;\n try {\n hintsReader = new PageHintReader(reportDocReader);\n Collection<PageVariable> vars = hintsReader.getPageVariables();\n if (vars != null && !vars.isEmpty()) {\n executionContext.addPageVariables(va... |
"public String getElement(String key) {\n return uiProperties.getProperty(key);\n}\n"
|
"private static boolean evaluateSimpleExpression(String simpleExpression, List<? extends IElementParameter> listParam, ElementParameter currentParam) {\n boolean showParameter = false;\n String test = null;\n if (simpleExpression.contains(EQUALS)) {\n test = EQUALS;\n } else if (simpleExpression.cont... |
"public void initialize() throws Exception {\n super.init();\n apiEndPointUrl = getGatewayURLHttp() + API_END_POINT_POSTFIX_URL;\n String publisherURLHttp = getPublisherURLHttp();\n storeURLHttp = getStoreURLHttp();\n apiPublisherClientCarbonSuperAdmin = new APIPublisherRestClient(publisherURLHttp);\n ... |
"public void renderHead(Component component, IHeaderResponse response) {\n super.renderHead(component, response);\n if (JQueryLibrarySettings.CORE_JS != null) {\n response.renderJavaScriptReference(JQueryLibrarySettings.CORE_JS);\n }\n response.renderJavaScriptReference(JQueryAbstractTemplateBehavior... |
"public static ConsoleAppender createAppender(Layout layout, Filter filter, String t, String name, String suppress) {\n if (name == null) {\n LOGGER.error(\"String_Node_Str\");\n return null;\n }\n if (layout == null) {\n layout = PatternLayout.createLayout(null, null, null, null);\n }\... |
"protected Map<QName, Serializable> getProperties(MethodInvocation invocation, Class[] params, int position) {\n if (invocation.getArguments()[position] == null) {\n return null;\n }\n if (Map.class.isAssignableFrom(params[position]) && invocation.getArguments()[position] != null) {\n return (Map... |
"public static UserType getUser(ServiceConfiguration configuration, String userName, String effectiveUserId) throws Exception {\n UserType retVal = null;\n boolean seenAllUsers = false;\n String userMarker = null;\n while (!seenAllUsers && retVal == null) {\n ListUsersType listUsersType = MessageHelp... |
"public void onReceive(Context context, Intent intent) {\n if (intent.getAction().equals(ACTION_FINISH_PEEK)) {\n finish();\n } else if (intent.getAction().equals(ACTION_DIMISS_NOTIFICATION)) {\n String description = intent.getStringExtra(EXTRA_NOTIFICATION_DESCRIPTION);\n if (!updateNotifica... |
"public void generateMail() {\n List<Mail> mailList = (List<Mail>) Mail.all().filter(\"String_Node_Str\").fetch();\n LOG.debug(\"String_Node_Str\", mailList.size());\n for (Mail mail : mailList) {\n try {\n mailService.generatePdfMail(Mail.find(mail.getId()));\n mailDone++;\n ... |
"public Long lrem(final byte[] key, final int count, final byte[] value) {\n ByteBuffer wrappedKey = wrap(key);\n ByteBuffer wrappedValue = wrap(value);\n long numberOfElementsRemoved = 0;\n if (count < 0) {\n numberOfElementsRemoved = removeLastElements((int) count, wrappedKey, wrappedValue);\n }... |
"public URL getTileUrl(Tile tile) throws MalformedURLException {\n return new URL(PROTOCOL, getHostName(), this.port, \"String_Node_Str\" + tile.zoomLevel + '/' + tile.tileX + '/' + tile.tileY + \"String_Node_Str\");\n}\n"
|
"public Node getOpposite(Node node, Edge edge) {\n checkNode(node);\n AbstractEdge absEdge = checkEdge(edge);\n if (absEdge.getSource(view.getViewId()) == node) {\n return absEdge.getTarget();\n } else if (absEdge.getTarget(view.getViewId()) == node) {\n return absEdge.getSource(view.getViewId... |
"private void updatePaneState() {\n DisplayMetrics metrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(metrics);\n int width = metrics.widthPixels;\n FrameLayout left = (FrameLayout) findViewById(R.id.left_pane);\n FrameLayout right = (FrameLayout) findViewById(R.id.right_... |
"public IResultSet executeQuery() throws OdaException {\n logger.logp(java.util.logging.Level.FINE, CallStatement.class.getName(), \"String_Node_Str\", \"String_Node_Str\");\n try {\n if (!maxRowsUpToDate) {\n try {\n assertNotNull(callStat);\n callStat.setMaxRows(m... |
"private void create(boolean truncating) throws IOException {\n if (isExternal) {\n validateExists(FileSetProperties.DATA_EXTERNAL);\n } else if (useExisting) {\n validateExists(FileSetProperties.DATA_USE_EXISTING);\n } else if (possessExisting) {\n validateExists(FileSetProperties.DATA_PO... |
"public void cutting() {\n int width = (int) (mIntrinsicWidth * getScale());\n int height = (int) (mIntrinsicHeight * getScale());\n if (getTranslateX() < -(width - mWidth)) {\n mMatrix.postTranslate(-(getTranslateX() + width - mWidth), 0);\n }\n if (getTranslateX() > 0) {\n mMatrix.postTra... |
"private List<UpdateResult> checkNodesParameters(EUpdateItemType type, boolean onlySimpleShow) {\n List<UpdateResult> nodesResults = new ArrayList<UpdateResult>();\n for (Node node : (List<Node>) getProcess().getGraphicalNodes()) {\n switch(type) {\n case NODE_SCHEMA:\n nodesResul... |
"public void traverse() {\n pqueue.clear();\n stack.clear();\n if (!lattice.getBottom().isChecked())\n checker.check(lattice.getBottom(), true);\n final int length = lattice.getLevels().length;\n for (int i = 0; i < length; i++) {\n Node[] level;\n level = this.sort(i);\n for ... |
"private static void resetHelperContext(Object key) {\n HelperContext hCtx = helperContexts.get(key).get(GLOBAL_HELPER_IDENTIFIER);\n if (hCtx != null) {\n helperContexts.remove(key);\n }\n}\n"
|
"public void testNonPooledConnectionWithProperties() {\n final String connectString = TestContext.getConnectString();\n Util.PropertyList properties = Util.parseConnectString(connectString);\n final String jdbc = properties.get(\"String_Node_Str\");\n if (jdbc != null && !jdbc.startsWith(\"String_Node_Str\"... |
"public static Double getDesiredModelAccuracy(ExplorationStrategy strategyConfig) {\n String value = strategyConfig.getConfiguration().get(DESIRED_MODEL_ACCURACY);\n if (value != null && !value.isEmpty()) {\n return Double.valueOf(value);\n } else {\n return DESIRED_MODEL_ACCURACY_DEFAULT_VALUE;\... |
"public void progress() {\n lock.lock();\n try {\n while (pendingSendMessages.size() > 0) {\n Pair<Object, MPISendMessage> pair = pendingSendMessages.peek();\n MPISendMessage message = (MPISendMessage) messageSerializer.build(pair.getKey(), pair.getValue());\n if (message.s... |
"private void createCustomPreviewPart(Composite parent) {\n Group group = new Group(parent, SWT.NONE);\n group.setText(LABEL_PREVIEW_GROUP);\n if (pageAlignment == PAGE_ALIGN_HORIZONTAL) {\n group.setLayoutData(new GridData(GridData.FILL_BOTH));\n group.setLayout(new GridLayout(1, false));\n }... |
"private void generateElement(ElementDefn root, ElementDefn e, Set<String> required, JsonObject props, boolean relative) throws Exception {\n if (e.getTypes().size() > 1 || (e.getTypes().size() == 1 && e.getTypes().get(0).isWildcardType())) {\n if (!e.getName().contains(\"String_Node_Str\"))\n thro... |
"public void widgetSelected(SelectionEvent e) {\n boolean con = false;\n if (e.item instanceof TreeItem) {\n enabledButtons(true);\n TreeItem item = (TreeItem) e.item;\n if (DATA_PARAM.equals(item.getData(DATA_PARAM))) {\n tree.setMenu(null);\n return;\n } else {\... |
"protected void setupActionBar(Bundle savedInstanceState) {\n bar.setDisplayHomeAsUpEnabled(true);\n if (savedInstanceState != null) {\n selectedTabIndex = savedInstanceState.getInt(STATE_SELECTED_TAB_INDEX);\n }\n getSupportLoaderManager().initLoader(0, null, this);\n}\n"
|
"private void writeGroup(Context context, DSpaceObject relatedObject, Group group, XMLStreamWriter writer) throws XMLStreamException, PackageException {\n writer.writeStartElement(GROUP);\n writer.writeAttribute(ID, String.valueOf(group.getID()));\n writer.writeAttribute(NAME, PackageUtils.translateGroupNameFo... |
"public Node cloneNode(Node node, IProcess process, Map<String, List<? extends IElementParameter>> paraMap, boolean lockByOther) {\n NodePart nodePart = new NodePart();\n IJobletProviderService service = (IJobletProviderService) GlobalServiceRegister.getDefault().getService(IJobletProviderService.class);\n boo... |
"public void setCopies(int copies) {\n this.copies = copies;\n}\n"
|
"public static ReportNumberFormat getInstance(final Locale locale) {\n ReportNumberFormat format = FORMATTERS.get(locale);\n if (format == null) {\n synchronized (FORMATTERS) {\n format = FORMATTERS.computeIfAbsent(locale, f -> new ReportNumberFormat(locale));\n }\n }\n return forma... |
"public PreparedStatement createPreparedStatement(Connection connection) throws SQLException {\n PreparedStatement ps = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n ps.setObject(1, payload.getTitle());\n ps.setObject(2, payload.getBadge());\n ps.setObject(3, payload.getExtras());\n ... |
"public final void printCurrent() {\n printValue(currentCount);\n}\n"
|
"private void createNPC(String[] args, Player player) {\n String text = \"String_Node_Str\";\n ArrayList<String> texts = new ArrayList<String>();\n if (args.length >= 3) {\n int i = 0;\n for (String s : args) {\n if (i == 2 && !s.isEmpty() && !s.equals(\"String_Node_Str\"))\n ... |
"public int getTag() {\n return 2009120231;\n}\n"
|
"public static void deinitBungeeChat() throws IOException {\n FileUtils.deleteDirectory(bungeeChat.getConfigFolder());\n Preconditions.checkState(bungeeChat.getConfigFolder().mkdirs(), \"String_Node_Str\");\n}\n"
|
"private void initMetadataForm() {\n metadataEditor.setMetadataTable(metadataTable);\n IPreferenceStore store = RepositoryManager.getPreferenceStore();\n Boolean flag = store.getBoolean(IRepositoryPrefConstants.ALLOW_SPECIFIC_CHARACTERS_FOR_SCHEMA_COLUMNS);\n if (!flag.booleanValue()) {\n List<Metada... |
"public Object call() throws Exception {\n forge = new ForgeImpl();\n forge.setServerMode(true).setAddonDir(addonDir).start(loader);\n return forge;\n}\n"
|
"private void generateMethod(ClassFile classFile, MethodBinding methodBinding, BodyGenerator gen) {\n classFile.generateMethodInfoHeader(methodBinding);\n int methodAttributeOffset = classFile.contentsOffset;\n int attributeNumber = classFile.generateMethodInfoAttribute(methodBinding, AstUtil.getAjSyntheticAtt... |
"public SearchContext startSearch(SrvSession sess, TreeConnection tree, String searchPath, int attributes) throws FileNotFoundException {\n try {\n ContentContext ctx = (ContentContext) tree.getContext();\n String searchFileSpec = searchPath;\n NodeRef searchRootNodeRef = ctx.getRootNode();\n ... |
"public double[] getChooseMulti(Pair<Label, String> pair, List<Label> children) {\n double[] chooseMulti = Multinomials.randomMultinomial(children.size());\n for (int i = 0; i < chooseMulti.length; i++) {\n chooseMulti[i] += lambda;\n }\n Multinomials.normalizeProps(chooseMulti);\n return chooseMu... |
"public String[] keys() {\n try {\n final String[] keys = p.keys();\n for (int i = 0; i < keys.length; i++) {\n keys[i] = safeKey(keys[i]);\n }\n return keys;\n } catch (final java.util.prefs.BackingStoreException exc) {\n log.error(exc);\n return new String[0]... |
"protected Configuration _createDefaultConfiguration() throws Exception {\n if (_configurationURL == null) {\n _configurationURL = specToURL(\"String_Node_Str\");\n }\n MoMLParser parser = new MoMLParser();\n _configuration = (Configuration) parser.parse(_configurationURL, _configurationURL);\n re... |
"public void apply() throws Exception {\n SearchResults searchResults = dataset.search(namespaceId, \"String_Node_Str\", targets, SortInfo.DEFAULT, 0, 3, 1, null, false);\n Assert.assertEquals(ImmutableList.of(flowEntry, dsEntry, dsEntry, dsEntry, appEntry, appEntry, appEntry, appEntry), searchResults.getResults(... |
"public void widgetSelected(SelectionEvent e) {\n try {\n service.expire(id, db, key, getTTL());\n } catch (KeyNotExistException e1) {\n setTTLApply(false);\n throw e1;\n }\n}\n"
|
"public boolean isFullyAssigned() throws PtalonRuntimeException {\n if (_currentBranch || isForStatement) {\n for (String symbol : _trueSetStatus.keySet()) {\n if (!_trueSetStatus.get(symbol)) {\n return false;\n }\n if (_trueSymbols.get(symbol).endsWith(\"Strin... |
"public int doPreprocess() throws IOException, LangDetectException {\n if (stopwordsFile != null && !stopwordsFile.isEmpty()) {\n File sFile = new File(stopwordsFile);\n if (!sFile.exists() || sFile.isDirectory()) {\n System.out.println(\"String_Node_Str\" + sFile.getAbsolutePath());\n ... |
"public ActionConditionDefinition getActionConditionDefinition(String name) {\n ActionConditionDefinition definition = null;\n Object bean = extendedApplicationContext.getBean(name);\n if (bean instanceof ActionConditionEvaluator) {\n ActionConditionEvaluator evaluator = (ActionConditionEvaluator) bean;... |
"protected void createExpertArea(Composite expertAreaComposite) {\n super.createExpertArea(expertAreaComposite);\n Label activationMethodLabel = UIComponentHelper.createLabel(expertAreaComposite, \"String_Node_Str\");\n activationMethodLabel.setData(SwtAUTHierarchyConstants.WIDGET_NAME, \"String_Node_Str\");\n... |
"public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {\n HttpServletRequest request = (HttpServletRequest) req;\n HttpServletResponse response = (HttpServletResponse) res;\n String target = request.getRequestURI();\n if (target.startsWith(\"S... |
"public CloseableIterator<LogEvent> getLog(LoggingContext loggingContext, final long fromTimeMs, final long toTimeMs, Filter filter) {\n try {\n final Filter logFilter = new AndFilter(ImmutableList.of(LoggingContextHelper.createFilter(loggingContext), filter));\n LOG.trace(\"String_Node_Str\", fromTime... |
"private void redPunishTx(Block bestBlock, List<Transaction> txList) {\n for (long height : punishMap.keySet()) {\n RedPunishData data = punishMap.get(height);\n punishMap.remove(height);\n if (data.getHeight() < (bestBlock.getHeader().getHeight() + 1)) {\n continue;\n }\n ... |
"private void parseSimpleTypes(Document srcDoc, XSDDocument xsdDocument) throws ParserException {\n logger.log(Level.FINER, \"String_Node_Str\", new Object[] { srcDoc, xsdDocument });\n NodeList domElements = srcDoc.getElementsByTagNameNS(\"String_Node_Str\", \"String_Node_Str\");\n int noOfDomElements = domEl... |
"protected LeastSquaresProblem getProblem(Collection<WeightedObservedPoint> observations) {\n final int len = observations.size();\n final double[] target = new double[len];\n final double[] weights = new double[len];\n int i = 0;\n for (WeightedObservedPoint obs : observations) {\n target[i] = ob... |
"private boolean dropTargetValidate(DropTargetEvent event) {\n if (event.item == null)\n return false;\n Object obj = event.item.getData();\n if (obj instanceof TreeObject) {\n TreeObject treeObj = (TreeObject) obj;\n if (treeObj.getParent() == null)\n System.out.println(treeObj... |
"private static ArrayList<Argument> setResponseFields(Field[] responseFields) {\n ArrayList<Argument> arguments = new ArrayList<Argument>();\n ArrayList<Argument> sortedChildlessArguments = new ArrayList<Argument>();\n ArrayList<Argument> sortedArguments = new ArrayList<Argument>();\n Argument id = null;\n ... |
"public ptolemy.data.Token getToken() throws IllegalActionException {\n if (_needsEvaluation)\n _evaluate();\n return _token;\n}\n"
|
"private String stringFromSQLTime(Time sourceTime, QName schemaType) {\n if (null == schemaType) {\n return stringFromSQLTime(sourceTime);\n }\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.