content stringlengths 40 137k |
|---|
"public void triggerManual(AbstractProject<?, ?> project, AbstractProject<?, ?> upstream, String buildId, ItemGroup<? extends TopLevelItem> itemGroup) throws TriggerException {\n MyView view = new MyView(itemGroup);\n if (upstream != null && upstream.getBuild(buildId) != null) {\n try {\n view.t... |
"public Iterator<DColumn> getColumnSlice(Tenant tenant, String storeName, String rowKey, String startCol, String endCol) {\n checkState();\n String keyspace = storeToCQLName(tenant.getKeyspace());\n String tableName = storeToCQLName(storeName);\n return new CQLColumnIterator(executeQuery(Query.SELECT_1_ROW_... |
"public void display(ImageToken token) throws IllegalActionException {\n Image image = token.asAWTImage();\n if (image == null) {\n throw new IllegalActionException(this, \"String_Node_Str\");\n } else {\n int xsize = image.getWidth(null);\n int ysize = image.getHeight(null);\n if (... |
"protected final void publishLogUnitsAtFrontOfBuffer() {\n ArrayList<LogUnit> logUnits = peekAtFirstNWords(N_GRAM_SIZE);\n if (isSafeNGram(logUnits, N_GRAM_SIZE)) {\n publish(logUnits, true);\n shiftOutWords(N_GRAM_SIZE);\n mNumWordsUntilSafeToSample = mNumWordsBetweenNGrams;\n } else {\n ... |
"private void getNotified(MessageWithTime msgWithTime) {\n if (slm != null) {\n String flashMsg = msgWithTime.msg;\n int timeSeconds = msgWithTime.timeSeconds;\n slm.setMessage(flashMsg);\n clearFlashJob();\n msgRestoreJob = new Job(MyStatusBar.class.getSimpleName() + \"String_Node... |
"protected void calculateOffsets() {\n super.calculateOffsets();\n float offset = mData.getGreatestShapeSize() / 2f;\n mViewPortHandler.restrainViewPort(mViewPortHandler.offsetLeft() - offset, mViewPortHandler.offsetTop(), mViewPortHandler.offsetRight() - offset, mViewPortHandler.offsetBottom());\n prepareO... |
"protected <T> T toValue(Object obj) {\n if (obj instanceof Data) {\n return dataToValue((Data) obj);\n } else if (obj instanceof CacheRecord) {\n return (T) recordToValue((R) obj);\n } else {\n return (T) obj;\n }\n}\n"
|
"public Object get(String aggrName, Scriptable scope) {\n if (this.resultRow != null) {\n try {\n if (this.computedMeasures.containsKey(aggrName)) {\n try {\n Context cx = Context.enter();\n return ScriptEvalUtil.evalExpr(((IBaseExpression) this.... |
"private boolean checkResponse() {\n boolean result = true;\n for (MethodTabPanel methodTabPanel : tabManager.getTabs()) {\n String text = methodTabPanel.getResponse();\n BodyValidationResult validationResult = JSONValidator.validateBody(text);\n if (!validationResult.isValid()) {\n ... |
"public void update(boolean updateDate) {\n Log.d(\"String_Node_Str\", \"String_Node_Str\");\n Utils utils = Utils.getInstance(context);\n if (firstTime) {\n utils.changeAppLanguage(context);\n utils.loadLanguageResource();\n firstTime = false;\n }\n Calendar calendar = utils.makeCal... |
"public Object call() throws Exception {\n portfolioRepository.updateStock(mStockSymbol);\n refreshView();\n return new Object();\n}\n"
|
"public List<String> findAlarmIds(String tenantId, Map<String, String> dimensions) {\n final String FIND_ALARM_IDS_SQL = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n List<String> alarmIdList;\n try (Handle h = this.mysql.op... |
"public void reportError(Exception error) {\n Logging.logMessage(Logging.LEVEL_ERROR, Category.replication, this, \"String_Node_Str\", error.getMessage());\n for (ReplicatingObject object : waitingRequests.values()) {\n object.sendError(error);\n }\n for (ReplicatingObject object : objectsInProgress.... |
"public Uid create(final PropagationMode propagationMode, final ObjectClass oclass, final Set<Attribute> attrs, final OperationOptions options, final Set<String> triedPropagationRequests) {\n Uid result = null;\n if (propagationMode == PropagationMode.SYNC ? capabitilies.contains(ConnectorCapability.SYNC_CREATE) ... |
"private void renderBigProcessingItem(SubdividedEdgeBigItem item, RenderTarget target, PreviewProperties properties) {\n for (SortedEdgeWrapper edgeWrapper : item.edges) {\n Edge edge = edgeWrapper.edge;\n EdgeLayoutData data = (EdgeLayoutData) edge.getEdgeData().getLayoutData();\n Point2D.Doubl... |
"public ServiceTags getServiceTagsIfUpdated(String serviceName, Long lastKnownVersion) throws Exception {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\" + serviceName + \"String_Node_Str\" + lastKnownVersion + \"String_Node_Str\");\n }\n ServiceTags ret = new ServiceTags();\n boolean t... |
"private void showAddUserPanel(boolean showPanel, boolean showPrivacy) {\n if (addPhoneUserPanel != null) {\n addPhoneUserPanel.setVisible(false);\n }\n if (addUserPanel == null) {\n addUserPanel = new AddUserPanel(this, client, session, myPresenceInfo, caller, group);\n addUserPanel.addUs... |
"public JobProgressResult getJobProgress() throws IOException {\n return this.jobSubmitClient.getJobProgress(this.jobGraph.getJobID());\n}\n"
|
"public static void main(String[] args) throws Exception {\n NAR n = new DefaultNARBuilder().setConceptBagSize(2048).setConceptBagLevels(512).build();\n n.param.setSilenceLevel(99);\n KIFInput k = new KIFInput(n, \"String_Node_Str\");\n k.setIncludeSubclass(true);\n k.start();\n TextOutput t = new Tex... |
"private boolean run(ExecHelper exec) {\n project = null;\n ProjectConfig pConfig = new ProjectConfig(config);\n try {\n project = new Project(pConfig);\n project.setTopLevelLooger(tlLogger);\n Report.initVelocity(config);\n tlLogger.info(\"String_Node_Str\");\n project.load(... |
"protected void updateDetailList() {\n if (!\"String_Node_Str\".equals(comboCategory.getText())) {\n IndicatorCategory ic = UDIHelper.getUDICategory(definition);\n String purposeText = \"String_Node_Str\";\n String descriptionText = \"String_Node_Str\";\n for (TaggedValue value : ic.getTa... |
"private void assertCompound(C compound) {\n if (!hasCompound(compound)) {\n logger.warn(\"String_Node_Str\", getClass().getSimpleName(), compound);\n }\n}\n"
|
"public void executeMessage(Message message) {\n switch(message.what) {\n case DO_ON_ACCESSIBILITY_EVENT:\n AccessibilityEvent event = (AccessibilityEvent) message.obj;\n if (event != null) {\n mTarget.onAccessibilityEvent(event);\n event.recycle();\n ... |
"public Object getKey() {\n return new MapKey(name, key);\n}\n"
|
"public static void deleteEmailFollowersForLocalBlogId(int localTableBlogId) {\n String[] args = new String[] { Integer.toString(localTableBlogId), Integer.toString(0), Integer.toString(1) };\n getWritableDb().delete(PEOPLE_TABLE, \"String_Node_Str\", args);\n}\n"
|
"private void createGraph(TupleQueryResult broaderResult, TupleQueryResult narrowerResult) throws QueryEvaluationException {\n hierarchyGraph = new DirectedMultigraph<Resource, NamedEdge>(NamedEdge.class);\n addResultsToGraph(broaderResult, false);\n addResultsToGraph(narrowerResult, true);\n}\n"
|
"public void start(BundleContext context) throws Exception {\n GibberishActivator.bundleContext = context;\n Hashtable<String, String> hashtable = new Hashtable<String, String>();\n hashtable.put(ProtocolProviderFactory.PROTOCOL, \"String_Node_Str\");\n gibberishProviderFactory = new ProtocolProviderFactory... |
"private void joinViaTargetMember(AtomicBoolean joined, Address targetAddress, long maxJoinMillis) {\n try {\n logger.log(Level.FINEST, \"String_Node_Str\" + targetAddress);\n if (targetAddress == null) {\n throw new RuntimeException(\"String_Node_Str\" + targetAddress);\n }\n ... |
"private static Coordinate[] getLocations(Coordinate[] locations, int[] index, String elemName) throws Exception {\n Coordinate[] res = new Coordinate[index.length];\n for (int i = 0; i < index.length; i++) {\n int idx = index[i];\n if (idx < 0 || idx >= locations.length)\n throw new Para... |
"public void fileFolderCreated(FileEvent event) {\n super.fileFolderCreated(event);\n LOG.log(Level.FINE, \"String_Node_Str\", event.getFile().getPath());\n}\n"
|
"public void copyData(int destOffset, ByteBuffer src, int length) throws MessageSystemException {\n if (length + destOffset > byteArray.get().length) {\n throw new MessageSystemException(\"String_Node_Str\", Level.INFO);\n }\n if (src.hasArray()) {\n System.arraycopy(src.array(), src.arrayOffset(... |
"public List<FoundService> findFromContext(BrowsingContext context) throws Exception {\n List<FoundService> foundServices = new LinkedList<FoundService>();\n URL url = context.getURL();\n String urlString = url.toString();\n if (urlString.toLowerCase().endsWith(\"String_Node_Str\")) {\n WSDLReader re... |
"public StackTraceElement resymbolize(StackTraceElement ste, String strongName) {\n SymbolMap map = loadSymbolMap(strongName);\n String symbolData = map == null ? null : map.get(ste.getMethodName());\n if (symbolData != null) {\n String[] parts = symbolData.split(\"String_Node_Str\");\n if (parts... |
"public Uri saveAsMms() {\n if (DEBUG)\n debug(\"String_Node_Str\", mConversation);\n if (mDiscarded) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n updateState(FORCE_MMS, true, false);\n prepareForSave(true);\n mConversation.ensureThreadId();\n mConversation.setDraft... |
"public void handle(Packet packet) {\n if (packet instanceof PacketPlayOutChat) {\n if (!packetHandler.sendPacket(player.getBukkitEntity(), new PacketOutChat_v1_8_R3((PacketPlayOutChat) packet))) {\n oldManager.handle(packet);\n }\n } else if (packet instanceof PacketPlayOutNamedEntitySpa... |
"public void handleEvent(Event event) throws ClientException {\n synchronized (log) {\n try {\n RepositoryManager mgr = Framework.getService(RepositoryManager.class);\n Repository repository = mgr.getDefaultRepository();\n TransactionHelper.startTransaction();\n ses... |
"private void groupOnDayWithCache(Object startValue) throws Exception, IOException {\n String[] bindingNameGroup = new String[1];\n bindingNameGroup[0] = \"String_Node_Str\";\n IBaseExpression[] bindingExprGroup = new IBaseExpression[1];\n bindingExprGroup[0] = new ScriptExpression(\"String_Node_Str\");\n ... |
"public void setContent(LttngEventContent newContent) {\n super.setContent(newContent);\n}\n"
|
"private void addSpecialCVs(List<ValLoc> cvs) {\n if (isImpl(SpecialFunction.INPUT_FILE) || isImpl(SpecialFunction.UNCACHED_INPUT_FILE) || isImpl(SpecialFunction.INPUT_URL)) {\n if (op == Opcode.CALL_FOREIGN) {\n cvs.add(ValLoc.makeFilename(getInput(0), getOutput(0), IsAssign.TO_VALUE));\n }... |
"private boolean initialize() {\n final Context context = getContext();\n mDbHelper = (ContactsDatabaseHelper) getDatabaseHelper();\n mGlobalSearchSupport = new GlobalSearchSupport(this);\n mLegacyApiSupport = new LegacyApiSupport(context, mDbHelper, this, mGlobalSearchSupport);\n mContactAggregator = ne... |
"public static void update(String json) {\n String body = json != null ? json : params.get(\"String_Node_Str\");\n Logger.debug(\"String_Node_Str\" + body);\n if (body != null) {\n User user = new Gson().fromJson(body, User.class);\n User dbUser = User.findById(id);\n dbUser.updateDetails(... |
"private Map<String, String> resolveServerUriByOperativeSystem(Map<String, String> cubeConfiguration) {\n if (!cubeConfiguration.containsKey(CubeConfiguration.DOCKER_URI)) {\n String serverUri = operatingSystemFamilyInstanceProducer.get().getServerUri();\n cubeConfiguration.put(CubeConfiguration.DOCKER... |
"private List<Service> createProxyServices(ClusterContext clusterContext, KubernetesClusterContext kubernetesClusterContext, KubernetesApiClient kubernetesApi) throws KubernetesClientException {\n List<Service> services = new ArrayList<Service>();\n String clusterId = clusterContext.getClusterId();\n Cartridge... |
"protected String evalPath(HttpServletRequest req, Object obj) {\n Context context = Lang.context();\n Context expContext = createContext(req, obj);\n for (Entry<String, ElObj> en : exps.entrySet()) context.set(en.getKey(), en.getValue().eval(expContext).getString());\n return Strings.trim(this.dest.render(... |
"public void onDataChanged(AsyncDataChangeEvent<InstanceIdentifier<?>, DataObject> change) {\n for (Entry<InstanceIdentifier<?>, DataObject> entry : change.getCreatedData().entrySet()) {\n if (entry.getValue() instanceof SfcOfRendererConfig) {\n LOG.info(\"String_Node_Str\", entry.getValue());\n ... |
"public ClassLoader getApplicationClassLoader() {\n if (applicationClassLoader == null) {\n closeClassLoader = true;\n applicationClassLoader = new ApplicationClassLoader(engine, runnable, appContext);\n if (scriptContext != null) {\n scriptContext.setApplicationClassLoader(applicatio... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n ActionBarCompat abCompat = ActionBarCompat.create(this);\n abCompat.setDisplayHomeAsUpEnabled(true);\n abCompat.setDisplayShowTitleEnabled(false);\n setContentView(R.layout.appdetails);\n Intent i = getIntent... |
"public void activate() {\n InterlevelScene.returnDepth = Dungeon.depth;\n for (Item item : Dungeon.hero.belongings.backpack.items) {\n if (item instanceof Key && ((Key) item).depth == Dungeon.depth) {\n item.detachAll(Dungeon.hero.belongings.backpack);\n }\n }\n InterlevelScene.mod... |
"private void visitExport(NodeTraversal t, Node n, Node parent) {\n if (n.getBooleanProp(Node.EXPORT_DEFAULT)) {\n Node var = IR.var(IR.name(DEFAULT_EXPORT_NAME), n.removeFirstChild());\n var.useSourceInfoIfMissingFromForTree(n);\n var.setJSDocInfo(n.getJSDocInfo());\n n.setJSDocInfo(null... |
"private double trigramForURLLabel(String candidateURL, String label, String nodeType) {\n double sim = 0;\n if (!nodeType.equals(\"String_Node_Str\")) {\n List<Triple> labelOfCandidate = new ArrayList<Triple>();\n labelOfCandidate.add(candidateStatement);\n HashSet<String> union = new HashSe... |
"public int compareTo(final UniqueId other) {\n if (other == null) {\n throw new NullPointerException();\n }\n byte[] byteArray = toByteArray();\n byte[] otherByteArray = other.toByteArray();\n for (int i = 0; i < 15; i++) {\n if (byteArray[i] != otherByteArray[i]) {\n return ((b... |
"private static ReaderPost getPostFromCursor(Cursor c, PostColumnIndexes cols) {\n if (c == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n ReaderPost post = new ReaderPost();\n if (cols == null)\n cols = new PostColumnIndexes(c);\n post.postId = c.getLong(cols.idx_post_id... |
"public void doInTransactionWithoutResult(TransactionStatus status) {\n for (ResourceTag tagToRemove : tagsToDelete) {\n _resourceTagDao.remove(tagToRemove.getId());\n s_logger.debug(\"String_Node_Str\" + tagToRemove);\n }\n}\n"
|
"private void writeToStream(Id.Stream stream, HttpRequest.Builder builder) throws IOException {\n if (authorizationEnabled) {\n builder.addHeader(Constants.Security.Headers.USER_ID, authenticationContext.getPrincipal().getName());\n }\n HttpResponse response = remoteClient.execute(builder.build());\n ... |
"private void callModelService(AbstractDeployCommand cmd) {\n ICommandParameter parameter = cmd.getParameter();\n if (parameter != null) {\n ImpactOperation operation = (ImpactOperation) parameter.getParameter();\n Boolean force = null;\n if (operation == ImpactOperation.APPLY_LOW_CHANGE) {\n... |
"public AnnotationVisitor visitAnnotation(String desc, boolean visible) {\n isAnnotated |= annotations.contains(desc);\n return null;\n}\n"
|
"protected List getModelChildren() {\n List<Element> elements;\n elements = new ArrayList<Element>();\n elements.add(((Connection) getModel()).getConnectionLabel());\n elements.add(((Connection) getModel()).getPerformance());\n EditPart contents = getRoot().getContents();\n boolean monitorSupport = tr... |
"public static <T> LongStructuredArray<T> copyInstance(StructuredArray<T> source, long sourceOffset, long count) throws NoSuchMethodException {\n if (source.getLength() < sourceOffset + count) {\n throw new ArrayIndexOutOfBoundsException(\"String_Node_Str\" + source + \"String_Node_Str\" + source.getLength() ... |
"public void drawScreen(int mouseX, int mouseY, float partialTickTime) {\n if (isLoaded) {\n int wheel = Mouse.getDWheel();\n float prevScale = field_146570_r;\n if (wheel < 0)\n field_146570_r += 0.5F;\n else if (wheel > 0)\n field_146570_r -= 0.5F;\n field_1... |
"protected int getBorderStyle(Object obj) {\n Integer retValue = styleMap.get(obj);\n if (retValue == null) {\n return SWT.LINE_SOLID;\n }\n return retValue.intValue();\n}\n"
|
"public CharSequence getFlyweightStrB(Record rec) {\n return csB.of(lhs.getFlyweightStrB(rec), rhs.getFlyweightStrB(rec));\n}\n"
|
"protected void updateInfo() {\n String sql;\n if (this.isVirtual()) {\n sql = \"String_Node_Str\";\n } else {\n sql = \"String_Node_Str\";\n }\n try {\n this.backend.getSQL().prepAndBind(sql, this.prefix, this.suffix, this.def ? 1 : 0, this.getName(), this.type.ordinal()).execute();... |
"public void handleReceived(ClientConnection connection) {\n TridentPlayer player = ((PlayerConnection) connection).getPlayer();\n this.location.setWorld(player.getWorld());\n Location from = player.getLocation();\n Location to = this.location;\n PlayerMoveEvent event = new PlayerMoveEvent(player, from, ... |
"private void addTldLocationsFromWebInfTlds() throws IOException, SAXException {\n LOG.debug(\"String_Node_Str\");\n addTldLocationsFromServletContextResourceTlds(\"String_Node_Str\");\n}\n"
|
"private void assertInputsEquals(String name, Directory fsDir, Directory hdfs) throws IOException {\n int reads = random.nextInt(MAX_NUMBER_OF_READS);\n IndexInput fsInput = fsDir.openInput(name, IOContext.DEFAULT);\n IndexInput hdfsInput = hdfs.openInput(name, IOContext.DEFAULT);\n assertEquals(fsInput.len... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n String userSafetylegalUrl = SystemProperties.get(PROPERTY_LSAFETYLEGAL_URL);\n final Configuration configuration = getResources().getConfiguration();\n final String language = configuration.locale.getLanguage();\n ... |
"public void onDataReceived(JsonObject message) {\n logger.trace(\"String_Node_Str\", message);\n String sid = message.has(\"String_Node_Str\") ? message.get(\"String_Node_Str\").getAsString() : null;\n String command = message.get(\"String_Node_Str\").getAsString();\n updateDeviceStatus(sid);\n updateSt... |
"private void readSeriesNumbers(HttpServletRequest request, Item item, String element, String qualifier, boolean repeated) {\n String dcname = element;\n if (qualifier != null) {\n dcname = element + \"String_Node_Str\" + qualifier;\n }\n List series = new LinkedList();\n List numbers = new Linked... |
"protected void drawMarkers() {\n if (mMarkerView == null || !mDrawMarkerViews || !valuesToHighlight())\n return;\n for (int i = 0; i < mIndicesToHightlight.length; i++) {\n int xIndex = mIndicesToHightlight[i].getXIndex();\n int dataSetIndex = mIndicesToHightlight[i].getDataSetIndex();\n ... |
"protected void addListFeature(FeatTemplate3 tpl, LocalObservations local, List<String> feats) {\n PositionList pl = tpl.pl;\n TokProperty prop = tpl.prop;\n EdgeProperty eprop = tpl.eprop;\n ListModifier lmod = tpl.lmod;\n if (prop == null && eprop == null) {\n throw new IllegalStateException(\"S... |
"public static void setup() throws Exception {\n Injector injector = Guice.createInjector(new IOModule(), new ConfigModule(), new FileBasedSecurityModule(), new DiscoveryRuntimeModule().getInMemoryModules());\n CConfiguration conf = injector.getInstance(CConfiguration.class);\n keyIdentifierCodec = injector.ge... |
"public void testReference() throws Exception {\n openDesign(fileNameForRelation);\n JointDataSetHandle jdsHandle = designHandle.findJointDataSet(\"String_Node_Str\");\n assertEquals(0, countNum(jdsHandle));\n DataSetHandle dsHandle = (DataSetHandle) design.findDataSet(\"String_Node_Str\").getHandle(design.... |
"public void doRun() {\n if (this.repositoryNode == null) {\n repositoryNode = getCurrentRepositoryNode();\n }\n if (isToolbar()) {\n if (repositoryNode != null && repositoryNode.getContentType() != ERepositoryObjectType.METADATA_CONNECTIONS) {\n repositoryNode = null;\n }\n ... |
"public boolean login(String user, String pass) {\n if (!player.isRegistered()) {\n response = \"String_Node_Str\";\n return false;\n } else if (player.isAuthenticated()) {\n response = \"String_Node_Str\";\n return false;\n } else if (!plugin.getPwdHndlr().checkPassword(player.getA... |
"private void crossValues(Key key, final Iterator<Value> values1, final Iterator<Value> values2) throws RuntimeException {\n final Value firstV1 = values1.next();\n final Value firstV2 = values2.next();\n if (firstV1 == null || firstV2 == null) {\n return;\n }\n boolean v1HasNext = values1.hasNext... |
"public void onBlockBreak(ChangeBlockEvent.Break event) {\n if (event.getCause().root() instanceof Player) {\n Player player = (Player) event.getCause().root();\n if (!EagleFactions.AdminList.contains(player.getUniqueId())) {\n for (Transaction<BlockSnapshot> transaction : event.getTransacti... |
"public CharSequence getTitle() {\n if (!isAdded()) {\n throw new IllegalEditorStateException();\n }\n if (mSourceView != null && mSourceView.getVisibility() == View.VISIBLE) {\n mTitle = mSourceViewTitle.getText().toString();\n return StringUtils.notNullStr(mTitle);\n }\n if (Looper... |
"private void showCSVExportUI(JTable table) {\n CSVExportUI csvUI = new CSVExportUI(table);\n DialogDescriptor dd = new DialogDescriptor(csvUI, csvUI.getDisplayName());\n if (DialogDisplayer.getDefault().notify(dd).equals(DialogDescriptor.OK_OPTION)) {\n DataTableTopComponent.exportTableAsCSV(this, tabl... |
"public AppPluginSpecification searchByResourceName(String resourceName) {\n for (AppPluginSpecification desc : bindingActions) {\n if (resourceName.equals(desc.getResourceName())) {\n return desc;\n }\n }\n return null;\n}\n"
|
"public List<TouchCoord> getC() {\n return getTouchCoordinates();\n}\n"
|
"public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exception {\n if (e instanceof MessageEvent && ((MessageEvent) e).getMessage() instanceof MappingHttpRequest) {\n MappingHttpRequest request = (MappingHttpRequest) ((MessageEvent) e).getMessage();\n String newUri = null;\n ... |
"private void mergeReports(IngestJobPluginInfo jobPluginInfo, Report plugin) {\n Map<String, String> aipIdToTransferredResourceId = jobPluginInfo.getAipIdToTransferredResourceId();\n if (plugin != null) {\n for (Report reportItem : plugin.getReports()) {\n if (TransferredResource.class.getName()... |
"public AssetURI unmarshal(String uri) throws Exception {\n AssetURI assetURI = new AssetURI(uri);\n if (uri != null) {\n String moduleName = assetURI.getModuleName();\n String assetPath = assetURI.getAssetPath();\n assetURI = new AssetURI(moduleName, hostNameAndPort, assetPath);\n }\n ... |
"public static String getRelativedPath(String basePath, String path) {\n return URIUtil.getRelativePath(new File(basePath).getParent(), path);\n}\n"
|
"public void flush() {\n if (sprites.size() == 0)\n return;\n sortSprites();\n Batcher batcher = SilenceEngine.graphics.getBatcher();\n Texture originalTexture = Texture.CURRENT;\n Texture texture = sprites.get(indices.get(0)).getTexture();\n texture.bind();\n Vector2 temp = Vector2.REUSABLE... |
"public static void setUp() throws WSDLException {\n if (conn == null) {\n try {\n conn = buildConnection();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n String ddlCreateProp = System.getProperty(DATABASE_DDL_CREATE_KEY, DEFAULT_DATABASE_DDL_CREATE);\n ... |
"public boolean asThough(UUID objectId, AsThoughEffectType type, Game game) {\n List<AsThoughEffect> asThoughEffectsList = getApplicableAsThoughEffects(game);\n for (AsThoughEffect effect : asThoughEffectsList) {\n if (effect.getAsThoughEffectType() == type) {\n if (effect.getDuration() != Durat... |
"public void paintComponent(Graphics g) {\n super.paintComponent(g);\n Graphics2D g2d = (Graphics2D) g;\n int w = canvasWidth / data.M();\n int h = canvasHeight / data.N();\n Board showBoard = data.getShowBoard();\n for (int i = 0; i < showBoard.N(); i++) for (int j = 0; j < showBoard.M(); j++) {\n ... |
"public String getPrimaryKey(int tableid) {\n Table match = this.IdHash.get(tableid);\n if (match == null) {\n throw new NoSuchElementException();\n } else {\n return match.getPkeyField();\n }\n return null;\n}\n"
|
"public static void updateFollowedStatus() {\n SQLiteStatement statement = ReaderDatabase.getWritableDb().compileStatement(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n try {\n int count = statement.executeUpdateDelete();\n if (count > 0) {\n AppLog.d(AppLog.T.READER... |
"public boolean validate(Deck deck) {\n boolean valid = true;\n if (deck.getCards().size() < 60) {\n invalid.put(\"String_Node_Str\", \"String_Node_Str\" + deck.getCards().size() + \"String_Node_Str\");\n valid = false;\n }\n if (deck.getSideboard().size() > 15) {\n invalid.put(\"String... |
"public void e_on_event(Event event) {\n if (event instanceof EEntityMove) {\n EEntityMove move_event = (EEntityMove) event;\n move_entity(move_event.entity, move_event.getTo());\n if (move_event.entity.isPlayerEnt()) {\n WorldViewCamera.target.setLocation(move_event.entity.origin);\n... |
"private String[] getScaledValues(String[] values, double factor) {\n String[] result = new String[(int) Math.round(factor * (double) values.length)];\n int previous = -1;\n List<String> toAggregate = new ArrayList<String>();\n for (int i = 0; i < values.length; i++) {\n int index = (int) Math.round(... |
"public List<FeedbackVo> getAllFeedbacks(int firstResult, int maxResults) {\n List<FeedbackVo> list = null;\n EntityManager entityManager = null;\n try {\n em = getEntityManagerFactory().createEntityManager();\n list = getServiceFactory().getFeedbacksService().getAllFeedbacks(em, firstResult, max... |
"public PathStateDistribution getRelatableState(PathStateDistribution stateBelief) {\n final Path path = this.pathState.getPath();\n final PathState onThisPath = this.pathState.getRelatableState(stateBelief.getPathState());\n final Matrix covar;\n if (path.isNullPath()) {\n covar = stateBelief.getGro... |
"public String checkValidityOfItemOrItemGroupOidInCrf(String oid, RuleSetBean ruleSet) {\n oid = oid.trim();\n String[] theOid = oid.split(ESCAPED_SEPERATOR);\n if (theOid.length == 2) {\n ItemGroupBean itemGroup = getItemGroupDao().findByOid(theOid[0]);\n Boolean isItemGroupBePartOfCrfOrNull = r... |
"public void shouldDeleteMany2ManyShallow() {\n deleteAndPopulateTables(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n Registry.cacheManager().flush(CacheEvent.ALL);\n a(Prescription.count()).shouldBeEqual(5);\n Doctor.findById(3).deleteCascadeShallow();\n a(Doctor... |
"private static void makeValidStuff() {\n LuaTable current = Engine.instance.cartridge.currentThings();\n validStuff = new Vector<>();\n Object key = null;\n while ((key = current.next(key)) != null) validStuff.addElement(current.rawget(key));\n while ((key = Engine.instance.player.inventory.next(key)) !... |
"public void ScheduleShiftedBlockUpdate(net.minecraft.nbt.NBTTagCompound PendingBlockUpdateRecord) {\n worldObj.scheduleBlockUpdateWithPriority(PendingBlockUpdateRecord.getInteger(\"String_Node_Str\") + ShiftX, PendingBlockUpdateRecord.getInteger(\"String_Node_Str\") + ShiftY, PendingBlockUpdateRecord.getInteger(\"S... |
"public boolean getCanSpawnHere() {\n int i = MathHelper.floor_double(this.boundingBox.minY);\n if (i < 60)\n return false;\n CastlePositionData data = CastlePositionData.get(worldObj);\n if (data.isPosAt(MathHelper.floor_double(posX), MathHelper.floor_double(posZ))) {\n return false;\n }\n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.