content
stringlengths
40
137k
"private void postRetry(final String providerName, final Operation operation, final String action) {\n final long when = System.currentTimeMillis() + getTryDelay(providerName, operation);\n OPFLog.d(\"String_Node_Str\", providerName, SimpleDateFormat.getDateTimeInstance().format(new Date(when)));\n final Inten...
"public void pauseProcessed(ResumeHandle resumeable) {\n downstream.pauseProcessed(resumeable);\n}\n"
"private Class<T> redefineClassOrImplementInterface(Class<T> classToMock) {\n if (classToMock.isInterface()) {\n return createInstanceOfMockedImplementationClass(classToMock, mockedType);\n }\n if (isAbstract(classToMock.getModifiers()) && classToMock.getClassLoader() != null) {\n classToMock = g...
"private GeographicCRS parseGeoGCS(final Element parent) throws ParseException {\n final Element element = parent.pullElement(WKTKeywords.GeogCS);\n Object name = element.pullString(\"String_Node_Str\");\n final Unit<Angle> angularUnit = parseUnit(element, SI.RADIAN);\n final PrimeMeridian meridian = parseP...
"public synchronized void createTables() throws BoardInitException, SQLException {\n PreparedStatement pst = conn.prepareStatement(\"String_Node_Str\");\n ResultSet res = null;\n String commonSql = null;\n try {\n pst.setString(1, \"String_Node_Str\");\n res = pst.executeQuery();\n if (...
"public void resetUid(Uid uid, JsonValue target) {\n if (null != uid && null != target) {\n target.put(ResourceResponse.FIELD_CONTENT_ID, uid.getUidValue());\n }\n}\n"
"public boolean canTarget(UUID id, Ability source, Game game) {\n StackObject stackObject = game.getStack().getStackObject(id);\n return (stackObject instanceof Spell) || (stackObject instanceof StackAbility);\n}\n"
"public boolean isAnnotationPresent(AnnotatedElement elem, Class annotationClass) {\n if (allAnnotationsMap.get(elem) == null) {\n getAnnotationsFromElement(elem);\n }\n return allAnnotationsMap.get(elem).keySet().contains(annotationClass);\n}\n"
"public RequestManager initRequestManager(long requestTimeout) {\n RequestManager requestManager = new RequestManager().withRequestProcessor(new ThreadSamplingRequestProcessor().withRequestLengthSamplingThreshold(5000)).withRequestProcessor(new RequestRecorderRequestProcessor()).withResultsProcessor(new FileResultsA...
"public void setFromConnection(Connection conn) {\n this.conn = conn;\n if (lockAddress == null) {\n lockAddress = conn.getEndPoint();\n}\n"
"private IntObjectHashMap<IntArrayList> getVarConsMap(FactorList factors) {\n IntObjectHashMap<IntArrayList> varConsMap = new IntObjectHashMap<IntArrayList>();\n for (int i = 0; i < factors.size(); i++) {\n Factor factor = factors.get(i);\n if (boundsOnly && !(factor instanceof BoundFactor)) {\n ...
"public String getReference(TypedIOPort port, String[] channelAndOffset, boolean forComposite, boolean isWrite, CodeGeneratorHelper helper) throws IllegalActionException {\n Actor actor = (Actor) port.getContainer();\n Director director = actor.getDirector();\n if (_debugging) {\n _debug(\"String_Node_S...
"public void testImportStatic3() {\n runConformTest(new String[] { \"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 GroovyCompilationUnitDeclaration gcud = getCUDeclFor(\"String_Node_Str\...
"public static Map<String, Object> formatReconEntry(Map<String, Object> entry) {\n Map<String, Object> formattedEntry = new LinkedHashMap<String, Object>();\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n ...
"public boolean parse(Bytes jsonText) {\n TokenType tok;\n long startOffset = jsonText.position();\n around_again: while (true) {\n switch(stateStack.current()) {\n case PARSE_COMPLETE:\n if (topLevelStrategy == ALLOW_MULTIPLE_VALUES) {\n stateStack.set(GOT_V...
"protected RowContent createRowContent() {\n RowContent content = (RowContent) reportContent.createRowContent();\n content.setRowID(100);\n return content;\n}\n"
"private void disconnectConnected(Profile profile) {\n LocalBluetoothProfileManager profileManager = LocalBluetoothProfileManager.getProfileManager(mLocalManager, profile);\n CachedBluetoothDeviceManager cachedDeviceManager = mLocalManager.getCachedDeviceManager();\n Set<BluetoothDevice> devices = profileManag...
"public Path getResourcePath() throws IOException {\n if (resourcePath == null) {\n try {\n resourcePath = determineResourcePath(getConfiguration(), getResourceName());\n } catch (URISyntaxException e) {\n throw new IOException(e);\n }\n }\n return resourcePath;\n}\n"...
"void fixGroupIndex(int j, int to, boolean infront) {\n for (Iterator it = getChildren().listIterator(j); it.hasNext() && (to < 0 || j <= to); ++j) {\n Object o = it.next();\n if (o instanceof Group) {\n int[] g = getLastGroupsInfoAt(j + (infront ? -1 : 1));\n if (g != null) {\n ...
"public void stopDecoding(DecoderListener listener) {\n Timber.i(\"String_Node_Str\");\n this.decoderListenerRef.set(listener);\n if (!isDecoding.get()) {\n if (listener != null) {\n notifyDecodingEnded();\n }\n } else {\n if (decodedFirstFrame.get()) {\n if (proce...
"public boolean isMixedContent() {\n return isMixedContent;\n}\n"
"private void applyMetadataChanges(EntityMetadata metadata) {\n metadata.setPersistenceUnit(persistenceUnit);\n PersistenceUnitMetadata puMetadata = KunderaMetadata.INSTANCE.getApplicationMetadata().getPersistenceUnitMetadata(persistenceUnit);\n String keyspace = puProperties != null ? (String) puProperties.ge...
"public void testParseIssueNonUnicodeSymbols() {\n try {\n String xml = MyIOUtils.getResourceAsString(\"String_Node_Str\");\n String nonLatinSymbols = \"String_Node_Str\";\n List<Issue> issues = RedmineXMLParser.parseObjectsFromXML(Issue.class, xml);\n Assert.assertTrue(issues.size() == 1...
"public void testSimpleNested() {\n JSONObject j1 = new JSONObject();\n j1.put(\"String_Node_Str\", new JSONString(\"String_Node_Str\"));\n JSONObject j2 = new JSONObject();\n j2.put(\"String_Node_Str\", new JSONString(\"String_Node_Str\"));\n JSONObject j22 = new JSONObject();\n j22.put(\"String_Node...
"public static String getStringFromJsonNode(JsonNode jsonNode) {\n return (jsonNode == null || jsonNode.isTextual() && jsonNode.textValue() == null) ? null : jsonNode.toString();\n}\n"
"private void resetDataLoader() {\n if (_dataLoader != null) {\n if (shallReset) {\n _dataLoader.reset();\n smartUpdate(\"String_Node_Str\", 0);\n }\n _dataLoader = null;\n smartUpdate(\"String_Node_Str\", 0);\n }\n smartUpdate(\"String_Node_Str\", true);\n ...
"public boolean checkTrigger(GameEvent event, Game game) {\n if (event.getType().equals(GameEvent.EventType.DAMAGED_PLAYER) && event.getTargetId().equals(this.getControllerId())) {\n DamagedEvent damagedEvent = (DamagedEvent) event;\n return damagedEvent.isCombatDamage();\n }\n return false;\n}\n...
"public void testCreateNeoStore() {\n try {\n initializeStores();\n startTx();\n int node1 = ds.nextId(Node.class);\n nStore.createNode(node1);\n int node2 = ds.nextId(Node.class);\n nStore.createNode(node2);\n int n1prop1 = pStore.nextId();\n int n1prop2 = pSt...
"public boolean equals(Object obj) {\n if (obj == this)\n return true;\n if (obj == null)\n return false;\n if (obj.getClass() != getClass())\n return false;\n return ((GitModelWorkingFile) obj).getLocation().equals(getLocation());\n}\n"
"public List<? extends PortForwardingRule> listPortForwardingRules(ListPortForwardingRulesCmd cmd) {\n Ip ipAddress = new Ip(cmd.getIpAddress());\n Account caller = UserContext.current().getAccount();\n IPAddressVO ipAddressVO = _ipAddressDao.findById(ipAddress.addr());\n if (ipAddressVO == null || !ipAddre...
"public boolean removeMapObject(AbstractHexMapObject mapObject) {\n return objectsGrid.removeMapObject(x, y, mapObject);\n}\n"
"public static ByteBuffer readToByteBuffer(InputStream inputStream) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n byte[] buffer = new byte[4096];\n try {\n while (true) {\n int n = inputStream.read(buffer);\n if (n < 0)\n break;\n ...
"static void assertArraysEqual(String[] actual, String[] expected) {\n try {\n assertEquals(actual, expected, \"String_Node_Str\");\n } catch (AssertionError x) {\n AssertionError ae = new AssertionError(String.format(\"String_Node_Str\", java.util.Arrays.toString(expected), java.util.Arrays.toStrin...
"public void onPersonSelected(Person person) {\n FragmentManager fragmentManager = getFragmentManager();\n PersonDetailFragment personDetailFragment = (PersonDetailFragment) fragmentManager.findFragmentByTag(KEY_PERSON_DETAIL_FRAGMENT);\n long personID = person.getPersonID();\n int localTableBlogID = person...
"public LogisticRegressionParams doCompute(MasterContext<LogisticRegressionParams, LogisticRegressionParams> context) {\n if (isInitialized.compareAndSet(false, true)) {\n if (!context.isFirstIteration()) {\n LogisticRegressionParams lastMasterResult = context.getMasterResult();\n if (la...
"private URL generateRestJobSpringConfig(ProcessItem processItem) throws IOException {\n File targetFile = new File(getTmpFolder() + PATH_SEPARATOR + \"String_Node_Str\");\n NodeType restRequestComponent = getRESTRequestComponent(processItem);\n Map<String, Object> endpointInfo = new HashMap<String, Object>();...
"public <T extends Event> void registerEventReceiver(EventReceiver<T> eventReceiver, Class<T> eventClass, int priority, Class<? extends Component>... componentTypes) {\n EventHandlerInfo info = new ReceiverEventHandlerInfo<T>(eventReceiver, priority, componentTypes);\n addEventHandler(eventClass, info, Arrays.asL...
"private void addProvider(String url) {\n boolean is_new_provider = !solo.searchText(url);\n if (is_new_provider)\n added_providers = added_providers + 1;\n solo.clickOnActionBarItem(R.id.new_provider);\n solo.enterText(0, url);\n if (BuildConfig.FLAVOR.equals(\"String_Node_Str\")) {\n solo...
"public boolean equals(Object obj) {\n if (!super.equals(obj)) {\n return false;\n }\n if (!(obj instanceof SingleInstanceProfilingEvent)) {\n return false;\n }\n final SingleInstanceProfilingEvent singleInstanceProfilingEvent = (SingleInstanceProfilingEvent) obj;\n if (!this.instanceNam...
"public boolean testZOverlap(Object3D near) {\n return !((this.getZMin() >= near.getZMax()) || (near.getZMin() >= this.getZMax()));\n}\n"
"public boolean checkTrigger(GameEvent event, Game game) {\n Permanent permanent = game.getPermanent(event.getTargetId());\n if (permanent != null && permanent.getControllerId().equals(this.controllerId) && (permanent.getSubtype().contains(\"String_Node_Str\") || permanent.getSubtype().contains(\"String_Node_Str\...
"public IStatus testRun(IProgressMonitor m) {\n GraphUIJob uijob = new GraphUIJob(Messages.getString(\"String_Node_Str\"), this, viewID);\n uijob.schedule();\n view = uijob.getViewer();\n return Status.OK_STATUS;\n}\n"
"public void unloadResources(Property property) {\n for (Resource resource : getAffectedResources(property)) {\n if (resource != null) {\n resource.unload();\n resourceSet.getResources().remove(resource);\n }\n }\n}\n"
"private void addDatastoreEntity(final DatastoreType type, final List<String> datastores, final String name, final boolean regex) {\n if (dsDao.nameExisted(name)) {\n throw BddException.ALREADY_EXISTS(\"String_Node_Str\", name);\n }\n resService.refreshDatastore();\n for (String ds : datastores) {\n ...
"public byte[] get() {\n if (isInMemory()) {\n if (cachedContent == null) {\n cachedContent = dfos.getData();\n }\n return cachedContent;\n }\n byte[] fileData = new byte[(int) getSize()];\n FileInputStream fis = null;\n try {\n fis = new FileInputStream(dfos.getFil...
"private void registerPlayerSkinListener() {\n PacketListener spawnListener = new PacketAdapter(PacketAdapter.params(SkinsRestorer.getInstance(), PacketType.Play.Server.NAMED_ENTITY_SPAWN).listenerPriority(ListenerPriority.HIGHEST)) {\n\n public void onPacketSending(PacketEvent event) {\n Structure...
"public void testPE1603() throws Throwable {\n assertTimestampValue(2, null);\n conn.execute(\"String_Node_Str\");\n assertTimestampValue(2, 10l);\n conn.execute(\"String_Node_Str\");\n assertTimestampValue(2, null);\n conn.execute(\"String_Node_Str\");\n assertTimestampValue(2, 300000000l);\n c...
"public String getSetting(String name) throws RemoteException {\n String value = null;\n try {\n SQLiteDatabase policyDb = getDatabase();\n if (mStmtGetSetting == null) {\n String sql = \"String_Node_Str\" + cTableSetting + \"String_Node_Str\";\n mStmtGetSetting = policyDb.comp...
"public void setSource(String source) {\n this.source = source == null ? \"String_Node_Str\" : source;\n}\n"
"private IVirtualArray pmlcluster(EClustererType eClustererType) {\n int[] clusterid = new int[iNrSamples];\n Node[] result = new Node[iNrSamples - 1];\n for (int j = 0; j < iNrSamples; j++) clusterid[j] = j;\n ArrayList<Integer> AlIndexes = new ArrayList<Integer>();\n int j;\n ClosestPair pair = null...
"private void onTerminationOfInstance(String childId, String instanceId) {\n removeInstanceFromFromInactiveMap(childId, instanceId);\n removeInstanceFromFromTerminatingMap(childId, instanceId);\n GroupInstance instance = (GroupInstance) instanceIdToInstanceMap.get(instanceId);\n if (instance != null) {\n ...
"private boolean replaceOnExist(Job job, JobPo jobPo) {\n JobPo existJobPo = appContext.getExecutableJobQueue().getJob(job.getTaskTrackerNodeGroup(), job.getTaskId());\n if (existJobPo == null) {\n existJobPo = appContext.getCronJobQueue().getJob(job.getTaskTrackerNodeGroup(), job.getTaskId());\n if...
"public RepeatStatus executeStep(ChunkContext chunkContext, JobExecutionStatusHolder jobExecutionStatusHolder) throws Exception {\n String targetName = getJobParameters(chunkContext).getString(JobConstants.TARGET_NAME_JOB_PARAM);\n String clusterName = getJobParameters(chunkContext).getString(JobConstants.CLUSTER...
"public FileSlice getHeadSlice(FileConfig fileConfig) {\n String filePath = fileConfig.getFilePath();\n RdfFileLogUtil.common.info(\"String_Node_Str\" + filePath);\n FileInfo fileInfo = storage.getFileInfo(filePath);\n if (!fileInfo.isExists()) {\n throw new RdfFileException(\"String_Node_Str\" + fil...
"public ItemStack removeCrossCrops(World world, int x, int y, int z) {\n if (world.isRemote) {\n return null;\n }\n TileEntity te = world.getTileEntity(x, y, z);\n if (te instanceof TileEntityCrop) {\n TileEntityCrop crop = (TileEntityCrop) te;\n if (crop.isCrossCrop()) {\n c...
"public void testWriteChannelState() throws IOException, ClassNotFoundException {\n BigQueryOptions options = BigQueryOptions.builder().projectId(\"String_Node_Str\").build();\n TableDataWriteChannel writer = new TableDataWriteChannel(options, LOAD_CONFIGURATION, \"String_Node_Str\");\n RestorableState<WriteCh...
"public Object reverseConversions(boolean executeInReverseOrder, int index, Object value) {\n List<Conversion<?, ?>> conversions = conversionsByIndex.get(index);\n if (conversions != null) {\n Conversion<String, ?> conversion = null;\n try {\n if (executeInReverseOrder) {\n ...
"private Map<TableId, Future<?>> upgradeQueues(final NamespaceMeta namespaceMeta, ExecutorService executor) throws Exception {\n try (HBaseAdmin admin = new HBaseAdmin(hConf)) {\n String hbaseNamespace = tableUtil.getHBaseNamespace(namespaceMeta);\n List<TableId> tableIds = tableUtil.listTablesInNamesp...
"public boolean compose() {\n while (hasMore()) {\n handleNext();\n }\n return hasMore;\n}\n"
"private void enableButtons() {\n int sel = filterList.getSelected();\n int cnt = filterList.getMaximum();\n delFilter.setEnabled(sel != -1 && cnt > 0);\n upFilter.setEnabled(sel > 0 && cnt > 0);\n downFilter.setEnabled(sel < cnt - 1 && sel != -1 && cnt > 0);\n if (sel == -1) {\n addFilter.setT...
"public IoFuture<Connection> connect() throws IOException {\n final URI uri;\n try {\n uri = this.getConnectionURI();\n } catch (URISyntaxException e) {\n throw MESSAGES.couldNotConnect(e);\n }\n final Endpoint endpoint = this.endpointInjectedValue.getValue();\n final CallbackHandler cal...
"public static void send(Channel channel, ErrorCode errorCode) {\n P003_StreamTerminator streamTerminator = new P003_StreamTerminator();\n streamTerminator.init(channel);\n streamTerminator.setLoginCount(ClientBean.getPerformedActionsCount(channel));\n streamTerminator.setErrorCode(errorCode.get());\n if...
"public void defineDataSet(IBaseDataSetDesign design) throws BirtException {\n IDataSetInterceptor dataSetInterceptor = DataSetInterceptorFinder.find(design);\n if (dataSetInterceptor != null) {\n dataSetInterceptor.preDefineDataSet(sessionContext.getAppContext(), dataEngine.getDataSourceDesign(design.getD...
"private void setData(int count, float range) {\n ArrayList<String> xVals = new ArrayList<String>();\n for (int i = 0; i < count; i++) {\n xVals.add((1990 + i) + \"String_Node_Str\");\n }\n ArrayList<Entry> vals1 = new ArrayList<Entry>();\n for (int i = 0; i < count; i++) {\n float mult = (...
"public void checkTruncateRuleNegative() {\n final String[] original = { \"String_Node_Str\" };\n ConfigSource config = Exec.newConfigSource().set(\"String_Node_Str\", ImmutableList.of(ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", -1)));\n exception.expect(TaskValidationExcepti...
"protected void compactHitsArithmMean() {\n ArrayList<CollectorDoc> newHits = new ArrayList<CollectorDoc>(new Float((hits.size() * 0.75f)).intValue());\n if (hits.size() < 1)\n return;\n CollectorDoc currDoc = hits.get(0);\n int seenTimes = 0;\n float score = 0.0f;\n for (CollectorDoc d : hits)...
"private boolean exists(UUID nodeId) {\n ColumnSlice<Long, String> slice = HFactory.createSliceQuery(keyspace, StringSerializer.get(), LongSerializer.get(), StringSerializer.get()).setColumnFamily(COLUMN_FAMILY).setKey(nodeId.toString()).setRange(expirationCutoff().getMillis(), Long.MAX_VALUE, false, 1).execute().ge...
"public List<String> syncSetParam(String clusterName, Integer activeComputeNodeNum, Integer minComputeNodeNum, Boolean enableAuto, Priority ioPriority) throws Exception {\n ClusterEntity cluster = clusterEntityMgr.findByName(clusterName);\n ClusterRead clusterRead = getClusterByName(clusterName, false);\n if (...
"public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position1) {\n final ViewHolder holder = (ZipAdapter.ViewHolder) viewHolder;\n if (position1 == 0) {\n holder.rl.setMinimumHeight(zipViewer.paddingTop);\n return;\n }\n final ZipObj rowItem = enter.get(position1 - 1);\n f...
"public void visitIincInsn(int var, int increment) {\n if (include) {\n getAdaptee().visitIincInsn(var, increment);\n }\n}\n"
"private String getValueFormula(ChartDataSource<?> dataSource) {\n if (dataSource.isReference()) {\n return dataSource.getFormulaString();\n } else {\n StringBuilder expression = new StringBuilder(\"String_Node_Str\");\n int count = dataSource.getPointCount();\n for (int i = 0; i < cou...
"public boolean createSource() {\n long frequency;\n int sampleRate;\n int sourceType = Integer.valueOf(preferences.getString(getString(R.string.pref_sourceType), \"String_Node_Str\"));\n switch(sourceType) {\n case FILE_SOURCE:\n try {\n frequency = Integer.valueOf(preferen...
"private KeyboardMetadata addKeyboardRow(AddOn.AddOnResourceMapping resourceMapping, Context context, int rowResId, final KeyboardDimens keyboardDimens, int rowMode) {\n XmlResourceParser parser = context.getResources().getXml(rowResId);\n List<Key> keys = getKeys();\n boolean inKey = false;\n boolean inRow...
"public void populate(final World world, final Random rand, final Chunk chunk) {\n if (this.plotworld.TERRAIN == 3) {\n int X = chunk.getX() << 4;\n int Z = chunk.getZ() << 4;\n if (ChunkManager.FORCE_PASTE) {\n for (short x = 0; x < 16; x++) {\n for (short z = 0; z < 1...
"public static String newIdentifier() {\n String uid = UUID.randomUUID().toString().toUpperCase(Locale.ENGLISH);\n String epoch = LiquidTools.tenCharEpoch(Calendar.getInstance().getTimeInMillis());\n return uid + \"String_Node_Str\" + epoch;\n}\n"
"public void onXMLDocumentChanged(ExtensibleContentEditorPage source, ExtensibleEditorContent newCotent) {\n commitParameters(newCotent.getContent());\n}\n"
"public org.dspace.rest.common.Collection getCollection(Integer collectionId, String expand, Integer limit, Integer offset, String user_ip, String user_agent, String xforwarderfor, HttpHeaders headers, HttpServletRequest request) throws WebApplicationException {\n log.info(\"String_Node_Str\" + collectionId + \"Stri...
"public TableDefinition buildBRANCHB_BRANCHBTable() {\n TableDefinition table = new TableDefinition();\n table.setName(\"String_Node_Str\");\n FieldDefinition fieldBRANCHB_ID = new FieldDefinition();\n fieldBRANCHB_ID.setName(\"String_Node_Str\");\n fieldBRANCHB_ID.setTypeName(\"String_Node_Str\");\n ...
"public static void notifyRemoteException(JobSupervisor supervisor, Throwable throwable) {\n String name = supervisor.getConfiguration().getName();\n String jobId = supervisor.getConfiguration().getJobId();\n NotifyRemoteExceptionOperation operation = new NotifyRemoteExceptionOperation(name, jobId, throwable);...
"public Node read(JsonReader in) throws IOException {\n int id = in.nextInt();\n Node node = treeGson.getNode(id);\n RenderableNode renderableNode = new RenderableNode(CoreRegistry.get(BehaviorNodeFactory.class).getNodeComponent(node));\n renderableNode.setNode(node);\n nextName(in, \"String_Node_Str\");...
"protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect) {\n RasterFormatTag[] formatTags = getFormatTags();\n RasterAccessor dst = new RasterAccessor(dest, destRect, formatTags[1], getColorModel());\n Rectangle srcRect = mapDestRect(destRect, 0).intersection(sources[0].getBounds(...
"public int numEmptyLevels(LevelBag bag) {\n int empty = 0;\n for (int i = 0; i < bag.level.length; i++) {\n if (bag.level[i].isEmpty()) {\n empty++;\n }\n }\n return empty;\n}\n"
"public void updateModelCompare(SModelComparePluginConfiguration modelCompare) throws ServerException, UserException {\n requireRealUserAuthentication();\n DatabaseSession session = getBimServer().getDatabase().createSession();\n try {\n ModelComparePluginConfiguration convert = session.get(modelCompare...
"public Rectangle setShadow(int color, float offsetX, float offsetY) {\n setShadow(true);\n setShadowColor(color);\n setShadowOffsetX(offsetX);\n setShadowOffsetY(offsetY);\n return this;\n}\n"
"public void testWellSelect() throws InterruptedException {\n WaitUtil.implicitlyWait(5);\n LogUtil.printCurrentMethodName();\n String wellSelectorUiSelector = \"String_Node_Str\";\n AndroidElement wellSelectItemTv = mDriver.findElementByAndroidUIAutomator(wellSelectorUiSelector);\n if (AppUtil.isInstall...
"public final PostAggItem hyperUniqueCardinality() throws RecognitionException {\n PostAggItem postAggItem = null;\n Token a = null;\n postAggItem = new PostAggItem(\"String_Node_Str\");\n try {\n {\n {\n match(input, UNIQUE, FOLLOW_UNIQUE_in_hyperUniqueCardinality2343);\n ...
"public void loadAgent() {\n VirtualMachine vm;\n if (AttachProvider.providers().isEmpty()) {\n if (HOTSPOT_VM) {\n vm = getVirtualMachineImplementationFromEmbeddedOnes();\n } else {\n String helpMessage = getHelpMessageForNonHotSpotVM(vmName);\n throw new IllegalSta...
"private final void addRule(CSSStyleSheet styleSheet, CSSRule rule) throws MalformedURLException, UnsupportedEncodingException {\n HTMLDocumentImpl document = this.document;\n if (rule instanceof CSSStyleRule) {\n CSSStyleRule sr = (CSSStyleRule) rule;\n String selectorList = sr.getSelectorText();\n...
"public Target createTarget(TargetConfiguration targetConfiguration, LocalDate fromDate, LocalDate toDate) {\n Target target = new Target();\n target.setCallEmittedNumberTarget(targetConfiguration.getCallEmittedNumber());\n target.setMeetingNumberTarget(targetConfiguration.getMeetingNumber());\n target.setO...
"private String printParameter(Object s) {\n Object val = DynamicUtilities.getDynamicValue(s, visibleInterval.getLow(), visibleInterval.getHigh());\n if (val == null) {\n return valueForEmptyAttributes;\n }\n String res = val.toString().replaceAll(\"String_Node_Str\", \"String_Node_Str\").replace('\\...
"public void startup() {\n OpenCLTrainingProfile profile = null;\n if (this.getDevice() != null)\n profile = new OpenCLTrainingProfile(this.getDevice());\n final Backpropagation train = new Backpropagation(getNetwork(), getTrainingData(), profile, this.learningRate, this.momentum);\n train.setNumThre...
"public ItemStack createMaterial(MaterialType mat) {\n String name = mat.name();\n if (mat.damageValue == -1) {\n boolean enabled = true;\n for (AEFeature f : mat.getFeature()) enabled = enabled && AEConfig.instance.isFeatureEnabled(f);\n if (enabled) {\n int newMaterialNum = AECon...
"public EOEnterpriseObject object() {\n return object.eo();\n}\n"
"private boolean isInSvnMode() {\n if (isInSvnMode == null) {\n try {\n if (!factory.isLocalConnectionProvider()) {\n IMDMSVNProviderService service = getSvnProviderService();\n if (service != null && service.isProjectInSvnMode()) {\n isInSvnMode = B...
"public DateTime lastExecution(DateTime date) {\n Validate.notNull(date);\n NearestValue secondsValue = seconds.getPreviousValue(date.getSecondOfMinute(), 1);\n NearestValue minutesValue = minutes.getPreviousValue(date.getMinuteOfHour(), secondsValue.getShifts());\n NearestValue hoursValue = hours.getPrevio...
"private void forceCreateBackupLogs() {\n backupLogsCreated = true;\n OperationService operationService = nodeEngine.getOperationService();\n List<Future> futures = new ArrayList<Future>(backupAddresses.length);\n for (Address backupAddress : backupAddresses) {\n if (nodeEngine.getClusterService().ge...
"public void validate(Owner owner, Errors errors) {\n if (!StringUtils.hasLength(owner.getFirstName())) {\n errors.rejectValue(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n }\n if (!StringUtils.hasLength(owner.getLastName())) {\n errors.rejectValue(\"String_Node_Str\", \"Strin...
"protected int doWork() {\n boolean allQueryNameSorted = true;\n final List<SAMFileReader> readers = new ArrayList<SAMFileReader>();\n for (final File f : INPUT) {\n IoUtil.assertFileIsReadable(f);\n SAMFileReader reader = new SAMFileReader(f);\n readers.add(new SAMFileReader(f));\n ...
"private int calculateCommentTotalByNodeCounting(NodeRef discussableNode) {\n if (!nodeService.hasAspect(discussableNode, ForumModel.ASPECT_DISCUSSABLE)) {\n throw new IllegalArgumentException(\"String_Node_Str\" + ForumModel.ASPECT_DISCUSSABLE + \"String_Node_Str\");\n }\n return result;\n}\n"
"protected Section creatMetadataSection(final ScrolledForm form, Composite topComp) {\n Section section = createSection(form, topComp, getMetadataTitle(), \"String_Node_Str\");\n Composite parent = toolkit.createComposite(section);\n parent.setLayout(new GridLayout(2, false));\n nameText = createMetadataTex...