content
stringlengths
40
137k
"private void outputSfnts(PrintStream out) {\n String[] tablesDesired = { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n List<String> tablesToAdd = new ArrayList<String>();\n addTables(tablesToAdd, tablesDes...
"protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {\n if (enabled) {\n if (source == searchButton) {\n fireSearchEvent(ureq);\n }\n }\n}\n"
"public String generateInitializeCode() throws IllegalActionException {\n CodeStream codeStream = _templateParser.getCodeStream();\n codeStream.clear();\n LinkedList args = new LinkedList();\n Parameter stopTime = ((ptolemy.actor.lib.PoissonClock) getComponent()).stopTime;\n double doubleStopTime = ((Dou...
"private void rebuildWebTextView() {\n if (!hasFocus() && (null == mWebTextView || !mWebTextView.hasFocus()) || (mTouchMode >= FIRST_SCROLL_ZOOM && mTouchMode <= LAST_SCROLL_ZOOM)) {\n return;\n }\n boolean alreadyThere = inEditingMode();\n if (0 == mNativeClass || !nativeFocusCandidateIsTextInput())...
"public final boolean zoomOut() {\n if (bStepFixed) {\n return false;\n if (((Number) oStep).doubleValue() >= Double.MAX_VALUE)\n return false;\n if ((iType & NUMERICAL) == NUMERICAL) {\n if ((iType & LOGARITHMIC) == LOGARITHMIC) {\n final double dStep = asDouble(oStep).doubleVa...
"private String getCustomTokenErrorDescription() {\n final Token nextToken = currentToken.next;\n final int kind = nextToken.kind;\n if (kind == EOF) {\n for (int i = 0; i < expectedTokenSequences.length; i++) {\n int[] sequence = expectedTokenSequences[i];\n for (int j = 0; j < se...
"public void updateCachedCollaborators(List<User> ghCollaborators) {\n ArrayList<TurboUser> newCollaborators = CollectionUtilities.getHubTurboUserList(ghCollaborators);\n updateCachedList(collaborators, newCollaborators, repoId);\n}\n"
"protected void registerBuiltInHandlers(LayoutBuilder layoutBuilder) {\n ViewParser viewParser = new ViewParser(View.class);\n ImageViewParser imageViewParser = new ImageViewParser(viewParser);\n ImageButtonParser imageButtonParser = new ImageButtonParser(imageViewParser);\n NetworkImageViewParser networkIm...
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.activity_main);\n ViewParams params = new ViewParams(getResources().getDisplayMetrics());\n initParams(params);\n mLayout = (LinearLayout)...
"public void run() {\n if (mMode == MODE_NORMAL)\n return;\n ImageViewTouchBase oldView = mSlideShowImageViews[mSlideShowImageCurrent];\n if (++mSlideShowImageCurrent == mSlideShowImageViews.length) {\n mSlideShowImageCurrent = 0;\n }\n ImageViewTouchBase newView = mSlideShowImageViews[mSli...
"protected void walkMemberGetDependencies(BoundedObjectSet bos, BosMember member) throws Exception {\n if (!(member instanceof XmlBosMember)) {\n } else {\n Element elem = ((XmlBosMember) member).getElement();\n this.walkedMembers.add(member);\n if (DitaUtil.isDitaMap(elem)) {\n wa...
"public void unlock(Item obj) throws PersistenceException, LoginException {\n if (!(obj instanceof FolderItem) && (obj.eResource() == null || obj.getProperty().eResource() == null)) {\n obj = getUptodateProperty(obj.getProperty()).getItem();\n }\n if (getStatus(obj) == ERepositoryStatus.LOCK_BY_USER || ...
"public void fatalError(String str) {\n System.err.println(str);\n if (inAnApplet) {\n vncContainer.removeAll();\n if (rfb != null) {\n rfb = null;\n }\n Label errLabel = new Label(str);\n errLabel.setFont(new Font(\"String_Node_Str\", Font.PLAIN, 12));\n vncCo...
"public void onBlockFromTo(BlockFromToEvent event) {\n Block block = event.getToBlock();\n AutoRefMatch match = plugin.getMatch(block.getWorld());\n if (match != null && match.hasFlag(block.getLocation().add(0.5, 0d, 0.5), AutoRefRegion.Flag.NO_FLOW)) {\n event.setCancelled(true);\n }\n}\n"
"public double distanceToSquared(BlockPos index) {\n int dx = index.getX() - (xMin + (xMax - xMin + 1));\n int dy = index.getY() - (yMin + (yMax - yMin + 1));\n int dz = index.getZ() - (zMin + (zMax - zMin + 1));\n return dx * dx + dy * dy + dz * dz;\n}\n"
"public String getName() {\n return avatarName;\n}\n"
"protected void channelIdle(ChannelHandlerContext ctx, IdleState state, long lastActivityTimeMillis) throws Exception {\n ctx.getChannel().close();\n for (Entry<String, Channel> e : connectionsPool.entrySet()) {\n if (e.getValue().equals(ctx.getChannel())) {\n connectionsPool.remove(e.getKey());...
"void readAll(final SocketChannel socketChannel) throws IOException, InterruptedException {\n for (; ; ) {\n if (sizeOfNextEntry == Long.MIN_VALUE) {\n if (bytes.remaining() < 8) {\n socketChannel.read(byteBuffer);\n bytes.limit(byteBuffer.position());\n ...
"public ArrayList<ItemStack> dismantleBlock(EntityPlayer player, World world, int x, int y, int z, boolean returnDrops) {\n TileTesseract tile = (TileTesseract) world.getTileEntity(x, y, z);\n if (tile != null) {\n tile.removeFromRegistry();\n tile.inventory = new ItemStack[0];\n }\n return su...
"public void setSubreddit(String subreddit) {\n if (!Objects.equalsIgnoreCase(this.subreddit, subreddit)) {\n this.subreddit = subreddit;\n this.sessionId = createSessionId();\n }\n}\n"
"private static boolean file_exists(Item c, File f) {\n return c != null && f != null && !c.disposed && c.all_children.contains(f.getPath().toLowerCase());\n}\n"
"private ResourceBundle initResourceBundle() {\n try {\n return ResourceBundle.getBundle(getLoggerResourceBundleName(name), Locale.getDefault(), cloader);\n } catch (MissingResourceException e) {\n String root = clazz.getPackage().getName();\n try {\n return ResourceBundle.getBundl...
"public void NestedAggregateWithScrambleTableTest() throws VerdictDBException {\n String sql = \"String_Node_Str\";\n NonValidatingSQLParser sqlToRelation = new NonValidatingSQLParser();\n SelectQuery selectQuery = (SelectQuery) sqlToRelation.toRelation(sql);\n QueryExecutionPlan queryExecutionPlan = new Qu...
"private void startServer() throws IOException {\n InetSocketAddress rpcServerAddress = getServerAddress();\n this.rpcService = new RPCService(rpcServerAddress.getPort(), 2, null);\n this.rpcService.setProtocolCallbackHandler(SopremoExecutionProtocol.class, this);\n}\n"
"public void testPutNegativeSignature() throws Exception {\n invocationsCollector.put(jvmUuid1, now, \"String_Node_Str\", -1L, null);\n}\n"
"private void updateConfig() {\n int itemOpenInvItemId = plugin.getConfig().getInt(\"String_Node_Str\", 280);\n boolean checkForUpdates = plugin.getConfig().getBoolean(\"String_Node_Str\", true);\n boolean notifySilentChest = plugin.getConfig().getBoolean(\"String_Node_Str\", true);\n boolean notifyAnyChest...
"private void updateNodeOnLink(CreationTool tool) {\n try {\n Class toolClass = TargetingTool.class;\n Field targetRequestField = toolClass.getDeclaredField(\"String_Node_Str\");\n Field targetEditpartField = toolClass.getDeclaredField(\"String_Node_Str\");\n targetRequestField.setAccessi...
"public String getLabel() {\n if (getProject() != null) {\n String urlBranch = null;\n if (ProjectManager.getInstance().getCurrentBranchURL(project) != null) {\n urlBranch = showSVNRoot();\n }\n return getProject().getLabel() + (urlBranch != null && !\"String_Node_Str\".equals(...
"public static void parseRingtoneData(Context context, Intent data) {\n if (data == null)\n return;\n Uri ringtoneUri = data.getParcelableExtra(EXTRA_RINGTONE_PICKED_URI);\n if (ringtoneUri != null) {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n pre...
"public Drawable loadDrawable(String image_url) {\n URL url = null;\n InputStream inputStream = null;\n try {\n url = new URL(image_url);\n inputStream = (InputStream) url.getContent();\n } catch (Exception e) {\n e.printStackTrace();\n }\n Drawable drawable = Drawable.createFromS...
"public void testNeedExclude() {\n final FilterUtils f = new FilterUtils(false, filterMap);\n f.setLogger(new TestUtils.TestLogger());\n assertFalse(f.needExclude(attr(\"String_Node_Str\", \"String_Node_Str\"), new String[0][0]));\n assertFalse(f.needExclude(attr(\"String_Node_Str\", \"String_Node_Str\"), n...
"public void test() throws Exception {\n SevereLoggingMonitor monitor = TestUtil.severeLoggingStart();\n AtsTestUtil.cleanupAndReset(getClass().getSimpleName());\n Assert.assertFalse(AtsClientService.get().getUserAdmin().getCurrentOseeUser().getRelatedArtifacts(AtsRelationTypes.FavoriteUser_Artifact).contains(...
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);\n View view = inflater.inflate(R.layout.time_picker_dialog, null);\n KeyboardListener keyboardListener = new KeyboardListener();\n view.find...
"public List getAllScriptLibs() {\n return getFilteredStructureList(SCRIPTLIBS_PROP, ScriptLib.SCRIPTLIB_NAME_MEMBER);\n}\n"
"public static void convertSWF(AbortRetryIgnoreHandler handler, SWF swf, String swfFileName, String outfile, boolean compressed, String generator, String generatorVerName, String generatorVersion, boolean parallel, FLAVersion flaVersion) throws IOException, InterruptedException {\n FileAttributesTag fa = swf.getFile...
"public void addKeepOpenVars(Collection<Var> v) {\n super.addKeepOpenVars(v);\n this.loopContinue.removeKeepOpenVars(v);\n this.loopBreak.removeKeepOpenVars(v);\n}\n"
"private <T> ResponseEntity<T> login(final String path, final Class<T> respEntityType, final String username, final String password) {\n StringBuilder uriBuff = new StringBuilder();\n uriBuff.append(hostUri).append(path);\n return restPostByUri(uriBuff.toString(), username, password, respEntityType, false);\n}...
"private void scheduleBackup(Operation op, Backup backup, int partitionId, int replicaIndex) {\n final RemoteCallKey key = new RemoteCallKey(op);\n if (logger.isFinestEnabled()) {\n logger.finest(\"String_Node_Str\" + backup);\n }\n backupScheduler.schedule(500, key, new ScheduledBackup(backup, parti...
"public void addPathToTree(Path path) {\n try (DirectoryStream<Path> directoryStream = Files.newDirectoryStream(path)) {\n final List<Path> pathList = StreamSupport.stream(directoryStream.spliterator(), false).collect(Collectors.toList());\n List<TreeItem<Item>> subItemList = pathList.stream().filter(p...
"protected void createActions() {\n this.newConceptAction = new XSDNewConceptAction(this);\n this.deleteConceptAction = (XSDDeleteConceptAction) getAdapter(XSDDeleteConceptAction.class);\n this.newBrowseItemAction = new XSDNewBrowseItemViewAction(this);\n this.deleteConceptWrapAction = new XSDDeleteConceptW...
"byte[] coSigner(final String signatureAlgorithm, final X509Certificate[] signerCertificateChain, final InputStream data, final AdESPolicy policy, final boolean signingCertificateV2, final PrivateKeyEntry keyEntry, final byte[] md) throws IOException, NoSuchAlgorithmException, CertificateException {\n final ASN1Inpu...
"protected void onListItemClick(ListView l, View v, int position, long id) {\n super.onListItemClick(l, v, position, id);\n final ScanResult result = mAdapter.getItem(position);\n if (result != null) {\n final Keygen keygen = mWifiMatcher.getKeygen(result);\n if (keygen != null && (result.capabil...
"public void mouseDragged(MouseEvent evt) {\n if (model == null) {\n return;\n }\n double w = getWidth();\n currentMousePositionX = evt.getX();\n if (currentMousePositionX > (int) w) {\n currentMousePositionX = (int) w;\n }\n if (currentMousePositionX < 0) {\n currentMousePosit...
"public File getPermanentDirectory() {\n if (this.permanentDirectory == null) {\n final String classSpecified = getPermanentDirectoryName();\n final String configured = this.configurationProvider.get().getPermanentDirectoryPath();\n if (classSpecified == null && configured == null) {\n ...
"public boolean update() {\n final jedd.internal.RelationContainer simpleOut = new jedd.internal.RelationContainer(new jedd.Attribute[] { srcc.v(), src.v(), dstc.v(), dst.v() }, new jedd.PhysicalDomain[] { C2.v(), V1.v(), C1.v(), V2.v() }, (\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_N...
"private void checkProtoCycle(ErrorReporter reporter) {\n JSType referencedType = getReferencedType();\n if (areIdentical(referencedType, this)) {\n handleTypeCycle(reporter);\n }\n}\n"
"public static void transferCompatibleProperties(Object source, Object dest) {\n Property[] destProps = Introspector.getProperties(dest);\n for (Property srcProp : Introspector.getProperties(source)) {\n String name = srcProp.getName();\n for (Property destProp : destProps) {\n if (name.e...
"public void processBeanIdentityStoreHandlerTrueIdentityStoreTrue() {\n final Set<Type> types = new HashSet<Type>();\n types.add(new TypeLiteral<Bean>() {\n }.getType());\n types.add(new TypeLiteral<IdentityStoreHandler>() {\n }.getType());\n final Set<Type> types2 = new HashSet<Type>();\n types2.a...
"public static List<Entry> getAddresses(String spaceSepIds) {\n synchronized (sInstance) {\n List<Entry> numbers = new ArrayList<Entry>();\n String[] ids = spaceSepIds.split(\"String_Node_Str\");\n for (String id : ids) {\n long longId;\n try {\n longId = Lon...
"public ResponseEntity<Location> updateLocation(Location location) throws URISyntaxException {\n if (location.getId() == null) {\n return this.locationResource.createLocation(location);\n }\n Location result = locationService.save(location);\n return ResponseEntity.ok().headers(HeaderUtil.createEntit...
"public void test() {\n try {\n KsDef ksDef = CassandraCli.client.describe_keyspace(\"String_Node_Str\");\n Assert.assertNotNull(ksDef);\n Assert.assertEquals(18, ksDef.getCf_defsSize());\n int count = 0;\n for (CfDef cfDef : ksDef.cf_defs) {\n if (cfDef.getName().equals...
"private String makeTime(Long nanoSeconds) {\n if (nanoSeconds == null)\n return null;\n Long hours = 0L, minutes = 0L, seconds = 0L, millis = 0L;\n String timeStr = \"String_Node_Str\";\n nanos = nanoSeconds % 1000;\n nanoSeconds /= 1000;\n mikros = nanoSeconds % 1000;\n nanoSeconds /= 1000...
"protected void onZap(Ballistica bolt) {\n Char ch = Actor.findChar(bolt.collisionPos);\n if (ch != null && !(ch instanceof NPC)) {\n if (ch.buff(Corruption.class) != null) {\n GLog.w(Messages.get(this, \"String_Node_Str\"));\n return;\n }\n if (ch.properties().contains(...
"public boolean performDrop(Object transfer, Object target, int operation, DNDLocation location) {\n if (target instanceof EditPart) {\n EditPart editPart = (EditPart) target;\n CommandStack stack = SessionHandleAdapter.getInstance().getCommandStack();\n if (DesignerPaletteFactory.TIMEPERIOD_TEM...
"private LValueResultBwd analyzePropLValBwd(Node obj, QualifiedName pname, TypeEnv outEnv, JSType type, boolean doSlicing) {\n Preconditions.checkArgument(pname.isIdentifier());\n JSType reqObjType = pickReqObjType(obj.getParent()).withLoose().withProperty(pname, type);\n LValueResultBwd lvalue = analyzeLValue...
"public void onPrepareProviderResource(BeanCustomizerContext context) {\n EndpointInfo endpointInfo = context.getEndpointInfo();\n Set<ProviderResourceInfo> perRequestProviderAndPathInfos = endpointInfo.getPerRequestProviderAndPathInfos();\n Set<ProviderResourceInfo> singletonProviderAndPathInfos = endpointInf...
"public void acquireLock(String propName) throws IllegalStateException {\n usages = Observers.beginComputing(this, propName, usages);\n}\n"
"private byte[] getBytesFromECPublicKey(ECPublicKey ecPublicKey) {\n ECPoint ecPoint = ecPublicKey.getW();\n byte type = 0x04;\n byte[] x = ecPoint.getAffineX().toByteArray();\n byte[] y = ecPoint.getAffineY().toByteArray();\n x = Arrays.copyOfRange(x, Math.max(0, x.length - 32), x.length);\n y = Arra...
"public void layoutWindowLw(WindowState win, WindowState attached) {\n if ((win == mStatusBar && !canReceiveInput(win)) || win == mNavigationBar) {\n return;\n }\n final WindowManager.LayoutParams attrs = win.getAttrs();\n final boolean isDefaultDisplay = win.isDefaultDisplay();\n final boolean ne...
"protected void onRestoreInstanceState(Bundle savedInstanceState) {\n mState = savedInstanceState.<EntitySet>getParcelable(KEY_EDIT_STATE);\n bindTabs();\n bindHeader();\n if (hasValidState()) {\n final Long selectedId = savedInstanceState.getLong(KEY_SELECTED_RAW_CONTACT);\n setSelectedRawCon...
"public String getName() {\n return getOption(\"String_Node_Str\", null, getIdentifier());\n}\n"
"private static List<Person> getPeople(String table, int localTableBlogId) {\n String[] args = { Integer.toString(localTableBlogId) };\n String orderBy;\n if (shouldOrderAlphabetically(table)) {\n orderBy = \"String_Node_Str\";\n }\n Cursor c = getReadableDb().rawQuery(\"String_Node_Str\" + table ...
"public void resolveTypes(MarkerList markers, IContext context) {\n TupleType tupleType = new TupleType();\n for (int i = 0; i < this.valueCount; i++) {\n IValue v = this.values[i];\n v.resolveTypes(markers, context);\n type.addType(v.getType());\n }\n type.getTheClass();\n this.tupl...
"public boolean onBreak(Player p, Block b, SlimefunItem item, UnregisterReason reason) {\n for (int slot : getInputSlots()) {\n if (BlockStorage.getInventory(b).getItemInSlot(slot) != null) {\n b.getWorld().dropItemNaturally(b.getLocation(), BlockStorage.getInventory(b).getItemInSlot(slot));\n }...
"public void signInOnLocalDoesNotSetCookieWithSSL() throws Exception {\n String json = TestUtils.createJson(\"String_Node_Str\" + TEST_STUDY_ID_STRING + \"String_Node_Str\");\n response = mockPlayContextWithJson(json);\n when(controller.bridgeConfig.getEnvironment()).thenReturn(Environment.LOCAL);\n when(co...
"public String toString() {\n return \"String_Node_Str\" + \"String_Node_Str\" + recordMap.size() + '}';\n}\n"
"private JsonValue transformRequestBody(JsonValue body) throws InternalServerErrorException {\n if (body.isDefined(\"String_Node_Str\")) {\n try {\n List<AuthConfigurationEntry> entries = new ArrayList<>();\n for (JsonValue entry : body.get(\"String_Node_Str\")) {\n String...
"public double train() throws IOException {\n if (toLoggingProcess)\n log.info(\"String_Node_Str\");\n if (toLoggingProcess) {\n if (this.dryRun) {\n log.info(\"String_Node_Str\" + this.trainerID);\n } else {\n log.info(\"String_Node_Str\" + this.trainerID);\n }\n...
"public String ingestFluid(GameCharacter charactersFluid, FluidType fluid, OrificeType orificeIngestedThrough, int millilitres, List<FluidModifier> modifiers) {\n StringBuilder fluidIngestionSB = new StringBuilder();\n if (modifiers.contains(FluidModifier.ALCOHOLIC)) {\n this.incrementAlcoholLevel(millilit...
"private void sync(Uri uri, String sessionId) {\n Cursor c = null;\n try {\n String accountName = uri.getQueryParameter(PARAM_ACCOUNT_NAME);\n String thingId = uri.getQueryParameter(PARAM_THING_ID);\n Context context = getContext();\n String cookie = AccountUtils.getCookie(context, acc...
"public BigDecimal getLatestUSDperETH() throws USDETHFxException {\n Optional<ExchangeAggregateRate> exchangeAggregateRate = exchangeAggregateRateRepository.findFirstOptionalByOrderByCreationDateDesc();\n return exchangeAggregateRate.flatMap((aggregateRate) -> aggregateRate.getExchangeAggregateCurrencyRates(Curre...
"protected final Optional<Expression> visitExprNode(ExprNode node) {\n if (allowsBoxing()) {\n Optional<SoyExpression> compileWithNoDetaches = exprCompiler.compileWithNoDetaches(node);\n if (compileWithNoDetaches.isPresent()) {\n return Optional.of(compileWithNoDetaches.get().boxAsSoyValuePr...
"public void setUp() {\n cache = getCacheManager().configureCache(getTestCacheName(), extraSetup(newMutableConfiguration()));\n}\n"
"public void saveToEmf(EList contextTypeList) {\n if (contextTypeList == null) {\n return;\n }\n if (listContext.isEmpty()) {\n retrieveDefaultContext();\n }\n for (int i = 0; i < listContext.size(); i++) {\n contextType = TalendFileFactory.eINSTANCE.createContextType();\n con...
"public void drawValues(Canvas c) {\n if (mChart.getCandleData().getYValCount() < mChart.getMaxVisibleCount() * mViewPortHandler.getScaleX()) {\n List<CandleDataSet> dataSets = mChart.getCandleData().getDataSets();\n for (int i = 0; i < dataSets.size(); i++) {\n CandleDataSet dataSet = dataS...
"public void pushLocal(FeatureExpr ctx, int index) {\n Conditional<Entry> value = locals[index].simplify(ctx);\n if (value == null) {\n value = new One<>(Entry.create(MJIEnv.NULL, false));\n }\n Boolean isRef = null;\n for (Entry v : value.toList()) {\n if (isRef == null) {\n isR...
"public static final <T extends ChannelHandler> void startDownstream(Integer correlationId, T handler) {\n if (!StackConfiguration.STATISTICS) {\n return;\n } else if (requestStatistics.containsKey(correlationId)) {\n RequestRecord record = requestStatistics.get(correlationId);\n HandlerRecor...
"void updateDisplayInfo(Rect bounds) {\n if (mDisplayContent == null) {\n return;\n }\n for (int taskNdx = mTasks.size() - 1; taskNdx >= 0; --taskNdx) {\n mTasks.get(taskNdx).updateDisplayInfo(mDisplayContent);\n }\n if (bounds != null) {\n setBounds(bounds);\n return;\n } ...
"public void readTime() {\n Item clock = getBestClock();\n if (clock != null) {\n IO.writeString(clock.getClockComponent().getTimeString());\n Engine.rollDateAndRefresh(getTimeToReadFromClock(clock));\n }\n World world = getLocation().getWorld();\n Date worldDate = getLocation().getWorld()....
"public void preLogin(SessionEvent event) {\n Project project = event.getSession().getProject();\n for (Object descriptorAlias : project.getAliasDescriptors().keySet()) {\n ClassDescriptor descriptor = (ClassDescriptor) project.getAliasDescriptors().get(descriptorAlias);\n Class<?> descriptorClass =...
"public World call() {\n for (World world : Trident.getWorlds().values()) {\n if (world.name().equals(\"String_Node_Str\"))\n return world;\n }\n return null;\n}\n"
"public void onSimStateChanged(IccCardConstants.State simState) {\n if (DEBUG)\n Log.d(TAG, \"String_Node_Str\" + simState);\n switch(simState) {\n case NOT_READY:\n case ABSENT:\n synchronized (this) {\n if (shouldWaitForProvisioning()) {\n if (!i...
"protected IConnectorHelper getConnectorHelper() {\n ESConnectorHelper esConnectorHelper = null;\n try {\n if (esConnectorHelper == null) {\n esConnectorHelper = new ESConnectorHelper(getClusterName());\n }\n return esConnectorHelper;\n } catch (ConnectionException e) {\n ...
"private static TypeInfo parseInnerType(CSharpBuilderWrapper builder, int flags, TokenSet nameStopperSet) {\n TypeInfo typeInfo = new TypeInfo();\n PsiBuilder.Marker marker = builder.mark();\n boolean varSupport = BitUtil.isSet(flags, VAR_SUPPORT) && builder.getVersion().isAtLeast(CSharpLanguageVersion._2_0);\...
"protected void setup() {\n expectedException = DescriptorException.attributeAndMappingWithTransparentIndirectionMismatch(new DirectToFieldMapping(), null, null);\n expectedException.setErrorCode(138);\n orgIntegrityChecker = getSession().getIntegrityChecker();\n getSession().setIntegrityChecker(new Integri...
"protected void createCache(String namespace) {\n try {\n this.cacheImpl = CacheFactory.getInstance().getCache(namespace);\n } catch (UnavailableCacheException e) {\n this.cacheImpl = null;\n }\n}\n"
"public void endElement(String namespaceURI, String localName, String qName) throws SAXException {\n try {\n if (null != selfRecords) {\n for (int x = 0, selfRecordsSize = selfRecords.size(); x < selfRecordsSize; x++) {\n UnmarshalRecord selfRecord = selfRecords.get(x);\n ...
"public void sendTicketByEmail(Ticket ticket, Event event, Locale locale, TextTemplateBuilder textBuilder, PDFTemplateBuilder ticketBuilder) throws DocumentException {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n ticketBuilder.generate(ticket).createPDF(baos);\n Mailer.Attachment attachment = ...
"private void setupSimpleFields() {\n NodeList childNodes = document.getDocumentElement().getChildNodes();\n for (int i = 0; i < childNodes.getLength(); i++) {\n Node node = childNodes.item(i);\n if (node instanceof Element) {\n Element element = (Element) node;\n String field ...
"public void testCRAMReader3_RequiredReference() {\n File inputFile = new File(TEST_DATA_DIR, \"String_Node_Str\");\n File indexFile = null;\n ReferenceSource refSource = null;\n new CRAMFileReader(CRAM_WITH_CRAI, indexFile, refSource);\n}\n"
"protected Axis2D getMainMapAxis0(GlimpseTargetStack stack) {\n return getAxis0(getMainMapTargetStack(stack));\n}\n"
"public void check(MarkerList markers, IContext context) {\n if (this.action != null) {\n this.action.check(markers, new CombiningContext(this, context));\n }\n for (int i = 0; i < this.catchBlockCount; i++) {\n CatchBlock block = this.catchBlocks[i];\n if (!Types.THROWABLE.isSuperTypeOf(b...
"private void parseAttributes(List<PresentationAttr> presentationAttributes) {\n numAttributes = 0;\n for (PresentationAttr attr : presentationAttributes) {\n if (\"String_Node_Str\".equals(attr.getName())) {\n numAttributes = Integer.valueOf(attr.getValue());\n attributeValues = new ...
"private List<Object> onQueryOverCompositeColumns(EntityMetadata m, Client client, MetamodelImpl metaModel) {\n List<Object> result;\n Class compoundKeyClass = m.getIdAttribute().getBindableJavaType();\n EmbeddableType compoundKey = metaModel.embeddable(m.getIdAttribute().getBindableJavaType());\n String id...
"protected double findMaxLambda(int[][] indices, double[][] values, int[] y, double[] predictionTrain, double l1Ratio) {\n if (fitIntercept) {\n OptimUtils.fitIntercept(pTrain, rTrain, y);\n }\n double maxLambda = 0;\n for (int k = 0; k < values.length; k++) {\n double eta = 0;\n int[] ...
"public Map<IPath, IPath> mapping(ItemRecord record) {\n Map<IPath, IPath> toImportMap = new HashMap<IPath, IPath>();\n if (record.isValid()) {\n Property property = record.getProperty();\n IPath itemPath = null;\n IPath itemDesPath = null;\n if (property != null) {\n itemPa...
"private void renderPageNumberLinks(StringOutput sb, FlexiTableComponent ftC, int page, int maxPage) {\n if (maxPage < 12) {\n for (int i = 0; i < maxPage; i++) {\n appendPagenNumberLink(sb, ftC, page, i);\n }\n } else {\n int powerOf10 = String.valueOf(maxPage).length() - 1;\n ...
"public void handleMessage(Message message) {\n Object listener = null;\n switch(message.what) {\n case AsyncChannel.CMD_CHANNEL_DISCONNECTED:\n if (mChannelListener != null) {\n mChannelListener.onChannelDisconnected();\n mChannelListener = null;\n }\n ...
"public static DataMessageType toDataMessageType(MessageType a) {\n switch(a) {\n case INTEGER:\n return DataMessageType.INTEGER;\n case CHAR:\n return DataMessageType.CHAR;\n case BYTE:\n return DataMessageType.BYTE;\n case STRING:\n return Dat...
"protected void buildAnalysisScope() {\n try {\n scope = makeSourceAnalysisScope();\n if (getExclusionsFile() != null) {\n scope.setExclusions(FileOfClasses.createFileOfClasses(new File(getExclusionsFile())));\n }\n EclipseProjectPath epath = getEclipseProjectPath();\n f...