content stringlengths 40 137k |
|---|
"private int addValidRulesToActionGraphBuilder(ActionGraphBuilder graphBuilder, Set<UnflavoredBuildTarget> validTargets) {\n SourcePathRuleFinder ruleFinder = new SourcePathRuleFinder(graphBuilder);\n SourcePathResolver pathResolver = DefaultSourcePathResolver.from(ruleFinder);\n int totalRuleCount = 0;\n i... |
"public void displayRemote(GL gl) {\n throw new IllegalStateException(\"String_Node_Str\");\n}\n"
|
"public boolean equals(Object obj) {\n if (obj == this)\n return true;\n if (obj == null)\n return false;\n if (obj.getClass() != getClass())\n return false;\n GitModelTree objTree = (GitModelTree) obj;\n return objTree.location.equals(location) && objTree.baseCommit.equals(baseCommi... |
"private void backwardSendMessage(FgEdge edge, VarTensor oldMsg) {\n int i = edge.getId();\n msgs[i].newMessage = msgs[i].message;\n msgs[i].message = oldMsg;\n VarTensor tmp = msgsAdj[i].newMessage;\n tmp.multiply(s.zero());\n msgsAdj[i].newMessage = msgsAdj[i].message;\n msgsAdj[i].message = tmp;... |
"public void execute() {\n node.setPropertyValue(propName, newPropValue);\n if ((EParameterName.SCHEMA + \"String_Node_Str\" + EParameterName.REPOSITORY_SCHEMA_TYPE).equals(propName)) {\n IElementParameter elementParameter = node.getElementParameter(propName);\n if (elementParameter != null) {\n ... |
"private void fling(int velocityY) {\n if (getChildCount() > 0) {\n int scrollRange = getScrollRange();\n float topAmount = getCurrentOverScrollAmount(true);\n float bottomAmount = getCurrentOverScrollAmount(false);\n if (velocityY < 0 && topAmount > 0) {\n mOwnScrollY -= (int)... |
"public void convertFromTo(Unit fromUnit, Unit toUnit) {\n if (isExpressionEmpty() || isExpressionInvalid())\n return;\n boolean solveSuccess = solveAndLoadIntoResultList();\n if (!solveSuccess)\n return;\n try {\n BigDecimal bdToUnit = new BigDecimal(toUnit.getValue(), mMcOperate);\n ... |
"public void perform(GraphRewrite event, EvaluationContext context, JavaTypeReferenceModel payload) {\n List<JavaClassModel> classes = payload.getFile().getJavaClasses();\n classes.forEach(classModel -> {\n GraphService<EjbSessionBeanModel> ejbSessionService = new GraphService<>(event.getGraphContext(), Ej... |
"public PresenceStatus queryContactStatus(String contactIdentifier) throws IllegalArgumentException, IllegalStateException, OperationFailedException {\n Contact contact = resolveContactID(contactIdentifier);\n if (contact == null) {\n throw new IllegalArgumentException(\"String_Node_Str\" + contactIdentifi... |
"public String toString() {\n return filter;\n}\n"
|
"public void SeekOff() {\n if (On(BehaviorType.seek))\n flags ^= BehaviorType.seek.getValue();\n}\n"
|
"public static Map<String, Object> getAssetSelectorIconData(HttpServletRequest request, AssetRendererFactory assetRendererFactory, String index) throws Exception {\n ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);\n PortletURL assetBrowserURL = getAssetBrowserURL(request, a... |
"void draw(SpriteBatch batch, BitmapFont font) {\n if (drawResource) {\n batch.draw(Assets.ironOre, x, y, width, height);\n if (closeEnough() && Player.ableToMove) {\n font.draw(batch, \"String_Node_Str\", 50, 50);\n }\n }\n}\n"
|
"private static void printThrowableTo(OutErr outErr, Throwable e) {\n PrintStream err = new PrintStream(outErr.getErrorStream());\n e.printStackTrace(err);\n err.flush();\n LOG.log(Level.SEVERE, Constants.PRODUCT_NAME + \"String_Node_Str\", e);\n}\n"
|
"public TreeReference getRef() {\n if (cachedRef == null) {\n cachedRef = TreeReference.buildRefFromTreeElement((AbstractTreeElement) this);\n }\n return cachedRef;\n}\n"
|
"public boolean execute() {\n Gson gson = GsonHelper.getBuilder().create();\n AsyncJobManager asyncMgr = getAsyncJobMgr();\n AsyncJobVO job = getJob();\n DeleteTemplateParam param = gson.fromJson(job.getCmdInfo(), DeleteTemplateParam.class);\n ManagementServer managementServer = asyncMgr.getExecutorConte... |
"protected void validateSelectClause(SelectClause expression) {\n Expression selectExpression = expression.getSelectExpression();\n StateFieldPathExpression pathExpression = getStateFieldPathExpression(selectExpression);\n if (pathExpression != null) {\n validateStateFieldPathExpression(pathExpression, ... |
"public void startServer() throws Exception {\n tempDir = DeploymentUtils.createTempDir(\"String_Node_Str\");\n Map<String, String> properties = ImmutableMap.<String, String>builder().put(\"String_Node_Str\", \"String_Node_Str\").put(\"String_Node_Str\", tempDir.getAbsolutePath()).build();\n Injector injector ... |
"public void draw(Canvas canvas, float posx, float posy) {\n posx += getXOffset();\n posy += getYOffset();\n canvas.translate(posx, posy);\n draw(canvas);\n canvas.translate(-posx, -posy);\n}\n"
|
"public String apply(String constantName) {\n String lowerCase = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, constantName);\n if (!constantName.equals(CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, lowerCase))) {\n return constantName;\n }\n return lowerCase;\n}\n"
|
"public void onClick(DialogInterface dialog, int whichButton) {\n if (mOriginalPost != null && !mIsNewPost) {\n WordPress.wpDB.updatePost(mOriginalPost);\n WordPress.currentPost = mOriginalPost;\n } else if (mPost != null && mIsNewPost) {\n mPost.delete();\n }\n finish();\n}\n"
|
"protected Node objectToXMLNode(Object object, XMLDescriptor descriptor, boolean isXMLRoot) throws XMLMarshalException {\n AbstractSession session = xmlContext.getSession(descriptor);\n if ((session != null) && xmlContext.getDocumentPreservationPolicy(session).shouldPreserveDocument()) {\n XMLRecord xmlRow... |
"public void markContradiction(Arg arg) {\n arg = findCanonical(arg);\n boolean newContradiction = contradictions.add(arg);\n if (!newContradiction) {\n return;\n }\n CongruentSet curr = this;\n do {\n for (RecCV setMember : curr.canonicalInv.get(arg)) {\n if (setMember.isArg(... |
"public Object convertTestString(String test, int offset) {\n try {\n return Float.parseFloat(testStr);\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"String_Node_Str\" + test);\n }\n}\n"
|
"public void sendPresenceUpdate(ID toID, org.eclipse.ecf.presence.IPresence presence) throws ECFException {\n try {\n getConnectionOrThrowIfNull().sendPresenceUpdate(toID, createPresence(presence));\n } catch (final IOException e) {\n traceAndThrowECFException(\"String_Node_Str\", e);\n }\n}\n"
|
"public String finishAuthentication(String response, String username) throws U2fException {\n AuthenticateResponse authenticateResponse = AuthenticateResponse.fromJson(response);\n AuthenticateRequestData authenticateRequest = AuthenticateRequestData.fromJson(storage.get(authenticateResponse.getRequestId()));\n ... |
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ATreeNode other = (ATreeNode) obj;\n if (this.dataType == null) {\n if (other.dataType != ... |
"public boolean apply(final ReportingVolumeSnapshotCreateEvent createEvent) {\n long endTime = snapshotEndTimes.containsKey(createEvent.getUuid()) ? snapshotEndTimes.get(createEvent.getUuid()) : report.getEndMs();\n if (createEvent.getTimestampMs() <= report.getEndMs() && endTime >= report.getBeginMs() && volumeC... |
"public void onStartShootingPressed() {\n LOGGER.info(\"String_Node_Str\" + path);\n if (profileChoiceBox.getValue() != null) {\n try {\n Profile profile = profileChoiceBox.getSelectionModel().getSelectedItem();\n if (path == null) {\n path = shootingService.createPath(... |
"private Query makeConstructQueryOptional(String resource, int limit, int offset) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\");\n sb.append(\"String_Node_Str\").append(resource).append(\"String_Node_Str\").append(\"String_Node_Str\").append(\"String_Node_Str\").append(\"String_N... |
"public boolean apply(Game game, Ability source) {\n Permanent permanent = game.getPermanent(source.getFirstTarget());\n if (permanent == null) {\n permanent = (Permanent) game.getLastKnownInformation(source.getFirstTarget(), Zone.BATTLEFIELD);\n }\n if (permanent != null) {\n EmptyToken token... |
"public BufferedImage getImage(List<Tag> tags) {\n try {\n BufferedImage img = ImageIO.read(new ByteArrayInputStream(imageData));\n if (bitmapAlphaData.length == 0) {\n return img;\n }\n BufferedImage img2 = new BufferedImage(img.getWidth(), img.getHeight(), BufferedImage.TYPE_... |
"public boolean handle(Object data) {\n this.count++;\n if (data == null) {\n setValue(INVALID);\n return true;\n }\n int isInvalid = isInvalid(data);\n if (isInvalid == 0) {\n setValue(\"String_Node_Str\");\n } else if (isInvalid < 0) {\n setValue(\"String_Node_Str\");\n ... |
"public static void disableSecureStoragePasswordProviders() {\n List availableModules = PasswordProviderSelector.getInstance().findAvailableModules(null);\n StringBuffer tmp = new StringBuffer();\n for (Object module : availableModules) {\n ExtStorageModule storageModule = (ExtStorageModule) module;\n ... |
"public void process(ClassEntity classEntity, PsiElementFactory factory, PsiClass cls, IProcessor visitor) {\n mainPackage = PsiClassUtil.getPackage(cls);\n onStarProcess(classEntity, factory, cls, visitor);\n for (FieldEntity fieldEntity : classEntity.getFields()) {\n generateField(factory, fieldEntity... |
"public String pop() {\n if (!useStack) {\n return Strings.EMPTY;\n }\n final MutableThreadContextStack values = stack.get();\n if (values == null || values.size() == 0) {\n throw new NoSuchElementException(\"String_Node_Str\");\n }\n final List<String> copy = new ArrayList<String>(list)... |
"public void onClick(final AjaxRequestTarget target, final WorkflowFormTO ignore) {\n final IModel<WorkflowFormTO> formModel = new CompoundPropertyModel<>(model.getObject());\n modal.setFormModel(formModel);\n final WorkflowFormTO formTO = formModel.getObject();\n final UserTO newUserTO;\n final UserTO p... |
"private void addPackages(String packageName) {\n while (true) {\n packages.add(String.valueOf(packageName));\n int pos = packageName.lastIndexOf('.');\n if (pos > 0) {\n slashedPackageName = slashedPackageName.substring(0, pos);\n } else {\n packages.add(\"String_No... |
"public void setLocation(URI location) {\n putProperty(KEY_LOCATION_URI, location.toString());\n}\n"
|
"private void onError(String errorId) {\n int error;\n if (errorId.equals(GCMConstants.ERROR_SERVICE_NOT_AVAILABLE)) {\n error = OpenPushConstants.ERROR_SERVICE_NOT_AVAILABLE;\n } else if (errorId.equals(GCMConstants.ERROR_AUTHEFICATION_FAILED)) {\n error = OpenPushConstants.ERROR_AUTHEFICATION_F... |
"private boolean setScorerInternal(String packageName) {\n if (DBG)\n Log.d(TAG, \"String_Node_Str\" + packageName + \"String_Node_Str\");\n long token = Binder.clearCallingIdentity();\n try {\n unbindFromScoringServiceIfNeeded();\n clearInternal();\n NetworkScorerAppData prevScorer... |
"public String extractTweet(String html) {\n Preconditions.checkNotNull(html);\n Matcher matcher = TWEET_PATTERN.matcher(html);\n if (!matcher.find()) {\n return null;\n }\n String tweet = matcher.group(1);\n matcher = URL_PATTERN.matcher(tweet);\n StringBuffer rawsb = new StringBuffer();\n ... |
"public static Complex tan(Complex z) {\n if (z.isNaN()) {\n return Complex.NaN;\n }\n double a2 = 2.0 * z.getReal();\n double b2 = 2.0 * z.getImaginary();\n double d = Math.cos(a2) + MathUtils.cosh(b2);\n return new Complex(Math.sin(a2) / d, MathUtils.sinh(b2) / d);\n}\n"
|
"private boolean isPortOpen(StorjNode storjNode) {\n try {\n ArrayList<Integer> openPorts = PortScan.onAddress(storjNode.getAddress().getValue()).setTimeOutMillis(1000).setPort(storjNode.getPort().getValue()).doScan();\n if (openPorts.size() >= 1 && (openPorts.get(0) == storjNode.getPort().getValue()))... |
"private void doMigrationComplete(Address from) {\n logger.log(Level.FINEST, \"String_Node_Str\" + from);\n Collection<Block> blocks = mapBlocks.values();\n for (Block block : blocks) {\n if (from.equals(block.owner)) {\n if (block.isMigrating()) {\n block.owner = block.migrati... |
"public void handleRequest(HttpServerExchange exchange, RequestContext context) throws Exception {\n if (context.getMethod() == RequestContext.METHOD.GET || context.getMethod() == RequestContext.METHOD.DELETE) {\n next.handleRequest(exchange, context);\n return;\n }\n HeaderValues contentTypes = ... |
"public void start(Brain brain) {\n this.timeToDefend = this.originalTimeToDefend;\n if (!this.interrupted && this.attackDirs.size() > 0) {\n this.currentDirection = (currentDirection + 1) % this.attackDirs.size();\n this.dir.set(this.attackDirs.get(currentDirection).getDirection());\n }\n}\n"
|
"protected void setStyleName(String styleName, IContent content) {\n StringBuffer classBuffer = new StringBuffer();\n if (styleName != null) {\n if (outputtedStyles.contains(styleName)) {\n if (null != htmlIDNamespace) {\n classBuffer.append(htmlIDNamespace + styleName);\n ... |
"public Object doGetByPathHTML(String endpointId, String page, String subprojectId, String visibility) throws Exception {\n CoreSession session = SessionFactory.getSession(request);\n DocumentService docService = Framework.getService(DocumentService.class);\n Pagination pagination = new Pagination();\n if (... |
"public Loader<JSONObject> onCreateLoader(int id, Bundle args) {\n if (mNoItems != null) {\n mNoItems.setVisibility(View.GONE);\n }\n if (mLoadingView != null) {\n mListView.setEmptyView(mLoadingView);\n }\n return new OrdersLoader(getActivity(), null, ListType.ActiveOrders);\n}\n"
|
"public void selectPKEqualsFilter() throws ConnectorException {\n ClusterName clusterNodeName = getClusterName();\n System.out.println(\"String_Node_Str\");\n insertRow(1, 1, 10, clusterNodeName, true);\n insertRow(2, 1, 9, clusterNodeName, true);\n insertRow(3, 6, 11, clusterNodeName, true);\n insert... |
"public void extract(final byte[] data, final Metadata metadata) {\n JfifDirectory directory = metadata.getOrCreateDirectory(JfifDirectory.class);\n BufferReader reader = new BufferReader(data);\n try {\n int ver = reader.getUInt16(JfifDirectory.TAG_JFIF_VERSION);\n directory.setInt(JfifDirectory... |
"public void testSimple() {\n Tensor t1 = new Tensor(s, 2, 2);\n t1.setValuesOnly(TensorUtils.getVectorFromValues(s, .2, .3, .5, .7));\n TensorIdentity id1 = new TensorIdentity(t1);\n BeliefsIdentity inf = DepTensorFromBeliefsTest.getBeliefsModule();\n DepTensorToBeliefs mod = new DepTensorToBeliefs(id1,... |
"public Identifier fromXml(Element element) {\n xmlPath.pushTag(element.getNodeName());\n Identifier ret = super.fromXml(element);\n xmlPath.popTag();\n return ret;\n}\n"
|
"public void testSimpleDiscovery() throws Exception {\n discoveredEndpointId = new EndpointId(\"String_Node_Str\", \"String_Node_Str\");\n properties = new HashMap<String, Object>();\n properties.put(Endpoint.XPATH_TITLE, \"String_Node_Str\");\n discoveryService.runDiscovery(documentManager, discoveredEndpo... |
"public Date getDate() {\n return (Date) date.clone();\n}\n"
|
"private void initializeDialogReadWrite(GwtTradeoffReason tradeoffReason) {\n VerticalPanel baseLayout = new VerticalPanel();\n VerticalPanel nameLayout = new VerticalPanel();\n VerticalPanel descriptionLayout = new VerticalPanel();\n HorizontalPanel buttonsLayout = new HorizontalPanel();\n this.setText(... |
"public INewConnectionDialog getNewConnectionDialog() {\n if (fNewConnectionDialog == null) {\n fNewConnectionDialog = new NewConnectionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());\n }\n return fNewConnectionDialog;\n}\n"
|
"public static void main(String[] args) {\n try {\n reporter.start();\n Configuration conf = ConfigurationManager.getConfiguration();\n logger.info(\"String_Node_Str\", conf.getString(ZOOKEEPER_SERVER));\n helixManager = HelixManagerFactory.getZKHelixManager(\"String_Node_Str\", NativeUti... |
"private VM_Type resolveInternal() throws NoClassDefFoundError, IllegalArgumentException {\n if (resolvedType != null)\n return resolvedType;\n if (isClassType()) {\n VM_Type ans;\n if (VM.runningVM) {\n Class<?> klass;\n String myName = name.classNameFromDescriptor();\n... |
"public void removeEntry(Entry entry) {\n mEntries.remove(entry);\n}\n"
|
"public Token input(String name, Map<String, Object> options) throws IllegalActionException, NameDuplicationException {\n if (name == null) {\n throw new IllegalActionException(this, \"String_Node_Str\");\n }\n TypedIOPort port = (TypedIOPort) getPort(name);\n PortParameter parameter = null;\n Obj... |
"public static List<Event> getEvents() {\n List<Event> list = new ArrayList<Event>();\n synchronized (events) {\n list.addAll(events);\n }\n return list;\n}\n"
|
"public String getStyleClass() {\n if (styleClass != null) {\n return styleClass;\n }\n if (generateBy instanceof StyledElementDesign) {\n return ((StyledElementDesign) generateBy).getStyleName();\n }\n return null;\n}\n"
|
"public static boolean completed() {\n return processed() && weapon == null && armor == null;\n}\n"
|
"public int execute(StratosCommandContext context, String[] args) throws CommandException {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\", getName());\n }\n if (args != null && args.length > 0) {\n String admin = null;\n String firstName = null;\n String lastaN... |
"private static List<Location> collectLocations(List<ReferenceType> refTypes, int lineNumber) {\n List<Location> locations = new ArrayList<>();\n try {\n refTypes.forEach(refType -> {\n locations.addAll(collectLocations(refType, lineNumber));\n locations.addAll(collectLocations(refTyp... |
"private int printUsage(PrintStream err) {\n HelpFormatter formatter = new HelpFormatter();\n PrintWriter usage = new PrintWriter(err);\n formatter.printUsage(usage, 80, \"String_Node_Str\");\n usage.append(System.lineSeparator()).append(\"String_Node_Str\").append(System.lineSeparator());\n formatter.pr... |
"public Object getOldValue() throws ExpressionEvaluationException {\n try {\n return doCast(this.expression.evaluateOldValue());\n } catch (Exception e) {\n logger.log(Level.SEVERE, \"String_Node_Str\" + expression.getExpression(), e);\n throw new ExpressionEvaluationException(e);\n }\n}\n... |
"public void testEscapedValuesSingleQuery() {\n String[] vals = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n for (String s : vals) {\n this.sqlgGraph.addVertex(\"String_Node_Str\").prope... |
"static void whyNotSubtypeOf(ObjectType obj1, ObjectType obj2, MismatchInfo[] boxedInfo) {\n Preconditions.checkArgument(boxedInfo.length == 1);\n boolean areSubtypes = obj1.isSubtypeOfHelper(true, obj2, SubtypeCache.create(), boxedInfo);\n Preconditions.checkState(!areSubtypes, \"String_Node_Str\", obj1, obj2... |
"public void openStartElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver) {\n this.addPositionalNodes(xPathFragment, namespaceResolver);\n try {\n if (isStartElementOpen) {\n writer.write('>');\n }\n if (!isLastEventText) {\n if (numberOfTabs > 0) {... |
"public void showDialog() {\n this.pack();\n this.setVisible(true);\n}\n"
|
"public File createTempFile(String prefix, String suffix, File parentDir) {\n File result = null;\n String parent = null;\n if (parentDir != null) {\n parent = parentDir.getPath();\n }\n DecimalFormat fmt = new DecimalFormat(\"String_Node_Str\");\n synchronized (rand) {\n do {\n ... |
"private void setValue(SSDate oldDate, SSDate date, boolean fireEvents) {\n SSDate pickerDate = date;\n if (date != null && this.getDatePicker().getMinimumDate().getTime() > date.getTime()) {\n System.out.println(\"String_Node_Str\");\n pickerDate = new SSDate(this.getDatePicker().getMinimumDate().g... |
"public void press(int cell, Char ch) {\n if (ch != null && pit[cell] && !ch.flying) {\n if (ch == Dungeon.hero) {\n Chasm.heroFall(cell);\n } else if (ch instanceof Mob) {\n Chasm.mobFall((Mob) ch);\n }\n return;\n }\n Trap trap = null;\n switch(map[cell]) ... |
"protected PImage getImpl(int x, int y, int w, int h) {\n PImage newbie = parent.createImage(w, h, ARGB);\n PTexture newbieTex = newbie.getTexture();\n IntBuffer newbieBuffer = IntBuffer.allocate(w * h);\n gl.glReadPixels(x, y, w, h, GL10.GL_RGBA, GL10.GL_UNSIGNED_BYTE, newbieBuffer);\n newbieBuffer.get(... |
"public void testInnerClassLoop() {\n final StringBuffer b = new StringBuffer();\n List results = new ArrayList();\n abstract class AppendToStringBuffer {\n public AppendToStringBuffer(int i) {\n this.num = i;\n }\n public abstract void act();\n int num;\n }\n for (... |
"public MenuItemUI getItemUI(final JMenuItem jMenuItem, final Entry entry) {\n if (isWindowsXP) {\n if (jMenuItem instanceof JMenu) {\n return new WindowsMenuUI() {\n\n public void installUI(final JComponent c) {\n super.installUI(c);\n }\n };\n}\n"
|
"private void initialize() {\n fGoToMessageForKeyBinding = new MoveToMessage();\n Object serviceObject = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getService(IHandlerService.class);\n IHandlerService service = (IHandlerService) serviceObject;\n AbstractHandler handler = new AbstractHandler() {\n ... |
"private static void setupMethodMetaDataCache(Class<?> restServiceClass, BaseHttpClient httpClient) {\n for (Method method : restServiceClass.getMethods()) {\n if (method.isAnnotationPresent(Get.class) || method.isAnnotationPresent(Post.class)) {\n cachedMethodMetaData.putIfAbsent(method, new RestA... |
"public void testAddGetRemove() throws Exception {\n final String key1 = \"String_Node_Str\";\n final String key2 = \"String_Node_Str\";\n final String key3 = \"String_Node_Str\";\n CachedContent cachedContent1 = new CachedContent(5, key1, 10);\n index.addNew(cachedContent1);\n CachedContent cachedCon... |
"public boolean execute() {\n attributeModel = workspace.getLookup().lookup(AttributeModel.class);\n graphModel = workspace.getLookup().lookup(GraphModel.class);\n Graph graph;\n if (exportVisible) {\n graph = graphModel.getDirectedGraph();\n } else {\n graph = graphModel.getDirectedGraph()... |
"public void init() {\n judgmentIndexFieldsFillers = new HashMap<>();\n judgmentIndexFieldsFillers.put(CommonCourtJudgment.class, ccJudgmentIndexFieldsFiller);\n}\n"
|
"private static void generateNodeInfo(JobInfo jobInfo, String selectedContextName, boolean statistics, boolean properties, int option, IProgressMonitor progressMonitor, IProcess currentProcess) throws ProcessorException {\n if (BitwiseOptionUtils.containOption(option, GENERATE_TESTS) && jobInfo.getProcessItem() != n... |
"public final void setResourceAt(short x, short y, EResourceType resourceType, byte amount) {\n this.resourceType[getIdx(x, y)] = resourceType;\n this.resourceAmount[getIdx(x, y)] = amount;\n}\n"
|
"public Response getPermisionsFromGroup(String name) {\n Response r = null;\n List<String> permissions = this.service.getGroupDirectPermissions(name);\n if (permissions == null) {\n throw new NotFoundException();\n }\n return permissions;\n}\n"
|
"public void match(PactRecord first, PactRecord second, Collector out) {\n first.setField(1, second.getField(1, PactString.class));\n out.collect(first);\n}\n"
|
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n final String pi = Https.getThisPathInfo(request);\n final ServletContext ctx = getServletContext();\n final boolean withpi = pi != null && pi.length() != 0 && !(pi.startsWith(\"String_Node_S... |
"public void testFileInfoUnChanged() throws Exception {\n Set<FileInfo> oldSet = Sets.newHashSet(new FileInfo(\"String_Node_Str\", 10, -1, false, false, null));\n Set<FileInfo> newSet = Sets.newHashSet(new FileInfo(\"String_Node_Str\", 10, -1, false, false, null));\n assertEquals(Sets.newHashSet(), new FileSet... |
"private Size getOptimalPreviewSize(List<Size> sizes, double targetRatio) {\n final double ASPECT_TOLERANCE = 0.05;\n if (sizes == null)\n return null;\n Size optimalSize = null;\n double minDiff = Double.MAX_VALUE;\n Display display = getWindowManager().getDefaultDisplay();\n int targetHeight ... |
"private int loadData(OrcsDataHandler<IndexedResource> handler, int tagQueueQueryId) throws OseeCoreException {\n Consumer<JdbcStatement> consumer = stmt -> {\n int itemId = stmt.getInt(\"String_Node_Str\");\n long typeUuid = stmt.getLong(\"String_Node_Str\");\n long gammaId = stmt.getLong(\"Str... |
"public boolean incrementalBuild(AjBuildConfig buildConfig, IMessageHandler messageHandler) throws CoreException, IOException {\n if (javaBuilder == null || javaBuilder.currentProject == null || javaBuilder.lastState == null) {\n return batchBuild(buildConfig, messageHandler);\n }\n final CountingMessag... |
"public void run() {\n try {\n if (!peers.contains(peer) || !PeerGroup.this.isRunning())\n return;\n peer.ping().addListener(pingRunnable[0], MoreExecutors.sameThreadExecutor());\n } catch (Exception e) {\n log.warn(\"String_Node_Str\", peer, e.toString());\n }\n}\n"
|
"public void onClick(View v) {\n switch(v.getId()) {\n case R.id.prev:\n if (mCurrent > 0) {\n Map.Entry keyValue = nodes.get(--mCurrent);\n mInput.requestFocus();\n mInput.setSelection((Integer) keyValue.getKey(), (Integer) keyValue.getValue());\n ... |
"public void testMergeCells() {\n XSheet sheet1 = _workbook.getWorksheet(\"String_Node_Str\");\n Row row1 = sheet1.getRow(0);\n Row row2 = sheet1.getRow(1);\n Row row6 = sheet1.getRow(5);\n Row row7 = sheet1.getRow(6);\n Row row9 = sheet1.getRow(8);\n Row row10 = sheet1.getRow(9);\n Row row11 = ... |
"public void destroy() {\n logger.info(\"String_Node_Str\");\n if (getConnectionPoolOrConnection() != null && getConnectionPoolOrConnection() instanceof JedisPool) {\n ((JedisPool) getConnectionPoolOrConnection()).destroy();\n }\n}\n"
|
"private static IEdgeDefinition loadEdge(DataInputStream dis) throws DataException, IOException {\n if (!IOUtil.readBool(dis)) {\n return null;\n }\n String name = IOUtil.readString(dis);\n EdgeDefinition ed = new EdgeDefinition(name);\n int count = IOUtil.readInt(dis);\n for (int i = 0; i < co... |
"public void onChildDismissed(View v) {\n TaskView tv = (TaskView) v;\n tv.setClipViewInStack(true);\n tv.setTouchEnabled(true);\n EventBus.getDefault().send(new TaskViewDismissedEvent(tv.getTask(), tv, mSwipeHelperAnimations.containsKey(v) ? new AnimationProps(TaskStackView.DEFAULT_SYNC_STACK_DURATION, Int... |
"public void get_sample_rules_from_data() {\n char totalVector = 32769;\n frequentSet = new BinaryItemSet(new char[] { totalVector });\n frequentSetsMap.put(frequentSet, 1);\n BinaryItemSet supportSet1 = new BinaryItemSet(new char[] { 1 });\n BinaryItemSet supportSet2 = new BinaryItemSet(new char[] { 327... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.