content stringlengths 40 137k |
|---|
"private static void setDatabaseValueForOracleSeverName(DatabaseConnection connection, INode node, String repositoryValue) {\n if (\"String_Node_Str\".equals(repositoryValue)) {\n String value = getParameterValue(connection, node, \"String_Node_Str\");\n String dbVersionName = EDatabaseVersion4Drivers.... |
"public void load() throws IOException {\n BufferedReader in = null;\n IOException toThrow = null;\n try {\n if (this.propsFile == null)\n in = new BufferedReader(new InputStreamReader(instream));\n else\n in = new BufferedReader(new FileReader(propsFile));\n String i... |
"public NetworkGraph getMapGraph() {\n return NetworkGraph.createMapGraph(root);\n}\n"
|
"private int getColumnCount(List<UIComponent> components) {\n int result = 0;\n for (UIComponent component : components) {\n if (component instanceof AbstractToolbarGroup) {\n result += ((AbstractToolbarGroup) component).getRenderedChildren().size();\n } else {\n result++;\n ... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n coreServiceIntent = new Intent(this, org.servalproject.maps.services.CoreService.class);\n startService(coreServiceIntent);\n Bundle mBundle = this.getIntent().getExtras();\n String mMapFileName = null;\n if (mB... |
"public ResponseBo updateUser(User user, Long[] roles) {\n try {\n if (\"String_Node_Str\".equalsIgnoreCase(user.getStatus()))\n user.setStatus(\"String_Node_Str\");\n else\n user.setStatus(\"String_Node_Str\");\n this.userService.updateUser(user, rolesSelect);\n ret... |
"protected Float convertObjectToFloat(Object sourceObject) throws ConversionException {\n if (sourceObject instanceof String) {\n if (((String) sourceObject).length() == 0) {\n return 0f;\n } else if (XMLConstants.POSITIVE_INFINITY.equals(sourceObject)) {\n return new Float(Float.... |
"protected JSONObject getJsonForRestModel(RestModel model) {\n JSONObject result = new JSONObject();\n for (Method m : model.getClass().getDeclaredMethods()) {\n if (m.getName().startsWith(\"String_Node_Str\")) {\n String propName = m.getName().substring(3);\n propName = propName.subs... |
"public static void executeMainClass() throws Exception {\n try {\n WebServiceLocator.getInstance().setClientSideEnabled(true);\n ServiceLocator.getInstance().setConfigurator(getConfigurator());\n ParametersHandler parametersHandler = ServiceLocator.getInstance().getParametersHandler();\n ... |
"final public JsonElement parse() throws ParseException {\n JsonElement json = null;\n switch((jj_ntk == -1) ? jj_ntk() : jj_ntk) {\n case 15:\n json = JsonObject();\n break;\n case 19:\n json = JsonArray();\n break;\n case DIGITS:\n case QUO... |
"public String toString() {\n return getValue().replace('$', '.') + \"String_Node_Str\";\n}\n"
|
"protected void setPredefinedCommand(ServiceCommand predefinedCommand) {\n displayNameVal = predefinedCommand != null ? predefinedCommand.getExternalApplication().getDisplayName() : \"String_Node_Str\";\n if (displayNameVal != null) {\n displayName.setText(displayNameVal);\n }\n optionsVal = predefin... |
"public List<RootObjectReference> getActiveSolutionModuleMetaDatas(int solutionId) throws RepositoryException {\n Map<UUID, RootObjectReference> referencedModules = new HashMap<UUID, RootObjectReference>();\n try {\n Solution sol = (Solution) developerRepository.getActiveRootObject(solutionId);\n if... |
"public void setUp() throws Exception {\n testDateTimeProvider.reset();\n databaseHelper.setupWhoisDatabase(whoisTemplate);\n databaseHelper.insertApiKey(apiKey, \"String_Node_Str\", \"String_Node_Str\");\n whoisTemplate.execute(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node... |
"public MapRenderer nextOverlayMode(int increment) {\n int size = this.mapList.size();\n this.mw.overlayModeIndex = (this.mw.overlayModeIndex + size + increment) % size;\n this.currentMap = this.mapList.get(this.mw.overlayModeIndex);\n return this.currentMap;\n}\n"
|
"public IFile[] getElements() {\n Object[] checkedElements = repositoryTree.getCheckedElements();\n List<IFile> files = new ArrayList<IFile>();\n if (checkedElements != null) {\n for (Object obj : checkedElements) {\n if (obj instanceof File) {\n File file = (File) obj;\n ... |
"public static DefaultRolloverStrategy createStrategy(String max, String min) {\n int minIndex;\n if (min != null) {\n minIndex = Integer.parseInt(min);\n if (minIndex < 1) {\n LOGGER.error(\"String_Node_Str\" + MIN_WINDOW_SIZE);\n minIndex = MIN_WINDOW_SIZE;\n }\n } ... |
"public final void setAlignmentEntry(final int queryIndex, final int referenceIndex, final int position, final float score, final boolean matchesReverseStrand) {\n newEntry.setQueryIndex(queryIndex);\n newEntry.setTargetIndex(targetIndex);\n newEntry.setScore(score);\n newEntry.setPosition(position);\n n... |
"public static SpiderInfo read(InputStream is) {\n if (null == is) {\n return null;\n }\n SpiderInfo spiderInfo = null;\n try {\n spiderInfo = new SpiderInfo();\n String line = IOUtils.readAsciiLine(is);\n int version = getVersion(line);\n if (version == VERSION) {\n ... |
"public boolean writeInTextFile(File file, String data) {\n try {\n FileWriter fWriter = new FileWriter(file);\n BufferedWriter writer = new BufferedWriter(fWriter);\n writer.write(data);\n writer.newLine();\n writer.flush();\n writer.close();\n return true;\n } ca... |
"protected static void appendJsonTable(final JsonGenerator gen, final Map<String, String> entries) throws IOException {\n if (entries == null || entries.isEmpty()) {\n gen.writeNull();\n } else {\n gen.writeStartObject();\n for (final Map.Entry<String, String> entry : entries.entrySet()) {\n ... |
"public long transferTo(long position, long count, WritableByteChannel target) throws IOException {\n long overallLength = 0;\n if (_startPart == _parts.size()) {\n return overallLength;\n }\n long availableLength = count;\n int tempPart = _startPart;\n for (com.ning.http.client.Part part : _pa... |
"private void renderHeatMap(final GL gl) {\n renderStyle.updateFieldSizes();\n float fXPosition = 0;\n float fYPosition = 0;\n Vec2f vecFieldWidthAndHeight = null;\n int iCount = 0;\n for (Integer iContentIndex : set.getVA(iContentVAID)) {\n vecFieldWidthAndHeight = renderStyle.getFieldWidthAnd... |
"public double calculateDesirability(Brain brain) {\n double desire = 0.0;\n Inventory inventory = brain.getEntityOwner().getInventory();\n if (inventory.numberOfItems() > 1) {\n Weapon weapon = inventory.currentItem();\n if (weapon != null) {\n if (weapon.isReady()) {\n ... |
"private void drawObject(int x, int y, IMapObject object, float color) {\n EMapObjectType type = object.getObjectType();\n float progress = object.getStateProgress();\n switch(type) {\n case ARROW:\n drawArrow(context, (IArrowMapObject) object, color);\n break;\n case TREE_A... |
"private void step() {\n if (container != null && container.getWorldObj() != null && currentDate != container.getWorldObj().getTotalWorldTime()) {\n currentDate = container.getWorldObj().getTotalWorldTime();\n powerQuery = nextPowerQuery;\n nextPowerQuery = new int[6];\n int[] next = inte... |
"private void processCellStyle(Element element, Map<Element, StyleProperties> cssStyles) {\n String border = element.getAttribute(PROPERTY_BORDER);\n String padding = element.getAttribute(PROPERTY_CELLPADDING);\n boolean hasBorder = border != null && border.length() > 0;\n boolean hasPadding = padding != nu... |
"private RecordSource filter(QueryModel model, RecordSource rs) throws ParserException {\n try {\n if (model.getWhereClause() == null) {\n return rs;\n }\n RecordMetadata m = rs.getMetadata();\n if (model.getAlias() != null) {\n m.setAlias(model.getAlias().token);\n ... |
"public void shouldParseAnItemWithParameters() throws ParserConfigurationException, SAXException, NoSuchFieldException {\n String sampleXml = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" +... |
"protected void itemAdded(PresenceLibrary item) {\n LockableStringTrie<ConcurrentLinkedQueue<RemoteFileItem>> trie = new LockableStringTrie<ConcurrentLinkedQueue<RemoteFileItem>>(true);\n if (libraries.putIfAbsent(item.getPresence().getPresenceId(), trie) == null) {\n LOG.debugf(\"String_Node_Str\", item.g... |
"public String[] getAvailableLanguages() {\n String[] languages;\n if (GlobalServiceRegister.getDefault().isServiceRegistered(ICorePerlService.class)) {\n languages = new String[] { ECodeLanguage.JAVA.getName(), ECodeLanguage.PERL.getName() };\n } else {\n languages = new String[] { ECodeLanguage... |
"public void freeAreaOccupiedByTower(ShortPoint2D towerPosition) {\n partitionsGrid.removeTowerAndFreeOccupiedArea(towerPosition);\n}\n"
|
"protected void initAlerts() {\n builderDialog = new AlertDialog.Builder(m_context);\n builderDialog.setCancelable(false);\n switch(m_messageType) {\n case R.string.alters_confirm_delete:\n Resources r = m_context.getResources();\n builderDialog.setMessage(R.string.alters_confirm_d... |
"public void translate(Stack<GraphTargetItem> stack, List<GraphTargetItem> output, java.util.HashMap<Integer, String> regNames, HashMap<String, GraphTargetItem> variables, HashMap<String, GraphTargetItem> functions) {\n GraphTargetItem name = stack.pop();\n GraphTargetItem computedVal = variables.get(Highlighting... |
"public LDAPAuthProvider getAuthProvider(String host, int port) {\n try {\n LOG.debug(MessageFormat.format(\"String_Node_Str\", host, port));\n return new LDAPAuthProvider(this.bindDN, this.bindPassword.getBytes(\"String_Node_Str\"));\n } catch (Exception e) {\n LOG.error(\"String_Node_Str\" ... |
"private boolean checkEnabled() {\n try {\n if (ChartCubeUtil.isAxisChart(eih)) {\n eih = (ExtendedItemHandle) eih.getElementProperty(ChartReportItemConstants.PROPERTY_HOST_CHART);\n }\n if (ChartCubeUtil.isPlotChart(eih)) {\n AggregationCellHandle containerCell = ChartCube... |
"final void addRecentTaskLocked(TaskRecord task) {\n int N = mRecentTasks.size();\n if (N > 0 && mRecentTasks.get(0) == task) {\n return;\n }\n for (int i = 0; i < N; i++) {\n TaskRecord tr = mRecentTasks.get(i);\n if (task.userId == tr.userId && ((task.affinity != null && task.affinity... |
"public void paintInstance(InstancePainter painter) {\n painter.drawLabel();\n int xpos = painter.getLocation().getX();\n int ypos = painter.getLocation().getY();\n BitWidth widObj = painter.getAttributeValue(StdAttr.WIDTH);\n int wid = widObj.getWidth();\n Integer lenObj = painter.getAttributeValue(A... |
"public static void forwardObjectLocation(VM_Address location) throws VM_PragmaInline {\n if (traceInducedGC) {\n VM_Address obj = VM_Magic.getMemoryAddress(location);\n if (!obj.isZero()) {\n TraceGenerator.rootEnumerate(obj);\n }\n } else {\n VM_Address obj = VM_Magic.getM... |
"public static void cleanup() throws Exception {\n authorizer.revoke(instance);\n authEnforcerService.stopAndWait();\n Assert.assertEquals(Collections.emptySet(), authorizer.listPrivileges(ALICE));\n SecurityRequestContext.setUserId(OLD_USER_ID);\n}\n"
|
"public AbstractRecord buildRow(AbstractRecord record, Object object, org.eclipse.persistence.internal.sessions.AbstractSession session, XMLMarshaller marshaller, XPathFragment rootFragment, WriteType writeType) {\n lazyInitialize();\n XPathNode textNode = rootXPathNode.getTextNode();\n List<XPathNode> nonAttr... |
"public void handleFree(DownloadLink downloadLink) throws Exception, PluginException {\n requestFileInformation(downloadLink);\n int minutes = 0, seconds = 0;\n Regex limits = br.getRegex(\"String_Node_Str\");\n String mins = limits.getMatch(0);\n String secs = limits.getMatch(1);\n if (secs == null)\... |
"public CompletableFuture<Boolean> getIssueMetadata(String repoId, List<Integer> issues) {\n String message = \"String_Node_Str\" + repoId + \"String_Node_Str\";\n logger.info(\"String_Node_Str\" + issues);\n UI.status.displayMessage(message);\n String currentUser = prefs.getLastLoginUsername();\n return... |
"private static SessionFactory buildSessionFactory() {\n try {\n return new AnnotationConfiguration().configure().buildSessionFactory();\n } catch (Throwable ex) {\n log.error(\"String_Node_Str\" + ex);\n throw new ExceptionInInitializerError(ex);\n }\n}\n"
|
"public void traderWalletDeposit(CitizensTrader plugin, CommandSender sender, Trader npc, Map<String, String> args) {\n Wallet wallet = npc.getWallet();\n double amount = Double.parseDouble(args.get(\"String_Node_Str\"));\n if (CitizensTrader.getEconomy().withdrawPlayer(sender.getName(), amount).transactionSuc... |
"public static void filterBitstream(Context c, Item myItem, Bitstream myBitstream) throws Exception {\n Integer formatID = new Integer(myBitstream.getFormat().getID());\n if (filterNames.containsKey(formatID)) {\n if (!filterCache.containsKey(formatID)) {\n Class f = Class.forName((String) filte... |
"public static void cancelTarget(HumanNPC npc) {\n npc.getHandle().cancelTarget();\n}\n"
|
"private void createFieldArea(Composite parent) {\n Composite composite = new Composite(parent, SWT.NONE);\n composite.setLayout(new GridLayout());\n GridData gd = new GridData(GridData.FILL_BOTH);\n gd.widthHint = 200;\n composite.setLayoutData(gd);\n new Label(composite, SWT.NONE).setText(GROUP_DLG_... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n boolean isPage = getIntent().getBooleanExtra(\"String_Node_Str\", false);\n if (isPage) {\n this.setTitle(StringUtils.unescapeHTML(WordPress.currentBlog.getBlogName()) + \"String_Node_Str\" + getResources().getTex... |
"public void testIgnoreOneError() throws Exception {\n int numberOfErrorsToIgnore = 1;\n DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\n if (builderFactory.getClass().getPackage().getName().contains(\"String_Node_Str\")) {\n numberOfErrorsToIgnore = 2;\n }\n unmarsh... |
"public void vrun() {\n Query<UserProfileEntry> query = ofy().load().type(UserProfileEntry.class).ancestor(keyu);\n if (dimension != null)\n query = query.filter(\"String_Node_Str\", dimension);\n if (scope != null)\n query = query.filter(\"String_Node_Str\", scope);\n if (provider != null)\n ... |
"private void resolve() {\n final Map<String, EdmEntityType.Builder> allEetsByFQName = Enumerable.create(dataServices.getEntityTypes()).toMap(EdmEntityType.Builder.func1_getFullyQualifiedTypeName());\n final Map<String, EdmAssociation.Builder> allEasByFQName = Enumerable.create(dataServices.getAssociations()).toM... |
"public boolean isActivityEnabled(ComponentName component, UserHandle user) throws RemoteException {\n ensureInUserProfiles(user, \"String_Node_Str\" + user);\n if (!isUserEnabled(user)) {\n return false;\n }\n long ident = Binder.clearCallingIdentity();\n try {\n IPackageManager pm = AppGl... |
"public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {\n switch(col.getColumnType()) {\n case CHECKBOX:\n JCheckBox checkbox = new JCheckBox();\n if (value instanceof String) {\n checkbox.set... |
"public LibvirtVMDef.InterfaceDef plug(NicTO nic, String guestOsType, String nicAdapter) throws InternalErrorException, LibvirtException {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + nic);\n if (nicAdapter != null && !nicAdapter.isEmpty()) {\n s_logger.debug(\"S... |
"public void onSuccess(Object object, InputContext inputContext) {\n try {\n flowletContext.getSystemMetrics().gauge(\"String_Node_Str\", input.size());\n txCallback.onSuccess(object, inputContext);\n } catch (Throwable t) {\n LOG.error(\"String_Node_Str\", flowletContext, t);\n } finally ... |
"public String encrypt(String name, String profiles, String data, MediaType type) {\n checkEncryptorInstalled(name, profiles);\n String input = stripFormData(data, type, false);\n Map<String, String> keys = this.helper.getEncryptorKeys(name, profiles, input);\n String textToEncrypt = this.helper.stripPrefix... |
"private String getIDEPath() throws IOException {\n URL url = ResourceFilePath.class.getClassLoader().getResource(getPath());\n if (url == null)\n throw new IOException(\"String_Node_Str\");\n String urlString = url.toString();\n return URLDecoder.decode(urlString.substring(urlString.indexOf('/') + 1... |
"public void onAutomatedTransferInitiated(OnAutomatedTransferInitiated event) {\n if (isFinishing()) {\n return;\n }\n if (event.isError()) {\n handleAutomatedTransferFailed(event.error.message);\n } else {\n mDispatcher.dispatch(SiteActionBuilder.newCheckAutomatedTransferStatusAction(m... |
"private void recoverAllResources() {\n Iterator it = registeredResources.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry entry = (Map.Entry) it.next();\n String uniqueName = (String) entry.getKey();\n XAResourceProducer producer = (XAResourceProducer) entry.getValue();\n t... |
"public Locale getLanguage() {\n synchronized (mStartLock) {\n if (!mStarted) {\n return null;\n }\n try {\n String[] locStrings = mITts.getLanguage();\n if ((locStrings != null) && (locStrings.length == 3)) {\n return new Locale(locStrings[0], loc... |
"private static void processPrepareResponseResendPrepareTest() {\n byte hostIdentifier = 0;\n Proposer proposer = new Proposer(hostIdentifier, 4);\n PrepareRequest prepareRequest = proposer.createPrepareRequest(0);\n PrepareResponse response1 = new PrepareResponse((byte) 1, prepareRequest, new PrepareNumber... |
"private static String getListOfElements(String verarbeitungsurl) {\n String result = \"String_Node_Str\";\n HttpURLConnection connection = null;\n BufferedReader rd = null;\n StringBuilder sb = null;\n String line = null;\n URL serverAddress = null;\n try {\n serverAddress = new URL(verarbe... |
"private void writeMainClass(final ClientArtifactsManager clientArtifactsManager) throws IOException {\n final String mainClassResourceName = GLASSFISH_APPCLIENT_GROUP_FACADE_CLASS_NAME.replace('.', '/') + \"String_Node_Str\";\n final File mainClassJAR = new File(AppClientDeployerHelper.getModulesDir(serviceLocat... |
"public boolean canHandle(QName artifactType) {\n return artifactType.equals(this.openTOSCAWar);\n}\n"
|
"private void calculateCategoriesNewOntology() {\n try {\n Statement stmt;\n stmt = con.createStatement();\n BufferedReader in = new BufferedReader(new FileReader(categoriesNewOntology));\n String line;\n String[] split;\n String name;\n String label;\n String ... |
"static List<ModuleNeeded> getChildrenModules(final INode node, Set<ProcessItem> searchItems, boolean withChildrens, boolean forMR) {\n List<ModuleNeeded> modulesNeeded = new ArrayList<ModuleNeeded>();\n if (node.getComponent().getName().equals(\"String_Node_Str\")) {\n IElementParameter processIdparam = n... |
"protected List<Object> recursivelyPopulateEntities(EntityMetadata m, Client client) {\n List<EnhanceEntity> ls = new ArrayList<EnhanceEntity>();\n ApplicationMetadata appMetadata = KunderaMetadata.INSTANCE.getApplicationMetadata();\n try {\n String query = appMetadata.getQuery(getJPAQuery());\n ... |
"public void setReadOnly(boolean isReadOnly) {\n if (isReadOnly) {\n ActionRegistry actionRegistry = getActionRegistry();\n IAction ASDAddMessageAction = actionRegistry.getAction(\"String_Node_Str\");\n if (ASDAddMessageAction != null) {\n actionRegistry.removeAction(ASDAddMessageActi... |
"private void getBooks(String author, String aurl, String apath, String mainAuthor) throws IOException {\n try {\n System.out.println(aurl);\n Document doc = Jsoup.connect(aurl).timeout(10 * 1000).get();\n Elements subLists = doc.select(\"String_Node_Str\");\n if (subLists != null && subL... |
"public void zoomIn() {\n Set<Integer> elements = mainTreeMapView.getSelectionManager().getElements(SelectionType.SELECTION);\n if (elements.size() == 1) {\n ClusterNode dataRoot = dataDomain.getSet().getContentData(contentVAType).getContentTree().getNodeByNumber(elements.iterator().next());\n mainT... |
"public static SpecialPropertyI getByUniqueId(int i) {\n return (SpecialPropertyI) GameManager.getInstance().retrieveObject(STORAGE_NAME, i);\n}\n"
|
"void validate() {\n Errors errorsForMember = errors.withSource(source);\n Set<InjectionPoint> injectionPoints;\n try {\n injectionPoints = request.getInjectionPoints();\n } catch (ConfigurationException e) {\n errorsForMember.merge(e.getErrorMessages());\n injectionPoints = e.getPartia... |
"private void normalize(float[] data) {\n float sum = 0;\n for (int i = 0; i < data.length; i++) {\n sum += data[i];\n }\n if (sum != 0.0f) {\n for (int i = 0; i < data.length; i++) {\n data[i] = data[i] * sum;\n }\n }\n}\n"
|
"private void createStatisticalSection(Composite topComp) {\n statisticalSection = this.createSection(form, topComp, DefaultMessagesImpl.getString(\"String_Node_Str\"), false, null);\n Composite sectionClient = toolkit.createComposite(statisticalSection);\n sectionClient.setLayout(new GridLayout());\n stati... |
"private void importFlowConfiguration(ImportConfigData importData, ISqlTransaction transaction) {\n String projectVersionId = (String) getOneRow(importData.getFlowData().get(FLOW_IDX)).get(\"String_Node_Str\");\n List<TableData> existingFlowData = new ArrayList<TableData>();\n initConfigData(existingFlowData, ... |
"public void setTeamName(String teamName) {\n this.teamName = (teamName == null ? null : teamName.trim());\n}\n"
|
"Object getMemberAndArguments(List arguments, BeansWrapper w) throws TemplateModelException {\n if (arguments == null) {\n arguments = Collections.EMPTY_LIST;\n }\n int l = arguments.size();\n Class[][] marshalTypes = getMarshalTypes();\n Object[] args = new Object[l];\n outer: for (int j = Mat... |
"private TestErrorEvent executePostExecCommand(String cmdClassName) {\n final IPostExecutionCommand cmd = m_postExecCmdFactory.createCommand(cmdClassName);\n if (cmd instanceof AbstractPostExecutionCommand) {\n AbstractPostExecutionCommand aCmd = (AbstractPostExecutionCommand) cmd;\n aCmd.setCurrent... |
"public AccountingSituation getAccountingSituation(Partner partner, Company company) {\n if (partner == null || partner.getAccountingSituationList() == null) {\n return null;\n }\n for (AccountingSituation accountingSituation : partner.getAccountingSituationList()) {\n if (accountingSituation.get... |
"public boolean isType(IType type) {\n if (type == Types.VOID) {\n return true;\n }\n if (this.commonType != null) {\n return type.isSuperTypeOf(this.commonType);\n }\n if (this.then != null) {\n if (this.elseThen != null) {\n if (this.then.isType(type) && this.elseThen.is... |
"private String getFilenameFromType(final ITypeName type) {\n return type.getIdentifier().replaceAll(\"String_Node_Str\", \"String_Node_Str\") + MODEL_POSTFIX;\n}\n"
|
"public InputStream lookup(URI uri) {\n ArgumentNotValid.checkNotNull(uri, \"String_Node_Str\");\n ARCKey key = luceneLookup(uri.getScheme() + \"String_Node_Str\" + uri.getSchemeSpecificPart());\n if (key == null) {\n return null;\n } else {\n final BitarchiveRecord bitarchiveRecord = arcRepos... |
"private Selection parseSelection(JSONObject obj) throws JSONException {\n Selection selection = new Selection();\n selection.setSearchFilter(JsonUtils.getRequiredByType(String.class, obj, LicSpec.FILTER));\n if (selection.getSearchFilter() == null) {\n throw new JSONException(\"String_Node_Str\");\n ... |
"protected void addElement() {\n MethodParameterDialogue dialogue = new MethodParameterDialogue(getShell(), project, null, parameters);\n if (dialogue.open() == Window.OK) {\n MethodParameter parameter = dialogue.getMethodParameter();\n if (parameter != null) {\n int selectionIndex = view... |
"public void run() {\n if (image != null) {\n Gtk.gtk_widget_destroy(image);\n image = null;\n }\n if (hasLegitIcon) {\n image = Gtk.gtk_image_new_from_file(imageFile.getAbsolutePath());\n Gtk.gtk_image_menu_item_set_image(menuItem, image);\n Gobject.g_object_ref_sink(image);... |
"public void testTransitDetails() throws Exception {\n DirectionsRoute[] routes = DirectionsApi.newRequest(context).origin(\"String_Node_Str\").destination(\"String_Node_Str\").mode(TravelMode.TRANSIT).departureTime(new DateTime(2015, 2, 15, 11, 0, DateTimeZone.UTC)).await();\n DirectionsLeg testLeg = routes[0].l... |
"public String getUrl() {\n return mUrl;\n}\n"
|
"public void run(IAction action) {\n store = getIPreferenceStore();\n Configuration config = getConfiguration(store, selection);\n PropertiesLoader props = getPropertiesLoader(config.language);\n String resourcePathForTestCaseFile = null;\n StructuredSelection structuredSelection = null;\n try {\n ... |
"IOdaDataSetDesign newOdaDataSet(OdaDataSetHandle modelDataSet, ExecutionContext context) throws BirtException {\n OdaDataSetDesign dteDataSet = new OdaDataSetDesign(modelDataSet.getQualifiedName());\n IBaseDataSetEventHandler eventHandler = new DataSetScriptExecutor(modelDataSet, context);\n dteDataSet.setEve... |
"public boolean isItemValid(ItemStack i) {\n if (i == null)\n return false;\n if (i.getItem() == null)\n return false;\n if (!inventory.isItemValidForSlot(this.getSlotIndex(), i))\n return false;\n IAppEngApi api = AEApi.instance();\n switch(which) {\n case VALID_ENCODED_PATTE... |
"public void testCleanup() throws Exception {\n DatasetFramework dsFramework = new InMemoryDatasetFramework(new InMemoryDefinitionRegistryFactory());\n dsFramework.addModule(\"String_Node_Str\", new InMemoryOrderedTableModule());\n CConfiguration cConf = CConfiguration.create();\n Configuration conf = HBase... |
"public static HE_Selection selectFacesWithOtherInternalLabel(final HE_Mesh mesh, final int label) {\n return selectFacesWithOtherTemporaryLabel(mesh, label);\n}\n"
|
"public static ContainerLaunchContext createContainerLaunchContext(Map<ApplicationAccessType, String> acls, ContainerId containerId, TezConfiguration conf, TezVertexID vertexId, Token<JobTokenIdentifier> jobToken, Resource assignedCapability, Map<String, LocalResource> localResources, Map<String, String> vertexEnv, Str... |
"private CertPathBuilderResult build(X509AttributeCertificate attrCert, X509Certificate tbvCert, PKIXExtendedBuilderParameters pkixParams, List tbvPath) {\n if (tbvPath.contains(tbvCert)) {\n return null;\n }\n if (pkixParams.getExcludedCerts().contains(tbvCert)) {\n return null;\n }\n if (... |
"public void removeAllAbilities(UUID sourceId, Game game) {\n getAbilities().clear();\n game.getContinuousEffects().removeGainedEffectsForSource(this.getId());\n game.getState().resetForSourceId(this.getId());\n}\n"
|
"private void verifyMediaOnlyUploadsAndNotify() {\n if (!mMediaBatchUploaded.isEmpty()) {\n ArrayList<MediaModel> standAloneMediaItems = new ArrayList<>();\n for (MediaModel media : mMediaBatchUploaded) {\n MediaModel currentMedia = mMediaStore.getMediaWithLocalId(media.getId());\n ... |
"public void map(T key, HCatRecord value, Context context) throws IOException, InterruptedException {\n Integer columnSize = context.getConfiguration().getInt(HiveColumnCardinalityJob.KEY_TABLE_COLUMN_NUMBER, 100);\n for (int m = 0; m < columnSize; m++) {\n Object cell = value.get(m);\n if (counter ... |
"void processConnect(ServerChannel session, ConnectMessage msg) {\n LOG.debug(\"String_Node_Str\", msg.getClientID());\n if (msg.getProcotolVersion() != VERSION_3_1 && msg.getProcotolVersion() != VERSION_3_1_1) {\n ConnAckMessage badProto = new ConnAckMessage();\n badProto.setReturnCode(ConnAckMessa... |
"protected void startDemo() {\n getMap().moveCamera(CameraUpdateFactory.newLatLngZoom(SYDNEY, 16));\n double[] kernel = HeatmapUtil.generateKernel(5, 1.5);\n Log.e(\"String_Node_Str\", Arrays.toString(kernel));\n double[][] grid = new double[5][5];\n grid[2][2] = 2;\n grid[2][1] = 1;\n grid[1][2] =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.