content stringlengths 40 137k |
|---|
"private int preProcessPage(WebURL curURL) {\n if (curURL == null) {\n return -1;\n }\n Page page = new Page(curURL);\n int statusCode = PageFetcher.fetch(page, IGNORE_BINARY_CONTENT);\n curURL = page.getWebURL();\n int docid = curURL.getDocid();\n if (statusCode != PageFetchStatus.OK) {\n ... |
"public int numColorSets() {\n if (hasColors()) {\n return 1;\n }\n return 0;\n}\n"
|
"public List<AutoConversionType> getAllAutoConversionTypes() {\n return AutoConvertTypesUtils.getAllAutoConversionTypes();\n}\n"
|
"public void placeInWorld(IBuilderContext context, BlockPos pos, List<ItemStack> stacks) {\n context.world().setBlockState(pos, Blocks.GRAVEL.getDefaultState());\n}\n"
|
"<R> R executeOnEndPoint(ServiceEndPoint endPoint, ServiceCallback<S, R> callback) throws Exception {\n ServiceHandle<S> handle = null;\n try {\n service = _serviceCache.checkOut(endPoint);\n TimerContext timer = _callbackExecutionTime.time();\n try {\n return callback.call(service... |
"public int hashCode() {\n int result;\n result = (firstName != null ? firstName.hashCode() : 0);\n result = 29 * result + (lastName != null ? lastName.hashCode() : 0);\n return result;\n}\n"
|
"public List<GraphSourceItem> toSource(SourceGeneratorLocalData localData, SourceGenerator generator) throws CompilationException {\n return toSourceMerge(localData, generator, leftSide, rightSide, new AVM2Instruction(0, new AsTypeLateIns(), new int[] {}, new byte[0]));\n}\n"
|
"protected boolean isEnemyAttackable(IAttackable enemy) {\n ShortPoint2D pos = super.getPos();\n ShortPoint2D enemyPos = enemy.getPos();\n final int dx = Math.abs(pos.getX() - enemyPos.getX());\n final int dy = Math.abs(pos.getY() - enemyPos.getY());\n final int squareDist = dx * dx + dy * dy;\n if (i... |
"public void setSession(AbstractSession session) {\n this.session = session;\n if (session != null && session.getDatasourceLogin() instanceof XMLLogin) {\n this.equalNamespaceResolvers = ((XMLLogin) session.getDatasourceLogin()).hasEqualNamespaceResolvers();\n }\n}\n"
|
"public static AccountData parse_account(Account acc, Document doc, JSONObject data) throws JSONException, NotReachableException {\n JSONObject copymap = data.getJSONObject(\"String_Node_Str\");\n List<LentItem> media = new ArrayList<>();\n if (doc.select(\"String_Node_Str\").size() == 0) {\n throw new ... |
"public String cast(java.util.Date src, Class<?> toType, String... args) {\n return ((DateFormat) dateTimeFormat.clone()).format(src);\n}\n"
|
"public Object call() throws Exception {\n getClientEngine().getProxyService().destroyDistributedObject(getServiceName(), name);\n return null;\n}\n"
|
"public void applyArmorUpdate() {\n for (int i = 0; i < equipment.length; i++) {\n Item stack = equipment[i];\n PacketPlayOutEntityEquipment entityEquipment = new PacketPlayOutEntityEquipment();\n entityEquipment.set(\"String_Node_Str\", original().getId()).set(\"String_Node_Str\", (short) i + 5... |
"public static HttpConnection createAndConnect(URL url) throws IOException {\n int retries = MAX_REDIRECTS;\n Proxy proxy = ProxyHelper.createProxyIfNeeded(url.toString());\n do {\n HttpURLConnection connection = (HttpURLConnection) url.openConnection(proxy);\n try {\n connection.conne... |
"public void interruptWaitingCalls() {\n final Collection<Call> values = callMap.values();\n for (Iterator<Call> it = values.iterator(); it.hasNext(); ) {\n Call call = it.next();\n call.setResponse(new NoMemberAvailableException());\n }\n calls.clear();\n new Thread(new Runnable() {\n ... |
"private <T extends Document> T readDocumentUncached(Collection<T> collection, String id, NodeDocument cachedDoc) {\n Connection connection = null;\n String tableName = getTable(collection);\n try {\n long lastmodcount = -1;\n if (cachedDoc != null) {\n lastmodcount = modcountOf(cached... |
"public Set<OWLDescription> getDescriptions() {\n return view.getSolutions();\n}\n"
|
"public static <T, U extends T> U put(Class<T> type, U object) {\n if (context == null) {\n return null;\n context.put(type, object);\n return object;\n}\n"
|
"public void acknowledgeNotification(String notificationId, String token) throws GenericException, NotFoundException, AuthorizationDeniedException {\n Notification notification = this.retrieveNotification(notificationId);\n String ackToken = token.substring(0, 36);\n String emailToken = token.substring(36);\n ... |
"public static int getChunkSize(String line) {\n String hex = line.trim();\n if (hex.equals(IcapCodecUtil.IEOF_SEQUENCE_STRING)) {\n return -1;\n }\n for (int i = 0; i < hex.length(); i++) {\n char c = hex.charAt(i);\n if (c == ';' || Character.isWhitespace(c) || Character.isISOControl(... |
"public void resetRecords() throws SessionUnavailableException {\n if (loader.getStatus() == Status.RUNNING) {\n loader.cancel(false);\n loader = loader.spawn();\n } else if (loader.getStatus() == Status.FINISHED) {\n loader = loader.spawn();\n }\n SqlStorage<FormRecord> storage = CommC... |
"public void testTmfTraceDefault() throws Exception {\n TmfTraceStub trace = null;\n File testfile = null;\n try {\n URL location = FileLocator.find(TmfCoreTestPlugin.getDefault().getBundle(), new Path(DIRECTORY + File.separator + TEST_STREAM), null);\n testfile = new File(FileLocator.toFileURL(l... |
"public void writeUAVsInformations() {\n if (_numberOfUAVs > 0) {\n StringBuffer header = new StringBuffer(\"String_Node_Str\");\n int count = _UAVsValues.split(\"String_Node_Str\").length;\n for (int i = 0; i < count; i++) {\n header = header + \"String_Node_Str\" + i + \"String_Node... |
"public String getDescription() {\n return String.format(\"String_Node_Str\", Fragment.of(Article.A, ElementType.DATASET.getName()), ArgumentName.DATASET_PROPERTIES);\n}\n"
|
"public RPCResponse internal_cleanup_stop(InetSocketAddress server, String password) {\n xtreemfs_cleanup_stopRequest rq = new xtreemfs_cleanup_stopRequest();\n UserCredentials creds = new UserCredentials(\"String_Node_Str\", new StringSet(new String[] { \"String_Node_Str\" }), password);\n RPCResponse r = sen... |
"public ManagedObjectReference[] getVmMorsOnNetwork(String portGroupName) throws Exception {\n ManagedObjectReference morNetwork = getNetworkMor(portGroupName);\n if (morNetwork != null)\n return (List<ManagedObjectReference>) _context.getVimClient().getDynamicProperty(morNetwork, \"String_Node_Str\");\n ... |
"public static Sequence loopRule(String symbol, List<Value> args, List<? extends Expression> blockOn, ExecContext execCx) {\n assert (execCx == ExecContext.CONTROL);\n List<Expression> action = new ArrayList<Expression>();\n action.add(new Token(symbol));\n for (Value arg : args) {\n actionElems.add(... |
"private void txNext() {\n if (txfifoPos <= memory[RAM_TXFIFO]) {\n if (listener != null) {\n listener.receivedByte((byte) (memory[RAM_TXFIFO + txfifoPos] & 0xFF));\n }\n long time = cpu.scheduleTimeEventMillis(sendEvent, SYMBOL_PERIOD * 2);\n } else {\n if (DEBUG)\n ... |
"public Object instantiateItem(ViewGroup container, int position) {\n Context context = container.getContext();\n View view = LayoutInflater.from(context).inflate(R.layout.item_play_view, container, false);\n ImageView ivPlay = (ImageView) view.findViewById(R.id.iv_play);\n FrameLayout frameLayout = (FrameL... |
"protected void endElementProcessText(UnmarshalRecord unmarshalRecord, XMLConverterMapping converter, XPathFragment xPathFragment, Object collection) {\n Object value = unmarshalRecord.getCharacters().toString();\n unmarshalRecord.resetStringBuffer();\n if (!Constants.EMPTY_STRING.equals(value)) {\n QNa... |
"protected void defineFunctions() {\n defineReserved(\"String_Node_Str\");\n if (false)\n define(new FunDefBase(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n define(new FunDefBase(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"... |
"private void storeState(long hash, OpTime opTime) throws OplogManagerPersistException {\n Preconditions.checkState(isRunning(), \"String_Node_Str\");\n Status<?> result = retrier.retry(() -> {\n try (WriteMongodTransaction transaction = connection.openWriteTransaction()) {\n Status<Long> delete... |
"private void serviceUnregistering(ServiceReference<?> serviceReference) {\n synchronized (this.monitor) {\n List<CommandDescriptor> commandDescriptorsForService = this.commandDescriptorsByService.remove(serviceReference);\n if (commandDescriptorsForService != null) {\n this.commandDescripto... |
"public UserWithPassword resetPassword(int userId) {\n User user = findUser(userId);\n String password = PasswordGenerator.generateRandomPassword();\n Validate.isTrue(userRepository.resetPassword(userId, passwordEncoder.encode(password)) == 1, \"String_Node_Str\");\n return new UserWithPassword(user, passwo... |
"private static void processClasses(CompiledClass[] entries, int n) throws Exception {\n Reflection implementor = new Reflection();\n ClassPool pool = ClassPool.getDefault();\n implementor.start(pool);\n for (int i = 0; i < n; ++i) {\n CtClass c = pool.get(entries[i].classname);\n if (entries[... |
"public void run() {\n minDepartTime.setNewCurrentTime(new DateTime(2014, 4, 25, 12, 0));\n}\n"
|
"private static AbstractBuild match(RunList runList, AbstractBuild firstBuild) {\n if (firstBuild != null) {\n for (AbstractBuild currentBuild : runList) {\n if (firstBuild.equals(getFirstUpstreamBuild(currentBuild, firstBuild.getProject()))) {\n return currentBuild;\n }\n... |
"public final NBTTagCompound getUpdateTag() {\n MessageUpdateTile message = createNetworkUpdate(NET_RENDER_DATA);\n ByteBuf buf = Unpooled.buffer();\n buf.writeShort(NET_RENDER_DATA);\n writePayload(NET_RENDER_DATA, new PacketBuffer(buf), worldObj.isRemote ? Side.CLIENT : Side.SERVER);\n byte[] bytes = n... |
"public final Param_type_listContext param_type_list() throws RecognitionException {\n Param_type_listContext _localctx = new Param_type_listContext(_ctx, getState());\n enterRule(_localctx, 122, RULE_param_type_list);\n int _la;\n try {\n setState(576);\n switch(getInterpreter().adaptivePredi... |
"protected int idamax(int N, INDArray X, int incX) {\n return NativeBlas.idamax(N, getDoubleData(X), getBlasOffset(X), incX) - 1;\n}\n"
|
"public static Class getParameterizedClass(final Class c, final int index) {\n final TypeVariable[] typeVars = c.getTypeParameters();\n if (typeVars.length > 0) {\n final TypeVariable typeVariable = typeVars[index];\n final Type[] bounds = typeVariable.getBounds();\n final Type type = bounds[... |
"public List<DavResource> getResources(String url) throws IOException {\n HttpPropFind propFind = new HttpPropFind(url);\n propFind.setEntity(SardineUtil.getResourcesEntity());\n HttpResponse response = this.client.execute(propFind);\n int statusCode = response.getStatusLine().getStatusCode();\n if (!Sar... |
"public void init(ServletConfig config) throws ServletException {\n super.init(config);\n String baseUri = System.getProperty(\"String_Node_Str\", \"String_Node_Str\");\n String baseServer = config.getServletContext().getInitParameter(\"String_Node_Str\");\n if (baseUri.isEmpty() && baseServer != null) {\n ... |
"public static void close(Client client) {\n try {\n client.getInputProtocol().getTransport().close();\n client.getOutputProtocol().getTransport().close();\n } catch (Exception e) {\n LOG.error(\"String_Node_Str\", client);\n }\n}\n"
|
"public InputStream save(final String image, final AuthConfig authConfig) throws DockerException, IOException, InterruptedException {\n final WebTarget resource = resource().path(\"String_Node_Str\").path(image).path(\"String_Node_Str\");\n return request(GET, InputStream.class, resource, resource.request(APPLICA... |
"public void bindView(View view, Context context, Cursor cursor) {\n ViewHolder holder = (ViewHolder) view.getTag();\n String subject = cursor.getString(cursor.getColumnIndex(PrivateChatMessagesTable.Cols.SUBJECT));\n String body = cursor.getString(cursor.getColumnIndex(PrivateChatMessagesTable.Cols.BODY));\n ... |
"public Object executeQuery(Object... methodParameters) {\n Parameters executionParameters = new Parameters(method, methodParameters);\n if (isCollectionQuery()) {\n return COLLECTION.execute(hadesQuery, parameters);\n }\n if (isPageQuery()) {\n return PAGE.execute(hadesQuery, parameters);\n ... |
"private long openPartition(int columnIndex, long partitionTimestamp, boolean last, long[] columnTops) {\n try {\n partitionDirFmt.format(partitionTimestamp, DateLocaleFactory.INSTANCE.getDefaultDateLocale(), null, path.put(Path.SEPARATOR));\n final long partitionSize;\n if (ff.exists(path.$()))... |
"public boolean setResult(T result) {\n if (setDone()) {\n this.result = result;\n synchronized (resultLock) {\n resultLock.notifyAll();\n }\n listenerHelper.callListeners();\n return true;\n }\n this.result = result;\n listenerHelper.callListeners();\n retur... |
"public List<Account> getAccounts() {\n return walletInMem.getAccounts();\n}\n"
|
"protected TriplePatternFragment createTriplePatternFragment(final Model triples, final long totalSize, final boolean isLastPage) {\n final long pageNumber;\n if (request.isPageRequest())\n pageNumber = request.getPageNumber();\n else\n pageNumber = 1L;\n return new TriplePatternFragmentImpl(t... |
"public synchronized WSDLDocument parse(String url) throws ParserException {\n logger.entering(\"String_Node_Str\", \"String_Node_Str\", url);\n wsdlDoc = Context.getContext().getNewWsdlDocument();\n try {\n XSDParser xsdParser = null;\n xsdParser = Context.getContext().getNewXsdParser();\n ... |
"public void run() {\n List<TreeNode> subTrees = trees.subList(0, trees.size() - 1);\n Path out = new Path(context.getProps().getProperty(CommonConstants.GUAGUA_OUTPUT));\n if (!context.getMasterResult().isHalt() && context.getCurrentIteration() != context.getTotalIteration()) {\n writeModelToFileSystem... |
"protected boolean canDrop(Object source) {\n if (source == null) {\n return false;\n }\n if (source instanceof StructuredSelection) {\n return canDrop(((StructuredSelection) source).toArray());\n }\n if (source instanceof Object[]) {\n Object[] array = (Object[]) source;\n if... |
"public static void setIssueUpdateLists() {\n List<Issue> l1 = new ArrayList<Issue>();\n List<Issue> l2 = new ArrayList<Issue>();\n List<Issue> l3 = new ArrayList<Issue>();\n List<Issue> issues = User.getAllValidatedIssues();\n for (Issue i : issues) {\n int n = i.getNumItemsSinceLastDownload();\n... |
"public static void init() {\n addRecipe(IS.frostSword, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", 'I', IceikaItems.iceStone, 'S', Items.stick);\n addRecipe(VanillaItemsWeapons.bloodgemSword, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", 'I', VanillaItemsOther.bloodgem, 'S', I... |
"public static ComputedColumnHandle generateAggregation(CrosstabReportItemHandle crosstab, AggregationCellHandle cell, MeasureViewHandle measureView, String function, String rowDimension, String rowLevel, String colDimension, String colLevel) throws SemanticException {\n String name = generateComputedColumnName(meas... |
"public void drawGlyphVector(GlyphVector glyph, float x, float y) {\n translate(x, y);\n Element currentElement = dom.createElement(\"String_Node_Str\");\n Element transElement = createElement(\"String_Node_Str\");\n currentElement.appendChild(transElement);\n setFillColor(transElement, true);\n for (... |
"public static List<ItemStack> fitToMaxSize(ItemStack stack) {\n if (stack == null) {\n return Collections.EMPTY_LIST;\n }\n return items;\n}\n"
|
"public int compare(SPluginConfiguration o1, SPluginConfiguration o2) {\n if (o1.getName() == null && o2.getName() != null) {\n return 1;\n } else if (o1.getName() != null && o2.getName() == null) {\n return -1;\n } else if (o1.getName() == null && o2.getName() == null) {\n return 0;\n ... |
"private void checkPlayerOrder() {\n if (gameManager.getStartRoundNumber() == 1) {\n turn.add(1);\n int cycleNumber = (turn.value()) / playerManager.getNumberOfPlayers();\n int playerNumber = (turn.value()) % playerManager.getNumberOfPlayers();\n log.debug(\"String_Node_Str\" + turn.value... |
"public void init() throws Exception {\n _node1 = new ServerDispatcher(Listener.NULL_LISTENER);\n _node2 = new ServerDispatcher(Listener.NULL_LISTENER);\n _tport1 = new TransportImpl(new FailureDetectorImpl(5000, FailureDetectorImpl.OPEN_PIN));\n _node1.init(_tport1);\n _tport2 = new TransportImpl(new Fa... |
"public boolean isSaveAsAllowed() {\n if (getActivePageInstance() != null) {\n return getActivePageInstance().isSaveAsAllowed();\n }\n return false;\n}\n"
|
"public void onClick(AjaxRequestTarget target) {\n IModel<CartItemInfo> model = item.getModel();\n send(CartPanel.this, Broadcast.BREADTH, new RemoveFromCartEvent(model.getObject(), target));\n}\n"
|
"public void setFilter(Filter filter) {\n mFilter = filter;\n Cursor cursor = filterItems(mFilter);\n if (cursor != null) {\n mGridAdapter.swapCursor(cursor);\n mResultView.setVisibility(View.GONE);\n } else {\n if (filter != Filter.CUSTOM_DATE) {\n mResultView.setVisibility(... |
"private void processStatement(VCastInstrumentedFile lisFile, VCastLisFileParser lisFileParser, int fileNum, int functionNum, VCastFunction function, VCastStatementCoverage statementCoverageItem, boolean isMCDCFile, Map<String, Discrepancy> discrepancies, OperationReport report) {\n Integer functionNumber = function... |
"protected <K, V> CacheConfig<K, V> createConfig(String cacheName, CacheConfig<K, V> config, boolean createAlsoOnOthers, boolean syncCreate) {\n CacheConfig<K, V> currentCacheConfig = configs.get(cacheName);\n try {\n int partitionId = clientContext.getPartitionService().getPartitionId(config.getNameWithPr... |
"protected boolean isIncludeLibs() {\n if (isBinaries()) {\n return true;\n }\n return includeLibsButton != null && includeLibsButton.getSelection();\n}\n"
|
"public void createMemoryMappingMBean(XaDataSourceManager datasourceMananger) {\n NeoStoreXaDataSource datasource = (NeoStoreXaDataSource) datasourceMananger.getXaDataSource(\"String_Node_Str\");\n if (!register(new MemoryMapping.AsMxBean(instance.id, datasource))) {\n if (!register(new MemoryMapping(insta... |
"public static ServiceGraph buildGraph(java.util.Set<ServiceDefinition> sds, java.util.List<Situation> sits) {\n ServiceGraph ret = new ServiceGraph();\n java.util.Set<ServiceDefinition> initialNodes = getInitialServices(sds);\n for (ServiceDefinition sd : sds) {\n ServiceNode sn = new ServiceNode();\n ... |
"public static final float[] inv(float[] x) {\n float[] z = new float[2];\n if (x[1] != 0.0) {\n float scalar;\n if (Math.abs(x[0]) >= Math.abs(x[1])) {\n scalar = (float) (1.0 / (x[0] + x[1] * (x[1] / x[0])));\n z[0] = scalar;\n z[1] = scalar * (-x[1] / x[0]);\n ... |
"private void initRecyclerView() {\n List<FeedArticleData> mDatas = new ArrayList<>();\n mAdapter = new ProjectListAdapter(R.layout.item_project_list, mDatas);\n mAdapter.setOnItemClickListener((adapter, view, position) -> startProjectPager(position));\n mAdapter.setOnItemChildClickListener((adapter, view, ... |
"protected Class<?> loadClass(String className) {\n return ReflectionUtils.forName(className, classLoaders);\n}\n"
|
"public void parameterValidation(Parameter[] parameters) throws AnnotationValidationException {\n for (Parameter parameter : parameters) {\n String parameterName = parameter.name();\n if (parameterName.isEmpty()) {\n throw new AnnotationValidationException(MessageFormat.format(\"String_Node_... |
"private void outputDataIfBufferIsFull() {\n if (getCurrentContainer().getRowIndex() >= maxRow) {\n outputSheet(page);\n newPage();\n page.startPage(lastPage);\n page.setHeader(null);\n }\n}\n"
|
"public void entityTarget(EntityTargetEvent event) {\n Map<String, Object> context = new HashMap<String, Object>();\n Entity entity = event.getEntity();\n Entity target = event.getTarget();\n Player player = null;\n String reason = event.getReason().name();\n String entityType = entity.getType().name(... |
"public Response<Resource> getMyDataboxById(String said, String dbID, String personId) {\n Data<Resource> data = null;\n logger.info(\"String_Node_Str\" + said + \"String_Node_Str\" + personId + \"String_Node_Str\" + dbId);\n try {\n DataContainer databox = databoxManager.get(dbID);\n data = new ... |
"public boolean hasQueryLengths() {\n return ArrayUtils.isNotEmpty(queryLengths);\n}\n"
|
"private int minScore(Role role, MachineState state) throws MoveDefinitionException, GoalDefinitionException, TransitionDefinitionException {\n if (stateMachine.isTerminal(state))\n return stateMachine.getGoal(state, role);\n if (minStateScores.get(state.toString()) != null)\n return minStateScores.... |
"protected void createFiltersToolItems() {\n boolean isErrorReject = false;\n if (!(getDataMapTable() instanceof OutputTable)) {\n return;\n }\n isErrorReject = ((OutputTable) getDataMapTable()).isErrorRejectTable();\n condensedItem = new ToolItem(toolBarActions, SWT.CHECK);\n condensedItem.set... |
"public void commitEvent(Event event) {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n updateGUI();\n }\n });\n}\n"
|
"private static void copyFileM(String srcFileName, FileInputStream srcInputStream, String desFileName, boolean delSrc) throws IOException {\n File source = new File(srcFileName);\n File dest = new File(desFileName);\n FileChannel in = null;\n FileChannel out = null;\n try {\n in = srcInputStream.g... |
"public void map(PactRecord record, Collector out) throws Exception {\n value = record.getField(1, value);\n PactString mktSegment = new PactString(value.getStringValueAt(6));\n record.setField(1, mktSegment);\n out.collect(record);\n}\n"
|
"protected void retrieveWeek(List<TimeMember> list, Calendar cal, String[] levels, String type) {\n int endWeek = cal.get(Calendar.WEEK_OF_YEAR);\n int startWeek = 1;\n int startMonth = 1;\n Calendar startCal = (Calendar) cal.clone();\n if (type.equals(\"String_Node_Str\")) {\n startCal.set(Calend... |
"private long getWriteUpTo() {\n return writeUpToOffsetAtomic.get();\n}\n"
|
"public void handleData(TmfEvent event) {\n super.handleData(event);\n if ((fMonitor != null) && fMonitor.isCanceled()) {\n super.cancel();\n return;\n }\n ITmfSyncSequenceDiagramEvent sdEvent = getSequnceDiagramEvent(event);\n if (sdEvent != null) {\n if (fCriteria.isLifeLineSelecte... |
"public Node visitCreator(MxParser.CreatorContext ctx) {\n String createType = ctx.createdName().getText();\n int dim = 0;\n List<ExprNode> dimArgs = new ArrayList<>();\n if (ctx.arrayCreatorRest() != null) {\n List<MxParser.CreatorInnerContext> creatorInnerContext = ctx.arrayCreatorRest().creatorInn... |
"public void onPlayerChat(ChatEvent e) {\n if (e.isCancelled())\n return;\n if (!(e.getSender() instanceof ProxiedPlayer))\n return;\n ProxiedPlayer player = (ProxiedPlayer) e.getSender();\n Optional<BungeeChatAccount> bungeeChatAccountOptional = AccountManager.getAccount(player.getUniqueId())... |
"public void shouldValidateFalseWithoutProcesstype() {\n String username = \"String_Node_Str\";\n String expid = \"String_Node_Str\";\n String processtype = \"String_Node_Str\";\n String parameters = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" ... |
"private void appendStatistics(CorrectionIdentityRow row, AssessmentItemSession itemSession, ItemSessionState itemSessionState, AssessmentItemRef itemRef) {\n row.addSession();\n if (itemSessionState.isResponded()) {\n row.addAnswered();\n } else {\n row.addNotAnswered();\n }\n BigDecimal m... |
"public org.hl7.fhir.dstu2.model.RelatedPerson convertRelatedPerson(org.hl7.fhir.dstu3.model.RelatedPerson src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.RelatedPerson tgt = new org.hl7.fhir.dstu2.model.RelatedPerson();\n copyDomainResource(src,... |
"public void run(String args) {\n if (IJ.versionLessThan(\"String_Node_Str\"))\n return;\n int[] ids = WindowManager.getIDList();\n if (ids == null || ids.length < 2) {\n IJ.showMessage(\"String_Node_Str\");\n return;\n }\n String[] titles = new String[ids.length];\n for (int i = ... |
"protected NoThreadScheduler getRunningScheduler() throws RejectedExecutionException {\n SchedulerManager result = getSchedulerManager();\n if (result.hasBeenStopped()) {\n throw new RejectedExecutionException(\"String_Node_Str\");\n }\n return result.scheduler;\n}\n"
|
"public Object[] getChildren(Object parentElement) {\n if (parentElement instanceof File) {\n File file = (File) parentElement;\n if (!file.exists()) {\n return new Object[] { Messages.getString(\"String_Node_Str\") };\n }\n if (file.isDirectory()) {\n File[] childre... |
"private void updateTicketOwner(UpdateTicketOwnerForm updateTicketOwner, HttpServletRequest request, Ticket t, Event event, TicketReservation ticketReservation) {\n ticketReservationManager.updateTicketOwner(t, RequestContextUtils.getLocale(request), event, updateTicketOwner, getConfirmationTextBuilder(request, even... |
"private void handleEntry(String entry, boolean isBeanArchive) throws ClassNotFoundException {\n if (legalClassName(entry)) {\n String className = filenameToClassname(entry);\n try {\n if (isBeanArchive) {\n beanClasses.add(getClassLoader().loadClass(className));\n ... |
"public ItemFormMetadataBean findByItemIdAndCRFVersionId(int itemId, int crfVersionId) {\n this.setTypesExpected();\n this.setTypeExpected(27, TypeNames.STRING);\n this.setTypeExpected(28, TypeNames.STRING);\n this.setTypeExpected(29, TypeNames.STRING);\n this.setTypeExpected(30, TypeNames.INT);\n thi... |
"private void addLinkTemplatesAndCuries(final HttpServerExchange exchange, final RequestContext context, final Representation rep, final String requestPath) {\n if (context.isParentAccessible()) {\n rep.addLink(new Link(\"String_Node_Str\", URLUtils.getParentPath(requestPath)));\n }\n if (TYPE.FILES_BUC... |
"public final boolean isTickBwtweenCategories() {\n return !bCategoryScale || bTickBwteenCategories;\n}\n"
|
"public void createOrUpdate(HttpRequest request, final HttpResponder responder, String name) {\n Reader reader = new InputStreamReader(new ChannelBufferInputStream(request.getContent()));\n DatasetInstanceConfiguration creationProperties = GSON.fromJson(reader, DatasetInstanceConfiguration.class);\n String ope... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.