content stringlengths 40 137k |
|---|
"public void testMappingConstructor() throws Exception {\n ViewMetamodel viewMetamodel = getViewMetamodel();\n ViewType<DocumentViewAbstractClass> viewType = viewMetamodel.view(DocumentViewAbstractClass.class);\n Set<MappingConstructor<DocumentViewAbstractClass>> constructors = viewType.getConstructors();\n ... |
"private void initURIEditor() {\n String uri = \"String_Node_Str\";\n if (fCurrent instanceof Image && !(fCurrent instanceof PatternImage)) {\n uri = ((Image) fCurrent).getURL();\n if (fCurrent instanceof EmbeddedImage) {\n imageData = ((EmbeddedImage) fCurrent).getData();\n }\n ... |
"protected void readEntityFromNBT(NBTTagCompound nbttagcompound) {\n super.readEntityFromNBT(nbttagcompound);\n if (nbttagcompound.hasKey(\"String_Node_Str\")) {\n frontYaw = nbttagcompound.getFloat(\"String_Node_Str\");\n }\n if (nbttagcompound.hasKey(\"String_Node_Str\")) {\n rearYaw = nbtta... |
"public static org.hl7.fhir.dstu2016may.model.NamingSystem.NamingSystemContactComponent convertNamingSystemContactComponent(org.hl7.fhir.dstu3.model.NamingSystem.NamingSystemContactComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.Nami... |
"public static void authenticateUserIfRemembered(HttpServletRequest req, HttpServletResponse resp, UserRepository userRepository) {\n Cookie c;\n if (isUserAuthenticated(req) || (c = getCookie(req, CookieNames.getRememberMeCookieName())) == null) {\n return;\n }\n ImmutablePair<Integer, String> uIdTo... |
"public boolean checkTrigger(GameEvent event, Game game) {\n if (event.getType() == GameEvent.EventType.ENTERS_THE_BATTLEFIELD) {\n EntersTheBattlefieldEvent zEvent = (EntersTheBattlefieldEvent) event;\n if (zEvent.getFromZone() == null && this.echoPaid) {\n this.echoPaid = false;\n }... |
"public void migrateAll() {\n System.out.println(\"String_Node_Str\");\n Module[] jcrModules = jcrRepositoryModuleService.listModules();\n List<Module> modules = new ArrayList<Module>(Arrays.asList(jcrModules));\n Module globalModule = jcrRepositoryModuleService.loadGlobalModule();\n modules.add(globalMo... |
"private void runTorShellCmd() throws Exception {\n StringBuilder log = new StringBuilder();\n Log.i(TAG, \"String_Node_Str\");\n String torrcPath = appHome + TORRC_ASSET_KEY;\n String[] torCmd = { torBinaryPath + \"String_Node_Str\" + torrcPath + \"String_Node_Str\" };\n TorServiceUtils.doShellCommand(t... |
"private void visit(IMethodModel m, String annotationValue) {\n boolean hasPath = m.hasAnnotation(PATH);\n if (hasPath) {\n String annotationValue2 = m.getAnnotationValue(PATH);\n if (annotationValue.endsWith(\"String_Node_Str\")) {\n if (annotationValue2.startsWith(\"String_Node_Str\")) ... |
"protected void initWidget() {\n mImgOutAccountIcon = (ImageView) findViewById(R.id.out_account_icon);\n mImgInAccountIcon = (ImageView) findViewById(R.id.in_account_icon);\n mTvoOutAccountName = (TextView) findViewById(R.id.out_account_name);\n mTvInAccountName = (TextView) findViewById(R.id.in_account_nam... |
"private static void updateChestContents(GameObject objectToModify, GameObjectId itemLocationData, GameObjectId itemNewContentsData, boolean itemChest) {\n WriteByteOperation puzzleFlag = objectToModify.getWriteByteOperations().get(1);\n objectToModify.getWriteByteOperations().clear();\n if (itemChest) {\n ... |
"public void testDataForPerf() throws IOException {\n final String baseDir = getTestPath();\n assertNotNull(baseDir);\n final ChronicleQueueBuilder.VanillaChronicleQueueBuilder builder = ChronicleQueueBuilder.vanilla(baseDir).dataCacheCapacity(32).cleanupOnClose(false);\n final VanillaDateCache dateCache = ... |
"void startEviction(boolean force) {\n long now = System.currentTimeMillis();\n if (!force && ((now - lastEvictionTime) < evictionDelayMillis)) {\n return;\n }\n lastEvictionTime = now;\n List<Record> lsRecordsToEvict = null;\n if (evictionPolicy == SortedHashMap.OrderingType.NONE) {\n i... |
"private String fixExecutableName() {\n int numProcs = Math.max(1, Integer.parseInt(execDictionary.get(\"String_Node_Str\")));\n int numTBBThreads = Math.max(1, Integer.parseInt(execDictionary.get(\"String_Node_Str\")));\n String fixedExecutableName = execDictionary.get(\"String_Node_Str\");\n String instal... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n this.setContentView(R.layout.activity_register_patient);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n if (toolbar != null) {\n setSupportActionBar(toolbar);\n getSupportActionBar().setD... |
"protected void onResume() {\n super.onResume();\n cameraThread = new HandlerThread(\"String_Node_Str\", Process.THREAD_PRIORITY_BACKGROUND);\n cameraThread.start();\n cameraHandler = new Handler(cameraThread.getLooper());\n final SurfaceView surfaceView = (SurfaceView) findViewById(R.id.scan_activity_pr... |
"private Request generateRequest(AbstractResource r, final AbstractResourceMethod m, Map<String, Param> wadlResourceParams) {\n if (m.getParameters().size() == 0) {\n return null;\n }\n Request wadlRequest = _wadlGenerator.createRequest(r, m);\n for (Parameter p : m.getParameters()) {\n if (p.... |
"public void testSetRequestHeader() {\n RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, getTestBaseURL() + \"String_Node_Str\");\n try {\n builder.setHeader(null, \"String_Node_Str\");\n fail(\"String_Node_Str\");\n } catch (NullPointerException ex) {\n }\n try {\n bu... |
"private List<ConnectionDetails> createNeighbourConnectionDetails(ConnectionDetails connectionDetails, Map<String, String> params, List<DeviceNeighbour> neighbours) {\n List<ConnectionDetails> neighboursConnDetails = new ArrayList<ConnectionDetails>();\n for (DeviceNeighbour neighbour : neighbours) {\n con... |
"private static boolean checkEscapesThread(RegisterOperand use, IR ir, Set<Register> visited) {\n Instruction inst = use.instruction;\n switch(inst.getOpcode()) {\n case INT_ASTORE_opcode:\n case LONG_ASTORE_opcode:\n case FLOAT_ASTORE_opcode:\n case DOUBLE_ASTORE_opcode:\n case... |
"public void widgetSelected(SelectionEvent e) {\n if (e.widget instanceof TableColumn) {\n TableColumn selected = (TableColumn) e.widget;\n Table table = viewer.getTable();\n TableColumn current = table.getSortColumn();\n int newDirection = SWT.UP;\n if (current == selected) {\n ... |
"public static String getPrivateConnClassName(final IConnection conn) {\n if (conn.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {\n INode node = conn.getSource();\n if (node.isSubProcessStart() || !(NodeUtil.isDataAutoPropagated(node))) {\n return conn.getUniqueName();\n ... |
"public void createReceivers() throws IllegalActionException {\n if (!(isInput() && isOpaque())) {\n String message = \"String_Node_Str\";\n message += \"String_Node_Str\";\n throw new IllegalActionException(this, message);\n }\n int portWidth = getWidth();\n if (portWidth <= 0)\n ... |
"public void dispose() {\n selectionChangedListeners.clear();\n treeViewer = null;\n if (reportHandle != null)\n SessionHandleAdapter.getInstance().getMediator(reportHandle).removeColleague(this);\n super.dispose();\n}\n"
|
"public void set(PreparedStatement stmt) throws SQLException {\n stmt.setInt(1, commenter_id);\n stmt.setLong(2, commented_on_id);\n stmt.setTimestamp(3, new Timestamp(created_at));\n}\n"
|
"public void getFlowletInstances(HttpRequest request, HttpResponder responder, String appId, String flowId, String flowletId) {\n programLifecycleHttpHandler.getFlowletInstances(RESTMigrationUtils.rewriteV2RequestToV3(request), responder, Constants.DEFAULT_NAMESPACE, appId, flowId, flowletId);\n}\n"
|
"public void run(IAction action) {\n InputStream javaFileIStream = null;\n OutputStreamWriter testFileOSWriter = null;\n FileOutputStream fos = null;\n boolean refreshFlag = true;\n String projectName = null;\n String testCaseDirResource = null;\n String testCaseResource = null;\n try {\n ... |
"public void queueTransferEnvelope(final TransferEnvelope transferEnvelope) {\n final int sequenceNumber = transferEnvelope.getSequenceNumber();\n AbstractEvent eventToSend = null;\n if (ReceiverNotFoundEvent.isReceiverNotFoundEvent(transferEnvelope)) {\n return;\n }\n synchronized (this.queuedEnv... |
"public Communication randomCommunication() {\n return new Communication().setUuid(new ConcreteUUIDFactory().getConcreteUUID()).setId(\"String_Node_Str\" + this.r.nextInt(Integer.MAX_VALUE)).setText(\"String_Node_Str\").setType(this.randomCommunicationType()).setMetadata(this.randomMetadata());\n}\n"
|
"public <T> T getFirstByType(Class<T> type, boolean withProxy) {\n return getFirstByType(type);\n}\n"
|
"public void attributeChanged(Attribute attribute) throws IllegalActionException {\n super.attributeChanged(attribute);\n if (attribute == ruleListAttribute) {\n try {\n _workspace.getWriteAccess();\n Set<String> preservedPortNames = new HashSet<String>();\n boolean isIconS... |
"public ChatComponent getElement(int slot) {\n throw new RuntimeException(\"String_Node_Str\");\n}\n"
|
"private void initList() {\n for (int i = 0; i < tc.size(); i++) {\n if (Prephase2Activity.dba.isTrustedContact(tc.get(i).getANumber())) {\n listView.setItemChecked(i, true);\n } else {\n listView.setItemChecked(i, false);\n }\n }\n}\n"
|
"public Object[] getChildren(Object element) {\n if (element instanceof IWorkspaceRoot) {\n Object currentOpenProject = null;\n for (Object child : super.getChildren(element)) {\n if (child instanceof IProject) {\n if (((IProject) child).getName().equals(ResourceManager.getRoo... |
"public BuildConfigNode getNodeForPath(String path) {\n BuildConfigNode upPathMatch = searchUpPaths(path);\n if (upPathMatch != null && upPathMatch != root) {\n return upPathMatch;\n } else {\n StringTokenizer st = new StringTokenizer(path, \"String_Node_Str\");\n return getNodeForPathHelp... |
"private synchronized void _initializeCapture() throws IllegalActionException, IOException {\n if (_debugInfo) {\n System.out.println(\"String_Node_Str\");\n }\n if (LiveSound.isCaptureActive()) {\n throw new IllegalActionException(this, \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_S... |
"private boolean handlePost(JDFeedMeFeed feed, JDFeedMePost post, String post_description, String timestamp) {\n if (post.isTimestampNewer(timestamp)) {\n if (JDFeedMe.VERBOSE)\n logger.info(\"String_Node_Str\" + post.getTimestamp() + \"String_Node_Str\");\n post.setNewpost(true);\n b... |
"public void handle(HttpResponse response, ChannelBuffer buffer) throws Exception {\n Location location = to(response);\n if (location == null) {\n throw new IllegalStateException();\n }\n RiakObject<byte[]> ro = RestRiakOperations.this.factory.convert(response, buffer, location);\n handler.handle... |
"public static boolean generateKarFile(Set<ExportKarBundleModel> bundleModels, RepositoryNode routerNode, String version, String destination) throws IOException {\n Property routeProperty = routerNode.getObject().getProperty();\n String itemName = routeProperty.getDisplayName();\n String projectName = routerNo... |
"public Object invokeNext() throws InvocationException {\n try {\n filterChain.doFilter(request, response);\n } catch (Exception e) {\n throw new InvocationException(e.getCause());\n }\n return null;\n}\n"
|
"public synchronized void onEvaluatorHeartbeatMessage(final RemoteMessage<EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto> evaluatorHeartbeatProtoRemoteMessage) {\n final EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto evaluatorHeartbeatProto = evaluatorHeartbeatProtoRemoteMessage.getMessage();\n LOG.log(Level.... |
"public ManagedObjectReference mountDatastore(boolean vmfsDatastore, String poolHostAddress, int poolHostPort, String poolPath, String poolUuid) throws Exception {\n if (s_logger.isTraceEnabled())\n s_logger.trace(\"String_Node_Str\" + _mor.getValue() + \"String_Node_Str\" + vmfsDatastore + \"String_Node_Str\... |
"public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Object collection) {\n if (null == unmarshalRecord.getChildRecord()) {\n SAXFragmentBuilder builder = unmarshalRecord.getFragmentBuilder();\n UnmarshalKeepAsElementPolicy keepAsElementPolicy = xmlCompositeCollectionMa... |
"private String decodeString(int size) {\n ByteBuffer buffer = this.buffer.slice();\n buffer.limit(size);\n return Charset.forName(\"String_Node_Str\").decode(buffer).toString();\n}\n"
|
"public void testExpression8() {\n String expression = oldExpressions[8];\n try {\n List list = extractColumnExpression(new ScriptExpression(expression));\n assertTrue(list.size() == 1);\n } catch (BirtException e) {\n fail(\"String_Node_Str\");\n }\n}\n"
|
"public long getCollectedToMillis() {\n return occursInApplications.stream().map(ApplicationDescriptor::getDumpedAtMillis).reduce(Math::max).orElse(0L);\n}\n"
|
"private void productAndApplication(Composite parent) {\n Group group = new Group(parent, SWT.NONE);\n GridData layoutData = new GridData(SWT.FILL, SWT.FILL, true, false);\n layoutData.horizontalSpan = 2;\n group.setLayoutData(layoutData);\n group.setLayout(new GridLayout(2, false));\n group.setText(\... |
"public RemoteLevel initStackLevel(boolean bIsZoomedIn) {\n Transform transform;\n if (!bIsZoomedIn) {\n float fTiltAngleRad_Horizontal;\n float fTiltAngleRad_Vertical;\n fTiltAngleRad_Horizontal = (float) Math.acos(((4 * 1 / fAspectRatio - 4 - 2 * fPoolLayerWidth) / 2) / ((float) Math.sqrt(M... |
"public void handleEvent(JireconEvent evt) {\n System.out.println(\"String_Node_Str\" + evt.getMucJid() + \"String_Node_Str\" + evt.getType());\n final String mucJid = evt.getMucJid();\n RecordingSession session = null;\n synchronized (recordingSessions) {\n for (RecordingSession s : recordingSession... |
"private IRemoteServiceContainer[] findRemoteServiceContainers(ServiceReference serviceReference, String[] remoteInterfaces, String[] remoteConfigurationType, String[] remoteRequiresIntents) {\n Activator activator = Activator.getDefault();\n if (activator == null)\n return null;\n IHostContainerFinder[... |
"public static String getFindsymOutput(Cell cell) {\n String output = null;\n int bestSG = 0;\n String bestOutput = null;\n for (int i = 0; i < accuracies.length; i++) {\n output = runFindsym(getFindsymInput(cell, accuracies[i]));\n if (output.contains(\"String_Node_Str\"))\n contin... |
"public boolean satisfiesPerSpeciesMIDs(List<Triplet<Element, Element, Double>> mids) {\n for (Triplet<Element, Element, Double> mid : mids) {\n Element a = mid.getFirst();\n Element b = mid.getSecond();\n Double minid = mid.getThird();\n for (int i = 0; i < getNumSites(); i++) {\n ... |
"private UploadDocumentsRequest uploadDocumentsRequest(final BatchDocumentUpdateRequest batchDocumentUpdateRequest) {\n final UploadDocumentsRequest uploadDocumentsRequest = new UploadDocumentsRequest();\n final byte[] documentUpdatesJsonBytes;\n final String documentUpdatesJson = JsonDocumentUpdateMarshaller.... |
"public Object clone() {\n ClassDescriptor clonedDescriptor = null;\n try {\n clonedDescriptor = (ClassDescriptor) super.clone();\n } catch (Exception exception) {\n ;\n }\n Vector mappingsVector = NonSynchronizedVector.newInstance();\n for (Enumeration mappingsEnum = getMappings().eleme... |
"public Iterator<Milestone> iterator(int start, int limit) {\n if (getSort() != null && !getSort().getProperty().equals(\"String_Node_Str\")) {\n return super.iterator(start, limit);\n }\n Iterator<Milestone> iter = super.iterator(0, size());\n List<Milestone> all = new ArrayList<Milestone>();\n w... |
"public static void main(String[] args) {\n BufferedImage input = UtilImageIO.loadImage(\"String_Node_Str\");\n MultiSpectral<ImageUInt8> imageRGB = ConvertBufferedImage.convertFromMulti(input, null, true, ImageUInt8.class);\n StereoParameters stereoParam = UtilIO.loadXML(\"String_Node_Str\");\n Se3_F64 gro... |
"protected void add(RenderedServicePaths newDataObject) {\n LOG.info(\"String_Node_Str\");\n this.rspProcessor.updateRsp(newDataObject);\n}\n"
|
"public void fire() throws IllegalActionException {\n for (int i = 0; i < input.getWidth(); ++i) {\n if (input.hasToken(i)) {\n Token in = input.get(i);\n String actorName = input.sourcePortList().get(i).getContainer().getName();\n String fedName = ((StringToken) _hlaManager.f... |
"public boolean finish() {\n File sourceDir = new File(getSourceDirectoryName());\n if (!sourceDir.isDirectory()) {\n setErrorMessage(Messages.ImportTraceWizard_InvalidTraceDirectory);\n return false;\n }\n try {\n sourceDir.getCanonicalPath();\n } catch (IOException e) {\n Me... |
"public boolean readDocument(ReadMarshallable reader) throws IOException {\n if (this.store == null) {\n final long index = queue.firstIndex();\n if (index == -1) {\n return false;\n }\n cycle(lastCycle);\n }\n long position = store.read(wire, reader);\n if (position >... |
"private boolean loadFromConversation(Conversation conv) {\n if (DEBUG)\n debug(\"String_Node_Str\", conv);\n long threadId = conv.getThreadId();\n if (threadId <= 0) {\n return false;\n }\n mText = readDraftSmsMessage(mContext, threadId, conv);\n if (!TextUtils.isEmpty(mText)) {\n ... |
"public void showCurrentEvent(final EventListElement event) {\n final ViewGroup eventLayout = (ViewGroup) getView().findViewById(R.id.team_current_event);\n final View container = getView().findViewById(R.id.team_current_event_container);\n getActivity().runOnUiThread(() -> {\n eventLayout.removeAllView... |
"public void reset() {\n super.reset();\n final boolean wasExpanded = isExpanded();\n mExpandable = false;\n mHasUserChangedExpansion = false;\n mUserLocked = false;\n mShowingPublic = false;\n mSensitive = false;\n mShowingPublicInitialized = false;\n mIsSystemExpanded = false;\n mOnKeygu... |
"public boolean initAddon() {\n if (menuAction == null)\n menuAction = new MenuAction(JDL.L(\"String_Node_Str\", \"String_Node_Str\"), \"String_Node_Str\") {\n private static final long serialVersionUID = -5269457972563036769L;\n public void initDefaults() {\n this.setEnab... |
"public void sendInvalidationEvent(String name, Data key, String sourceUuid) {\n if (key == null) {\n sendSingleInvalidationEvent(name, null, sourceUuid);\n } else {\n if (invalidationMessageBatchEnabled) {\n sendBatchInvalidationEvent(name, key, sourceUuid);\n } else {\n ... |
"public ContextMap<CallString, SymbolicAddressMap> transfer(InstructionHandle stmt, FlowEdge edge, ContextMap<CallString, SymbolicAddressMap> input, Interpreter<CallString, SymbolicAddressMap> interpreter, Map<InstructionHandle, ContextMap<CallString, SymbolicAddressMap>> state) {\n Context context = new Context(inp... |
"private void updateFieldIndicesGO() {\n final GenericObject[] buffer = this.bufferGO;\n final int bufferCnt = this.bufferGOCnt;\n int iInd = -1;\n for (ZooFieldDef field : cls.getAllFields()) {\n if (!field.isIndexed()) {\n continue;\n }\n iInd++;\n SchemaIndexEntry s... |
"public String toString() {\n return new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE).append(super.toString()).toString();\n}\n"
|
"public void testValidContext() {\n final String region = Regions.US_WEST_2.getName();\n final String instanceId = RandomStringUtils.random(20, \"String_Node_Str\");\n final String availabilityZone = region + RandomStringUtils.random(20, \"String_Node_Str\");\n final String environment = RandomStringUtils.r... |
"public IFormula getF2() {\n Collection<? extends IFormula> c = HashSetFactory.make(clauses);\n c.remove(getF1());\n if (c.size() == 1) {\n return c.iterator().next();\n } else {\n return make(c);\n }\n}\n"
|
"protected void onSaveInstanceState(Bundle state) {\n super.onSaveInstanceState(state);\n state.putFloat(STATE_SCROLL_POSITION, mScrollPosition);\n state.putInt(STATE_SELECTED_INDEX, mSelectedIndex);\n}\n"
|
"public boolean isString() {\n return (dbLink == null || dbLink.getDatatype() == null || dbLink.getDatatype().isUnknown() || dbLink.getDatatype().isString());\n}\n"
|
"public String getDisplayableString() throws OseeCoreException {\n String toReturn = null;\n InputStream inputStream = null;\n try {\n if (getAttributeType().equals(CoreAttributeTypes.WordTemplateContent)) {\n inputStream = new XmlTextInputStream(getValue());\n toReturn = Lib.input... |
"protected LinkedList[] _makeUnitList(String fileName, String className) {\n LinkedList nodeList = new LinkedList();\n CompileUnitNode unitNode = (CompileUnitNode) StaticResolution.loadFileName(fileName, 2, className).clone();\n nodeList.addFirst(unitNode);\n LinkedList classNameList = new LinkedList();\n ... |
"public static void main() {\n profiler.start(\"String_Node_Str\");\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n profiler.stop(\"String_Node_Str\");\n time += TICK_TIME * timeSpeed;\n ++GdxProcessor.currentTick;\n fingers.clear();\n for (Finger f : allocatedFingers) {\n if (f.down() || f.up... |
"public void attributeChanged(Attribute attribute) throws IllegalActionException {\n if (attribute instanceof ResourceAttributes) {\n Decorator decorator = ((ResourceAttributes) attribute).getDecorator();\n if (decorator != null && decorator instanceof QuantityManager) {\n _qmListValid = fal... |
"public void place(String rack, String vcClusterName, String rpName, AbstractHost host) {\n AuAssert.check(getDisks() != null && getDisks().size() != 0);\n setTargetVcCluster(vcClusterName);\n setTargetHost(host.getName());\n setTargetRp(rpName);\n setTargetRack(rack);\n ArrayList<Disk> tmDisks = new ... |
"void draw(Graphics2D g) {\n if (!visible && this != driver.selBlock) {\n showZones(g);\n return;\n }\n int[] ptx = new int[11];\n int[] pty = new int[11];\n int left, right, top, bottom;\n left = cx - width / 2;\n right = cx + width / 2;\n top = cy - height / 2;\n bottom = cy +... |
"private boolean isValueCharacter(char ch) {\n return !isEndOfStream(ch) && !isNewLineCharacter(ch);\n}\n"
|
"private void addSourceFileTag(soot.SootClass sc) {\n if (sc.getTag(\"String_Node_Str\") != null)\n return;\n String name = Util.getSourceFileOfClass(sc);\n if (classToSourceMap != null) {\n if (classToSourceMap.containsKey(name)) {\n name = (String) classToSourceMap.get(name);\n ... |
"public boolean containsEntry(Object key, Object value) {\n checkInputObject(key);\n checkInputObject(value);\n TransactionImpl txn = ThreadContext.get().txn;\n if (txn != null) {\n if (txn.has(name, key)) {\n Object v = txn.get(name, key);\n return v != null;\n }\n }\... |
"private void init() {\n rulesets = new Vector<InventoryConfigRuleset>();\n currentRuleset = -1;\n properties = new Properties();\n properties.setProperty(PROP_ENABLE_MIDDLE_CLICK, VALUE_TRUE);\n properties.setProperty(PROP_SHOW_CHEST_BUTTONS, VALUE_TRUE);\n properties.setProperty(PROP_ENABLE_SORTING_... |
"private List<String> getRefinedClientEnvironment(Method method) {\n IMappingData methodClientData = primaryDataMap.get(Utils.getFullMethodName(method));\n IMappingData classClientData = primaryDataMap.get(method.getDeclaringClass().getName().toString());\n IMappingData packageClientData = primaryDataMap.get(m... |
"public Method run() {\n Class<?> foundClass;\n Method method = null;\n for (foundClass = subject; method == null; foundClass = foundClass.getSuperclass()) {\n try {\n method = foundClass.getDeclaredMethod(name);\n } catch (NoSuchMethodException e) {\n continue;\n }\n... |
"private Identity doCreateAndPersistIdentity() {\n String lang = languageSingleSelection.getSelectedKey();\n String username = usernameTextElement.getValue();\n String pwd = null;\n if (showPasswordFields && authCheckbox.isSelected(0)) {\n pwd = psw1TextElement.getValue();\n if (!StringHelper.... |
"public List<ConcreteComponent> findComponents(String typeName) {\n Validate.notNull(typeName);\n Set<ConcreteComponent> list = getComponents();\n List<ConcreteComponent> comps = new LinkedList<ConcreteComponent>();\n for (ConcreteComponent cc : list) {\n if (cc.getComponentClass() != null && cc.getC... |
"public String getEventDescription() {\n User user = ApiDBUtils.findUserById(getId());\n return (user != null ? (\"String_Node_Str\" + user.getUsername() + \"String_Node_Str\" + user.getId() + \"String_Node_Str\" + user.getAccountId()) : \"String_Node_Str\");\n}\n"
|
"public static ImageLoaderConfiguration getImageLoaderConfiguration(Context context) {\n final int MEMORY_CACHE_LIMIT = 2 * 1024 * 1024;\n final int THREAD_POOL_SIZE = 5;\n ImageLoaderConfiguration imageLoaderConfiguration = new ImageLoaderConfiguration.Builder(context).threadPoolSize(THREAD_POOL_SIZE).threadP... |
"void getCookies() {\n try {\n URL url = new URL(\"String_Node_Str\");\n HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();\n if (connection.getResponseCode() != HttpsURLConnection.HTTP_OK) {\n showError();\n return;\n }\n mCookies.addA... |
"public void setRTPTranslator(RTPTranslator rtpTranslator) {\n if (this.rtpTranslator != rtpTranslator)\n this.rtpTranslator = rtpTranslator;\n }\n}\n"
|
"public void updateVolumeAttachment(final String volumeId, final AttachmentState newState) {\n final EntityTransaction db = Entities.get(VmInstance.class);\n try {\n final VmInstance entity = Entities.merge(this);\n entity.getTransientVolumeState().updateVolumeAttachment(volumeId, newState);\n ... |
"public void run() {\n final ArrayList<String> strings = new ArrayList<String>() {\n {\n add(String.format(\"String_Node_Str\", PS.get().IMP.getVersion()));\n add(String.format(\"String_Node_Str\"));\n add(String.format(\"String_Node_Str\"));\n add(String.format(\"S... |
"protected void onHandleIntent(Intent arg0) {\n String mMapDataPath = Environment.getExternalStorageDirectory().getPath();\n mMapDataPath += getString(R.string.system_path_map_data);\n String[] mMapDataFiles = new String[0];\n Intent mBroadcastIntent = new Intent(\"String_Node_Str\");\n if (FileUtils.isD... |
"public static String parseBorderStyle(String style) {\n if (CSSConstants.CSS_SOLID_VALUE.equalsIgnoreCase(style)) {\n return LINESTYLE_SINGLE;\n }\n return style;\n}\n"
|
"public void testRead4PrefixedString_Null() throws Exception {\n byte[] length = Ints.toByteArray(-1);\n Buffer buffer = new FixedBuffer(length);\n String prefixedString = buffer.read4PrefixedString();\n Assert.assertEquals(prefixedString, null);\n}\n"
|
"public int getNextEntityId() {\n lastValidId = 0;\n for (int i = MAX_PLAYERS + MAX_PERSISTANT_ENTITIES + lastValidId; i < MAX_ENTITIES; i++) {\n if (entities[i] == null && deadFrames[i] > 10) {\n lastValidId++;\n return i;\n }\n }\n for (int i = MAX_PLAYERS; i < MAX_ENTI... |
"public void run(final CommandSender cs, String label, String[] args) {\n if (!r.perm(cs, \"String_Node_Str\", false, true)) {\n return;\n }\n if (!r.isPlayer(cs)) {\n return;\n }\n Player p = (Player) cs;\n if (!r.checkArgs(args, 0)) {\n r.sendMes(cs, \"String_Node_Str\");\n ... |
"public Object executeTransform(final Object input) {\n if (input instanceof OIdentifiable) {\n final ORecord rec = ((OIdentifiable) input).getRecord();\n if (rec instanceof ODocument) {\n final ODocument doc = (ODocument) rec;\n if (setOperation) {\n final Object n... |
"public void stop() {\n for (PinpointWebSocketResponseAggregator aggregator : aggregatorRepository.values()) {\n if (aggregator != null) {\n aggregator.stop();\n }\n }\n aggregatorRepository.clear();\n if (flushTimer != null) {\n flushTimer.cancel();\n }\n if (healthChe... |
"public void visitGraphicMasterPage(GraphicMasterPageHandle handle) {\n GraphicMasterPageDesign page = new GraphicMasterPageDesign();\n setupMasterPage(page, handle);\n page.setColumns(handle.getColumnCount());\n DimensionType spacing = createDimension(handle.getColumnSpacing(), true);\n page.setColumnSp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.