content stringlengths 40 137k |
|---|
"public void setString(String value) throws ConfigException {\n Exception ex = null;\n try {\n Object object = convertToObject(value);\n if (object != null) {\n setter.invoke(null, new Object[] { object });\n }\n } catch (InvocationTargetException e) {\n ex = e;\n } ca... |
"public void bindView(View view, Context context, Cursor cursor) {\n if (cursor.isClosed())\n return;\n Bucket.ObjectCursor<Note> objectCursor = (Bucket.ObjectCursor<Note>) cursor;\n view.setActivated(mShouldHighlightRows && objectCursor.getPosition() == mSelectedPosition);\n NoteViewHolder noteViewH... |
"public String getNextData(int timeout) {\n HashMap<String, Object> gdp_event = GDP_GCL.get_next_event(_gcl, timeout);\n System.out.println(\"String_Node_Str\" + timeout + \"String_Node_Str\" + gdp_event);\n return _datumToData((HashMap<String, Object>) gdp_event.get(\"String_Node_Str\"));\n}\n"
|
"public static List<TdView> getViews(Catalog catalog) {\n return ViewHelper.getViews(catalog.getOwnedElement());\n}\n"
|
"public boolean shouldContinueExecuting() {\n return this.entity.getFollowingEntity() != null && this.entity.followingHoldingPinaColada() && !this.entity.isTamed();\n}\n"
|
"public void run() {\n if (!connected) {\n connectToServer();\n }\n if (connected) {\n isRunning = true;\n registerWithServer(getPlayerRegistrationInformation());\n while (!stopOperation) {\n try {\n Object data = in.readObject();\n processNe... |
"private void addActionListeners() {\n btColorChoose.addActionListener(this);\n btPreview.addActionListener(this);\n btFinished.addActionListener(this);\n btLoadBackgroundImage.addActionListener(this);\n btCreateBackgroundFilter.addActionListener(this);\n colorModeBox.addActionListener(this);\n}\n"
|
"public boolean apply(final AttachedVolume arg0) {\n try {\n final ServiceConfiguration sc = Partitions.lookupService(Storage.class, vm.lookupPartition());\n vm.removeVolumeAttachment(arg0.getVolumeId());\n final Dispatcher scDispatcher = ServiceDispatcher.lookup(sc);\n scDispatcher.send(... |
"static void addDir(File dirObj, ZipOutputStream out) throws IOException {\n File[] files = dirObj.listFiles();\n byte[] tmpBuf = new byte[1024];\n String pathToDir = s_dirName;\n for (int i = 0; i < files.length; i++) {\n if (files[i].isDirectory()) {\n addDir(files[i], out);\n ... |
"protected DBColumn resolveColumn(final ADQLColumn column, final SearchColumnList dbColumns) throws ParseException {\n ArrayList<DBColumn> foundColumns = dbColumns.search(column);\n if (foundColumns.size() == 1)\n return foundColumns.get(0);\n else if (foundColumns.size() > 1) {\n if (column.getT... |
"public DBClearer createInstance() {\n Set<DbItemIdentifier> itemsToPreserve = getItemsToPreserve();\n MainFactory mainFactory = factoryWithDatabaseContext.getMainFactory();\n ConstraintsDisabler constraintsDisabler = mainFactory.createConstraintsDisabler();\n return new DefaultDBClearer(getDatabases(), ite... |
"public void test_analyze() throws Exception {\n PHPCheck check = new DummyCheck();\n PHPAnalyzer analyzer = new PHPAnalyzer(UTF_8, ImmutableList.of(check));\n File file = tmpFolder.newFile();\n FileUtils.write(file, \"String_Node_Str\", UTF_8);\n analyzer.nextFile(file);\n List<PhpIssue> issues = ana... |
"public static void main(String[] args) {\n String metaF = \"String_Node_Str\";\n GeoCoding gc;\n try {\n gc = new S1GeoCodingImpl(metaF);\n double lat = 36.950;\n double lon = -3.6315;\n double[] r;\n try {\n r = gc.geoFromPixel(4623, 7445);\n System.ou... |
"public void run() {\n try {\n ScrUpdateAlert.run(verbose, core);\n } catch (Exception e) {\n if (verbose) {\n PolyGlot.CustomControls.InfoBox.error(\"String_Node_Str\", \"String_Node_Str\" + e.getLocalizedMessage(), parent);\n }\n }\n}\n"
|
"public Object doWork() {\n StringBuilder queryBuffer = new StringBuilder();\n queryBuffer.append(\"String_Node_Str\");\n queryBuffer.append(\"String_Node_Str\");\n queryBuffer.append(\"String_Node_Str\");\n queryBuffer.append(\"String_Node_Str\");\n queryBuffer.append(\"String_Node_Str\");\n query... |
"private long processNotifications() {\n boolean emptyFetch = false;\n try {\n final MessageFetcher fetcher = messagingContext.getMessageFetcher();\n String lastFetchedMessageId = Transactionals.execute(transactional, new TxCallable<String>() {\n\n public Boolean call(DatasetContext conte... |
"public Object clearAllMailMessages(Object bean, Map<String, Object> values) {\n for (MailMessage mailMessage : mailRepo.all().fetch()) {\n try {\n mailRepo.remove(mailMessage);\n } catch (Exception e) {\n LOG.debug(\"String_Node_Str\", mailMessage.getId(), e.getMessage());\n ... |
"public TextureAtlasSprite getTexture(EnumFacing side, IBlockState state, BlockRenderLayer layer, IBlockAccess access, BlockPos pos) {\n TileEntity tileEntity = access.getTileEntity(pos);\n if (tileEntity instanceof TileMachineBase) {\n TileMachineBase machine = ((TileMachineBase) tileEntity);\n ret... |
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n NonArtifactCreaturesDiedWatcher watcher = (NonArtifactCreaturesDiedWatcher) game.getState().getWatchers().get(\"String_Node_Str\");\n if (watcher != null &... |
"protected void service(HttpServletRequest hreq, HttpServletResponse hresp) throws ServletException, IOException {\n boolean dispatch = true;\n String requestUriRaw = hreq.getRequestURI();\n String requestUri = (requestUriRaw.charAt(0) == '/') ? requestUriRaw.substring(1) : requestUriRaw;\n String query = h... |
"public void checkDatabaseChangeLogLockTable(Migrator migrator) throws JDBCException, IOException {\n Statement statement = null;\n Connection connection = getConnection();\n ResultSet rs = null;\n changeLogLockTableExists = true;\n try {\n rs = connection.getMetaData().getTables(getCatalogName(),... |
"public Range<Long> getShardKeyRange(long timestampStart, long timestampEnd, boolean inclusive) throws ShardStrategyException {\n long start = getShardKey(timestampStart);\n long end = getShardKey(timestampEnd);\n if (start == 0) {\n if (end == 0) {\n throw new ShardStrategyException(\"String... |
"private void parseWithClauses(QueryModel model) throws ParserException {\n do {\n ExprNode name = expectLiteral();\n if (model.getWithClause(name.token) != null) {\n throw ParserException.$(name.position, \"String_Node_Str\");\n }\n expectTok(\"String_Node_Str\");\n exp... |
"public boolean isReady(MonsterInput i) {\n Level l = i.getLevel();\n List<EntityActionManager> players = l.getManager().getEntity(\"String_Node_Str\");\n if (players.size() == 0) {\n return false;\n }\n EntityActionManager player = players.get(0);\n Space mySpace = me.getLocation().getSpace();... |
"private void addOracleDriver() {\n AbstractModifier oracleDriverModifier = new OracleDriverModifier(byteCodeInstrumentor, agent);\n addModifier(oracleDriverModifier);\n AbstractModifier oracleConnectionModifier = new PhysicalConnectionModifier(byteCodeInstrumentor, agent);\n addModifier(oracleConnectionMod... |
"public static Object generateObject(Bundle payload, Class<?> returnClass) {\n if (payload == null || payload.isEmpty()) {\n return null;\n }\n Object data = payload.get(BridgeMessage.BRIDGE_MSG_DATA);\n if (data == null) {\n Logger.d(TAG, \"String_Node_Str\", BridgeMessage.BRIDGE_MSG_DATA, pa... |
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n if (mDrawerLayout != null && isDrawerOpen() && !mClosing) {\n inflater.inflate(R.menu.global, menu);\n showGlobalContextActionBar();\n }\n super.onCreateOptionsMenu(menu, inflater);\n}\n"
|
"public static boolean verifyLegacyUncorrected(String url, String authorizationHeader, OAuthConsumer consumer, OAuthAccessToken accessToken, HttpMethod httpMethod, SignatureMethod signatureMethod) {\n if (authorizationHeader == null) {\n return false;\n }\n Map<String, String> urlDecodedElements = parse... |
"public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceSearchParamComponent convertConformanceRestResourceSearchParamComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceRestResourceSearchParamComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return nul... |
"final ActivityRecord activityIdleInternalLocked(final IBinder token, boolean fromTimeout, Configuration config) {\n if (localLOGV)\n Slog.v(TAG, \"String_Node_Str\" + token);\n ArrayList<ActivityRecord> stops = null;\n ArrayList<ActivityRecord> finishes = null;\n ArrayList<UserStartedState> starting... |
"private void animateWarpPageOnScreen(String reason) {\n if (DEBUG_WARP)\n Log.v(TAG, \"String_Node_Str\" + reason + \"String_Node_Str\");\n if (!mWarpPageExposed) {\n mWarpPageExposed = true;\n dispatchOnPageBeginWarp();\n KeyguardWidgetFrame v = (KeyguardWidgetFrame) getPageAt(mPageW... |
"Map<String, String> addStandardishParameters(Map<String, String> vars) {\n if (sinceId != null) {\n vars.put(\"String_Node_Str\", sinceId.toString());\n }\n if (untilId != null) {\n vars.put(\"String_Node_Str\", untilId.toString());\n }\n if (count != null) {\n vars.put(\"String_Nod... |
"private static void convertMappingToXMLChoiceMapping(ClassDescriptor jaxbDescriptor, DatabaseMapping jpaMapping, ClassLoader cl, AbstractSession jpaSession) {\n if ((jpaMapping != null) && (jaxbDescriptor != null)) {\n if ((jpaMapping instanceof ForeignReferenceMapping) && ((jpaMapping.isAggregateCollectionM... |
"public Object getFromNearCache(String mapName, Data key) {\n MapContainer mapContainer = mapServiceContext.getMapContainer(mapName);\n if (!mapContainer.hasMemberNearCache()) {\n return null;\n }\n NearCache nearCache = getOrCreateNearCache(mapName);\n return nearCache.get(key);\n}\n"
|
"private void addRequiredTargetImportDeclarations() {\n List<ITypeBinding> typeBindings = new ArrayList<ITypeBinding>();\n Type returnType = sourceMethod.getReturnType2();\n ITypeBinding returnTypeBinding = returnType.resolveBinding();\n if (!typeBindings.contains(returnTypeBinding))\n typeBindings.a... |
"void setupTermTable() {\n table.setSelectionBackground(GUtil.Dark2[0]);\n TermCellRenderer centerNumberRenderer = new TermCellRenderer();\n centerNumberRenderer.setHorizontalAlignment(JLabel.CENTER);\n TableColumn cc;\n cc = table.getColumnModel().getColumn(0);\n cc.setMinWidth(100);\n cc = table.... |
"public static boolean isRmSite(WebScriptRequest req, SiteService siteService) {\n boolean isRmSite = false;\n String siteId = req.getParameter(SITE_ID);\n if (StringUtils.isNotBlank(siteId)) {\n SiteInfo site = siteService.getSite(siteId);\n if (site != null && site.getSitePreset().equals(SITE_P... |
"private void emitColumnAssignment(JavaWriter javaWriter, String valueStatement) throws IOException {\n boolean isContainerFieldDefinition = accessModel.isModelContainerAdapter;\n boolean isWritingForContainers = accessModel.fieldIsAModelContainer;\n AdapterQueryBuilder queryBuilder = new AdapterQueryBuilder()... |
"public Set<K> keySet() {\n final StringBuilder csp = Wires.acquireStringBuilder();\n long cid = proxyReturnWireConsumer(keySet, read -> {\n final StringBuilder type = Wires.acquireAnotherStringBuilder(csp);\n read.type(type);\n return read.applyToMarshallable(w -> {\n final long c... |
"public StackDescription describeStackWithResources(User user, Stack stack, Credential credential) {\n AwsTemplate awsInfra = (AwsTemplate) stack.getTemplate();\n AwsCredential awsCredential = (AwsCredential) credential;\n DescribeStacksResult stackResult = null;\n DescribeStackResourcesResult resourcesResu... |
"public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException {\n Item item = submission.getItem();\n Collection collection = submission.getCollection();\n String actionURL = contextPath + \"String_Node_Str\" + collection.getHandle() + \"String_N... |
"public View getView(int position, View convertView, ViewGroup parent) {\n int viewType = getItemViewType(position);\n boolean hasImg = TYPE_IMAGE == viewType || TYPE_IMAGE_SANS_DESCRIPTION == viewType;\n ViewFeedItem view = null != convertView ? (ViewFeedItem) convertView : new ViewFeedItem(m_context, viewTyp... |
"protected void renderProperties(ContentRenderer renderer) throws IOException {\n super.renderProperties(renderer);\n if (_showToolbar) {\n renderer.render(\"String_Node_Str\", convertActionDisabledToJSON(getDisabledUserAction()));\n renderer.render(\"String_Node_Str\", _showToolbar);\n }\n re... |
"public boolean equals(final Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final RepositoryEditorInput other = (RepositoryEditorInput) obj;\n if (!this.getId().equals... |
"public Detail parse() throws InvalidStructureException, IOException, XmlPullParserException {\n checkNode(\"String_Node_Str\");\n String id = parser.getAttributeValue(null, \"String_Node_Str\");\n getNextTagInBlock(\"String_Node_Str\");\n checkNode(\"String_Node_Str\");\n getNextTagInBlock(\"String_Node... |
"public void getAndRemove_There() {\n SimpleCacheLoader<Integer> loader = new SimpleCacheLoader<Integer>();\n Cache<Integer, Integer> cache = getCacheManager().configureCache(getTestCacheName(), new MutableConfiguration<Integer, Integer>().setCacheLoaderFactory(Factories.of(loader)));\n Integer key = 1;\n I... |
"public static String parseArguments(String[] arguments) throws IOException {\n Level traceLevel = Level.WARNING;\n Queue<String> args = new LinkedList<>();\n for (String arg : arguments) {\n if (arg.length() > 0) {\n args.add(arg);\n }\n }\n AbortRetryIgnoreHandler handler = nul... |
"public static String getSessionGuid() {\n return threadLocal.get() == null ? \"String_Node_Str\" : threadLocal.get().sessionGuid;\n}\n"
|
"public Alert appendText(String text) {\n element.appendChild(new Text(text));\n return this;\n}\n"
|
"public void testDockerIgnore() throws DockerException, IOException {\n File baseDir = new File(Thread.currentThread().getContextClassLoader().getResource(\"String_Node_Str\").getFile());\n String response = dockerfileBuild(baseDir);\n assertThat(response, containsString(\"String_Node_Str\"));\n}\n"
|
"public ValidateResult verifyCoinData(CoinData coinData, List<Transaction> txList) {\n if (coinData == null || txList == null) {\n return ValidateResult.getFailedResult(CLASS_NAME, LedgerErrorCode.NULL_PARAMETER);\n }\n try {\n int initialCapacity = 0;\n CoinData validateCoinData;\n ... |
"public String getPenisDescription(GameCharacter owner) {\n boolean isPlayer = owner.isPlayer();\n descriptionSB = new StringBuilder();\n if (isPlayer) {\n descriptionSB.append(\"String_Node_Str\");\n } else {\n descriptionSB.append(\"String_Node_Str\");\n }\n switch(penis.getType()) {\n... |
"protected void compileProject() {\n final Launcher launcher = new Launcher();\n for (String s : properties.getOriginalDirSrc()) launcher.addInputResource(s);\n for (String s : properties.getTestDirSrc()) launcher.addInputResource(s);\n String binoutput = properties.getWorkingDirForBytecode() + File.separat... |
"public void getTimeRegions(HttpRequest request, HttpResponder responder, long time) {\n if (!initializePruningDebug(responder)) {\n return;\n }\n try {\n if (!initializePruningDebug(responder)) {\n return;\n }\n Map<Long, SortedSet<String>> timeRegionInfo = (Map<Long, So... |
"static void vi(String message) {\n if (!verboseInternal && message != null && !message.isEmpty())\n return;\n Log.d(\"String_Node_Str\", \"String_Node_Str\" + message);\n}\n"
|
"public void openStartPage(LightProcessDefinition process) {\n try {\n String url = ProcessbaseApplication.getCurrent().getBpmModule().getProcessMetaData(process.getUUID()).get(process.getUUID().toString());\n if (url != null && !url.isEmpty() && url.length() > 0) {\n ProcessbaseApplication.... |
"private void spreadFlames(int cell, float strength) {\n if (strength >= 0 && (Level.passable[cell] || Level.flamable[cell])) {\n affectedCells.add(cell);\n if (strength >= 1.5f) {\n visualCells.remove(cell);\n spreadFlames(cell + PathFinder.CIRCLE8[left(direction)], strength - 1.... |
"public void shouldIterateThroughAllGroups() {\n KeePassFile keePassFile = createTreeStructure();\n GroupZipper zipper = new GroupZipper(keePassFile);\n Iterator<Group> iter = zipper.iterator();\n List<Group> visitedGroups = new ArrayList<Group>();\n while (iter.hasNext()) {\n Group group = iter.n... |
"protected void initProfilePopup() throws Exception {\n JSONObject object = new JSONObject();\n WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();\n object.put(\"String_Node_Str\", UserProfileHelper.getLabel(context, \"String_Node_Str\"));\n String[] keys = new String[] { \"String_Node_... |
"public void onClick(View v) {\n AppController.deleteSavedGift();\n finish();\n}\n"
|
"protected void checkFieldsValue() {\n if (nameText.getText().length() == 0) {\n nameStatus = new Status(IStatus.ERROR, RepositoryPlugin.PLUGIN_ID, IStatus.OK, Messages.getString(\"String_Node_Str\"), null);\n } else {\n technicalNameText.setText(Project.createTechnicalName(nameText.getText()));\n ... |
"public String get(String key) {\n String section;\n String option;\n String[] keys = key.toLowerCase().split(\"String_Node_Str\");\n if (keys.length >= 2) {\n section = keys[0];\n option = keys[1];\n } else {\n section = DEFAULT_SECTION;\n option = keys[0];\n }\n boolea... |
"public static String decapitalize(String str) {\n return str.substring(0, 1).toLowerCase(Locale.US) + (str.substring(1));\n}\n"
|
"public void paintTransform(Transform t, boolean highlight, Graphics2D g) {\n Rectangle unit = new Rectangle(getSize());\n Shape rect = t.getTransform().createTransformedShape(unit);\n if (highlight) {\n g.setPaint(new Color(Color.BLUE.getRed(), Color.BLUE.getGreen(), Color.BLUE.getBlue(), 128));\n }... |
"public void testChatRoom() throws Exception {\n User user1 = new User(\"String_Node_Str\");\n User user2 = new User(\"String_Node_Str\");\n User user3 = new User(\"String_Node_Str\");\n ChatRoom room = new ChatRoom();\n try {\n room.startActor();\n room.send(new Suscribe(user1));\n ... |
"private void initOptions() {\n ConfigurableOption bidiProcessing = new ConfigurableOption(BIDI_PROCESSING);\n bidiProcessing.setDisplayName(getMessage(\"String_Node_Str\"));\n bidiProcessing.setDataType(IConfigurableOption.DataType.BOOLEAN);\n bidiProcessing.setDisplayType(IConfigurableOption.DisplayType.C... |
"void onRequestFailed(Throwable e) {\n if (m_webservice != null) {\n m_webservice.notifyRequestFailed(e);\n }\n}\n"
|
"public HitEnum buildHitEnum() throws IOException {\n HitEnum e = buildHitEnumForSource();\n e = weigher.wrap(context.fieldName, e);\n FieldOptions options = context.field.fieldOptions();\n if (!options.scoreOrdered()) {\n Boolean topScoring = (Boolean) executionContext.getOption(\"String_Node_Str\")... |
"public void update() {\n out.add(new jedd.internal.RelationContainer(new jedd.Attribute[] { srcc.v(), srcm.v(), stmt.v(), tgtc.v(), kind.v(), tgtm.v() }, new jedd.PhysicalDomain[] { V1.v(), T1.v(), ST.v(), V2.v(), FD.v(), T2.v() }, (\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str... |
"private BridgeTransaction createTransaction(ElectrodeBridgeRequest request, ElectrodeBridgeResponseListener<ElectrodeBridgeResponse> responseListener) {\n final BridgeTransaction bridgeTransaction = new BridgeTransaction(request, responseListener);\n sPendingTransactions.put(request.getId(), bridgeTransaction);\... |
"private void configure(ArquillianDescriptor arquillianDescriptor) {\n operatingSystemFamilyInstanceProducer.set(new OperatingSystemResolver().currentOperatingSystem().getFamily());\n Map<String, String> config = arquillianDescriptor.extension(EXTENSION_NAME).getExtensionProperties();\n config = resolveSystemE... |
"private void testEval(String expr, FormInstance model, EvaluationContext ec, Object expected, double tolerance) {\n XPathExpression xpe = null;\n boolean exceptionExpected = (expected instanceof XPathException);\n if (ec == null) {\n ec = new EvaluationContext(model);\n }\n try {\n xpe = X... |
"public void processContentModify(JingleIQ content) {\n ContentPacketExtension ext = content.getContentList().get(0);\n MediaType mediaType = getMediaType(ext);\n try {\n boolean modify = (ext.getFirstChildOfType(RtpDescriptionPacketExtension.class) != null);\n getMediaHandler().reinitContent(ext... |
"private void addRelatedInterfaces(ObjectType instance, Set<ObjectType> set) {\n FunctionType constructor = instance.getConstructor();\n if (constructor != null) {\n if (!constructor.isInterface()) {\n return;\n }\n if (!set.add(instance)) {\n return;\n }\n ... |
"public static List<EntityPlayerMP> getPlayersWatchingChunk(World world, int chunkX, int chunkZ) {\n if (world.isRemote || !(world instanceof WorldServer)) {\n return new ArrayList<>(0);\n }\n ArrayList<EntityPlayerMP> playersWatching = new ArrayList<EntityPlayerMP>();\n WorldServer server = (WorldSe... |
"public void register() {\n OPFLog.methodD();\n OPFLog.d(\"String_Node_Str\");\n adm.startRegister();\n}\n"
|
"private void callListenerOnCodeInput(Key key, int primaryCode, int[] keyCodes, int x, int y) {\n final boolean ignoreModifierKey = mIgnoreModifierKey && key.isModifier();\n final boolean alterCode = key.altCodeWhileTyping() && mTimerProxy.isTyping();\n final int code = alterCode ? key.mAltCode : primaryCode;\... |
"protected boolean doMergeNode(Topology topology, FlowExecutionContext context, String templateId, NodePropsOverride nodePropsOverride) {\n final ConfigChanged configChanged = new ConfigChanged();\n U template = getTemplates(topology).get(templateId);\n T toscaType = ToscaContext.get(getToscaTypeClass(), templ... |
"private final int computeOomAdjLocked(ProcessRecord app, int cachedAdj, ProcessRecord TOP_APP, boolean doingAll, long now) {\n if (mAdjSeq == app.adjSeq) {\n return app.curRawAdj;\n }\n if (app.thread == null) {\n app.adjSeq = mAdjSeq;\n app.curSchedGroup = Process.THREAD_GROUP_BG_NONINTE... |
"public boolean verifySignature(byte[] signature) {\n try {\n block = cipher.processBlock(signature, 0, signature.length);\n } catch (Exception e) {\n return false;\n }\n BigInteger t = new BigInteger(1, block);\n BigInteger f;\n if ((t.intValue() & 15) == 12) {\n f = t;\n } el... |
"public DirCache lockDirCache() throws NoWorkTreeException, CorruptObjectException, IOException {\n return DirCache.lock(getIndexFile(), getFS());\n}\n"
|
"public static String getFileFromSelectedNode(boolean isFolder) {\n try {\n TopComponent topActive = TopComponent.getRegistry().getActivated();\n Node[] nodes = topActive.getActivatedNodes();\n if (nodes.length == 1) {\n DataObject dataObj = nodes[0].getLookup().lookup(DataObject.clas... |
"public void testMkdirsFailsForSubdirectoryOfExistingFile() throws Exception {\n Path testDir = getTestRootPath(fSys, \"String_Node_Str\");\n Assert.assertFalse(exists(fSys, testDir));\n fSys.mkdirs(testDir);\n Assert.assertTrue(exists(fSys, testDir));\n createFile(getTestRootPath(fSys, \"String_Node_Str... |
"private void renderCursor(final GL gl) {\n float fHeight = viewFrustum.getHeight();\n float fWidth = viewFrustum.getWidth() / 4.0f;\n Texture tempTexture = iconTextureManager.getIconTexture(gl, EIconTextures.NAVIGATION_NEXT_BIG_SIDE);\n tempTexture.enable();\n tempTexture.bind();\n TextureCoords texC... |
"public Packet decode(ByteBuf buf) {\n this.target = Codec.readVarInt32(buf);\n this.type = InteractType.fromId(Codec.readVarInt32(buf));\n if (type == InteractType.INTERACT_AT) {\n double x = (double) buf.readFloat();\n double y = (double) buf.readFloat();\n double z = (double) buf.readFl... |
"public void testCreateUeberCertificateRegenerate() {\n Principal principal = setupPrincipal(owner, Access.ALL);\n Owner owner = TestUtil.createOwner();\n Consumer consumer = TestUtil.createConsumer(owner);\n Entitlement ent = mock(Entitlement.class);\n List<Entitlement> entList = Arrays.asList(ent);\n ... |
"public AutoBeanType getPeer(JClassType beanType) {\n beanType = ModelUtils.ensureBaseType(beanType);\n return peers.get(beanType);\n}\n"
|
"private void createVirtualMachine(AzureClient azureClient, AzureTemplate azureTemplate, String name, String vmName, String commonName, String emailAsFolder, String userData) throws FileNotFoundException, CertificateException, NoSuchAlgorithmException {\n byte[] encoded = Base64.encodeBase64(vmName.getBytes());\n ... |
"public void read() {\n if (input.parameterNumber() >= 2) {\n final String[] parameters = Arrays.copyOfRange(input.getParameters(), 1, input.parameterNumber());\n try {\n final SchemaType schemaType = SchemaType.valueOf(input.firstParameter());\n final LinkedList<AbstractSchemaTO>... |
"public void addEffect(ContinuousEffect effect, UUID sourceId, Ability source) {\n if (sourceId == null) {\n effects.addEffect(effect, source);\n else\n effects.addEffect(effect, sourceId, source);\n}\n"
|
"public void setServerTime(Date serverTime) {\n if (serverTime != null) {\n this.serverTime = new Date(serverTime.getTime());\n } else {\n this.serverTime = null;\n }\n}\n"
|
"private List<Catalog> fillPostgresqlCatalogs(IMetadataConnection metaConnection, Connection dbConn, DatabaseMetaData dbJDBCMetadata, List<Catalog> catalogList) {\n DatabaseConnection databaseConnection = (DatabaseConnection) dbConn;\n String catalogName = databaseConnection.getSID();\n if (StringUtils.isEmpty... |
"public void update() {\n if (!worldObj.isRemote) {\n detectAndSendChanges();\n }\n if (worldObj.isRemote) {\n updateEffects();\n }\n if (isCrafting.value && !worldObj.isRemote) {\n if (DEEventHandler.serverTicks % 10 == 0) {\n worldObj.notifyNeighborsOfStateChange(pos, ge... |
"protected Rectangle forwardMapRect(Rectangle sourceRect, int sourceIndex) {\n if (sourceRect == null) {\n throw new IllegalArgumentException(JaiI18N.getString(\"String_Node_Str\"));\n } else if (sourceIndex != 0) {\n throw new IllegalArgumentException(JaiI18N.getString(\"String_Node_Str\"));\n }... |
"public void updateLogFiles(IProject project, boolean isLogForJob) {\n ITalendProcessJavaProject talendJavaProject = JavaProcessorUtilities.getTalendJavaProject();\n if (talendJavaProject == null) {\n return;\n }\n try {\n IFolder resFolder = talendJavaProject.getResourcesFolder();\n IF... |
"public static void sendIfEnd() {\n if (!end && mail) {\n try {\n EmailHandler.sendBadNews(\"String_Node_Str\", ZipUtils.folderToZip(\"String_Node_Str\" + File.separator + Benchmark.RESULT_FILE_NAME, \"String_Node_Str\" + File.separator + Benchmark.RESULT_FILE_NAME + \"String_Node_Str\"));\n ... |
"public static void waitForJobGeneration(String harvestName, TestEnvironmentController testEnvironmentController) {\n boolean keepWaiting = true;\n int secondsWaitingForJob = 0;\n int maxSecondsToWaitForAllHarvests = 360;\n while (keepWaiting) {\n System.err.print(\"String_Node_Str\");\n try {... |
"public void init(RichTextArea textArea, Config config) {\n super.init(textArea, config);\n saveRegistration(textArea.addKeyDownHandler(this));\n saveRegistration(textArea.addKeyPressHandler(this));\n saveRegistration(textArea.addKeyUpHandler(this));\n getTextArea().getCommandManager().addCommandListener... |
"public void createPeriodicTask() {\n Task periodicTask = new PeriodicTask.Builder().setService(SchedulerService.class).setPeriod(3 * 60 * 1000).setFlex(10).setTag(SchedulerService.TAG_TASK_UPCOMING).setPersisted(true).build();\n mGcmNetworkManager.schedule(periodicTask);\n}\n"
|
"public int getWidgetTop(Widget w) {\n checkWidgetParent(w);\n return DOM.getAbsoluteTop(w.getElement()) - DOM.getAbsoluteTop(getElement());\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.