content stringlengths 40 137k |
|---|
"static void createRouterFactoryFromURL(Vertx vertx, String url, Handler<AsyncResult<OpenAPI3RouterFactory>> handler) {\n vertx.executeBlocking((Future<OpenAPI3RouterFactory> future) -> {\n try {\n URL urlObj = new URL(url);\n SwaggerParseResult swaggerParseResult = new OpenAPIV3Parser()... |
"public void doExplode() {\n if (this.effectBlocks) {\n for (int x = (int) -this.getRadius(); x < (int) this.getRadius(); x++) {\n for (int y = (int) -this.getRadius(); y < (int) this.getRadius(); y++) {\n for (int z = (int) -this.getRadius(); z < (int) this.getRadius(); z++) {\n ... |
"public boolean hasEdge(Statement src, Statement dst) {\n addPDGStatementNodes(src.getNode());\n addPDGStatementNodes(dst.getNode());\n switch(src.getKind()) {\n case NORMAL:\n if (cOptions.equals(ControlDependenceOptions.NONE)) {\n return getPDG(src.getNode()).hasEdge(src, dst... |
"protected String[] valueToTextArray(Object value) {\n ModelComponent comp = getComponent(value);\n RootModel root = myMain.getRootModel();\n String compStr = \"String_Node_Str\";\n String propStr = \"String_Node_Str\";\n if (root == null || comp == null) {\n return new String[] { \"String_Node_St... |
"public void cmdGoogle(Context ctx) {\n if (ctx.rawArgs.length() < 1) {\n ctx.send(Emotes.getFailure() + ' ' + \"String_Node_Str\").queue();\n return;\n }\n final String query = String.join(\"String_Node_Str\", ctx.args);\n String key = bot.getKeys().optString(\"String_Node_Str\");\n if (ke... |
"public void execute() throws IOException {\n final String outputFilename = outputFile;\n final String[] basenames = AlignmentReader.getBasenames(inputFilenames);\n final boolean allSorted = ConcatenateAlignmentMode.isAllSorted(basenames);\n if (!allSorted) {\n System.out.println(\"String_Node_Str\")... |
"public void testDiDemoJobItemsComplete() throws Exception {\n Assert.assertTrue(diResManager instanceof FileResourcesUnityManager);\n Iterator path = diResManager.getPaths().iterator();\n String firstFilePath = ((Path) path.next()).toPortableString();\n String tempFolderPath = firstFilePath.substring(0, fi... |
"public void onExpansionStopped() {\n mIsExpansionChanging = false;\n if (!mIsExpanded) {\n setOwnScrollY(0);\n mPhoneStatusBar.resetUserExpandedStates();\n clearTemporaryViews(this);\n for (int i = 0; i < getChildCount(); i++) {\n ExpandableView child = (ExpandableView) get... |
"public boolean isSuperClassOf(IType subType) {\n if (!isSuperClass(this.getSafeUpperBound(), subType)) {\n return false;\n }\n final IType lowerBound = this.getLowerBound();\n return lowerBound == null || isSuperClass(subType, lowerBound);\n}\n"
|
"protected boolean findNext() throws BirtException {\n while (fResultIterator.next()) {\n int startIndex = fResultIterator.getStartingGroupLevel();\n if (startIndex > 0 && startIndex <= fGroupCount) {\n if (usedByChart(startIndex - 1, fGroupCount - 1)) {\n fCountOfAvaiableRows... |
"public boolean equals(Object object) {\n if (!(object instanceof PtidesEvent)) {\n return false;\n }\n PtidesEvent event = (PtidesEvent) object;\n return (super.equals(object) && ((!event.isPureEvent() && event.token().equals(_token)) || event.isPureEvent()) && event.isPureEvent() == _isPureEvent &&... |
"public static String getLocalPath(String uri) {\n if (uri == null)\n return null;\n URI objURI = null;\n try {\n objURI = new URI(uri);\n } catch (URISyntaxException e) {\n return getLocalFileOfFailedURI(uri);\n }\n if (objURI.getScheme() == null) {\n if (isFileProtocol(ur... |
"public void update(ActionRequest request, ActionResponse response) {\n Target target = request.getContext().asType(Target.class);\n try {\n targetService.update(Target.find(target.getId()));\n response.setValue(\"String_Node_Str\", target.getOpportunityAmountWon());\n response.setValue(\"Str... |
"public String getSignatureWithResolvedReturnType() {\n String signature = arguments.genericSignature;\n if (signature != null) {\n String classDesc = getClassDesc();\n Class<?> mockedClass = instance != null ? instance.getClass() : ClassLoad.loadByInternalName(classDesc);\n GenericTypeReflec... |
"protected Connection createConnection(Configuration config) throws IOException {\n return new BigtableConnection(config) {\n public void close() throws IOException {\n LOG.info(\"String_Node_Str\" + \"String_Node_Str\");\n }\n };\n}\n"
|
"private <E> void setProxyOwners(EntityMetadata entityMetadata, E e) {\n Object entityId = PropertyAccessorHelper.getId(e, entityMetadata);\n for (Relation r : entityMetadata.getRelations()) {\n String entityName = entityMetadata.getEntityClazz().getName() + \"String_Node_Str\" + entityId + \"String_Node_S... |
"private HashMap<String, String> generateSelfHostedParams() {\n HashMap<String, String> params = new HashMap<>();\n if (mTitlePreference != null && !mTitlePreference.getText().equals(StringUtils.unescapeHTML(mRemoteTitle))) {\n params.put(\"String_Node_Str\", mTitlePreference.getText());\n }\n if (mT... |
"final Spliterator<String> simplify() {\n return (upper - index == 1) ? iterators[index] : this;\n}\n"
|
"public synchronized void clockPulse() {\n List<ControlChange> controlChanges = ((ServerConsoleControlsSocketAdapter) controlsSocket).commitAndGetChangesToSend();\n if (powerOn)\n tia.clockPulse();\n if (remoteTransmitter != null && remoteTransmitter.isClientConnected()) {\n ServerUpdate update =... |
"public boolean equals(Object o) {\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n Album album = (Album) o;\n return id.equals(album.id);\n}\n"
|
"public void publishEvent(Address caller, String mapName, int eventType, Data dataKey, Data dataOldValue, Data dataValue) {\n Collection<EventRegistration> candidates = nodeEngine.getEventService().getRegistrations(SERVICE_NAME, mapName);\n Set<EventRegistration> registrationsWithValue = new HashSet<EventRegistra... |
"public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) {\n try {\n XMLDescriptor xmlDescriptor = (XMLDescriptor) xmlCompositeCollectionMapping.getReferenceDescriptor();\n if (xmlDescriptor == null) {\n xmlDescriptor = findReferenceDescript... |
"public String getImagePath(String imageUrl) {\n return (this.containsKey(imageUrl)) ? new StringBuilder(cacheFolder).append(File.separator).append(fileNameRule.getFileName(imageUrl)).toString() : null;\n}\n"
|
"public void click(Diagnostic diagnostic) {\n Log.d(TAG, \"String_Node_Str\" + diagnostic + \"String_Node_Str\");\n Object source = diagnostic.getSource();\n if (source instanceof JavaFileObject) {\n String path = ((JavaFileObject) source).getName();\n int i = mPagePresenter.gotoPage(path);\n ... |
"TabControl.Tab openTabAndShow(UrlData urlData, boolean closeOnExit, String appId) {\n final boolean newTab = mTabControl.getTabCount() != TabControl.MAX_TABS;\n final TabControl.Tab currentTab = mTabControl.getCurrentTab();\n if (newTab) {\n final TabControl.Tab tab = mTabControl.createNewTab(closeOnEx... |
"public void prepareToInvalidate(Provider p, int action, LanguageConnectionContext lcc) throws StandardException {\n DependencyManager dm = getDataDictionary().getDependencyManager();\n switch(action) {\n default:\n DataDictionary dd = getDataDictionary();\n ColumnDescriptor cd = dd.g... |
"public int getOffences(Player player) {\n if (User.getUser(plugin, player).isJailed() != null) {\n return 3;\n }\n if (offenders.containsKey(player.getName())) {\n return offenders.get(player.getName());\n } else {\n return 0;\n }\n}\n"
|
"public void remove(String tableName, String[] fieldNames, Object[] fieldValues) throws DatabaseWriteException {\n Connection conn = pool.getConnectionFromPool();\n ResultSet rs = null;\n try {\n rs = this.getResultSet(conn, tableName, fieldNames, fieldValues, true);\n if (rs != null) {\n ... |
"public boolean remove(Object key, Object value) {\n boolean removed = super.remove(key, value);\n if (removed && entryCountingEnable) {\n cacheContext.decreaseEntryCount();\n }\n return removed;\n}\n"
|
"public static FlumeAppender createAppender(Agent[] agents, final Property[] properties, final String embedded, final String type, final String dataDir, final String connectionTimeout, final String requestTimeout, final String agentRetries, final String maxDelay, final String name, final String ignore, final String exc... |
"public ReleaseDate scrapeReleaseDate() {\n Element releaseDateElement = document.select(\"String_Node_Str\").first();\n if (releaseDateElement != null) {\n ReleaseDate releaseDate = new ReleaseDate(releaseDateElement.text(), new SimpleDateFormat(\"String_Node_Str\", Locale.ENGLISH));\n return relea... |
"protected void addTypeAttribute(MarshalRecord marshalRecord, String typeValue) {\n String xsiPrefix = null;\n if (marshalRecord.getNamespaceResolver() != null) {\n xsiPrefix = marshalRecord.getNamespaceResolver().resolveNamespaceURI(XMLConstants.SCHEMA_INSTANCE_URL);\n } else {\n xsiPrefix = XML... |
"private Element ensureColumn(int col) {\n prepareColumn(col);\n prepareColumnGroup();\n resizeColumnGroup(col + 1, true);\n return columnGroup.getChild(col).cast();\n}\n"
|
"protected void getAllInternal(Set<K> keys, Map<Integer, List<Data>> partitionToKeyData, List<Object> resultingKeyValuePairs) {\n Map<Object, Data> keyMap = createHashMap(keys.size());\n if (serializeKeys) {\n fillPartitionToKeyData(keys, partitionToKeyData, keyMap, null);\n }\n Collection<?> ncKeys ... |
"private Algorithm getAlgorithm(String algName) throws JATEException {\n if (StringUtils.isEmpty(algName)) {\n throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, \"String_Node_Str\" + \"String_Node_Str\");\n }\n if (algName.equalsIgnoreCase(Algorithm.C_VALUE.getAlgorithmName())) {\n log... |
"public String getStringValue() {\n return value.toString();\n}\n"
|
"public void enterDeclByType(CodeSensorParser.DeclByTypeContext ctx) {\n Init_declarator_listContext decl_list = ctx.init_declarator_list();\n Type_nameContext typeName = ctx.type_name();\n emitDeclarations(decl_list, typeName);\n}\n"
|
"protected void updateLayoutList() {\n Collections.sort(this.layoutList, this.comparator);\n ArrayList<GlimpseLayout> temp = Lists.newArrayListWithCapacity(this.layoutList.size());\n for (LayoutOrder order : this.layoutList) {\n temp.add(order.getLayout());\n }\n this.unmodifiableLayoutList = Coll... |
"public static List<dPlayer> getClosestPlayers(Location location, int range) {\n List<dPlayer> closestPlayers = new ArrayList<dPlayer>();\n double closestDistance = Math.pow(range, 2);\n List<Player> playerList = new ArrayList<Player>(Bukkit.getOnlinePlayers());\n Iterator<Player> it = playerList.iterator()... |
"public MediaDevice getMediaDeviceForPartialDesktopStreaming(int width, int height, int x, int y) {\n MediaDevice device = null;\n String name = \"String_Node_Str\";\n Dimension size = null;\n int multiple = 0;\n Point p = new Point(x, y);\n ScreenDevice dev = getScreenForPoint(p);\n int display = ... |
"public E merge(E e1, E e2) {\n if (e1.equals(e2)) {\n return e1;\n } else {\n throw new MergerException(String.format(\"String_Node_Str\", e1, e2));\n }\n}\n"
|
"public String editBulkItemsInlandDestination() {\n Map sessionAttributes = ActionContext.getContext().getSession();\n try {\n String[] checkedItemsInSession = (String[]) sessionAttributes.get(\"String_Node_Str\");\n for (String value : checkedItemsInSession) {\n String modeOfService = se... |
"public void widgetSelected(SelectionEvent e) {\n ImportDemoProjectAction.getInstance().setShell(getShell());\n ImportProjectAsAction.getInstance().run();\n String newProject = ImportProjectAsAction.getInstance().getProjectName();\n if (newProject != null) {\n ProxyRepositoryFactory repositoryFactory... |
"public String toString() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"String_Node_Str\");\n String dateStr = dateFormat.format(this.date.getTime());\n return \"String_Node_Str\" + this.symbol + \"String_Node_Str\" + dateStr + \"String_Node_Str\" + this.numerator + \"String_Node_Str\" + this.denomi... |
"public int drRoll() {\n int dr = 0;\n Barkskin bark = buff(Barkskin.class);\n if (belongings.armor != null) {\n int armDr = Random.NormalIntRange(belongings.armor.DRMin(), belongings.armor.DRMax());\n if (STR() < belongings.armor.STRReq()) {\n dr -= 2 * (belongings.armor.STRReq() - ST... |
"public void setRunPassword(String aValue) {\n String oldValue = getRunPassword();\n if (aValue != null) {\n projectPrivateProperties.setProperty(RUN_PASSWORD_KEY, aValue);\n } else {\n projectPrivateProperties.remove(RUN_PASSWORD_KEY);\n }\n projectPrivatePropertiesIsDirty = true;\n cha... |
"public void checkCollisions() {\n if (scene.entities.size() == 0) {\n childrenInScene = 0;\n return;\n }\n if (scene.numEntities() != childrenInScene) {\n entities.clear();\n broadphase.clear();\n childrenInScene = 0;\n for (Entity2D entity : scene.entities) {\n ... |
"private boolean buildMap() {\n long current = 0;\n long sample;\n boolean first = true;\n Record rec;\n map.clear();\n if (nextRecord != null) {\n rec = nextRecord;\n } else {\n if (!rowSource.hasNext()) {\n return false;\n }\n rec = rowSource.next();\n }\... |
"public void close() {\n writeQueue.clear();\n priorityWriteQueue.clear();\n CloseTask closeTask = new CloseTask();\n addTaskAndWakeup(closeTask);\n closeTask.awaitCompletion();\n}\n"
|
"public boolean leaveTable(UUID roomId, UUID tableId) {\n try {\n if (isConnected() && server.leaveTable(sessionId, roomId, tableId)) {\n return true;\n }\n } catch (MageException ex) {\n handleMageException(ex);\n } catch (Throwable t) {\n handleThrowable(t);\n }\n ... |
"public void testAddCSRFToken() throws AuthenticationException {\n Authenticator instance = ESAPI.authenticator();\n String username = ESAPI.randomizer().getRandomString(8, EncoderConstants.CHAR_ALPHANUMERICS);\n User user = instance.createUser(username, \"String_Node_Str\", \"String_Node_Str\");\n instance... |
"public boolean isFunctional(OWLDataProperty property) {\n String query = \"String_Node_Str\" + property.toStringID() + \"String_Node_Str\" + OWL.FunctionalProperty.getURI() + \"String_Node_Str\";\n return qef.createQueryExecution(query).execAsk();\n}\n"
|
"private boolean handleSeparator(final SettingsValues settingsValues, final int codePoint, final boolean isFromSuggestionStrip, final int spaceState, final KeyboardSwitcher keyboardSwitcher, final LatinIME.UIHandler handler) {\n boolean didAutoCorrect = false;\n final boolean shouldAvoidSendingCode = Constants.CO... |
"private IVirtualArray palcluster(EClustererType eClustererType) {\n int[] clusterid = new int[iNrSamples];\n int[] number = new int[iNrSamples];\n Node[] result = new Node[iNrSamples - 1];\n for (int j = 0; j < iNrSamples; j++) {\n number[j] = 1;\n clusterid[j] = j;\n }\n int j;\n Cl... |
"public void testEntityNotFoundException() {\n this.request(\"String_Node_Str\").jsonGet();\n}\n"
|
"public boolean deleteNodeContainer(NodeContainer nodeContainer) {\n if (getNodeContainers().contains(nodeContainer)) {\n getNodeContainers().remove(nodeContainer);\n updateSubjobContainer();\n return true;\n }\n return deleted;\n}\n"
|
"protected DomainRouterVO findOrCreateDhcpServer(Network guestNetwork, DeployDestination dest, Account owner) throws InsufficientCapacityException, ConcurrentOperationException {\n DataCenterDeployment plan = null;\n long dcId = dest.getDataCenter().getId();\n DataCenter dc = dest.getDataCenter();\n DomainR... |
"public void test_var_in_prev() {\n dao.create(Pet2.class, true);\n if (dao.meta().isOracle() || dao.meta().isHsql() || dao.meta().isDB2())\n return;\n pojos.initPet();\n Pet2 pet = new Pet2();\n pet.setName(\"String_Node_Str\").setAge(10);\n dao.insert(pet);\n assertEquals(\"String_Node_Str... |
"public void testFunctionalPropertyAxiomLearnining() throws Exception {\n FunctionalObjectPropertyAxiomLearner l = new FunctionalObjectPropertyAxiomLearner(ks);\n l.setMaxExecutionTimeInSeconds(maxExecutionTimeInSeconds);\n l.setEntityToDescribe(functional);\n l.init();\n l.start();\n System.out.print... |
"synchronized void audioOff() {\n if (VDBG)\n log(\"String_Node_Str\");\n if (mConnectedSco != null) {\n mAudioManager.setBluetoothScoOn(false);\n broadcastAudioStateIntent(BluetoothHeadset.AUDIO_STATE_DISCONNECTED, mHeadset.getAddress());\n mConnectedSco.close();\n mConnectedSc... |
"public String getSpacedName() {\n return ChatColor.stripColor(this.name);\n}\n"
|
"public <T> T[] toArray(T[] a) {\n Object[] result = super.toArray(a);\n wrap(result, coll.size());\n return (T[]) result;\n}\n"
|
"private void updateExecCounts(DirectedGraph<ExecutionContext, ContextEdge> dag) {\n TopologicalOrderIterator<ExecutionContext, ContextEdge> topOrder = new TopologicalOrderIterator<ExecutionContext, ContextEdge>(dag);\n while (topOrder.hasNext()) {\n ExecutionContext next = topOrder.next();\n if (lo... |
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n Permanent sourcePermanent = game.getPermanent(source.getSourceId());\n if (controller != null && sourcePermanent != null) {\n if (getTargetPointer().getFirst(game, source) != null) {\n ... |
"public FeatureIterator<F> features() {\n if (delegate.getSchema().getDescriptors().size() != featureType.getDescriptors().size()) {\n throw new GeoToolsOpException(GeoToolsOpException.StatusCode.INCOMPATIBLE_FEATURE_TYPE);\n }\n GeometryDescriptor geomDescriptorOrg = delegate.getSchema().getGeometryDes... |
"public int hashCode() {\n return _hashCode;\n}\n"
|
"public boolean equals(Object anObject) {\n if (this == anObject) {\n return true;\n }\n if (!(anObject instanceof Product)) {\n return false;\n }\n Product another = (Product) anObject;\n return getProductId().equals(another.getProductId()) && name.equals(another.getName());\n}\n"
|
"private void internalEventJsonRpc(String request) {\n try {\n LOG.debug(\"String_Node_Str\", request.trim());\n Request<JsonObject> requestObj = JsonUtils.fromJsonRequest(request, JsonObject.class);\n JsonElement subsJsonElem = requestObj.getParams().get(\"String_Node_Str\").getAsJsonObject().g... |
"public Void call() throws Exception {\n TreeView<?> tree = getTree();\n int index = ((TreeView) tree).getRow(node);\n tree.scrollTo(index);\n tree.layout();\n return null;\n}\n"
|
"public static byte[] execute(final RedisRequest request, RedisFrontConnection frontCon) {\n int numArgs = request.getNumArgs();\n if (numArgs < 2) {\n return \"String_Node_Str\".getBytes();\n }\n byte[] arg1 = request.getArgs()[0];\n String arg2 = new String(request.getArgs()[1]);\n if (arg1 =... |
"public Set getAspectPath() {\n log(\"String_Node_Str\" + aspectPath + \"String_Node_Str\");\n return aspectPath;\n}\n"
|
"public static List<ModuleNeeded> getAllNoInstalledModulesNeededExtensionsForPlugin(IProgressMonitor monitor) {\n List<ModuleNeeded> allPluginsRequiredModules = getAllModulesNeededExtensionsForPlugin();\n List<ModuleNeeded> allUninstalledModules = new ArrayList<ModuleNeeded>(allPluginsRequiredModules.size());\n ... |
"public static List<String> listDevices() {\n if (devices == null) {\n generate();\n }\n if (devices == null) {\n return null;\n }\n return devices;\n}\n"
|
"public void handle(byte[] byteBuff) {\n boolean isImmediateReleaseConReadLock = true;\n List<RedisRequest> requests = null;\n RedisRequest firstRequest = null;\n try {\n requests = requestDecoder.decode(byteBuff);\n if (requests == null || requests.size() == 0) {\n return;\n ... |
"private int writeToSysfs(File sysfsEntry, String value) throws IOException {\n BufferedWriter out;\n out = new BufferedWriter(new FileWriter(sysfsEntry));\n out.write(String.valueOf(value));\n out.close();\n return 0;\n}\n"
|
"public void testSimpleClass() {\n DefaultModelGenerator mg = new DefaultModelGenerator(new BackboneModelProcessor(modelWriter), new JavaToJSValueConverter(ConverterMode.ALLOW_NULL));\n mg.process(TestModel.class);\n String referenceModel = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"St... |
"public void wipeBuffer(PassthroughConnection ptc, byte[] buffer, boolean[] wipe) {\n HashThread[] hashThreads = ptc.hashThreads;\n for (int cnt = 0; cnt < 40; cnt += 10) {\n hashThreads[cnt / 10].init(buffer, 65536, cnt, cnt + 10, ptc.hashes, wipe);\n }\n for (int cnt = 0; cnt < 4; cnt++) {\n ... |
"protected void onHandleIntent(Intent intent) {\n Log.d(TAG, \"String_Node_Str\");\n HashMap<String, List<Movie>> recommendations = VideoProvider.getMovieList();\n int count = 0;\n try {\n RecommendationBuilder builder = new RecommendationBuilder().setContext(getApplicationContext()).setSmallIcon(R.d... |
"private void setImage(File file, GalleryItemViewBag viewBag) {\n if (UriUtils.isImageUri(Uri.fromFile(file))) {\n AppearanceUtils.setImage(file, this, viewBag.layout, ImageGalleryActivity.this.mBackgroundColor);\n } else if (this.mCurrentImageModel.attachment.isVideo()) {\n AppearanceUtils.setVideo... |
"public void init() throws KeeperException, InterruptedException {\n setupZookeeper();\n registerMyself();\n _executor = Executors.newThreadPool(CONTROLLER_THREAD_POOL, _threadCount);\n _running.set(true);\n watchForClusterChanges();\n List<String> clusterList = _clusterStatus.getClusterList(false);\n... |
"public static List<ValueRange> getSubRange(List<ValueRange> availableRange, int requestNumber, int baseValue) {\n List<ValueRange> resultList = new ArrayList<ValueRange>();\n if (getValueNumber(availableRange) <= 0) {\n return resultList;\n }\n Random random = new Random();\n int maxValue = avail... |
"protected void disableNotNullConstraints(String schemaName, String tableName) {\n SQLHandler sqlHandler = getSQLHandler();\n Set<String> primaryKeyColumnNames = sqlHandler.getItemsAsStringSet(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + tableName + \"String_Node_Str\" +... |
"public static WrapperPlayServerNamedEntitySpawn getSpawnWrapper(Vector loc, AntiAura plugin) {\n WrapperPlayServerNamedEntitySpawn wrapper = new WrapperPlayServerNamedEntitySpawn();\n wrapper.setEntityId(AntiAura.RANDOM.nextInt(20000));\n wrapper.setPosition(loc);\n wrapper.setPlayerUuid(UUID.randomUUID())... |
"public JSONObject toJSON() throws JSONException {\n JSONObject json = new JSONObject();\n json.put(JSON_QUERY, getQuerry());\n json.put(JSON_ANSWER, getAnswer());\n json.put(JSON_QUERY_UNIT, mQueryUnit.toJSON());\n json.put(JSON_ANSWER_UNIT, mAnswerUnit.toJSON());\n json.put(JSON_UNIT_TYPE_POS, getUn... |
"public void handleMessage(Message message) {\n if (ContactsListActivity.this.isFinishing()) {\n return;\n }\n switch(message.what) {\n case FETCH_IMAGE_MSG:\n {\n final ImageView imageView = (ImageView) message.obj;\n if (imageView == null) {\n ... |
"private void fillValues(Point pt, TimeGraphControl timeGraphControl, ITimeGraphEntry entry) {\n if (entry == null) {\n return;\n }\n if (entry.hasTimeEvents()) {\n long currPixelTime = timeGraphControl.getTimeAtX(pt.x);\n long nextPixelTime = timeGraphControl.getTimeAtX(pt.x + 1);\n ... |
"public int getBurnTime(ItemStack fuel) {\n if (quickList.containsKey(fuel.getItem())) {\n IItemStack stack = MineTweakerMC.getIItemStack(fuel);\n for (SetFuelPattern override : quickList.get(fuel.getItem())) {\n if (override.getPattern().matches(stack)) {\n return override.ge... |
"public static CommandSpec getCommand() {\n return CommandSpec.builder().permission(\"String_Node_Str\").executor((source, args) -> {\n if (!(source instanceof Player)) {\n source.sendMessage(Format.error(\"String_Node_Str\"));\n return CommandResult.empty();\n }\n List<Act... |
"protected MappingAccessor buildAccessor(MetadataAnnotatedElement accessibleObject) {\n if (accessibleObject.isBasicCollection(getDescriptor())) {\n return new BasicCollectionAccessor(accessibleObject.getAnnotation(BasicCollection.class), accessibleObject, this);\n } else if (accessibleObject.isBasicMap(ge... |
"protected boolean isPasswordParam(final IElementParameter parameter) {\n if (ContextParameterUtils.containContextVariables(parameter.getValue().toString())) {\n return false;\n }\n return parameter.isRepositoryValueUsed() && (parameter.getName().equals(EParameterName.PASS.getName()) || parameter.getNam... |
"public DynamicValue copy() {\n return new TargetPermanentPowerPlusToughnessCount();\n}\n"
|
"public void run(Context context) throws IOException, InterruptedException {\n String userMapper = context.getConfiguration().get(ATTR_MAPPER_CLASS);\n Mapper delegate = createMapperInstance(context, userMapper);\n MapReduceContextProvider mrContextProvider = new MapReduceContextProvider(context);\n BasicMa... |
"private String generateNickname() {\n String prefix = anonymPrefix[(int) (Math.random() * (anonymPrefix.length - 1))];\n String name = prefix + \"String_Node_Str\" + (int) (Math.random() * getIdentity().getKey());\n return name;\n}\n"
|
"private int doSearch(final CharBuffer buffer, final int matchedLength, final int currentLength, final boolean ignoreCase) {\n final int nextLength = fullWord ? currentLength : matchedLength;\n if (!buffer.hasRemaining())\n return nextLength;\n char c = buffer.get();\n int index = Arrays.binarySearch... |
"public void showUserRequestDialog(final UserRequestMessage userRequestMessage) {\n final UserRequestDialog userRequestDialog = new UserRequestDialog();\n userRequestDialog.setLocation(100, 100);\n desktopPane.add(userRequestDialog, JLayeredPane.MODAL_LAYER);\n if (SwingUtilities.isEventDispatchThread()) {\... |
"protected void onStart() {\n super.onStart();\n bus.post(new RequestFullScanEvent());\n}\n"
|
"public Map<String, String> getQueryMap() {\n Map<String, String> map = new HashMap<String, String>();\n if (ColumnsetPackage.eINSTANCE.getAllMatchIndicator().isSuperTypeOf(indicator.eClass())) {\n return map;\n }\n boolean isSqlEngine = ExecutionLanguage.SQL.equals(this.analysis.getParameters().getE... |
"private void copyArrayByValue(Context context, Var dst, Var src) throws UserException {\n assert (dst.type().equals(src.type()));\n assert (Types.isArray(src.type()));\n LocalContext copyContext = new LocalContext(context);\n Type t = src.type();\n Type memType = Types.getArrayMemberType(t);\n Var me... |
"public void unlockWithoutCommitShouldRevertChanges() throws RepositoryException, LibrarySaveException {\n ProjectNode uploadProject = createProject(\"String_Node_Str\", getRepositoryForTest(), \"String_Node_Str\");\n LibraryNode testLibary = LibraryNodeBuilder.create(\"String_Node_Str\", getRepositoryForTest().g... |
"public void testEncryptedCreate() throws Exception {\n ECKey unencryptedKey = new ECKey();\n byte[] originalPrivateKeyBytes = checkNotNull(unencryptedKey.getPrivKeyBytes());\n log.info(\"String_Node_Str\" + Utils.bytesToHexString(originalPrivateKeyBytes));\n EncryptedPrivateKey encryptedPrivateKey = keyCry... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.