content
stringlengths
40
137k
"public void onClick(DialogInterface dialog, int which) {\n AnalyticsUtils.trackWithCurrentBlogDetails(AnalyticsTracker.Stat.SITE_SETTINGS_DELETE_SITE_PURCHASES_SHOW_CLICKED);\n WPWebViewActivity.openUrlByUsingWPCOMCredentials(getActivity(), WORDPRESS_PURCHASES_URL);\n}\n"
"public void setDisplayList(int newList) {\n displayList = newList;\n}\n"
"double normalize(double x, int p){\n\tif (p == 1){\n\t\tdouble v = Math.max(x, min);\n\t\tx = (v - min) / (max - min);\n\t\treturn x;\n\t} else if (p == 2) {\n\t\tdouble v = Math.max(x, min);\n\t\tx = Math.pow((v - min), 2) / Math.pow((max - min), 2);\n\t\treturn x;\n\t}\n}\n"
"public TemplateSource sourceAt(final String location) throws IOException {\n try {\n return new TemplateSource() {\n public String content() throws IOException {\n return read(resolve(location));\n }\n public String filename() {\n return location...
"public void addEventListener(final String eventName, final LeoObject function) {\n switch(eventName.toLowerCase()) {\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(BombDisarmedEvent.class, new BombDisarmedListener() {\n public void onBombDisarm...
"public void populateLogicalSnapshot(StructureDefinition sd) throws FHIRException {\n sd.getSnapshot().getElement().add(sd.getDifferential().getElementFirstRep().copy());\n StructureDefinition base = context.fetchResource(StructureDefinition.class, sd.getBaseDefinition());\n if (base == null)\n throw ne...
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n res = getResources();\n prefs = PreferenceManager.getDefaultSharedPreferences(this);\n Version locusVersion = Version.parseVersion(LocusUtils.getLocusVersion(this));\n Log.i(TAG, \"String_Node_Str\" + locusVersion)...
"private void initialize(BeanManager manager) {\n if (!lookupExtensionInBeanManager) {\n try {\n InitialContext ic = InitialContextHelper.getInitialContext();\n if (ic != null) {\n javax.naming.Context jerseyConfigJNDIContext = createJerseyConfigJNDIContext(ic);\n ...
"public static Map<String, Object> importHierarchy(Element document, JSONObject md, JSONObject keyed) throws ReadOnlyElementException {\n Project project = Application.getInstance().getProject();\n Map<String, Object> retval = new HashMap<String, Object>();\n retval.put(\"String_Node_Str\", true);\n Element...
"public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, ParcelFileDescriptor newState) {\n LinkedList<File> dirsToScan = new LinkedList<File>();\n ArrayList<String> allFiles = new ArrayList<String>();\n dirsToScan.add(getFilesDir());\n if (DEBUG)\n Log.v(TAG, \"String_Node_Str\" +...
"public Boolean apply(Pair<KBExp<C, V>, KBExp<C, V>> xxx) {\n KBExp<C, V> s = xxx.first;\n KBExp<C, V> t = xxx.second;\n if (s.hasAsSubterm(t) && !t.equals(s)) {\n return true;\n }\n if (t.isVar) {\n return !t.equals(s) && s.vars().contains(t.getVar().var);\n }\n if (s.isVar) {\n ...
"public static AtlasTypesDef defineHiveTypes() {\n String _description = \"String_Node_Str\";\n AtlasEntityDef superTypeDefinition = AtlasTypeUtil.createClassTypeDef(SUPER_TYPE_NAME, \"String_Node_Str\", ImmutableSet.<String>of(), AtlasTypeUtil.createOptionalAttrDef(\"String_Node_Str\", \"String_Node_Str\"), Atla...
"public void testGetFiles() throws Exception {\n {\n final File invalidFile = createTempFile(\"String_Node_Str\");\n assertTrue(invalidFile.delete());\n final FileSolutionRepositoryImportSource importSource = new FileSolutionRepositoryImportSource(invalidFile, \"String_Node_Str\");\n asse...
"protected void doProcessAction(ActionRequest actionRequest, ActionResponse actionResponse) {\n try {\n numberOfSites = ParamUtil.getLong(actionRequest, \"String_Node_Str\", 0);\n baseSiteName = ParamUtil.getString(actionRequest, \"String_Node_Str\", \"String_Node_Str\");\n siteType = ParamUtil....
"private void checkForMultiSize(Product product) {\n if (product != null && product.isMultiSize()) {\n final Product resampledProduct = MultiSizeIssue.maybeResample(product);\n if (resampledProduct != null) {\n selectionChanged(resampledProduct, null, null);\n }\n }\n}\n"
"private static ObjectNode getGet(HttpClient client, String url) throws Exception {\n ObjectMapper mapper = new ObjectMapper();\n HttpGet get = new HttpGet(url);\n get.setHeader(\"String_Node_Str\", \"String_Node_Str\");\n HttpResponse response = client.execute(get);\n ObjectNode object = (ObjectNode) MA...
"public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags) {\n final boolean keyguardOn = keyguardOn();\n final int keyCode = event.getKeyCode();\n final int repeatCount = event.getRepeatCount();\n final int metaState = event.getMetaState();\n final int flags = event.get...
"public String getNameNode() {\n return getRealValue(this.nameNode);\n}\n"
"public void removeAllViewsInLayout() {\n final int count = mChildrenCount;\n if (count <= 0) {\n return;\n }\n final View[] children = mChildren;\n mChildrenCount = 0;\n final View focused = mFocused;\n final boolean detach = mAttachInfo != null;\n boolean clearChildFocus = false;\n n...
"Property withOptional() {\n return isOptional() ? this : new Property(defSite, inferredType, declaredType, Attribute.OPTIONAL);\n}\n"
"public static void main(String[] args) throws Exception {\n if (args.length != 4) {\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"St...
"public void perform(Arguments arguments, PrintStream output) throws Exception {\n DatasetModuleId module = cliConfig.getCurrentNamespace().datasetModule(arguments.get(ArgumentName.DATASET_MODULE.toString()));\n datasetClient.delete(module);\n output.printf(\"String_Node_Str\", module.getEntityName());\n}\n"
"private void refreshSeriesCombo(Combo cmbSeriesSelect) {\n ArrayList<String> itemList = new ArrayList<String>();\n int seriesSize = seriesDefns.size();\n for (int i = 1; i <= seriesSize; i++) {\n itemList.add(selectionName + \"String_Node_Str\" + i);\n }\n if (!isPartChart()) {\n itemList....
"protected void handleSubtypeTag() {\n String sName = \"String_Node_Str\";\n int iCompoundId = 0;\n for (int iAttributeIndex = 0; iAttributeIndex < attributes.getLength(); iAttributeIndex++) {\n sAttributeName = attributes.getLocalName(iAttributeIndex);\n if (\"String_Node_Str\".equals(sAttribute...
"void updateNotificationError(PostModel post, SiteModel site, String errorMessage) {\n AppLog.d(AppLog.T.POSTS, \"String_Node_Str\" + errorMessage);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(mContext.getApplicationContext());\n long notificationId = getNotificationIdForP...
"public boolean apply(Game game, Ability source) {\n Player player = game.getPlayer(targetPointer.getFirst(game, source));\n MageObject sourceObject = source.getSourceObject(game);\n if (player != null && sourceObject != null) {\n Card card = player.getHand().getRandom(game);\n Cards cards = new ...
"protected void parseConfigVars(HttpServletRequest request, Collection parameterList) {\n this.configMap = new HashMap();\n if (this.displayTexts == null)\n this.displayTexts = new HashMap();\n String reportConfigName = ParameterAccessor.getConfigFileName(this.reportDesignName);\n if (reportConfigNam...
"public void widgetSelected(SelectionEvent e) {\n txtOutput.setText(\"String_Node_Str\");\n consoleStrings.indexOf(consoleStrings.get(slider.getSelection()));\n appendToGuiFromList((consoleStrings.get(slider.getSelection())));\n for (int i = 0; i < 35; i++) {\n if (slider.getSelection() + i < console...
"public static MethodSignature parse(String name, String description) {\n CharIterator it = new CharIterator(description);\n if (it.next() != '(') {\n throw new IllegalArgumentException(\"String_Node_Str\" + descriptor);\n }\n List<Type> argTypes = new ArrayList<>(4);\n while (it.peek() != ')') {\...
"public Object calculate(Object value) throws BirtException {\n if (value == null) {\n return new Double(-1);\n }\n Date target = getDate(value);\n if (intervalStart == null) {\n return new Double(Math.floor(this.dateTimeUtil.diffSecond(defaultStart, target) / getDateIntervalRange()));\n } ...
"public void redirect(String location, int statusCode) {\n checkCommitted();\n status(statusCode);\n header(HttpConstants.Header.LOCATION, location);\n header(HttpConstants.Header.CONNECTION, \"String_Node_Str\");\n try {\n httpServletResponse.sendError(statusCode);\n } catch (IOException e) {\...
"public static void draw(BufferBuilder vertexBufferIn) {\n if (vertexBufferIn == null) {\n return;\n }\n VertexFormat vertexformat = vertexBufferIn.getVertexFormat();\n int i = vertexformat.getNextOffset();\n ByteBuffer bytebuffer = vertexBufferIn.getByteBuffer();\n List<VertexFormatElement> li...
"public boolean isNamespaceAware() {\n return namespaceAware;\n}\n"
"public IBakedModel handleItemState(ItemStack stack) {\n IModelBaker baker = new ModelBaker();\n Block block = Block.getBlockFromItem(stack.getItem());\n if (!blockClass.isInstance(block)) {\n return null;\n }\n B bBlock = blockClass.cast(block);\n block.setBlockBoundsForItemRender();\n bake...
"public void testListBySourceEntitlements() {\n Pool sourcePool = TestUtil.createPool(owner, product);\n Pool sourcePool2 = TestUtil.createPool(owner, product);\n Pool sourcePool3 = TestUtil.createPool(owner, product);\n poolCurator.create(sourcePool);\n poolCurator.create(sourcePool2);\n poolCurator....
"public void linkTest() {\n final Link l = processConstructible(Link.class);\n final String parameterKey = \"String_Node_Str\";\n final String parameterValue = \"String_Node_Str\";\n checkSameObject(l, l.addParameter(parameterKey, parameterValue));\n checkMapEntry(l.getParameters(), parameterKey, paramet...
"public Actor createActor(Skin skin) {\n Reader reader = null;\n try {\n reader = Gdx.files.internal(\"String_Node_Str\").reader();\n BehaviorTreeParser<Dog> parser = new BehaviorTreeParser<Dog>(BehaviorTreeParser.DEBUG_NONE);\n BehaviorTree<Dog> tree = parser.parse(reader, new Dog(\"String_N...
"public void activate_shouldThrowNotFoundExWhenUserIsNotFound() throws Exception {\n ;\n try {\n service.activate(\"String_Node_Str\", UUID.randomUUID().toString());\n fail(\"String_Node_Str\");\n } catch (WebApplicationException e) {\n assertThat(e.getResponse().getStatus()).isEqualTo(Res...
"public org.dodgybits.shuffle.dto.ShuffleProtos.Project toDto() {\n Builder builder = org.dodgybits.shuffle.dto.ShuffleProtos.Project.newBuilder();\n builder.setId(id).setName(name).setModified(toDate(modified));\n if (defaultContextId != null) {\n builder.setDefaultContextId(defaultContextId);\n }\n...
"public void dumpToFile(long frequency, double prec) {\n long timestamp = data.get(0).get(0).getTime();\n boolean done = false;\n frequency = 10000000L / frequency;\n long w = (long) (frequency * prec);\n c = new int[data.size()];\n openFile();\n try {\n writer.write(header + \"String_Node_S...
"protected void succeeded() {\n checkGuiThread();\n onFinish(aesKey, timeTakenMsec);\n}\n"
"public boolean canWork() {\n try {\n Class.forName(\"String_Node_Str\", false, Log4jLogAdapter.class.getClassLoader());\n return true;\n } catch (Throwable e) {\n }\n return false;\n}\n"
"public void InteractCheck(PlayerInteractEvent event) {\n if (ConfigPatch.AntiLongStringCrashenable == true) {\n ItemStack item = evt.getItem();\n Player player = evt.getPlayer();\n if (item != null) {\n if (item.hasItemMeta() && item.getItemMeta().getDisplayName() != null) {\n ...
"protected void createContents() {\n super.createContents();\n text_3.setText(server.getName());\n text_3.selectAll();\n text_3.setFocus();\n text_4.setText(server.getHost());\n text_4.selectAll();\n text_5.setText(server.getPort());\n text_5.selectAll();\n if (server.getPassword() != null) {...
"public void filterClose(final NextFilter nextFilter, final IoSession session) throws Exception {\n if (timedOut.get() == true) {\n nextFilter.filterClose(session);\n return;\n }\n if (!session.isConnected()) {\n if (logger != null && logger.isTraceEnabled()) {\n logger.trace(fo...
"public static void recursiveDelete(Path path) throws IOException {\n if (Files.isDirectory(path)) {\n Files.walkFileTree(path, new SimpleFileVisitor<Path>() {\n\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n Files.delete(file);\n r...
"private void setupNextAckDeadlineExtensionAlarm(Instant expiration) {\n Instant possibleNextAlarmTime = expiration.minus(ackExpirationPadding);\n alarmsLock.lock();\n try {\n if (nextAckDeadlineExtensionAlarmTime.isAfter(possibleNextAlarmTime)) {\n logger.log(Level.FINER, \"String_Node_Str\"...
"public Container or(ArrayContainer value2) {\n ArrayContainer value1 = this;\n int tailleAC = value1.getCardinality() + value2.getCardinality();\n final int desiredcapacity = tailleAC > 65535 ? 65535 : tailleAC;\n ArrayContainer answer = ContainerFactory.getArrayContainer();\n if (answer.content.length ...
"private void initializeClassLoader() {\n if (applicationClassLoader == null) {\n applicationClassLoader = new ApplicationClassLoader(engine, runnable);\n getScriptContext().setApplicationClassLoader(applicationClassLoader);\n }\n}\n"
"private void injectFields(Finder finder) {\n Field[] fields = clazz.getDeclaredFields();\n for (Field field : fields) {\n Annotation[] annotations = field.getAnnotations();\n View view = null;\n for (Annotation annotation : annotations) {\n if (annotation.annotationType() == Injec...
"public boolean apply(Game game, Ability source) {\n FilterCard filter = new FilterCard(\"String_Node_Str\");\n filter.add(new ChosenSubtypePredicate());\n return new RevealLibraryPutIntoHandEffect(4, filter, Zone.LIBRARY).apply(game, source);\n}\n"
"public Object set(int index, Object element) {\n RangeCheck(index);\n Object oldValue = get(index);\n this.currentCache.set(index - this.currentCacheNo * cacheSize, element);\n return oldValue;\n}\n"
"public static void addToOffSetValue(HandlerContext handlerCtx) {\n String offsetValue = (String) handlerCtx.getInputValue(OFFSET);\n int result = 0;\n try {\n result = Integer.parseInt(offsetValue) + DEFAULT_OFFSET_INCREMENT;\n } catch (NumberFormatException ex) {\n GuiUtil.getLogger().info(\...
"public void update(GL3 gl, ByteBuffer buff, int start, int size) {\n bind(gl);\n if (start == 0 && size >= this.size) {\n gl.glBufferData(target, size, null, usage);\n }\n gl.glBufferSubData(target, start * GLSupport.BYTE_SIZE, size * GLSupport.BYTE_SIZE, buff);\n}\n"
"protected void setup() {\n allowedValueType = AllowedValueType.Discrete;\n allowedValues.add(\"String_Node_Str\");\n allowedValues.add(\"String_Node_Str\");\n return;\n}\n"
"private Set<ReferenceChange> getDELOutgoingReferences(Comparison comparison, ReferenceChange sourceDifference) {\n Set<ReferenceChange> result = new HashSet<ReferenceChange>();\n EObject value = sourceDifference.getValue();\n final List<EObject> outgoingReferences = value.eCrossReferences();\n for (EObject...
"protected void register(ClientWebSocketClient client) throws IOException {\n channel.basicConsume(\"String_Node_Str\" + shardId + \"String_Node_Str\", true, new DefaultConsumer(channel) {\n\n public void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body) throw...
"public boolean isMet(IBlockAccess world, BlockPos pos) {\n return new BlockRange(this.range, pos).stream().map(world::getBlockState).map(FuzzyStack::fromBlockState).map(o -> o.orElse(null)).filter(this.stack::equals).skip(this.amount - 1).findAny().isPresent();\n}\n"
"public void initLayout(ITableContent table) {\n String keyString = context.getHintMapKey(table.getInstanceID().toUniqueString());\n this.layout = new TableContentLayout(table, getOutputFormat(), context, keyString);\n this.layoutEvents = new Stack();\n}\n"
"public void reapplyPackageAndClassAdapters(Property prop, TypeInfo owningInfo) {\n if (prop.getXmlJavaTypeAdapter() != null) {\n return;\n }\n JavaClass type = prop.getActualType();\n TypeInfo targetInfo = aProcessor.getTypeInfo().get(type.getQualifiedName());\n if (targetInfo != null) {\n ...
"private void clearAnimationState() {\n final int N = mAllViews.size();\n mQuickQsPanel.setAlpha(0);\n mQuickQsPanel.setVisibility(View.VISIBLE);\n for (int i = 0; i < N; i++) {\n View v = mAllViews.get(i);\n v.setAlpha(1);\n v.setTranslationX(1);\n v.setTranslationY(1);\n }\n...
"private void buildDisplayList(final GL gl, int iGLDisplayListIndex) {\n if (bRedrawTextures) {\n initTextures(gl);\n bRedrawTextures = false;\n }\n if (bHasFrustumChanged) {\n glHeatMapView.setDisplayListDirty();\n glGeneDendrogramView.setDisplayListDirty();\n glExperimentDe...
"public <T> VertexCursor<T> graphGetVertexCursor(String graphName, Class<T> clazz, Object vertexExample, GraphVerticesOptions graphVerticesOptions, AqlQueryOptions aqlQueryOptions) throws ArangoException {\n validateCollectionName(graphName);\n String query = \"String_Node_Str\";\n Map<String, Object> bindVars...
"private void drawSeedTitle(int index) {\n ItemStack seed = discoveredSeeds[index];\n String title = seed.getDisplayName();\n BlockWithMeta soil = GrowthRequirements.getGrowthRequirement((ItemSeeds) seed.getItem(), seed.getItemDamage()).getSoil();\n Minecraft.getMinecraft().getTextureManager().bindTexture(R...
"public void onResponseReceived(Request request, Response response) {\n if (response.getStatusCode() != Response.SC_OK) {\n errorLogger.log(Level.SEVERE, \"String_Node_Str\" + url + \"String_Node_Str\" + response.getStatusCode() + \"String_Node_Str\" + response.getText());\n callback.onFailure(getError...
"public URL findResource(ModuleHandle moduleHandle, String fileName, int type) {\n if (fileName == null)\n return null;\n try {\n File f = new File(fileName);\n if (f.isAbsolute())\n return f.exists() && f.isFile() ? f.getCanonicalFile().toURL() : null;\n try {\n ...
"private void recalculatePredictedState() {\n for (AbstractMoveItemRequest request : pendingMoves.values()) {\n if (request instanceof MoveItemRequest) {\n MoveItemRequest r = (MoveItemRequest) request;\n destroyClientTempEntities(r);\n Collection<EntityRef> newClientTempEntit...
"public Long value() {\n return fsInfo.available();\n}\n"
"public void testSearchTruncatedDomain() throws Exception {\n mockMvc.perform(get(DOMAIN_SEARCH_URI + \"String_Node_Str\" + \"String_Node_Str\").accept(MediaType.parseMediaType(rdapJson))).andExpect(status().isOk()).andExpect(content().contentType(rdapJson)).andExpect(jsonPath(\"String_Node_Str\").value(true)).andEx...
"public void testJavaCartridgeAgent() throws Exception {\n Thread communicatorThread = new Thread(new Runnable() {\n public void run() {\n List<String> outputLines = new ArrayList<String>();\n log.info(\"String_Node_Str\");\n while (!outputStream.isClosed()) {\n ...
"public void installModules(String[] jarNames) {\n Shell shell = PlatformUI.getWorkbench().getDisplay().getActiveShell();\n ModulesInstaller.installModules(new Shell(shell), jarNames);\n}\n"
"public Object getIdentifier(Object entity) {\n Class<?> entityClass = entity.getClass();\n return PropertyAccessorHelper.getId(entity, null);\n}\n"
"protected void handleExpressionButtonSelectEvent() {\n ExpressionBuilder expression = new ExpressionBuilder(expressionText.getText());\n expression.setExpressionProvider(new CubeExpressionProvider(input));\n if (expression.open() == OK) {\n if (expression.getResult() != null)\n expressionTex...
"public void onClick(ClickEvent event) {\n List<String> history = new ArrayList<>();\n history.addAll(RepresentationInformationNetwork.RESOLVER.getHistoryPath());\n history.add(Search.RESOLVER.getHistoryToken());\n history.add(RodaConstants.REPRESENTATION_INFORMATION_TAGS);\n history.add(category);\n ...
"public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n switch(requestCode) {\n case LOCATION_PERMISSION_REQUEST_CODE:\n boolean shouldShowLocation = false;\n for (int grantResult : grantResults) {\n if (grantResult == Package...
"public static ErrorMessageLoader getInstance() {\n if (instance == null) {\n final String messageFileName = inputValidationMessageFile;\n final InputStream msgStream = ErrorMessageLoader.class.getClassLoader().getResourceAsStream(messageFileName);\n try {\n instance = new ErrorMessag...
"public List<List<AnnotationObject>> getRecommendationsForWholeProject(Predictions model, AnnotationLayer aLayer) {\n List<List<AnnotationObject>> result = new ArrayList<>();\n Map<String, List<List<AnnotationObject>>> recommendationsMap = model.getPredictionsForWholeProject(aLayer, documentService, true);\n S...
"public boolean performFinish() {\n IProxyRepositoryFactory repositoryFactory = ProxyRepositoryFactory.getInstance();\n Context ctx = CorePlugin.getContext();\n RepositoryContext repositoryContext = (RepositoryContext) ctx.getProperty(Context.REPOSITORY_CONTEXT_KEY);\n try {\n Project projectInfor = ...
"public Map<String, String[]> getParameterMap() {\n if (this.params == null) {\n Map<String, List<String>> paramsMap = new HashMap<>();\n this.parseParamString(this.getQueryString(), paramsMap);\n if (this.getMethod().toLowerCase().equals(\"String_Node_Str\")) {\n switch(this.getConte...
"private void setAnnotationActions(Object obj, IMenuManager manager) {\n if (obj instanceof XSDElementDeclaration) {\n manager.add(setAnnotationDescriptionsAction);\n manager.add(setAnnotationLookupFieldsAction);\n manager.add(setAnnotationPrimaryKeyInfoAction);\n }\n if (obj instanceof XS...
"public ODM getEvent(String studyOid, String studySubjectOid) throws Exception {\n ResourceBundleProvider.updateLocale(new Locale(\"String_Node_Str\"));\n return getODM(studyOid, studySubjectId);\n}\n"
"private ConstructorMetadata createRevisionItemConstructor() {\n List<AnnotatedJavaType> parameterTypes = new ArrayList<AnnotatedJavaType>(2);\n parameterTypes.add(new AnnotatedJavaType(context.getEntity()));\n parameterTypes.add(new AnnotatedJavaType(revisionEntityMetadata.getType()));\n parameterTypes.add...
"protected int doRun() throws FlagUsageException, IOException {\n Compiler.setLoggingLevel(Level.parse(config.loggingLevel));\n compiler = createCompiler();\n B options = createOptions();\n List<SourceFile> externs = createExterns(options);\n List<JSModule> modules = null;\n Result result = null;\n ...
"public Serializable[] serializableObjects() {\n BigQueryOptions options = BigQueryOptions.builder().projectId(\"String_Node_Str\").authCredentials(AuthCredentials.createForAppEngine()).build();\n BigQueryOptions otherOptions = options.toBuilder().projectId(\"String_Node_Str\").authCredentials(null).build();\n ...
"public static ODataResponse build(Object jpaEntity, GetEntityUriInfo resultsView, String contentType, ODataJPAContext oDataJPAContext) throws ODataJPARuntimeException {\n EdmEntityType edmEntityType = null;\n ODataResponse odataResponse = null;\n try {\n edmEntityType = resultsView.getTargetEntitySet()...
"public void resolveLayoutDirection(int layoutDirection) {\n final boolean isLayoutRtl = isLayoutRtl();\n if (isLayoutRtl) {\n if (mStart != DEFAULT_MARGIN_RELATIVE)\n mRight = mStart;\n if (mEnd != DEFAULT_RELATIVE)\n mLeft = mEnd;\n } else {\n if (mStart != DEFAULT_...
"public void testGetDBConnectionSchema() {\n DatabaseConnection conn = mock(DatabaseConnection.class);\n when(conn.getUiSchema()).thenReturn(\"String_Node_Str\");\n Assert.assertEquals(ExtractMetaDataUtils.getDBConnectionSchema(conn), \"String_Node_Str\");\n}\n"
"private void enableTransparency(GL2 gl) {\n gl.glEnable(GL2.GL_BLEND);\n if (!alphaFaceCulling) {\n gl.glDepthMask(false);\n setFaceStyle(FaceStyle.FRONT_AND_BACK);\n }\n gl.glBlendFunc(sBlending.value(), dBlending.value());\n}\n"
"public String toString(final int paternal, final int maternal) {\n StringBuilder sbStr = new StringBuilder();\n VariantOverallType t = getType();\n sbStr.append(chr == null ? \"String_Node_Str\" : chr.toString());\n sbStr.append(\"String_Node_Str\");\n sbStr.append(pos - (refDeleted == null ? 0 : refDel...
"protected boolean isPasswordParam(IElementParameter parameter) {\n String value = String.valueOf(parameter.getValue());\n if (ContextParameterUtils.containContextVariables(value)) {\n return false;\n }\n return true;\n}\n"
"private boolean verifyStruct(ThriftType t, boolean quiet) {\n ThriftStructMetadata<?> metadata = t.getStructMetadata();\n boolean ok = true;\n for (ThriftFieldMetadata fieldMetadata : metadata.getFields(FieldType.THRIFT_FIELD)) {\n boolean fieldOk = verifyField(fieldMetadata.getThriftType());\n ...
"private void displayPasswordComposite() {\n if (PluginChecker.isSVNProviderPluginLoaded()) {\n if (getConnection() != null) {\n boolean local = RepositoryConstants.REPOSITORY_LOCAL_ID.equals(getConnection().getRepositoryId());\n if (local) {\n GridData layoutData = (GridD...
"private Double computeReward(Player player, ecoReward reward) {\n Double amount = reward.getRewardAmount();\n Double groupAmount = 0D;\n Double timeAmount = 0D;\n Double envAmount = 0D;\n if (isIntegerCurrency) {\n amount = (double) Math.round(amount);\n }\n try {\n String group = ec...
"public SpeechletResponse onIntent(SpeechletRequestEnvelope<IntentRequest> speechletRequestEnvelope) {\n IntentRequest intentRequest = speechletRequestEnvelope.getRequest();\n Session session = speechletRequestEnvelope.getSession();\n log.info(\"String_Node_Str\", intentRequest.getRequestId(), session.getSessi...
"public void execute(Event<ApplicationRegistryWorkingArea> event) throws Exception {\n String categoryName = event.getRequestContext().getRequestParameter(OBJECTID);\n ApplicationRegistryWorkingArea workingArea = event.getSource();\n workingArea.setSeletcApplication(categoryName);\n Application selectedPort...
"public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == ImageCropperActivity.INTENT_RESULT_CODE) {\n if (resultCode == RESULT_OK) {\n isNeedUpdateAvatar = true;\n String filePath = data.getStringExtra(QBServiceConsts.EXTRA_FILE_PATH);\n ...
"public TableEntryLocation[] parseTableEntryLocations(String expression) {\n resultList.clear();\n if (expression != null) {\n matcher.setMultiline(true);\n if (patternMatcherInput == null) {\n patternMatcherInput = new PatternMatcherInput(expression);\n } else {\n patte...
"public void jsonSourceMapperTest10() throws InterruptedException {\n log.info(\"String_Node_Str\");\n String streams = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n String query =...
"public void testGeneralCellValue1() {\n SBook book = SBooks.createBook(\"String_Node_Str\");\n SSheet sheet = book.createSheet(\"String_Node_Str\");\n Date now = new Date();\n ErrorValue err = new ErrorValue(ErrorValue.INVALID_FORMULA);\n SCell cell = sheet.getCell(1, 1);\n Assert.assertEquals(CellTy...
"private static JSType meetHelper(JSType lhs, JSType rhs) {\n if (lhs.isTop()) {\n return rhs;\n }\n if (rhs.isTop()) {\n return lhs;\n } else if (lhs.isUnknown()) {\n return rhs;\n } else if (rhs.isUnknown()) {\n return lhs;\n } else if (lhs.isBottom() || rhs.isBottom()) {...