content stringlengths 40 137k |
|---|
"public Object getAdapter(Class targetedClass, Object objectToAdapt) {\n if (targetedClass.isAssignableFrom(IContainerAdapter.class)) {\n if (objectToAdapt instanceof ListCell) {\n return new CustomContainerAdapter((ListCell<?>) objectToAdapt);\n }\n }\n return null;\n}\n"
|
"protected void processMethod(StageRequest method) {\n if (method.getStageMethod() == STAGEOP_COORD_XCHG_REQUEST) {\n UDPMessage msg = (UDPMessage) method.getArgs()[0];\n xtreemfs_pingRequest prq = (xtreemfs_pingRequest) msg.getRequestData();\n if (msg.isRequest()) {\n sendVivaldiCoor... |
"private void sendOutEnergy() {\n int energyStored = getEnergyStored(EnumFacing.DOWN);\n for (EnumFacing face : EnumFacing.values()) {\n if (modes[face.ordinal()] == Mode.MODE_OUTPUT) {\n BlockPos pos = getPos().offset(face);\n TileEntity te = worldObj.getTileEntity(pos);\n ... |
"public static <T> OrdinalSet<T> unify(OrdinalSet<T> A, OrdinalSet<T> B) {\n if (A == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (B == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (Assertions.verifyAssertions) {\n if (A.... |
"public static StreamResponse retrieveClassificationPlan(String type, User user) throws GenericException, RequestNotValidException, NotFoundException, AuthorizationDeniedException {\n try {\n JsonFactory factory = new JsonFactory();\n ObjectMapper mapper = new ObjectMapper(factory);\n ObjectNode... |
"public synchronized Socket connect(int timeout) throws IOException {\n Thread t = new Thread(new SocketOpenerThread(), \"String_Node_Str\");\n t.setDaemon(true);\n t.start();\n try {\n this.wait(timeout);\n } catch (InterruptedException e) {\n if (socket == null)\n timedOut = tr... |
"public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((value == null) ? 0 : value.hashCode());\n return result;\n}\n"
|
"public void internalOpenSession(InetSocketAddress address, String name, UUID UUID, NetworkProvider provider) {\n players.add(new Player(getServer(), address, name, UUID));\n getServer().getModule(LoggingModule.class).debug(\"String_Node_Str\" + address.getHostString() + \"String_Node_Str\" + address.getPort());\... |
"public float getWeight() {\n return edgeData.getWeight();\n}\n"
|
"public int maxPoints(Point[] points) {\n Map<Line, Integer> map = new HashMap<Line, Integer>();\n int ret = 0;\n int size = points.length;\n for (int i = 0; i < size; i++) {\n int invalidK = 0;\n int add = 1;\n for (int j = i + 1; j < size; j++) {\n if (points[j].x == points... |
"public boolean containsAllStreeElementsOf(SynthesisSubtreeInfoUsingEdgeIds that, int workingRank) {\n boolean containsAll = true;\n for (int rank : that.ranksForIncludedEdges()) {\n if (rank < workingRank) {\n continue;\n }\n if (!this.ranksForIncludedEdges().contains(rank)) {\n ... |
"private void resetVideoOwner() {\n Timber.d(\"String_Node_Str\", videoTagRef.get(), videoOwnerId.get());\n videoTagRef.set(\"String_Node_Str\");\n videoOwnerId.set(NO_VIDEO_OWNER);\n artooMgr.stopDecoding(null);\n}\n"
|
"public static Map<String, GssFunction> getFunctionMap() {\n return ImmutableMap.<String, GssFunction>builder().put(\"String_Node_Str\", new GssFunctions.AddToNumericValue()).put(\"String_Node_Str\", new GssFunctions.SubtractFromNumericValue()).put(\"String_Node_Str\", new GssFunctions.Mult()).put(\"String_Node_Str\... |
"protected GameResult runSingleGame(ArtificialPlayer ai0, Hero hero0, Deck deck0, ArtificialPlayer ai1, Hero hero1, Deck deck1, boolean shufflePlayOrder) throws HSException {\n deck0.shuffle();\n deck1.shuffle();\n PlayerModel playerModel0 = new PlayerModel(0, \"String_Node_Str\", hero0, deck0);\n PlayerMod... |
"private void setHCatalogRepositoryValue(HCatalogConnection connection, INode node, String repositoryValue) {\n if (EHCatalogRepositoryToComponent.DISTRIBUTION.getRepositoryValue().equals(repositoryValue)) {\n String value = ComponentToRepositoryProperty.getParameterValue(connection, node, EHCatalogRepository... |
"public String toString() {\n StringBuilder result = new StringBuilder();\n List<Object> children = getParagraphContent();\n for (Object o : children) {\n System.out.println(\"String_Node_Str\" + o.getClass().getName());\n if (o instanceof org.docx4j.jaxb.document.R) {\n org.docx4j.jax... |
"public void run() {\n while (!canceled) {\n try {\n synchronized (this) {\n while (buildingType == null) {\n this.wait();\n }\n }\n while (buildingType != null && !canceled) {\n if (!pausingSupplier.isPausing()) ... |
"protected void signRequest(final NetRequest cr) {\n if (mOAuth != null) {\n mOAuth.signRequest(cr.request, cr.getParams());\n }\n}\n"
|
"public static void main(String[] args) {\n WebGenerator generator = new WebGenerator();\n String fileContents = \"String_Node_Str\";\n String previewContents = \"String_Node_Str\";\n int numSurveys = 0;\n String[] lines;\n List<String> toQuestion = new ArrayList<String>();\n ArrayList<String[]> al... |
"public void EndProtocolSession(SessionType sessionType, byte sessionID, int hashId) {\n SdlPacket header;\n if (sessionType.equals(SessionType.RPC)) {\n header.putTag(ControlFrameTags.RPC.EndService.HASH_ID, hashID);\n }\n handlePacketToSend(header);\n}\n"
|
"public Response deleteBitstream(Integer bitstreamId, String user_ip, String user_agent, String xforwarderfor, HttpHeaders headers, HttpServletRequest request) throws WebApplicationException {\n log.info(\"String_Node_Str\" + bitstreamId + \"String_Node_Str\");\n org.dspace.core.Context context = null;\n try {... |
"protected void writeInternal(final Object source, final CrateDocument sink, final CratePersistentEntity<?> entity) {\n if (source == null) {\n return;\n }\n if (entity == null) {\n throw new MappingException(\"String_Node_Str\".concat(source.getClass().getName()));\n }\n final BeanWrapper<... |
"public boolean postProcess(InputStream input, OutputStream output) {\n Log log = LogFactory.getLog(this.getClass());\n try {\n List<String> filenames = new ArrayList<String>();\n log.info(\"String_Node_Str\");\n BufferedReader br = new BufferedReader(new InputStreamReader(input));\n S... |
"public IStyle getStyle() {\n if (style == null) {\n if (inlineStyle == null) {\n inlineStyle = report.createStyle();\n }\n IStyle classStyle = getClassStyle();\n style = new CompositeStyle(classStyle, inlineStyle);\n }\n return style;\n}\n"
|
"public boolean postfire() throws IllegalActionException {\n Time currentTime = getDirector().getModelTime();\n if (_currentOutput != null) {\n _delayedTokens.remove(currentTime);\n }\n if (_delayedTokensList.size() != 0 && _delayedTokens.isEmpty()) {\n _nextTimeFree = currentTime.add(_delay);... |
"void unbindFinishedLocked(ServiceRecord r, Intent intent, boolean doRebind) {\n final long origId = Binder.clearCallingIdentity();\n try {\n if (r != null) {\n Intent.FilterComparison filter = new Intent.FilterComparison(intent);\n IntentBindRecord b = r.bindings.get(filter);\n ... |
"private TypedReturnCode<TdDataProvider> readFromFile(IFile file) {\n TypedReturnCode<TdDataProvider> rc;\n this.remove(file);\n rc = new TypedReturnCode<TdDataProvider>();\n Resource resource = getFileResource(file);\n Iterator<IFile> fileIterator = providerMap.keySet().iterator();\n while (fileItera... |
"public void write(Object instance, Object value) {\n if (fieldInfo.hasPropertyConverter()) {\n value = fieldInfo.getPropertyConverter().toEntityAttribute(value);\n FieldWriter.write(field, instance, value);\n } else {\n if (fieldInfo.isScalar()) {\n String descriptor = fieldInfo.g... |
"private MUCUser.Invite parseInvite(XmlPullParser parser) throws Exception {\n boolean done = false;\n MUCUser.Invite invite = new MUCUser.Invite();\n invite.setFrom(parser.getAttributeValue(\"String_Node_Str\", \"String_Node_Str\"));\n invite.setTo(parser.getAttributeValue(\"String_Node_Str\", \"String_Nod... |
"public LogMessage getMsg(String event, HashMap<String, String> entryFieldMap) {\n LogMessage logMsg = new LogMessage(event);\n for (String field : fieldMap.keySet()) {\n if (fieldMap.get(field) != null) {\n this.addField(field, fieldMap.get(field), logMsg);\n }\n }\n for (String fi... |
"protected Object doGetValue(Object source) {\n List<?> list = listFromDelegate(source);\n int idx = elementAccess.getReadValueIndex(list);\n if (idx != WriteData.NO_INDEX) {\n return list.get(idx);\n }\n return null;\n}\n"
|
"public void onEntityDamageResult(EntityDamageEvent event) {\n if (!(event instanceof EntityDamageByEntityEvent) || event.isCancelled()) {\n return;\n }\n EntityDamageByEntityEvent e = (EntityDamageByEntityEvent) event;\n if (event.getEntity() instanceof LivingEntity) {\n if (e.getDamager() in... |
"public void readFromNBT(NBTTagCompound nbttagcompound) {\n isActive = nbttagcompound.getBoolean(\"String_Node_Str\");\n singlePulse = nbttagcompound.getBoolean(\"String_Node_Str\");\n}\n"
|
"public boolean onFetchFirstPage(PeopleListFilter filter) {\n Blog blog = WordPress.getCurrentBlog();\n if (filter == PeopleListFilter.TEAM && mCanRefreshUsers) {\n return fetchUsersList(blog.getDotComBlogId(), blog.getLocalTableBlogId(), 0);\n } else if (filter == PeopleListFilter.FOLLOWERS && mCanRefr... |
"private boolean checkReaderOrder(HttpAcceptSession session) {\n if (validateSequenceNo) {\n return checkOrder(session, readerSequenceNo);\n }\n return true;\n}\n"
|
"public void run() {\n final BufferObjectDataOutput out = serializationService.createObjectDataOutput(1024 * 32);\n try {\n out.writeInt(tasks.size());\n for (Operation task : tasks) {\n serializationService.writeObject(out, task);\n }\n } else {\n getLogger().log(Level.W... |
"public StockItem getItem(ItemStack itemStack, TraderStatus status, boolean dura, boolean amount) {\n boolean equal = false;\n for (StockItem item : stock.get(status.toString())) {\n equal = false;\n if (itemStack.getType().equals(item.getItemStack().getType())) {\n equal = true;\n ... |
"protected ClusterMessage decode(ByteBuf in) {\n in.markReaderIndex();\n try {\n ClusterMessage hdr = new ClusterMessage();\n hdr.signature = (String) in.readCharSequence(4, CHARSET);\n hdr.length = in.readInt();\n if (in.readableBytes() < hdr.length - 8) {\n in.resetReaderI... |
"private int saveExprValue(Map valueMap) throws DataException {\n ByteArrayOutputStream tempBaos = new ByteArrayOutputStream();\n BufferedOutputStream tempBos = new BufferedOutputStream(tempBaos);\n DataOutputStream tempDos = new DataOutputStream(tempBos);\n try {\n IOUtil.writeInt(tempDos, valueMap.... |
"public DatabaseElement caseColumn(Column column) {\n int pos = editedLabelContent.indexOf(':');\n if (pos != -1) {\n String attributeName = editedLabelContent.substring(0, pos).trim();\n column.setName(attributeName);\n String typeDef = editedLabelContent.substring(pos + 1).trim();\n ... |
"protected void layoutControl() {\n super.layoutControl();\n FormData formData = null;\n layoutNavigatorArea();\n formData = new FormData();\n formData.top = new FormAttachment(0, 0);\n formData.left = new FormAttachment(0, 0);\n title.setLayoutData(formData);\n formData = new FormData();\n f... |
"private void openStartElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver, boolean addOpenBrace) {\n try {\n Level position = null;\n if (levels.isEmpty()) {\n newLevel = new Level(true, true);\n levels.push(newLevel);\n } else {\n position ... |
"private void checkPropCreation(NodeTraversal t, Node lvalue) {\n if (lvalue.isGetProp()) {\n JSType objType = getJSType(lvalue.getFirstChild());\n Node prop = lvalue.getLastChild();\n JSType objType = getJSType(obj);\n String pname = prop.getString();\n if (!objType.isStruct() || ... |
"public QName getRef() {\n QName ref = null;\n XmlType baseType = getBaseType();\n if ((baseType.isAnonymous()) && (baseType instanceof XmlClassType)) {\n TypeDefinition baseTypeDef = ((XmlClassType) baseType).getTypeDefinition();\n if (baseTypeDef.getAnnotation(XmlRootElement.class) != null) {\n... |
"public void onShowPortalNodes(ShowPortalNodesEvent event) {\n Set<PathwayVertexRep> vertexReps = PathwayManager.get().getEquivalentVertexRepsInPathway(event.getVertexRep(), pathway);\n if (event.getVertexRep().getPathway() == pathway) {\n vertexReps.add(event.getVertexRep());\n }\n Set<APathwayPathR... |
"public Calc compileExpression(Exp exp, boolean scalar) {\n Evaluator evaluator = RolapEvaluator.create(this);\n final Validator validator = createValidator();\n List<ResultStyle> resultStyleList;\n resultStyleList = Collections.singletonList(resultStyle != null ? resultStyle : this.resultStyle);\n final... |
"protected void initializeInternal(final DataDefinition definition, final Data input, final GeneralizationHierarchy[] hierarchies, final ARXConfiguration config) {\n super.initializeInternal(definition, input, hierarchies, config);\n this.shares = new DomainShare[hierarchies.length];\n for (int i = 0; i < shar... |
"private void testDimensionCreate5(IDocumentManager documentManager) throws IOException, BirtException, DataException {\n ILevelDefn[] levelDefs = new ILevelDefn[4];\n levelDefs[0] = new LevelDefinition(\"String_Node_Str\", new String[] { \"String_Node_Str\" }, null);\n levelDefs[1] = new LevelDefinition(\"Str... |
"public void reconnect(EventChannelFactory ecf) {\n if (channel != null)\n channel = helper.getNotificationChannel(ecf);\n try {\n if (supplierAdmin == null)\n supplierAdmin = channel.get_supplieradmin(supplierAdminID.value);\n if (proxyConsumer == null)\n proxyConsumer ... |
"protected void checkStateServer() {\n if (!isValid()) {\n counter = 1;\n return;\n }\n counter--;\n if (counter > 0) {\n return;\n }\n counter = 20;\n TileEntity tileEntity = worldObj.getTileEntity(monitorX, monitorY, monitorZ);\n if (!(tileEntity instanceof IEnergyHandler)... |
"public static boolean equalsIgnoreStackSize(ItemStack itemStack1, ItemStack itemStack2) {\n if (itemStack1 != null && itemStack2 != null) {\n if (Item.getIdFromItem(itemStack1.getItem()) - Item.getIdFromItem(itemStack2.getItem()) == 0) {\n if (itemStack1.getItem() == itemStack2.getItem()) {\n ... |
"public String reloadInlandFreightPlanning() {\n Map sessionAttributes = ActionContext.getContext().getSession();\n OrderItems entity = operationsService.findOrderItemById((Integer) sessionAttributes.get(\"String_Node_Str\"));\n orderItem = transformToOrderItemFormBean(entity);\n Orders orderEntity = orderS... |
"private void createNewItemFile(File file) {\n ModelElement modelElement = getModelElement(file);\n if (modelElement != null) {\n boolean needUpdateFlag = !modelElement.eIsProxy();\n if (needUpdateFlag) {\n IFile iFile = WorkspaceUtils.fileToIFile(file);\n IFolder parentFolder ... |
"public LogStream attachContainer(final String containerId, final AttachParameter... params) throws DockerException, InterruptedException {\n checkNotNull(containerId, \"String_Node_Str\");\n WebTarget resource = noTimeoutResource().path(\"String_Node_Str\").path(containerId).path(\"String_Node_Str\");\n for (... |
"public boolean run(ActionCallback cb) {\n Scene scn = this.sceneActorRef.getScene();\n InteractiveActor actor = (InteractiveActor) scn.getActor(this.sceneActorRef.getActorId(), false);\n scn.removeActor(actor);\n if (scn != World.getInstance().getCurrentScene()) {\n actor.loadAssets();\n Engi... |
"private void saveAsModuleBActionPerformed(java.awt.event.ActionEvent evt) {\n ArrayList<DeployedModel> deploymentInfo = new ArrayList();\n JFileChooser chooser = new JFileChooser();\n chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n int returnVal = chooser.showSaveDialog(ImportSessionFrame.th... |
"protected String parseValue() {\n Object aux = getValue();\n if (aux != null)\n return \"String_Node_Str\" + aux + \"String_Node_Str\";\n else\n return \"String_Node_Str\";\n}\n"
|
"public void apply() {\n boolean breakpointsSelected = false;\n _actorProfile = new DebugProfile(_graphController);\n for (int i = 0; i < _firingEventTypes.length; i++) {\n if (getBooleanValue(_firingEventTypeLabels[i])) {\n _actorProfile.listenForEvent(_firingEventTypes[i]);\n bre... |
"public void test_invalid_handle_already_exist() throws Exception {\n IpDto ipDto = generateIpDto();\n String content = JsonHelper.serialize(ipDto);\n mockMvc.perform(post(URI_IP_U).contentType(MediaType.parseMediaType(rdapJson)).content(content)).andExpect(status().isOk()).andExpect(content().contentType(rdap... |
"private static <T extends Selectable> Matches<T> findMatches(Collection<T> collection, boolean complete, String... tokens) {\n List<T> listOfMatches = new ArrayList<T>();\n double maximumSimilarity = 1e-6;\n for (T candidate : collection) {\n String[] titleWords = split(candidate.getName().getSingular(... |
"private UnfiledRecordsContainer render(RenderTime timer, String expectedName) {\n WebDroneUtil.checkMandotaryParam(\"String_Node_Str\", timer);\n timer.start();\n try {\n RenderElement filePlan = RenderElement.getVisibleRenderElement(FILEPLAN);\n RenderElement filePlanNav = RenderElement.getVisi... |
"public void deleteFlowQueues(HttpRequest request, HttpResponder responder, String namespaceId, String appId, String flowId) throws Exception {\n Id.Program programId = Id.Program.from(namespaceId, appId, ProgramType.FLOW, flowId);\n try {\n ProgramStatus status = getProgramStatus(programId);\n if (... |
"public static GregorianCalendar convertQDateTimeToGregorian(QDateTime dateTime) {\n QDate date = dateTime.date();\n QTime time = dateTime.time();\n GregorianCalendar gregCal = new GregorianCalendar(date.year(), date.month(), date.day(), time.hour(), time.minute(), time.second());\n logger.info(gregCal.get(... |
"public void dispose() {\n if (getCommandStack() != null && getCommandStack() instanceof WrapperCommandStack) {\n WrapperCommandStack stack = (WrapperCommandStack) getCommandStack();\n stack.removeCommandStackListener(getCommandStackListener());\n }\n super.dispose();\n}\n"
|
"private void setStartTime(ClusterEvent clusterEvent) {\n this.startTime = new DateTime(clusterEvent.getModifiedTime(), DateTimeZone.UTC);\n timeInterval = new TimeInterval(startTime, null);\n}\n"
|
"public void onStart() {\n super.onStart();\n if (issueInfo != null) {\n String issueComment = CacheWrapper.getIssueComment(issueInfo.toString());\n if (issueComment != null) {\n editText.setText(Html.fromHtml(issueComment));\n }\n }\n}\n"
|
"public static void loadJAR(URL[] jarURL, boolean download) {\n URLClassLoader classLoader = new URLClassLoader(jarURL);\n Enumeration<URL> resources;\n try {\n resources = classLoader.getResources(\"String_Node_Str\");\n } catch (IOException e) {\n LOGGER.error(\"String_Node_Str\", e);\n ... |
"public Highlight getHighlightByTouchPoint(float x, float y) {\n float[] pts = new float[2];\n pts[0] = x;\n pts[1] = y;\n Matrix tmp = new Matrix();\n mMatrixOffset.invert(tmp);\n tmp.mapPoints(pts);\n mMatrixTouch.invert(tmp);\n tmp.mapPoints(pts);\n mMatrixValueToPx.invert(tmp);\n tmp.m... |
"public void testGetAll() throws Exception {\n Capture<BatchRequest> capturedBatchRequest = Capture.newInstance();\n List<Result<BlobInfo>> batchResultList = new LinkedList<>();\n for (BlobInfo info : BLOB_INFO_RESULTS) {\n batchResultList.add(new Result<>(info));\n }\n BatchResponse response = ne... |
"public boolean exists(String url) throws SardineException {\n HttpHead head = new HttpHead(url);\n HttpResponse response = this.executeWrapper(head);\n StatusLine statusLine = response.getStatusLine();\n return SardineUtil.isGoodResponse(statusLine.getStatusCode());\n}\n"
|
"public JSONObject toJSONObject() {\n JSONObject deviceObject = new JSONObject();\n try {\n deviceObject.put(KEY_ID, getUUID());\n deviceObject.put(KEY_LAST_IP, getIpAddress());\n deviceObject.put(KEY_FRIENDLY, getFriendlyName());\n deviceObject.put(KEY_MODEL_NAME, getModelName());\n ... |
"public int getAggregationIndex(String name) throws IOException {\n int index = rs1.getAggregationIndex(name);\n if (index < 0) {\n index = rs2.getAggregationIndex(name);\n if (index >= 0) {\n index += rs1.getAggregationCount();\n }\n }\n return index;\n}\n"
|
"private void createSMSMenu(Player player, String[] args) {\n if (args.length < 2) {\n plugin.error_message(player, \"String_Node_Str\");\n plugin.error_message(player, \"String_Node_Str\");\n return;\n }\n String menuName = args[1];\n if (plugin.getMenu(menuName) != null) {\n pl... |
"public void setToken(String token) {\n if (token == null) {\n remove(TOKEN);\n } else {\n put(TOKEN, token);\n }\n}\n"
|
"public static org.hl7.fhir.dstu2016may.model.Age convertAge(org.hl7.fhir.dstu3.model.Age src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.Age tgt = new org.hl7.fhir.dstu2016may.model.Age();\n copyElement(src, tgt);\n tgt.setValue(src.get... |
"public void execute(Action action, NodeRef actionedUponNodeRef) {\n if (allowParameterSubstitutions) {\n parameterProcessorComponent.process(action, getActionDefinition(), actionedUponNodeRef);\n }\n super.execute(action, actionedUponNodeRef);\n}\n"
|
"protected void exportDone(JComponent source, Transferable data, int action) {\n super.exportDone(source, data, action);\n JComponent cmp = getDragComponent(source);\n if (cmp instanceof ICompositeDragNDrop && data != null) {\n ICompositeDragNDrop ddComp = (ICompositeDragNDrop) cmp;\n JSDNDEvent ... |
"public TmfContext seekLocation(ITmfLocation<?> location) {\n CustomTxtTraceContext context = new CustomTxtTraceContext(NULL_LOCATION, ITmfContext.INITIAL_RANK);\n if (NULL_LOCATION.equals(location) || !new File(getPath()).isFile()) {\n return context;\n }\n try {\n BufferedRandomAccessFile ra... |
"private File chromeFullScreenCapture(WebDriver driver) throws IOException, InterruptedException {\n driver.switchTo().defaultContent();\n ArrayList<File> capture = new ArrayList<File>();\n Boolean atBottom = false;\n Integer windowSize = ((Long) ((JavascriptExecutor) driver).executeScript(\"String_Node_Str... |
"private void populatePhoto(ViewHolder mViewHolder, ViewGroup container, Activity.PlusObject.Attachments attachment) {\n if (attachment == null)\n return;\n createAttachmentView(mViewHolder, container, R.layout.news_item_photo, 3);\n if (attachment.getImage() != null && attachment.getImage().getUrl() !=... |
"public String call(Object object, String format) throws Exception {\n DateTime dt = Utils.toDateTimeObject(object);\n if (dt != null) {\n if (format.equalsIgnoreCase(\"String_Node_Str\")) {\n return \"String_Node_Str\" + dt.getDayOfWeek();\n } else if (format.equalsIgnoreCase(\"String_No... |
"public static ReturnCode checkGeneralJdbcJarFilePathDriverClassName(DatabaseConnection dbConn) {\n ReturnCode returnCode = new ReturnCode();\n String driverClass = JavaSqlFactory.getDriverClass(dbConn);\n String driverJarPath = JavaSqlFactory.getDriverJarPath(dbConn);\n if (driverClass == null || driverCla... |
"private static void teleport(final Player player, final Location toLocation) {\n final Object server = MinecraftReflection.getHandle(player.getServer());\n final Object entityPlayer = MinecraftReflection.getHandle(player);\n final Object toWorld = MinecraftReflection.getHandle(toLocation.getWorld());\n fin... |
"private void cleanUp() throws Exception {\n shutdownDerby();\n removeDatabase();\n dbDir = null;\n}\n"
|
"protected void zeroLiveBits() {\n Extent bytes = Extent.fromIntSignExtend(EmbeddedMetaData.BYTES_IN_REGION >> LOG_LIVE_COVERAGE);\n if (contiguous) {\n Address end = ((FreeListPageResource) pr).getHighWater();\n Address cursor = start;\n while (cursor.LT(end)) {\n Address metadata... |
"private void testPerformanceComparison() {\n if (!config.big) {\n return;\n }\n int size = 1000000;\n long hash = 0, tree = 0, mv = 0;\n for (int i = 0; i < 5; i++) {\n Map<Integer, String> map;\n map = new HashMap<Integer, String>(size);\n hash = testPerformance(map, size);\... |
"public void processRequest() throws Exception {\n FormProcessor fp = new FormProcessor(request);\n ub.incNumVisitsToMainMenu();\n session.setAttribute(USER_BEAN_NAME, ub);\n request.setAttribute(\"String_Node_Str\", true);\n request.setAttribute(\"String_Node_Str\", false);\n if (ub == null || ub.get... |
"public ConnInstance getConnInstance(final ConnInstanceTO connInstanceTO) {\n SyncopeClientCompositeErrorException scee = new SyncopeClientCompositeErrorException(HttpStatus.BAD_REQUEST);\n SyncopeClientException requiredValuesMissing = new SyncopeClientException(SyncopeClientExceptionType.RequiredValuesMissing);... |
"public List<RepositoryItem> findRepositoryItemsByAttRegex(String attributeName, String regex) {\n return createItemsForIds(metadata.findByAttRegex(attributeName, regex));\n}\n"
|
"public int findDecay(final Channel channel1, final int attack) throws SoundTransformException {\n int decayIndex = attack;\n final double[] decayArray = new double[magnitudeArray.length - attack];\n System.arraycopy(magnitudeArray, attack, decayArray, 0, magnitudeArray.length - attack);\n try {\n Ma... |
"public byte getPlayerId() {\n return playerAndTeamid;\n}\n"
|
"public boolean tryToExpand(double splitConfidence, double tieThresholdOption) {\n boolean hasExpanded = learningLiteral.tryToExpand(splitConfidence, tieThresholdOption);\n if (hasExpanded) {\n LearningLiteral otherOutputsLiteral = learningLiteral.getOtherOutputsLearningLiteral();\n if (otherOutputs... |
"public void update(IUpdateable component) {\n if (component == meshComp) {\n PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {\n public void run() {\n editor.setDirty(true);\n }\n });\n}\n"
|
"public static final String format(Object oValue, FormatSpecifier fs, ULocale lcl, Object oCachedJavaFormatter) throws ChartException {\n String sValue;\n if (oValue == null) {\n return null;\n } else if ((oValue instanceof String) && !(fs instanceof StringFormatSpecifier)) {\n return (String) oV... |
"public void onUrlDeviceDiscoveryUpdate() {\n for (PwPair pwPair : mPwCollection.getGroupedPwPairsSortedByRank()) {\n String groupId = Utils.getGroupId(pwPair.getPwsResult());\n Log.d(TAG, \"String_Node_Str\" + groupId);\n if (mNearbyDeviceAdapter.containsGroupId(groupId)) {\n mNearby... |
"public void render(Canvas canvas, Camera camera, float alpha) {\n if (this.loadAssets && this.sprite != null) {\n Vector2f cameraPos = camera.getRenderPosition(alpha);\n Vector2f pos = centerSprite ? getCenterPos() : this.pos;\n float x = pos.x - cameraPos.x;\n float y = pos.y - cameraPo... |
"public void testTraceConstructorFailure() {\n try {\n LTTngTextTrace testStream = new LTTngTextTrace(\"String_Node_Str\", wrongTracePath, skipIndexing);\n fail(\"String_Node_Str\");\n testStream.dispose();\n } catch (Exception e) {\n }\n}\n"
|
"public Object visitCompileUnitNode(CompileUnitNode node, LinkedList args) {\n _currentPackage = (PackageDecl) node.getDefinedProperty(PACKAGE_KEY);\n TNLManip.traverseList(this, node, TNLManip.cons(node.getDefinedProperty(ENVIRON_KEY)), node.getDefTypes());\n return null;\n}\n"
|
"public BluetoothGattCharacteristic getNativeCharacteristic(final UUID serviceUuid, final UUID charUuid, final DescriptorFilter descriptorFilter) {\n return m_serviceMngr.getCharacteristic(serviceUuid, charUuid, descriptorFilter).getCharacteristic();\n}\n"
|
"public void checkServiceOpDoesNotRefRetiredException(ExceptionRef exRef) {\n EObject owner = objLookup.getStatefulOwner(exRef);\n ILifecycleStateResolver stateRes = new StateAttributeLifecycleStateResolver(owner.eResource().getResourceSet());\n LifecycleState ownerState = stateRes.getLifecycleState(owner);\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.