content stringlengths 40 137k |
|---|
"protected boolean initiateClient() {\n Throwable message = null;\n for (String host : hosts) {\n if (host == null || !StringUtils.isNumeric(port) || port.isEmpty()) {\n log.error(\"String_Node_Str\");\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n TSoc... |
"public static void main(String[] args) {\n try {\n Gpio led = new Gpio(4);\n Aio lightSensor = new Aio(0);\n led.dir(Dir.DIR_OUT);\n int on = 0;\n long lightValue = 0;\n String command = \"String_Node_Str\";\n Socket clientSocket = new Socket(args[0], Integer.parseIn... |
"public static void withShippingMethodForGermany(final TestClient client, final Consumer<ShippingMethod> consumer) {\n final Optional<Zone> zoneOptional = client.execute(ZoneQuery.of().byCountry(DE)).head();\n final Zone zone;\n if (zoneOptional.isPresent()) {\n zone = zoneOptional.get();\n } else {\... |
"public static org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySearchComponent convertBundleEntrySearchComponent(org.hl7.fhir.dstu3.model.Bundle.BundleEntrySearchComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.Bundle.BundleEntrySear... |
"public Token takeToken() throws IllegalActionException {\n Token token = ((Parameter) getAttribute(\"String_Node_Str\")).getToken();\n ((Parameter) getAttribute(\"String_Node_Str\")).setToken(new BooleanToken(false));\n return token;\n}\n"
|
"Action parse_attr_value_make(SymbolImpl id) throws IOException, ParserException {\n RhsValue value;\n Action new_actions, last;\n expect(LexemeType.UP_ARROW, \"String_Node_Str\");\n RhsValue attr = parse_rhs_value();\n if (attr == null) {\n return null;\n }\n String szAttribute = String.for... |
"public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n if (!__authenticate(request, response)) {\n return;\n }\n StringBuffer builder = new StringBuffer();\n Iterator it = request.getParameterMap().keySet().iterator();\n while (it.has... |
"public List<IMethodInstance> intercept(List<IMethodInstance> methods, ITestContext context) {\n if (!testDataPrepared) {\n PrettyMessage prettyMessage = new PrettyMessage();\n Thread t = new Thread(prettyMessage);\n t.start();\n String evironment = System.getProperty(\"String_Node_Str\")... |
"private static String scriptInjector(String scriptUrl) {\n if (isRelativeURL(scriptUrl)) {\n return \"String_Node_Str\" + scriptUrl + \"String_Node_Str\" + \"String_Node_Str\" + scriptUrl + \"String_Node_Str\" + \"String_Node_Str\" + scriptUrl + \"String_Node_Str\" + \"String_Node_Str\";\n } else {\n ... |
"protected String loadModelHeader(final ProjectModelDTO model) {\n nameField.setValue(model.getName());\n statusField.setValue(new EnumModel<ProjectModelStatus>(model.getStatus()));\n modelTypeField.setValue(projectTypeProvider.getProjectModelType(model));\n getMaintenanceGroupField().setVisible(model.getSt... |
"static ExtendedRecordInterpreter interpretIndividualCount(InterpretedExtendedRecord interpretedExtendedRecord) {\n return (ExtendedRecord extendedRecord) -> SimpleTypeParser.parseInt(extendedRecord, DwcTerm.individualCount, parseResult -> {\n Interpretation<ExtendedRecord> interpretation = Interpretation.of(... |
"public static IPath getElementPath(Property property) {\n TDQItem item = (TDQItem) property.getItem();\n IPath itemPath = getItemWorkspaceBasePath(property);\n String path = item.getState().getPath();\n if (path == null || StringUtils.isEmpty(path)) {\n IPath propPath = new Path(property.eResource()... |
"private long fetchLocatedBlocksAndGetLastBlockLength() throws IOException {\n LocatedBlocks newInfo = dfsClient.getLocatedBlocks(src, 0, prefetchSize);\n if (DFSClient.LOG.isDebugEnabled()) {\n DFSClient.LOG.debug(\"String_Node_Str\" + newInfo);\n }\n if (newInfo == null) {\n throw new IOExce... |
"public boolean apply(Game game, Ability source) {\n Player damagedPlayer = game.getPlayer(targetPointer.getFirst(game, source));\n Player you = game.getPlayer(source.getControllerId());\n FilterCard filter = new FilterCard(\"String_Node_Str\");\n filter.add(new CardTypePredicate(CardType.CREATURE));\n f... |
"public void sendMailDirectly(MailInfo mailInfo) {\n SaeMail mail = createSaeMailInstance();\n mail.setTo(StringUtils.split(mailInfo.getTo(), \"String_Node_Str\"));\n mail.setSubject(mailInfo.getSubject());\n mail.setContent(mailInfo.getContent());\n log.debug(format(\"String_Node_Str\", mailInfo.getTo()... |
"private void updateParentAfterRemove(Node parent, long[] newPost, Node newSub, boolean isParentHigh, long[] currentPrefix, Node n) {\n if (parent == null) {\n rootVal = newPost;\n root = newSub;\n } else if (isParentHigh) {\n parent.hiVal = newSub != null ? null : createPostFix(currentPrefix... |
"public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int metadata, int fortune) {\n ArrayList<ItemStack> ret = Lists.newArrayList();\n ret.add(new ItemStack(this, 1, metadata % 4));\n return ret;\n}\n"
|
"public boolean addFetish(Fetish fetish) {\n if (fetishes.contains(fetish)) {\n return false;\n }\n fetishes.add(fetish);\n applyFetishGainEffects(fetish);\n return true;\n}\n"
|
"public LifelineCategories[] getLifelineCategories() {\n return Arrays.copyOf(lifelineCategories, lifelineCategories.length);\n}\n"
|
"public void resolveTypesGenerate(MarkerList markers, IContext context) {\n final ClassBody body = this.theClass.getBody();\n final IType classType = this.theClass.getClassType();\n final IType arrayType = new ArrayType(classType, Mutability.IMMUTABLE);\n this.initValuesField(body, arrayType);\n this.ini... |
"public void configure(ActionsManager manager) {\n NMAction category = manager.getActionFor(\"String_Node_Str\");\n if (category == null) {\n category = new MDActionsCategory(\"String_Node_Str\", \"String_Node_Str\");\n }\n ((ActionsCategory) category).setNested(true);\n manager.addCategory((Actio... |
"public boolean isCanceled() {\n return this.isCanceled || Thread.currentThread().isInterrupted();\n}\n"
|
"private void create(String dirName, String managerName) throws IOException, DataException {\n documentObjectMap = new HashMap();\n if (!new File(dirName).exists()) {\n new File(dirName).mkdirs();\n }\n objectAccessFile = new BufferedRandomAccessFile(objectFile, \"String_Node_Str\", 1024);\n objec... |
"public void deleteApp(HttpRequest request, HttpResponder responder, final String appId) {\n appLifecycleHttpHandler.deleteApp(RESTMigrationUtils.rewriteV2RequestToV3(request), responder, Constants.DEFAULT_NAMESPACE, appId);\n}\n"
|
"public static void main(String[] args) {\n try {\n URL audioFileURL;\n if (args.length > 0) {\n audioFileURL = new File(args[0]).toURI().toURL();\n } else {\n audioFileURL = new File(\"String_Node_Str\").toURI().toURL();\n }\n URL configURL = new File(\"Strin... |
"protected void synchronize(float height) {\n XlsContainer rowContainer = getCurrentContainer();\n ContainerSizeInfo rowSizeInfo = rowContainer.getSizeInfo();\n int startCoordinate = rowSizeInfo.getStartCoordinate();\n int endCoordinate = rowSizeInfo.getEndCoordinate();\n int startColumnIndex = axis.getC... |
"public void onAnimalSpawn(final CreatureSpawnEvent e) {\n if (DEBUG) {\n plugin.getLogger().info(\"String_Node_Str\" + e.getEventName());\n plugin.getLogger().info(e.getSpawnReason().toString());\n plugin.getLogger().info(e.getEntityType().toString());\n }\n if (!(e.getEntity() instanceof... |
"public static void levelUp(CommandContext args, Player player, HumanNPC npc) {\n if (EconomyHandler.useEconomy()) {\n HealerNPC healer = npc.getToggleable(\"String_Node_Str\");\n int level = healer.getLevel();\n int levelsUp = 1;\n if (args.argsLength() == 2 && StringUtils.isNumber(args.... |
"private static void fillMapsWithChanges(Map<String, IParamDescriptionPO> oldParamsMap, List<Parameter> params, Map<IParamDescriptionPO, String> paramsToRename, Map<IParamDescriptionPO, String> paramsToChangeUsage, Map<IParamDescriptionPO, Parameter> paramsToUpdate) {\n for (Parameter param : params) {\n IPar... |
"public boolean onChat(Player player, String message) {\n String temp2 = \"String_Node_Str\" + player.getColor() + player.getName() + Colors.White + \"String_Node_Str\";\n String adminchat = Colors.DarkPurple + \"String_Node_Str\" + player.getColor() + player.getName() + Colors.DarkPurple + \"String_Node_Str\" + ... |
"public void testLookup() throws Exception {\n addDatasetInstance(KeyValueTable.class.getName(), \"String_Node_Str\");\n DataSetManager<KeyValueTable> lookupTable = getDataset(\"String_Node_Str\");\n lookupTable.get().write(\"String_Node_Str\".getBytes(Charsets.UTF_8), \"String_Node_Str\".getBytes(Charsets.UTF... |
"public void applyEffects() {\n if (Sex.isDom(Main.game.getPlayer())) {\n Sex.setSexManager(new SMChair(Util.newHashMapOfValues(new Value<>(Main.game.getPlayer(), SexPositionSlot.CHAIR_BOTTOM)), Util.newHashMapOfValues(new Value<>(Sex.getActivePartner(), SexPositionSlot.CHAIR_TOP))));\n } else {\n S... |
"public void setBackground(Drawable background) {\n this.background = background;\n}\n"
|
"public void open() throws Exception {\n if (getFile() == null) {\n throw new IllegalStateException(\"String_Node_Str\" + getTitle() + \"String_Node_Str\");\n }\n String filename = getFile().getAbsolutePath();\n URL schematicURL = new URL(\"String_Node_Str\", null, filename);\n MoMLParser parser =... |
"public boolean stillLegal(Ability source, Game game) {\n int illegalCount = 0;\n for (Target target : this) {\n if (!target.isLegal(source, game)) {\n illegalCount++;\n }\n }\n return this.size() == illegalCount;\n}\n"
|
"public void updateChildCount(Object element, int currentChildCount) {\n int length = 0;\n if (element instanceof ATreeNode) {\n ATreeNode node = (ATreeNode) element;\n length = node.getChildren().length;\n } else if (element == elements) {\n length = elements.length;\n }\n if (lengt... |
"private static void insertColumn(UIColumnContainer selectedColumn, boolean isInsertAfter) throws Exception {\n UIContainer uiParent = selectedColumn.getParent();\n UIColumnContainer uiNewColumn = uiParent.addChild(UIColumnContainer.class, null, null);\n uiNewColumn.setTemplate(selectedColumn.getTemplate());\n... |
"public RpcClientResult getTxByHash(String hash) {\n if (StringUtils.isBlank(hash)) {\n return Result.getFailed(LedgerErrorCode.NULL_PARAMETER).toRpcClientResult();\n }\n if (!NulsDigestData.validHash(hash)) {\n return Result.getFailed(LedgerErrorCode.PARAMETER_ERROR).toRpcClientResult();\n }\... |
"protected void applyDrawProjection(DrawContext dc, OGLStackHandler ogsh) {\n boolean loaded = false;\n if (dc.getView() instanceof StereoView && ((StereoView) dc.getView()).isStereo()) {\n StereoView stereo = (StereoView) dc.getView();\n double near = stereo.getEyePoint().getLength3();\n dou... |
"public int readPixel(int x, int y, int band) {\n TIFFImageReadParam t = new TIFFImageReadParam();\n Rectangle rect = new Rectangle(x, y, 1, 1);\n rect = rect.intersection(bounds);\n t.setSourceRegion(rect);\n TIFF tiff = getImage(band);\n try {\n int img = tiff.getReader().read(0, t).getRaster... |
"protected void checkFeatureDeleteConflict(Comparison comparison, Diff diff, Iterable<Diff> candidates) {\n final Object deletedValue;\n final EStructuralFeature feature;\n if (diff instanceof ReferenceChange) {\n deletedValue = ((ReferenceChange) diff).getValue();\n feature = ((ReferenceChange) ... |
"public void flip(final int rangeStart, final int rangeEnd) {\n if (rangeStart >= rangeEnd)\n return;\n final int hbStart = BufferUtil.toIntUnsigned(BufferUtil.highbits(rangeStart));\n final int lbStart = BufferUtil.toIntUnsigned(BufferUtil.lowbits(rangeStart));\n final int hbLast = BufferUtil.toIntU... |
"public void lock(Object key) {\n checkInputObject(key);\n MLock mlock = ThreadContext.get().getMLock();\n mlock.lock(name, key, -1);\n}\n"
|
"public void onPageStarted(WebView view, String url, Bitmap favicon) {\n Log.v(\"String_Node_Str\", \"String_Node_Str\" + url + \"String_Node_Str\");\n int start = url.indexOf(FRAGMENT);\n if (start > -1) {\n String accessToken = url.substring(start + fragment.length(), url.length());\n Log.v(\"S... |
"public synchronized void messageReceived(LCM lcm, String channel, DataInputStream dins) {\n try {\n byte[] data = new byte[dins.available()];\n dins.readFully(data);\n messages.addLast(new Message(channel, data));\n queue_data_size += data.length;\n while (queue_data_size > max_qu... |
"public void init() throws Exception {\n FileSystem.deleteDirectory(new File(_node1Log));\n FileSystem.deleteDirectory(new File(_node2Log));\n FileSystem.deleteDirectory(new File(_node3Log));\n _node1 = new ServerDispatcher(new HowlLogger(_node1Log), Listener.NULL_LISTENER);\n _node2 = new ServerDispatch... |
"private static String getFilePath(URL url) {\n String path = url.getFile();\n return decode(path);\n}\n"
|
"public void setImageUrl(String imageUrl, int hiResWidth, boolean isPrivate, int position) {\n int loResWidth = (int) (hiResWidth * 0.10f);\n if (isPrivate) {\n mLoResImageUrl = ReaderUtils.getPrivateImageForDisplay(imageUrl, loResWidth, 0);\n mHiResImageUrl = ReaderUtils.getPrivateImageForDisplay(i... |
"protected void getHistogram(Instances instances, List<IntDoublePair> pairs, List<Double> uniqueValues, double w, double s, List<DoublePair> histogram) {\n if (pairs.size() > 0) {\n double lastValue = pairs.get(0).v2;\n double totalWeight = instances.get(pairs.get(0).v1).getWeight();\n double su... |
"protected void okPressed() {\n try {\n inputHandle.setURI(null);\n inputHandle.setTargetBookmark(null);\n inputHandle.setTargetWindow(null);\n inputHandle.setReportName(null);\n inputHandle.setFormatType(null);\n inputHandle.getMember(Action.PARAM_BINDINGS_MEMBER).setValue(... |
"public void getFlowletInstances(HttpRequest request, HttpResponder responder, String namespaceId, String appId, String flowId, String flowletId) {\n try {\n int count = store.getFlowletInstances(Id.Program.from(namespaceId, appId, ProgramType.FLOW, flowId), flowletId);\n responder.sendJson(HttpRespons... |
"public boolean apply(Game game, Ability source) {\n Player player = game.getPlayer(source.getControllerId());\n if (player != null) {\n Choice typeChoice = new ChoiceImpl(true);\n typeChoice.setMessage(\"String_Node_Str\");\n typeChoice.setChoices(CardRepository.instance.getCreatureTypes());... |
"private void doGetPublicFile(HttpServletRequest request, HttpServletResponse response, TreeLogger logger, String partialPath, String moduleName) throws IOException {\n String msg = \"String_Node_Str\" + partialPath + \"String_Node_Str\" + moduleName + \"String_Node_Str\";\n logger = logger.branch(TreeLogger.TRAC... |
"public void autoBondWhenExiting(BleDeviceState... states) {\n autoBond_onStateExit = autoBond_onStateExit != null ? autoBond_onStateExit : 0x0;\n for (int i = 0; i < states.length; i++) {\n autoBond_stateExit |= states[i].bit();\n }\n}\n"
|
"public void registerSubscriber(boolean bootstrap, final Subscriber subscriber) throws AssetNotFoundException {\n if (hub.outBytesLock().isHeldByCurrentThread())\n throw new IllegalStateException(\"String_Node_Str\");\n final AbstractAsyncSubscription asyncSubscription = new AbstractAsyncSubscription(hub, ... |
"public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {\n HttpServletResponse httpServletResponse = (HttpServletResponse) servletResponse;\n if (!excludes.contains(httpServletRequest.getRequestURI().substring(contextPath... |
"public Object execute(ExecutionEvent event) throws ExecutionException {\n Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();\n wizard = new GenerateYAMLWizard();\n WizardDialog dialog = new WizardDialog(shell, wizard);\n dialog.open();\n ((DataComponent) launcher.getForm().getComponen... |
"public void run() {\n if (!alive) {\n return;\n }\n final long now = Clock.currentTimeMillis();\n for (ClientConnection connection : connections.values()) {\n if (now - connection.lastReadTimeMillis() > heartBeatTimeout) {\n if (connection.isHeartBeating()) {\n LOGGE... |
"public void testMatchExact() {\n final CronDefinition cronDefinition = CronDefinitionBuilder.instanceDefinitionFor(QUARTZ);\n final CronParser parser = new CronParser(cronDefinition);\n final Cron quartzCron = parser.parse(\"String_Node_Str\");\n quartzCron.validate();\n ZonedDateTime zdt = ZonedDateTim... |
"private void addFirmwareHandler() throws Exception {\n if (this.mgdGateway != null) {\n GatewayFirmwareHandlerSample fwHandler = new GatewayFirmwareHandlerSample();\n fwHandler.addDeviceInterface(ARDUINO_DEVICE_ID, arduino);\n fwHandler.setGateway(this.mgdGateway);\n mgdGateway.addFirmwa... |
"public void readClass(Class listAs, Class c) {\n if (readClasses.contains(c))\n return;\n readClasses.add(c);\n try {\n for (Method m : c.getMethods()) {\n MENetworkEventSubscribe s = m.getAnnotation(MENetworkEventSubscribe.class);\n if (s != null) {\n Class[... |
"public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain chain) throws IOException, ServletException {\n HttpServletRequest request = (HttpServletRequest) arg0;\n HttpServletResponse response = (HttpServletResponse) arg1;\n String tempPass = null;\n tempPass = request.getHeader(\"String_... |
"public static void install(LuaState vm) {\n LTable debug = new LTable();\n for (int i = 1; i < NAMES.length; i++) debug.put(NAMES[i], new DebugLib(i));\n vm._G.put(\"String_Node_Str\", debug);\n PackageLib.setIsLoaded(\"String_Node_Str\", debug);\n}\n"
|
"private void updateBounds() {\n int height = mHeight;\n int width = mWidth;\n if (height > getRefreshLayout().getFinalOffset()) {\n height = getRefreshLayout().getFinalOffset();\n }\n final float percent = height / (float) getRefreshLayout().getFinalOffset();\n int offsetX = (int) (width / 2 *... |
"public Set<Content> getChangedContent(Owner owner, Map<String, ContentData> contentCache) {\n Set<Content> changed = Util.newSet();\n log.debug(\"String_Node_Str\", contentCache.size());\n for (String cid : contentCache.keySet()) {\n ContentData incoming = contentCache.get(cid);\n Content existi... |
"public void generateCPUScript() {\n String difficulty = engineContext.getDifficulty();\n this.cpuCommands = new ArrayList<>();\n boolean choose = getRandomBoolean();\n switch(difficulty) {\n case \"String_Node_Str\":\n {\n if (choose) {\n ArrayList<Check>... |
"public void registerShiori(int position) {\n try {\n if (position == 0) {\n Toast.makeText(this, \"String_Node_Str\", Toast.LENGTH_SHORT).show();\n } else {\n HistoryManager man = new HistoryManager();\n man.Load();\n FutabaThreadContent thread = new FutabaT... |
"public boolean canRead(final String contentType, final Class<? extends IRepositoryFileData> clazz) {\n return IRepositoryFileData.SAMPLE_CONTENT_TYPE.equals(contentType) && clazz.isAssignableFrom(SampleRepositoryFileData.class);\n}\n"
|
"public void testCustomSchemaAndAnalyzerFailure() throws Exception {\n try (Connection conn = DriverManager.getConnection(JDBC_POSTGRESQL_URL + \"String_Node_Str\")) {\n conn.setAutoCommit(true);\n PreparedStatement stmt = conn.prepareStatement(\"String_Node_Str\");\n try {\n stmt.exe... |
"public Assignment upgradeAssignment(Repository repository, Assignment assignment) {\n Preconditions.checkNotNull(assignment, \"String_Node_Str\");\n String binary = assignment.getBinary();\n if (binaryVersion != null) {\n binary = repository.binaryUpgrade(binary, binaryVersion);\n Preconditions.... |
"public void handle(OreRegisterEvent event) {\n EnumOre ore = EnumOre.valueOf(event.Name);\n switch(ore) {\n case stoneGraniteBlack:\n DecomposerRecipe.add(new DecomposerRecipe(event.Ore, new Chemical[] { new Molecule(EnumMolecule.siliconDioxide, 20), new Molecule(EnumMolecule.plagioclaseAlbite,... |
"public void run() {\n try {\n Thread.sleep(fire_duration);\n } catch (InterruptedException e) {\n System.out.println(e.getMessage());\n }\n for (Integer i : add_fire) {\n fire.remove(i);\n }\n}\n"
|
"protected Document replaceLastSchemaUpdateDate(Document doc) {\n NodeList elements = doc.getElementsByTagName(LAST_SCHEMA_UPDATE_NODE_NAME);\n if (elements.getLength() == 0) {\n return doc;\n }\n Node lastSchemaUpdateNode = elements.item(0);\n lastSchemaUpdateNode.getFirstChild().setNodeValue(LAS... |
"public boolean isEnum() {\n return valueType == ValueType.ENUM || valueType == ValueType.COLLECTION_ENUM;\n}\n"
|
"protected void onPostExecute(final Object result) {\n if (mDialog != null) {\n mDialog.cancel();\n }\n if (!mException) {\n if (mCard != null && StringUtils.isNotBlank(mCard.getCardNumber())) {\n if (!mList.contains(mCard)) {\n mList.add(mCard);\n mAdapte... |
"public View getView(int position, View convertView, Context c) {\n ViewHolder holder = null;\n if (convertView == null) {\n holder = new ViewHolder();\n convertView = LayoutInflater.from(c).inflate(R.layout.list_item_barchart, null);\n holder.chart = (BarChart) convertView.findViewById(R.id.... |
"public static void addPathIdtoServiceFunctionForwarder(ServiceFunctionPath serviceFunctionPath) {\n LOG.debug(\"String_Node_Str\", Thread.currentThread().getStackTrace()[1]);\n InstanceIdentifier<ServiceFunctionForwarders> sffsIID;\n sffsIID = InstanceIdentifier.builder(ServiceFunctionForwarders.class).build(... |
"public void close() throws BirtException {\n TableArea table = getTableArea();\n table.addRow(this);\n updateBackgroundImage();\n checkPageBreak();\n parent.update(this);\n finished = true;\n}\n"
|
"public boolean checkSwing(Player player, Block block) {\n return !player.getInventory().getItemInHand().containsEnchantment(Enchantment.DIG_SPEED) && !Utilities.isInstantBreak(block.getType()) && !justAnimated(player) && !Utilities.isUsingMcMMOAbility(player) && !(player.getInventory().getItemInHand().getType() == ... |
"public static void main(String[] args) throws Exception {\n ContinuousProblem problem;\n Algorithm algorithm;\n MutationOperator mutation;\n problem = new Kursawe();\n Archive archive = new CrowdingDistanceArchive(100);\n mutation = new PolynomialMutation.Builder().setDistributionIndex(20.0).setProba... |
"protected View buildView() {\n super.buildView();\n loiterCCW = (CheckBox) view.findViewById(R.string.loiter_ccw);\n if (item.getRadius() < 0) {\n loiterCCW.setChecked(true);\n } else {\n loiterCCW.setChecked(false);\n }\n loiterCCW.setOnCheckedChangeListener(this);\n altitudeSeekBar... |
"public static void sendApplicationInactivatedEvent(String appId) {\n if (log.isInfoEnabled()) {\n log.info(\"String_Node_Str\" + appId);\n }\n ApplicationInactivatedEvent applicationInActivatedEvent = new ApplicationInactivatedEvent(appId, instanceId);\n publishEvent(applicationInActivatedEvent);\n}... |
"protected void action() {\n ShortPoint2D position = movable.getPos();\n if (!super.isValidPosition(position)) {\n if (searchesCounter > 120) {\n movable.kill();\n return;\n }\n if (super.preSearchPath(true, position.x, position.y, Constants.MOVABLE_FLEEING_DIJKSTRA_RADI... |
"public void setNavigation(List<PageNavigation> navs) throws Exception {\n navigations = navs;\n selectedPaths_ = new ArrayList<PageNode>();\n if (navigations == null || navigations.size() < 1)\n return;\n PageNavigation pNav = null;\n for (PageNavigation nav : navs) {\n if (nav.getNodes() ... |
"public static Profile load(File file, ProgressHandler handler) {\n File cachefile = getCacheFile(file);\n if (cachefile.lastModified() >= file.lastModified() && !Settings.getProperty(\"String_Node_Str\", false)) {\n handler.setProgress(\"String_Node_Str\", -1);\n try (ObjectInputStream ois = new Ob... |
"public List<GraphSourceItem> toSource(SourceGeneratorLocalData localData, SourceGenerator generator) throws CompilationException {\n List<GraphSourceItem> ret = new ArrayList<>();\n ActionSourceGenerator asGenerator = (ActionSourceGenerator) generator;\n HashMap<String, Integer> registerVars = asGenerator.get... |
"public static Method resolveHandler(Class<?> handlerClz, String command) {\n synchronized (s_handlerCache) {\n Map<String, Method> handlerMap = getAndSetHandlerMap(handlerClz);\n Method handler = handlerMap.get(command);\n if (handler != null)\n return handler;\n for (Method m... |
"public static void logTimingMessage(String msg) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"String_Node_Str\");\n RestLogging.restLogger.log(Level.INFO, RestLogging.TIMESTAMP_MESSAGE, new Object[] { sdf.format(new Date()), msg });\n}\n"
|
"private static Class resolveRClass(String packageName) {\n do {\n try {\n return Class.forName(packageName + \"String_Node_Str\");\n } catch (ClassNotFoundException e) {\n packageName = packageName.contains(\"String_Node_Str\") ? packageName.substring(0, packageName.lastIndexOf('... |
"public void handleMessage(Message msg) {\n switch(msg.what) {\n case RESTART_PREVIEW:\n {\n restartPreview();\n break;\n }\n case STORE_IMAGE_DONE:\n {\n if (!mIsImageCaptureIntent) {\n setLastPictureThumb... |
"void swaggerResourceMigration() throws APIMigrationException {\n log.info(\"String_Node_Str\" + Constants.VERSION_1_10 + \"String_Node_Str\");\n for (Tenant tenant : getTenantsArray()) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + tenant.getId() + '(' + tenant.getDomain() + ... |
"public static ArrayList<Config> getConfigs() {\n String reqUrl = getRequestUrl(null, CONFIG_PAGE);\n String respStr = RequestHelper.doRequestPost(reqUrl, null);\n try {\n return ResponseParser.parseConfigs(respStr);\n } catch (JSONException e) {\n LogUtils.logE(e.getMessage());\n } catch (... |
"public void widgetSelected(SelectionEvent e) {\n TreeItem item = (TreeItem) e.item;\n if (item != null) {\n if (item.getData() instanceof ReportDesignHandle) {\n String reportname = item.getText().substring(0, item.getText().lastIndexOf(\"String_Node_Str\"));\n description.setText(De... |
"private static int compareByPriorityAndName(int p1, Name<?> n1, int p2, Name<?> n2) {\n int priorityComparison = Integer.compare(p1, p2);\n if (priorityComparison == 0) {\n return n1.asId().compareTo(n2.asId());\n } else {\n return c;\n }\n}\n"
|
"public static void trample(Level level, int pos, Char ch) {\n Level.set(pos, Terrain.GRASS);\n GameScene.updateMap(pos);\n if (!Dungeon.isChallenged(Challenges.NO_HERBALISM)) {\n int naturalismLevel = 0;\n if (ch != null) {\n SandalsOfNature.Naturalism naturalism = ch.buff(SandalsOfNa... |
"private void submitBinaryAnnotation(final Span span, final Endpoint endPoint, final String key, final ByteBuffer value, final AnnotationType annotationType) {\n Validate.notBlank(key);\n Validate.notNull(value);\n final BinaryAnnotation binaryAnnotation = new BinaryAnnotation();\n binaryAnnotation.setKey(k... |
"public static String getRequestURL(HttpServletRequest req) {\n String url = req.getRequestURL().toString();\n if (url.indexOf('?') < 0 && req.getQueryString() != null && req.getQueryString().length() > 0) {\n url = url + \"String_Node_Str\" + req.getQueryString();\n }\n if (url.indexOf(\"String_Node... |
"private AccessTokenResult clientCredentialsAuthenticationRequest(HttpServletRequest request, HttpServletResponse response) {\n DefaultBasicApiAuthenticationRequest authenticationRequest = new DefaultBasicApiAuthenticationRequest(new DefaultHttpServletRequestWrapper(request));\n OAuthGrantRequestAuthenticationRes... |
"public Object3dContainer getParsedObject() {\n Log.d(Min3d.TAG, \"String_Node_Str\");\n Object3dContainer obj = new Object3dContainer(0, 0);\n int numObjects = parseObjects.size();\n Bitmap texture = null;\n if (textureAtlas.hasBitmaps()) {\n textureAtlas.generate();\n texture = textureAtl... |
"private Map<SAMReadGroupRecord, List<FastqWriter>> getWriters(final List<SAMReadGroupRecord> samReadGroupRecords, final FastqWriterFactory factory) {\n final Map<SAMReadGroupRecord, List<FastqWriter>> writerMap = new HashMap<SAMReadGroupRecord, List<FastqWriter>>();\n for (final SAMReadGroupRecord rg : samReadGr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.