content stringlengths 40 137k |
|---|
"public Edge getEdge(Object id) {\n if (id == null) {\n throw ExceptionFactory.edgeIdCanNotBeNull();\n }\n String idStr = id.toString();\n Edge edge = globals.getCaches().retrieve(idStr, Edge.class);\n if (edge != null) {\n return edge;\n }\n edge = new AccumuloEdge(globals, idStr);\n... |
"public void complete(CompleteOperation completeOperation) {\n try {\n ParameterInt param = context.getParser().getParameters().get(0);\n if (param.getName().startsWith(completeOperation.getBuffer()))\n completeOperation.addCompletionCandidate(param.getName());\n else if (param.getNam... |
"public static void staticCreateTestMetadata(String kylinConfigFolder) {\n KylinConfig.destoryInstance();\n if (System.getProperty(KylinConfig.KYLIN_CONF_HOME) == null && System.getenv(KylinConfig.KYLIN_CONF_HOME) == null)\n System.setProperty(KylinConfig.KYLIN_CONF_HOME, kylinConfigFolder);\n}\n"
|
"public void readDialogSetting(OptionSetting setting) {\n int variationLimit;\n if (radioButtonV5.isSelected()) {\n variationLimit = 5;\n } else if (radioButtonV10.isSelected()) {\n variationLimit = 10;\n } else if (radioButtonV15.isSelected()) {\n variationLimit = 15;\n } else if (r... |
"private ExRequireBundle createRequireBundleFrom(IConfigurationElement b) {\n String bundleName = b.getAttribute(BUNDLE_NAME);\n String maxVersion = b.getAttribute(MAX_VERSION);\n String minVersion = b.getAttribute(MIN_VERSION);\n String optional = b.getAttribute(OPTIONAL);\n ExRequireBundle requireBundl... |
"public void inject2Store(String fileName, DisconfValue disconfValue) {\n DisconfCenterFile disconfCenterFile = getInstance().getConfFileMap().get(fileName);\n if (disconfCenterFile == null) {\n LOGGER.error(\"String_Node_Str\" + fileName + \"String_Node_Str\");\n return;\n }\n if (disconfValu... |
"public static void main(String[] args) {\n try {\n new JettyServer();\n } catch (Exception e) {\n e.printStackTrace();\n }\n try {\n JNISetup.setupJNI();\n } catch (NoSuchFieldException e1) {\n e1.printStackTrace();\n } catch (SecurityException e1) {\n e1.printStack... |
"public void visitMethodCallExpression(MethodCallExpression expression) {\n String methodStr = expression.getMethodAsString();\n if (methodStr != null) {\n char[] methodName = methodStr.toCharArray();\n requestor.acceptFieldReference(methodName, expression.getStart());\n for (int i = 0; i <= ... |
"public void canCRUDSqlServerWithImportDatabase() throws Exception {\n if (isPlaybackMode()) {\n return;\n }\n String rgName = RG_NAME;\n String sqlServerName = SQL_SERVER_NAME;\n String sqlServerAdminName = \"String_Node_Str\";\n String sqlServerAdminPassword = \"String_Node_Str\";\n String... |
"protected ClassDescriptor buildClassDescriptorDescriptor() {\n XMLDescriptor descriptor = new XMLDescriptor();\n descriptor.setJavaClass(ClassDescriptor.class);\n descriptor.setDefaultRootElement(\"String_Node_Str\");\n descriptor.getInheritancePolicy().setClassIndicatorField(new XMLField(\"String_Node_Str... |
"public void propertyChange(PropertyChangeEvent event) {\n if (getEventMatcher().matches(event)) {\n list.elementChanged(event.getSource());\n }\n}\n"
|
"protected void renderLivingLabel(String par2Str, double par3, double par5, double par7, int par9, int width, int height, float angle) {\n int borderSize = 2;\n GL11.glDisable(GL11.GL_CULL_FACE);\n GL11.glDisable(GL11.GL_TEXTURE_2D);\n FontRenderer var11 = Minecraft.getMinecraft().getRenderManager().getFont... |
"public void onCropPressed() {\n LOGGER.info(\"String_Node_Str\");\n if (cropRectangle == null) {\n cropRectangle = createDraggableRectangle(200, 200, 500, 500);\n anchorPane.getChildren().add(cropRectangle);\n } else {\n cropRectangle.setVisible(true);\n }\n}\n"
|
"public boolean loadPluginConfig() {\n try {\n getConfig();\n } catch (final Exception e) {\n e.printStackTrace();\n }\n FileLister fl = new FileLister(this);\n try {\n int index = 1;\n for (String code : fl.list()) {\n availableLocales.put(code, new ASLocale(this, ... |
"public int getNumberOfInstancesRequiredBasedOnLoadAndMemoryConsumption(float upperLimit, float lowerLimit, double predictedValue, int activeMemberCount) {\n double numberOfInstances = 0;\n if (upperLimit != 0) {\n numberOfInstances = (activeMemberCount * predictedValue) / upperLimit;\n }\n return (i... |
"private void testMaxAggregation(IDocumentManager documentManager) throws IOException, BirtException, DataException {\n Dimension[] dimensions = new Dimension[3];\n String[] levelNames = new String[3];\n levelNames[0] = \"String_Node_Str\";\n levelNames[1] = \"String_Node_Str\";\n levelNames[2] = \"Strin... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.config);\n OpenVPN.foo();\n mServerAddress = (TextView) findViewById(R.id.address);\n mServerPort = (TextView) findViewById(R.id.port);\n mClientCert = (FileSelectLayout) findViewById(R.i... |
"public void forceHardwareConnectEvent(TransportType type) {\n if (_transport == null) {\n Log.w(TAG, \"String_Node_Str\");\n return;\n }\n if (isLegacyModeEnabled()) {\n enableLegacyMode(false, null);\n }\n if (_transport != null && (_transport.getTransportType() == TransportType.MU... |
"public void endTurn(int turnTime, boolean advanceTime) {\n long startHour = getHour();\n if (advanceTime) {\n minutesPassed += turnTime;\n updateResponses();\n }\n int hoursPassed = (int) (getHour() - startHour);\n int hourStartTo24 = (int) (startHour % 24);\n for (int i = 1; i <= hours... |
"public boolean isEnabled(final Level level, final Marker marker, final String data, final Throwable t) {\n return isEnabled(level, marker, (Message) new SimpleMessage(data), t);\n}\n"
|
"public static void resetViewSelection(final EditPartViewer viewer, final boolean notofyToMedia) {\n final List list = new ArrayList(((StructuredSelection) viewer.getSelection()).toList());\n boolean hasColumnOrRow = false;\n for (int i = 0; i < list.size(); i++) {\n if (list.get(i) instanceof TableEdit... |
"public void run() {\n if (!mClient.isConnected()) {\n BuckWSServerPortUtils wsPortUtils = new BuckWSServerPortUtils();\n try {\n int port = wsPortUtils.getPort(BuckModule.this.mProject.getBasePath());\n mClient = new BuckClient(port, mEventHandler);\n BuckModule.this.m... |
"public void testEscapedValuesWithinQuery() {\n String[] vals = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n for (String s : vals) {\n this.sqlgGraph.addVertex(\"String_Node_Str\").prope... |
"public Map<Integer, T> getByIds(Language language, Collection<Integer> pageIds) throws DaoException {\n Map<Integer, T> pageMap = new HashMap<Integer, T>();\n for (Integer pageId : pageIds) {\n LiveAPIQuery.LiveAPIQueryBuilder builder = new LiveAPIQuery.LiveAPIQueryBuilder(\"String_Node_Str\", language).a... |
"public final void init(final FilterConfig config) throws ServletException {\n filterConfig = config;\n servletContext = config.getServletContext();\n initInstance();\n String mapName = getParam(\"String_Node_Str\");\n if (mapName != null) {\n clusterMapName = mapName;\n } else {\n clust... |
"private java.util.List getCallableParamMetaData() {\n java.util.List paramMetaDataList = new ArrayList();\n try {\n DatabaseMetaData metaData = conn.getMetaData();\n String cataLog = conn.getCatalog();\n String schemaPattern = null;\n ArrayList schemaList = null;\n String colum... |
"public void removeTail() {\n if (!body.getPositions().isEmpty()) {\n body.getPositions().removeLast();\n }\n}\n"
|
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_add_camera);\n setUpDefaultToolbar();\n setHomeIconAsCancel();\n mViewFlipper = (ViewFlipper) findViewById(R.id.add_camera_view_flipper);\n mProgressBar = (ProgressBar) findVi... |
"public static void restoreFromBundle(Bundle bundle) {\n Bundle node = bundle.getBundle(NODE);\n if (!node.isNull() && (spawned = node.getBoolean(SPAWNED))) {\n if (node.contains(TYPE)) {\n type = node.getInt(TYPE);\n } else {\n type = node.getBoolean(\"String_Node_Str\") ? 1 :... |
"public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) {\n if (getParameters() == null || mResources == null) {\n return bitmap;\n }\n int w = bitmap.getWidth();\n int h = bitmap.getHeight();\n int fxw = getParameters().getFxBitmap().getWidth();\n int fxh = getParameters().getFxBit... |
"public void run() {\n _native.deleteShortcut();\n _native.setEnabled(false);\n if (callback != null) {\n _native.removeItemListener(callback);\n callback = null;\n }\n parent._native.remove(_native);\n _native.removeNotify();\n}\n"
|
"public void endRow(IRowContent row) {\n if (cellEmitter != null) {\n cellEmitter.endRow(row);\n } else {\n if (!isNestTable()) {\n layout.endRow(row);\n lastRowId = row.getRowID();\n hasDropCell = layout.hasDropCell();\n if (hasDropCell()) {\n ... |
"public ScanBuffer scanIndex(IndexQuery query, Keyspace keyspace) {\n DynamicComposite startScan = newComposite();\n DynamicComposite endScan = newComposite();\n startScan.addComponent(discriminatorValue, stringSerializer);\n endScan.addComponent(discriminatorValue, stringSerializer);\n int length = fiel... |
"private static X509Certificate getCertificate(String dn, KeyPair pair, int days, String algorithm) throws IOException, CertificateException, NoSuchProviderException, NoSuchAlgorithmException, InvalidKeyException, SignatureException {\n Date from = new Date();\n Date to = DateUtils.addDays(from, days);\n Certi... |
"protected void readField(int version, int filedId, DataInputStream in) throws IOException {\n switch(filedId) {\n case FIELD_HEADER_REPEAT:\n headerRepeat = Boolean.valueOf(IOUtil.readBool(in));\n break;\n default:\n super.readField(version, filedId, in, loader);\n ... |
"private boolean removeTaskByIdLocked(int taskId, int flags) {\n TaskRecord tr = recentTaskForIdLocked(taskId);\n if (tr != null) {\n tr.removeTaskActivitiesLocked();\n cleanUpRemovedTaskLocked(tr, killProcess);\n if (tr.isPersistable) {\n notifyTaskPersisterLocked(null, true);\n ... |
"public TdReport findReport(IFile file) {\n if (checkFile(file)) {\n TdReport report = allRepMap.get(file);\n if (report != null) {\n return report;\n }\n return readFromFile(file);\n }\n return null;\n}\n"
|
"private List<JobStep> createBuildCubeSegmentSteps(JobInstance jobInstance) throws IOException {\n int groupRowkeyColumnsCount = cube.getDescriptor().getRowkey().getNCuboidBuildLevels();\n int totalRowkeyColumnsCount = cube.getDescriptor().getRowkey().getRowKeyColumns().length;\n int stepSeqNum = 0;\n List<... |
"public void testUDFEnoughInput() throws Exception {\n Tuple tuple = TupleFactory.getInstance().newTuple(31);\n for (int i = 0; i < 31; i++) {\n tuple.set(i, 0);\n }\n tuple.set(0, \"String_Node_Str\");\n DataBag dataBag = instance.exec(tuple);\n Assert.assertEquals(31, dataBag.size());\n As... |
"private void makeHelperExecutable(File templates) throws MojoExecutionException {\n if (!MavenUtils.isWindows()) {\n Runtime runtime = Runtime.getRuntime();\n String pathname = String.format(\"String_Node_Str\", templates.getAbsolutePath(), \"String_Node_Str\" + (MavenUtils.isLinux() ? \"String_Node_S... |
"private String unpackTagValue(Element subtree, String tag) {\n Element e = (Element) subtree.getElementsByTagName(tag).item(0);\n if (e != null) {\n return e.getTextContent();\n } else {\n return null;\n }\n}\n"
|
"public Type computeCommonType(Type type, int[] conversionCount) {\n if (type instanceof ScalarType) {\n return getValueType().computeCommonType(type, conversionCount);\n }\n if (type instanceof TupleType) {\n return type.computeCommonType(this, conversionCount);\n }\n if (!(type instanceof... |
"private PortalUrlParameter decode(String name, String value) {\n String nopre = name.substring((PREFIX + PORTLET_ID).length());\n String windowId = nopre.substring(0, nopre.indexOf(DELIM));\n String param = nopre.substring(nopre.indexOf(DELIM) + 1);\n ArrayList values = new ArrayList();\n for (int i = 0... |
"protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n canvas.drawColor(Color.WHITE);\n if (rasterOn) {\n if (!setRaster) {\n setRaster = true;\n horizontalRasterCT = (canvas.getWidth() / RASTER_HORIZONTAL_WIDTH) + 3;\n }\n Paint paint = new Paint();\n ... |
"public boolean process(T image) {\n configureContourDetector(image);\n binary.reshape(image.width, image.height);\n inputToBinary.process(image, binary);\n detectorSquare.process(image, binary);\n detectorSquare.refineAll();\n detectorSquare.getPolygons(found, null);\n clusters = s2c.process(found... |
"public JPAInitializer getInitializer(String emName, Map m) {\n ClassLoader classLoader = getClassLoader(emName, m);\n JPAInitializer initializer;\n if (this.initializerClassName != null) {\n try {\n Class initializerClass = Class.forName(this.initializerClassName);\n Class[] argTy... |
"private static String parse(String query, Map paramMap) {\n int length = query.length();\n StringBuilder parsedQuery = new StringBuilder(length);\n boolean inSingleQuote = false;\n boolean inDoubleQuote = false;\n int index = 1;\n for (int i = 0; i < length; i++) {\n char c = query.charAt(i);\... |
"public void resumeInvestigation(ExperimentConductor<T> conductor, boolean isMinProblem) throws InPUTException, IOException {\n if (investigationPath == null)\n throw new IllegalStateException(\"String_Node_Str\");\n String spotConfigPath = investigationPath + File.separator + SPOTQ.SPOT_DESIGN_ID + Q.XML;... |
"public void test8bits() {\n try {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n new TransformSound(new PrintlnTransformObserver()).transformWav(new File(classLoader.getResource(\"String_Node_Str\").getFile()), new File(classLoader.getResource(\"String_Node_Str\").getPat... |
"public void testRegexNotLike() {\n String regexLike = mySQLDbmsLanguage.regexNotLike(REGEXP_1, REGEXP_2);\n Assert.assertNotNull(regexLike);\n Assert.assertEquals(SPACE + REGEXP_1 + \"String_Node_Str\" + REGEXP_2 + SPACE, regexLike);\n}\n"
|
"private EnvTypePair analyzePropAccessFwd(Node receiver, String pname, TypeEnv inEnv, JSType requiredType, JSType specializedType) {\n QualifiedName propQname = new QualifiedName(pname);\n Node propAccessNode = receiver.getParent();\n EnvTypePair pair;\n JSType objWithProp = pickReqObjType(propAccessNode).w... |
"public TmfEvent parseEvent(TmfContext tmfContext) {\n if (!(tmfContext instanceof CustomTxtTraceContext)) {\n return null;\n }\n CustomTxtTraceContext context = (CustomTxtTraceContext) tmfContext;\n if (!(context.getLocation().getLocation() instanceof Long) || NULL_LOCATION.equals(context.getLocatio... |
"public void resumeSuggestionOnLastComposedWord(final LastComposedWord lastComposedWord, final String previousWord) {\n mPrimaryKeyCodes = lastComposedWord.mPrimaryKeyCodes;\n mInputPointers.set(lastComposedWord.mInputPointers);\n mTypedWord.setLength(0);\n mTypedWord.append(lastComposedWord.mTypedWord);\n ... |
"private Path createCoProcessorJar(FileSystem fileSystem, Path jarDir) throws IOException {\n final Hasher hasher = Hashing.md5().newHasher();\n final byte[] buffer = new byte[COPY_BUFFER_SIZE];\n File jarFile = File.createTempFile(\"String_Node_Str\", \"String_Node_Str\");\n try {\n final JarOutputS... |
"public void format(final LogEvent event, final StringBuilder toAppendTo) {\n MapMessage msg;\n if (event.getMessage() instanceof MapMessage) {\n msg = (MapMessage) event.getMessage();\n } else {\n return;\n }\n final IndexedReadOnlyStringMap sortedMap = msg.getIndexedReadOnlyStringMap();\n... |
"public org.hl7.fhir.dstu2.model.Immunization.ImmunizationVaccinationProtocolComponent convertImmunizationVaccinationProtocolComponent(org.hl7.fhir.dstu3.model.Immunization.ImmunizationVaccinationProtocolComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir... |
"protected List<Integer> emit(List<Object> tuple, Message message, SpoutOutputCollector spoutOutputCollector) {\n return streamId == null ? spoutOutputCollector.emit(tuple, getDeliveryTag(message)) : spoutOutputCollector.emit(streamId, tuple, getDeliveryTag(message));\n}\n"
|
"public static IOConsole findConsole(String name) {\n ConsolePlugin plugin = ConsolePlugin.getDefault();\n IConsoleManager conMan = plugin.getConsoleManager();\n IConsole[] existing = conMan.getConsoles();\n for (int i = 0; i < existing.length; i++) {\n if (KARAF_CONSOLE.equals(existing[i].getName())... |
"public void setPropertyValue(String id, Object value) {\n if (id.equals(EParameterName.ACTIVATE.getName())) {\n setActivate((Boolean) value);\n }\n if (id.equals(EParameterName.RESUMING_CHECKPOINT.getName())) {\n setResumingConnection((Boolean) value);\n }\n if (id.equals(EParameterName.RE... |
"public StringType getProcessName(int pid) throws DeviceNotFoundException {\n OSProcess process = getProcess(pid);\n String name = process.getName();\n return new StringType(name);\n}\n"
|
"private static void processInlineDocument() {\n ProcessingRequest pr = new ProcessingRequest();\n pr.setDocument(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"... |
"public void printMe() {\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(Nodes.toString());\n System.out.println(\"String_Node_Str\");\n System.out.printl... |
"public void setup() throws Exception {\n String devnode_control = DEV_NODE_CONTROL;\n lcdcontrol = new LCDControl();\n if (lcdcontrol.open(devnode_control, FCNTL_H.O_RDWR) < 0) {\n throw new RuntimeException(\"String_Node_Str\" + devnode_control);\n }\n String lcd_accel_devnode = \"String_Node_St... |
"public void test_120073() {\n MetaDataDictionary instance = MetaDataDictionary.getInstance();\n IElementDefn label = instance.getElement(\"String_Node_Str\");\n List list = label.getMethods();\n int i = 0;\n assertEquals(Label.ON_PREPARE_METHOD, ((PropertyDefn) list.get(i++)).getName());\n assertEqua... |
"public void unregisterEndpoint(String endpointAddressUri) {\n EjbRuntimeEndpointInfo endpoint = null;\n synchronized (webServiceEjbEndpoints) {\n String uriRaw = endpointAddressUri;\n String uri = (uriRaw.charAt(0) == '/') ? uriRaw.substring(1) : uriRaw;\n ServletAdapterList list = (ServletA... |
"public void handleRequest(HttpServerExchange exchange, RequestContext context) throws Exception {\n ObjectId etag = RequestHelper.getWriteEtag(exchange);\n if (etag == null) {\n ResponseHelper.endExchangeWithMessage(exchange, HttpStatus.SC_CONFLICT, \"String_Node_Str\" + Headers.ETAG + \"String_Node_Str\"... |
"private void saveAndCloseManagedViews() {\n Set<String> managedViewIds = determineManagedViews();\n IWorkbench workbench = PlatformUI.getWorkbench();\n if (managedArea.getInstalledBundles().size() > 0 && workbench != null) {\n IWorkbenchPage page = null;\n if (PlatformUI.getWorkbench().getActive... |
"void readDomainElement1_4(final XMLExtendedStreamReader reader, final ModelNode address, final Namespace expectedNs, final List<ModelNode> list) throws XMLStreamException {\n parseNamespaces(reader, address, list);\n readDomainElementAttributes_1_3(reader, expectedNs, address, list);\n Element element = nextE... |
"protected void doRender(long pageNumber) throws EngineException {\n try {\n ReportContentLoader loader = new ReportContentLoader(executionContext);\n ReportExecutor executor = new ReportExecutor(executionContext);\n executionContext.setExecutor(executor);\n IContentEmitter emitter = crea... |
"private int writeRequest(SocketChannel channel, TCPWriteRequest request) {\n ByteBuffer buffer = request.getByteBuffer();\n int written = 0;\n if (writeStatus == DataStatus.INIT) {\n buffer.flip();\n writeHeader.clear();\n writeStatus = DataStatus.HEADER;\n writeHeader.putInt(reque... |
"public void provideSAXEvents(ContentHandler handler) throws SAXException {\n try {\n Source xmlSource = new SAXSource(new SAXEventProviderXMLReader(xmlsep), new SAXEventProviderInputSource());\n SAXResult outputTarget = new SAXResult(handler);\n transform(xmlSource, outputTarget);\n } catch ... |
"public CheckedListenableFuture<ServiceConfiguration> loadService(final ServiceConfiguration config) throws ServiceRegistrationException {\n this.lookupRegisteredService(config);\n if (State.INITIALIZED.isIn(config)) {\n try {\n config.lookupStateMachine().transitionByName(Transition.LOADING).ge... |
"public void execute() throws ParserException, IOException {\n HDT hdt = HDTManager.loadIndexedHDT(hdtInput, this);\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n TripleString triplePattern = new TripleString();\n while (true) {\n System.out.print(\"String_Node_Str\");\... |
"public void run() {\n IWorkbench workbench = PlatformUI.getWorkbench();\n IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();\n IWorkbenchPage page = window.getActivePage();\n try {\n IDE.openEditor(page, file, true);\n BasicNewProjectResourceWizard.updatePerspective(configElement... |
"public void onEntityDeathEvent(EntityDeathEvent event) {\n LivingEntity entity = event.getEntity();\n Player killer = entity.getKiller();\n Collection<ResourceHolder> result = null;\n try {\n if (entity != null) {\n result = handleEntityDeath(event, entity, killer);\n }\n if... |
"private void createTotalPageTemplate(float x, float y, float width, float height) {\n if (pageDevice.getPDFTemplate() == null) {\n pageDevice.setPDFTemplate(contentByte.createTemplate(width, height));\n }\n y = transformY(y, height);\n contentByte.saveState();\n contentByte.addTemplate(totalPageT... |
"public FileSlice getTailSlice(FileConfig fileConfig) {\n String filePath = fileConfig.getFilePath();\n if (RdfFileLogUtil.common.isInfo()) {\n RdfFileLogUtil.common.info(\"String_Node_Str\" + filePath);\n }\n FileInfo fileInfo = storage.getFileInfo(filePath);\n if (!fileInfo.isExists()) {\n ... |
"private Map<String, Object> getPropertyChain(int propertyId) {\n PropertyStore propStore = getPropertyStore();\n PropertyRecord propertyRecord = propStore.getRecord(propertyId);\n int nextProperty = -1;\n Map<String, Object> properties = new HashMap<String, Object>();\n do {\n propStore.makeHeavy... |
"protected void updateRtLFlag() throws EngineException {\n if (renderOptions == null)\n return;\n IReportRunnable runnable = executionContext.getRunnable();\n if (runnable == null)\n return;\n Report report = executionContext.getReport();\n AbstractStyle rootStyle = (AbstractStyle) report.g... |
"public void setCrossCrop(World world, int x, int y, int z, EntityPlayer player) {\n if (!world.isRemote) {\n boolean update = false;\n TileEntityCrop crop = (TileEntityCrop) world.getTileEntity(x, y, z);\n if (!crop.crossCrop && !crop.hasPlant()) {\n crop.crossCrop = true;\n ... |
"public static <T extends DataProcessor> T getFrontEndProcessor(DataProcessor dp, Class<T> predecClass) {\n while (!predecClass.isInstance(dp)) {\n if (dp instanceof FrontEnd)\n dp = ((FrontEnd) dp).getLastDataProcessor();\n else\n dp = dp.getPredecessor();\n if (dp == null... |
"protected IDrawerGroup getGroup() {\n return null;\n}\n"
|
"public void postConstruct() {\n String filename = evaluateFileName();\n File logFile = new File(filename);\n absoluteServerLogName = filename;\n if (!logFile.isAbsolute()) {\n logFile = new File(env.getDomainRoot(), filename);\n absoluteServerLogName = env.getDomainRoot() + File.separator + f... |
"public Object applyFilter(Chunk chunk, Object object, String[] args) {\n String stringifiedObject = null;\n if (object != null) {\n if (object instanceof com.x5.template.Snippet) {\n stringifiedObject = ((com.x5.template.Snippet) object).toSimpleString();\n } else {\n stringif... |
"protected InputStream execute(PushImageCmd command) {\n WebTarget webResource = getBaseResource().path(\"String_Node_Str\" + name(command) + \"String_Node_Str\").queryParam(\"String_Node_Str\", command.getTag());\n final String registryAuth = registryAuth(command.getAuthConfig());\n LOGGER.trace(\"String_Node... |
"protected void println(final LogLevel level, final Throwable t, final String format, final Object... args) {\n if (this.level.includes(level) && (t != null || format != null)) {\n String message = null;\n if (format != null && format.length() > 0) {\n message = (args != null && args.length ... |
"public void whenInstanceItselfAsProperty_andValidInstanceNameURI_thenInstanceItselfIsUsed() throws URISyntaxException {\n HazelcastCacheManager cacheManager = (HazelcastCacheManager) cachingProvider.getCacheManager(new URI(\"String_Node_Str\" + CONFIG_CLASSPATH_LOCATION), null, propertiesByInstanceItself(instance2)... |
"private void setDefaults() {\n fSwitchTimerText.setText(DEFAULT_TEXT);\n fSwitchTimerText.setForeground(getShell().getDisplay().getSystemColor(SWT.COLOR_GRAY));\n fReadTimerText.setText(DEFAULT_TEXT);\n fReadTimerText.setForeground(getShell().getDisplay().getSystemColor(SWT.COLOR_GRAY));\n fOverwriteMod... |
"private void drawUfoRadar(double x, double y) {\n double r = game.settings.UFO_RADAR_RADIUS;\n gc.setFill(new RadialGradient(0, 0, 0.5, 0.5, 1, true, NO_CYCLE, new Stop(0.3, Color.TRANSPARENT), new Stop(1, rgb(114, 208, 74, 0.3))));\n gc.fillOval(x - r, y - r, 2 * r, 2 * r);\n gc.setGlobalAlpha(1);\n}\n"
|
"private double calculateScoreSum(PageRank<Vertex, Edge> pageRank, Graph subgraph) {\n double scoreSum = 0;\n for (Vertex v : subgraph.getVertices()) scoreSum += pageRank.getVertexScore(v);\n return scoreSum;\n}\n"
|
"public String toString() {\n return String.format(\"String_Node_Str\", new Object[] { targetField.getName(), targetField.getIndex(), getSerializationStrategy().getClass().getName() });\n}\n"
|
"static void w(String message) {\n if (!warning && message != null && !message.isEmpty())\n return;\n Log.d(\"String_Node_Str\", \"String_Node_Str\" + message);\n}\n"
|
"AuthorityType detectAuthorityType() {\n if (authorityUrl == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n final String path = authorityUrl.getPath().substring(1);\n if (StringHelper.isBlank(path)) {\n throw new IllegalArgumentException(AuthenticationErrorMessage.AUTHORI... |
"public Set<QueryableEntry> filter(QueryContext queryContext) {\n if (predicate instanceof IndexAwarePredicate) {\n Set<QueryableEntry> set = ((IndexAwarePredicate) predicate).filter(queryContext);\n if (set == null) {\n return null;\n }\n List<QueryableEntry> list = new Linked... |
"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... |
"private void createMainBrowser() {\n if (BrowserManager.getInstance().isEmbeddedBrowserPresent()) {\n if (browser != null && !browser.isDisposed()) {\n browser.dispose();\n }\n if (Constants.OS_LINUX.equalsIgnoreCase(Platform.getOS())) {\n browser = new Browser(mainPane, S... |
"public void setDataProvider(Provider dataProvider) {\n if (dataProvider != null && dataProvider.getRoot() != null) {\n if (this.dataProvider != null) {\n this.dataProvider.setRoot(dataProvider.getRoot());\n } else {\n this.dataProvider = dataProvider;\n }\n }\n}\n"
|
"private void unpackAspectAttributes() {\n List pointcuts = new ArrayList();\n typeMungers = new ArrayList();\n declares = new ArrayList();\n List l = BcelAttributes.readAjAttributes(javaClass.getAttributes(), getResolvedTypeX().getSourceContext(), getResolvedTypeX().getWorld().getMessageHandler());\n fo... |
"public void pause(View sceneRoot) {\n if (!mEnded) {\n synchronized (sRunningAnimators) {\n ArrayMap<Animator, AnimationInfo> runningAnimators = getRunningAnimators();\n int numOldAnims = runningAnimators.size();\n if (sceneRoot != null) {\n Object windowId = V... |
"public void testValidateMafiaFamily707() {\n EntityManager em = createEntityManager(MULTI_TENANT_PU);\n em.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n em.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n try {\n clearCache(MULTI_TENANT_PU);\n em.clear();\n MafiaFami... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.