content stringlengths 40 137k |
|---|
"private static void resolve(EdmDataServices metadata) {\n final Map<String, EdmEntityType> allEetsByFQName = Enumerable.create(metadata.getEntityTypes()).toMap(new Func1<EdmEntityType, String>() {\n public String apply(EdmEntityType input) {\n return input.getFQAliasName() != null ? input.getFQAli... |
"protected DAG createDAG(DAGConfiguration dagPlan) {\n DAG newDag = new DAGImpl(dagId, appAttemptID, conf, dagPlan, dispatcher.getEventHandler(), taskAttemptListener, jobTokenSecretManager, fsTokens, clock, currentUser.getShortUserName(), appSubmitTime, taskHeartbeatHandler, context, dagLocationHint);\n ((Running... |
"public static String getExpectedFileName(String label, String version) {\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(label.replace('#', '$'));\n stringBuffer.append(ResourceFilenameHelper.SEPARATOR);\n stringBuffer.append(version);\n return stringBuffer.toString();\n}\n"
|
"private void generateTypeId(JClassType x, JsStatements globalStmts) {\n int typeId = program.getTypeId(x);\n if (typeId >= 0) {\n JField typeIdField = program.getSpecialField(\"String_Node_Str\");\n JsName typeIdName = getName(typeIdField);\n if (typeIdName == null) {\n return;\n ... |
"public void addSearchViewInMenuItem(Context context, MenuItem searchItem) {\n MenuItemCompat.setShowAsAction(searchItem, MenuItemCompat.SHOW_AS_ACTION_ALWAYS | MenuItemCompat.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW);\n searchView = new SearchView(context);\n MenuItemCompat.setActionView(searchItem, searchView);\n... |
"public void onBindViewHolder(PatientViewHolder holder, final int position) {\n final Patient patient = mItems.get(position);\n if (new VisitDAO().isPatientNowOnVisit(patient.getId())) {\n holder.mVisitStatusIcon.setImageBitmap(ImageUtils.decodeBitmapFromResource(mContext.getResources(), R.drawable.active_... |
"public void addEventListener(final String eventName, final LeoObject function) {\n switch(eventName.toLowerCase()) {\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(BombDisarmedEvent.class, new BombDisarmedListener() {\n public void onBombDisarm... |
"public void setValue(BindELContext ctx, Object value) {\n int idx = BindListitemRenderer.this.getRenderedIndex(listbox, nli.getIndex());\n ListModel<?> listmodel = listbox.getListModel();\n if (listmodel instanceof ListModelArray) {\n ((ListModelArray<Object>) listmodel).set(((ListModelArray<Object>) l... |
"private QBUser getUserWithAvatar(QBUser user) {\n String avatarUrl = context.getString(R.string.url_to_facebook_avatar, user.getFacebookId());\n user.setCustomData(Utils.customDataToString(getUserCustomData(avatarUrl)));\n return user;\n}\n"
|
"public String generateWrapupCode() throws IllegalActionException {\n StringBuffer code = new StringBuffer();\n code.append(getCodeGenerator().comment(1, \"String_Node_Str\"));\n Iterator<?> actors = ((CompositeActor) _director.getContainer()).deepEntityList().iterator();\n while (actors.hasNext()) {\n ... |
"public DeleteSnapshotResponseType delete(final DeleteSnapshotType request) throws EucalyptusCloudException {\n final DeleteSnapshotResponseType reply = (DeleteSnapshotResponseType) request.getReply();\n final Context ctx = Contexts.lookup();\n final String snapshotId = normalizeSnapshotIdentifier(request.getS... |
"public Object getValueFor(ImmutableTreeNode node) {\n Node graphNode = node.getNode();\n if (graphNode.getId() == -1) {\n return null;\n }\n Attributes row = graphNode.getNodeData().getAttributes();\n Object value = row.getValue(column.getIndex());\n if (useSparklines && (AttributeUtils.getDef... |
"private void drainKey(Tuple retVal, int listIdx, R targetVal) {\n while (generatorList.get(listIdx).hasNext()) {\n if (generatorList.get(listIdx).peek().getSecond().equals(targetVal)) {\n nextList[listIdx] = Slot.of(generatorList.get(listIdx).next());\n ((List<Object>) retVal.get(listId... |
"public void proximityTrigger(PlayerMoveEvent event) {\n if (!event.getTo().getBlock().equals(event.getFrom().getBlock())) {\n Location toBlockLocation = event.getTo().getBlock().getLocation();\n Iterator<dNPC> it = DenizenAPI.getCurrentInstance().getNPCRegistry().getSpawnedNPCs().iterator();\n ... |
"protected void onResume() {\n super.onResume();\n if (mAdapter == null || mAdapter.isEmpty()) {\n List<ImgurNotification> notifications = app.getSql().getNotifications();\n if (!notifications.isEmpty()) {\n LogUtil.v(TAG, \"String_Node_Str\");\n mAdapter = new NotificationAdap... |
"public void testCreateVMFromSpecWithTopology6() {\n final int id = random.nextInt(65534);\n final String name = \"String_Node_Str\";\n final int cpus = 12;\n final int minSpeed = 1024;\n final int maxSpeed = 2048;\n final int minRam = 256 * 1024;\n final int maxRam = 512 * 1024;\n final String ... |
"public void messageReceived(Transport.Packet aPacket) {\n if ((_common.testState(Common.FSMStates.OUT_OF_DATE)) || (_common.testState(Common.FSMStates.SHUTDOWN)))\n return;\n PaxosMessage myMessage = aPacket.getMessage();\n long mySeqNum = myMessage.getSeqNum();\n Writer myWriter = new LiveWriter();... |
"private void startBlockText(int startX, int startY, int width, int height, BlockTextArea text) {\n if (needShape) {\n writer.openTag(\"String_Node_Str\");\n writer.openTag(\"String_Node_Str\");\n writer.openTag(\"String_Node_Str\");\n int shapeId = canvas.getPresentation().getNextShapeId... |
"public void run() {\n try {\n if (event != null) {\n if (Event.BATTERY_LOW.equals(event.getName())) {\n PreyLogger.d(\"String_Node_Str\" + event.getName());\n if (isValid()) {\n String jsonString = \"String_Node_Str\";\n List<JSON... |
"private void renderPathwayPool(final GL gl) {\n ArrayList<Integer> alMagnificationFactor = new ArrayList<Integer>();\n for (int i = 0; i < alSetData.get(0).getStorageByDimAndIndex(0, 0).getSize(StorageType.INT); i++) {\n alMagnificationFactor.add(0);\n }\n IStorage tmpStorage = alSetData.get(0).getS... |
"public boolean remove(int key, int value) {\n int pos = (key & capacityMask) << 3;\n int pos0 = -1;\n boolean found = false;\n for (int i = 0; i <= capacityMask; i++) {\n int key2 = bytes.readInt(pos + KEY);\n if (key2 == key) {\n int value2 = bytes.readInt(pos + VALUE);\n ... |
"public void trackScreenView(String name, String id, List<SchemaPayload> context, long timestamp) {\n Preconditions.checkArgument(name != null || id != null);\n TrackerPayload trackerPayload = new TrackerPayload();\n trackerPayload.add(Parameter.SV_NAME, name);\n trackerPayload.add(Parameter.SV_ID, id);\n ... |
"public void testUnknownUnits() {\n given().param(\"String_Node_Str\", getParameter(\"String_Node_Str\")).param(\"String_Node_Str\", getParameter(\"String_Node_Str\")).param(\"String_Node_Str\", \"String_Node_Str\").param(\"String_Node_Str\", \"String_Node_Str\").param(\"String_Node_Str\", \"String_Node_Str\").param... |
"public void dispose() {\n super.dispose();\n if (this.treeViewer != null) {\n this.treeViewer.removePropertyChangeListener(this);\n }\n if (dataFilterComp != null) {\n this.dataFilterComp.removePropertyChangeListener(this);\n }\n MapDBManager.getInstance().closeDB(getAnalysis());\n}\n"
|
"public void findNTRWSets(SootMethod method) {\n if (methodToNTReadSet.containsKey(method) && methodToNTWriteSet.containsKey(method))\n return;\n MethodRWSet read = new MethodRWSet();\n MethodRWSet write = new MethodRWSet();\n for (Iterator sIt = method.retrieveActiveBody().getUnits().iterator(); sIt... |
"public synchronized void empty() {\n timestamps.clear();\n values.clear();\n lowestValue = 1999;\n highestValue = -1999;\n}\n"
|
"public String[] next() {\n initParser();\n String[] result = next;\n next = parser.parseNext();\n if (next != null && result != null && result.length != next.length) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n if (cleansing) {\n if (result.length != datatypes.length)... |
"protected void executeGitCommand(final String... args) throws CommandLineException, MojoFailureException {\n executeCommand(cmdGit, false, false, args);\n}\n"
|
"public Map<String, Object> executeImpl(WebScriptRequest req, Status status, Cache cache) {\n String reqContentAsString;\n try {\n reqContentAsString = req.getContent().getContent();\n } catch (IOException iox) {\n throw new WebScriptException(Status.STATUS_BAD_REQUEST, \"String_Node_Str\", iox);... |
"public void initialize(InputSplit genericSplit, TaskAttemptContext context) throws IOException {\n this.splitIndex = 0;\n this.context = context;\n this.fileSplits = ((CombineInputSplit) genericSplit).getFileSplits();\n initializeOne(this.fileSplits[this.splitIndex++], context);\n for (FileSplit fileSpl... |
"public static void addHighlandsBiomes() {\n for (int i = 0; i < HIGHLANDS_CATACOMBS_BIOMES.length; i++) {\n if (HIGHLANDS_CATACOMBS_BIOMES[i] != null) {\n CATACOMBS_BIOMES.add(HIGHLANDS_CATACOMBS_BIOMES[i].biomeID);\n } else {\n unNamedBiomeError(HIGHLANDS_NAME, i);\n }\n ... |
"public void send(byte[] data, int start, int length) {\n websocketSession.getAsyncRemote().sendBinary(ByteBuffer.wrap(data, start, length));\n}\n"
|
"private void defineDataSourceDataSet(QueryDefinition queryDefn) throws AdapterException, BirtException {\n String dataSetName = queryDefn.getDataSetName();\n List l = this.moduleHandle.getAllDataSets();\n DataSetHandle handle = null;\n for (int i = 0; i < l.size(); i++) {\n if (((DataSetHandle) l.ge... |
"public void openColumnsSelectionDialog() {\n ColumnIndicator[] columnIndicator = treeViewer.getColumnIndicator();\n ColumnsSelectionDialog dialog = new ColumnsSelectionDialog(null, \"String_Node_Str\", columnIndicator, \"String_Node_Str\");\n if (dialog.open() == Window.OK) {\n Object[] columns = dialo... |
"private List<PropertyContainer> constructPath(boolean includeNodes, boolean includeRels) {\n LinkedList<PropertyContainer> path = new LinkedList<PropertyContainer>();\n Relationship rel = firstSet.get(matchNode);\n Node currentNode = matchNode;\n while (rel != NULL_REL && rel != null) {\n if (includ... |
"public void verify_A$String$OAuthConsumer$HttpMethod$SignatureMethod_AdditionalParameters() throws Exception {\n String authorizationHeader = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n OAuthConsumer co... |
"public void pageActivated() {\n getContainer().setMessage(Messages.getString(\"String_Node_Str\"), IMessageProvider.NONE);\n if (modelChanged) {\n modelChanged = false;\n new UIJob(\"String_Node_Str\") {\n public IStatus runInUIThread(IProgressMonitor monitor) {\n updateRe... |
"public boolean performFinish() {\n if (!canFinish())\n return false;\n if (dataSetPage != null && dataSetPage instanceof JointDataSetPage) {\n if (useTransaction) {\n Utility.getCommandStack().startTrans(CREATE_DATA_SET_TRANS_NAME);\n }\n DataSetHandle joinDataSetHandle = (... |
"protected IDataRowExpressionEvaluator createCubeEvaluator(CubeHandle cube, final Chart cm, List<String> columnExpression) throws BirtException {\n IBaseCubeQueryDefinition qd = null;\n ReportItemHandle referredHandle = ChartReportItemUtil.getReportItemReference(itemHandle);\n boolean isCrosstabReference = ref... |
"protected Object[] toArray(final Object[] arg0) {\n eagerlyLoadDataCollection();\n return dataCollection == null ? new Object[0] : ((Collection) dataCollection).toArray(arg0);\n}\n"
|
"private void addNodeTo(int node, Community to) {\n to.add(new Integer(node));\n nodeCommunities[node] = to;\n for (ModEdge e : topology[node]) {\n int neighbor = e.target;\n Float neighEdgesTo = nodeConnectionsWeight[neighbor].get(to);\n if (neighEdgesTo == null) {\n nodeConnec... |
"public static boolean hasMcMMO() {\n return mcMMOPlugin != null && mcMMOPlugin.isEnabled();\n}\n"
|
"public static Object convertValue(Object value, ParameterType type) {\n switch(type) {\n case BOOLEAN:\n if (value instanceof Boolean)\n return value;\n else if (value instanceof Double)\n return doubleToBoolean((Double) value);\n else if (value ... |
"private void populateTopicsConfig(final Ini conf) {\n final Set<String> set = conf.keySet();\n final Set<String> newStatTopics = new TreeSet<String>();\n final List<String> newTopics = new ArrayList<String>();\n final ConcurrentHashMap<String, TopicConfig> newTopicConfigMap = new ConcurrentHashMap<String, ... |
"public static void removeIncorrectCompNamePairs(INodePO node) {\n for (Object o : node.getUnmodifiableNodeList()) {\n if (o instanceof IExecTestCasePO) {\n IExecTestCasePO exec = (IExecTestCasePO) o;\n for (ICompNamesPairPO pair : new LinkedList<ICompNamesPairPO>(exec.getCompNamesPairs(... |
"double smem_lti_activate(long lti, boolean add_access, long num_edges) throws SQLException {\n long time_now;\n if (add_access) {\n time_now = this.smem_max_cycle++;\n if ((this.params.activation_mode.get() == DefaultSemanticMemoryParams.ActivationChoices.base) && (this.params.base_update.get() == ... |
"public static void saveChatMessage(Context context, MessageCache messageCache) {\n ContentValues values = new ContentValues();\n String body = messageCache.getMessage();\n values.put(MessageTable.Cols.ID, messageCache.getId());\n values.put(MessageTable.Cols.DIALOG_ID, messageCache.getDialogId());\n val... |
"public boolean isValid() {\n return getHandle().isLoaded();\n}\n"
|
"public void initialize(AbstractSession session) throws DescriptorException {\n if ((getReferenceClass() == null) && (getReferenceClassName() != null)) {\n if (!getReferenceClassName().equals(XMLConstants.UNKNOWN_OR_TRANSIENT_CLASS)) {\n setReferenceClass(session.getDatasourcePlatform().getConversi... |
"public Color findColor(SceneObject o, double d, Ray r, int recursion) {\n Color color, reflectColor, refractColor;\n color = reflectColor = refractColor = o.getMaterial().getColor();\n Vector intersection = r.getPoint(d);\n Vector normal = o.getNormal(intersection);\n double diffuse = o.getMaterial().ge... |
"public ScreenTransform concatenate(final ScreenTransform a) {\n final double cMinX = a.minX + minX / a.scaleX;\n final double cMaxX = (screenWidth - 1) / (a.scaleX * scaleX) + cMinX;\n final double cMinY = a.minY + minY / scaleY;\n final double cMaxY = (screenHeight - 1) / (a.scaleY * scaleY) + cMinY;\n ... |
"private void encodeQuery() {\n if (queryParams == null || queryParams.isEmpty())\n return;\n for (Map.Entry<String, List<String>> e : queryParams.entrySet()) {\n String name = encode(e.getKey(), UriComponent.Type.QUERY_PARAM);\n for (String value : e.getValue()) {\n if (query.leng... |
"protected void onHandleIntent(Intent intent) {\n PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);\n PowerManager.WakeLock wakelock = pm.newWakeLock(pm.PARTIAL_WAKE_LOCK, \"String_Node_Str\");\n wakelock.acquire();\n group = Integer.parseInt(intent.getStringExtra(\"String_Node_Str\"... |
"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 resourcePath = null;\n String deploymentPolicyDeployment = null... |
"public void closeJingleSession(String conferenceJid) {\n if (null == sessions || !sessions.containsKey(conferenceJid)) {\n return;\n JireconSession js = sessions.get(conferenceJid);\n sessions.remove(conferenceJid);\n js.terminateSession();\n}\n"
|
"public static Object convert(Object source, Class toTypeClass) throws BirtException {\n if (toTypeClass == DataType.getClass(DataType.ANY_TYPE))\n return source;\n if (toTypeClass == Integer.class)\n return toInteger(source);\n if (toTypeClass == BigDecimal.class)\n return toBigDecimal(so... |
"public Object evaluate(ScriptContext scriptContext, ICompiledScript compiledScript) throws BirtException {\n assert (compiledScript instanceof CompiledJavascript);\n try {\n Script script = ((CompiledJavascript) compiledScript).getCompiledScript();\n Object value = script.exec(context, getJSScope(s... |
"private static boolean isAdaptableTo(Class<?> fromType, Class<?> toType, boolean strict) {\n if (fromType.equals(toType)) {\n return true;\n }\n if (fromType.isPrimitive()) {\n Wrapper wfrom = Wrapper.forPrimitiveType(fromType);\n if (toType.isPrimitive()) {\n Wrapper wto = for... |
"public void setBackend(String backendName) throws PermissionBackendException {\n synchronized (this) {\n this.clearCache();\n this.backend = createBackend(backendName);\n }\n this.callEvent(PermissionSystemEvent.Action.BACKEND_CHANGED);\n}\n"
|
"public static OutputStream newBFOS(String name) {\n File file = new File(name);\n if (file != null) {\n try {\n FileOutputStream fos = new FileOutputStream(file);\n return fos;\n } catch (FileNotFoundException e) {\n ToolIO.out.println(\"String_Node_Str\");\n ... |
"public float getLighterFontWeight(float f) {\n int weight = ((int) ((f + 50) / 100)) * 100;\n switch(weight) {\n case 100:\n return 100;\n case 200:\n return 100;\n case 300:\n return 200;\n case 400:\n return 300;\n case 500:\n ... |
"private static void checkout(final BraintreeFragment fragment, final PayPalCheckout checkout, final boolean isBillingAgreement) {\n sBraintreeFragmentBroadcastReceiver.setFragment(fragment);\n BraintreeBroadcastManager.getInstance(fragment.getApplicationContext()).registerReceiver(sBraintreeFragmentBroadcastRece... |
"public void onCreate() {\n super.onCreate();\n if (BuildConfig.DEBUG) {\n StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build());\n StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().detectAll().penaltyLog().build());\n }\n updateLanguage();\n... |
"private String createPrimaryKeyStatement(final TableMetaData tableMetaData, final List<ColumnMetaData> primaryKeyColumns, int counter) {\n final String tableName = _caseConversionMode.convert(tableMetaData.getTableName());\n final StringBuilder builder = new StringBuilder(\"String_Node_Str\" + (\"String_Node_Str... |
"public ODataResponse createDebugResponse(final DebugInformation debugInfo) {\n try {\n final List<DebugTab> parts = createParts(debugInfo);\n ODataResponse response = new ODataResponse();\n final String contentTypeString;\n final InputStream body;\n if (requestedFormat == DebugFor... |
"public void init(Stage stage) throws ServiceException {\n this.stage = stage;\n scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER);\n scrollPane.setVbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED);\n double screenWidth = Screen.getPrimary().getBounds().getWidth();\n double screenHeight = Screen.... |
"public void destroy() {\n if (component instanceof Structural) {\n ((Structural) component).removeStructuralListener(structuralListner);\n }\n iconListener.dont();\n for (int i = currentList.size(); i > 0; --i) {\n final int index = i - 1;\n final JobTreeNode child = currentList.remove... |
"public Map<String, Tag> save(T entity) {\n Map<String, Tag> ret = super.save(entity);\n ret.put(\"String_Node_Str\", NbtSerialization.inventoryToTag(entity.getInventory().getContents()));\n Location bed = entity.getBedSpawnLocation();\n if (bed != null) {\n ret.put(\"String_Node_Str\", new IntTag(\"... |
"public void attachServicePolicy(String policyMap, String portProfile) throws CloudRuntimeException {\n String command = VsmCommand.getServicePolicy(policyMap, portProfile, true);\n if (command != null) {\n command = command.concat(SSH_NETCONF_TERMINATOR);\n parseOkReply(sendAndReceive(command));\n ... |
"private int calculateKZeroPoisson(double lambda) {\n final double threshold = 1d - this.significanceLevel;\n final PoissonDistribution distribution = new PoissonDistribution(lambda);\n final double v2 = 1d - distribution.probability(0);\n int counter = 1;\n double value = 0d;\n while (value < thresho... |
"public long nextSecureLong(long lower, long upper) {\n if (lower >= upper) {\n throw new NumberIsTooLargeException(LocalizedFormats.LOWER_BOUND_NOT_BELOW_UPPER_BOUND, lower, upper, false);\n }\n SecureRandom sec = getSecRan();\n double r = sec.nextDouble();\n double scaled = r * upper + (1.0 - r)... |
"private void postError(String json) {\n CloseableHttpClient httpClient = HttpClients.createDefault();\n HttpPost httpPost = new HttpPost(ERROR_REPORT_URL);\n httpPost.setEntity(new StringEntity(json, ContentType.APPLICATION_JSON));\n try {\n CloseableHttpClient httpClient = HttpClients.createDefault... |
"public String toLS() {\n StringBuffer ls = new StringBuffer();\n ls.append(\"String_Node_Str\");\n ls.append(\"String_Node_Str\" + jc.getClassName() + \"String_Node_Str\" + methodbcel.getName() + \"String_Node_Str\");\n ls.append(\"String_Node_Str\");\n for (Iterator iter = bbs.keySet().iterator(); iter... |
"protected void doReset() {\n if (this.manager != null) {\n this.manager.stop();\n }\n performanceTableOverview.setRedraw(false);\n for (final TableItem i : performanceTableOverview.getItems()) {\n i.dispose();\n }\n performancePerTargetTable.setRedraw(true);\n performancePerClassTabl... |
"public String getResourceType() {\n return this.vendor + \"String_Node_Str\" + this.type;\n}\n"
|
"public String onJsPrompt(String url, String message, String defaultValue) {\n if (mWebChromeClient == null) {\n return null;\n }\n JsResultReceiver result = new JsResultReceiver();\n Message prompt = obtainMessage(JS_DIALOG, result);\n prompt.getData().putString(\"String_Node_Str\", message);\n ... |
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n super.doGet(request, response);\n searchResultUsers = new ArrayList<User>();\n setPageAttributes();\n response.setContentType(\"String_Node_Str\");\n request.setAttribute(\"String_Node... |
"private static double degreeToRadian(final int degree) {\n return degree / 180.0d * Math.PI;\n}\n"
|
"private void setPomForHDLight(IProgressMonitor monitor) {\n if (ProcessUtils.isHDInsight()) {\n try {\n Model model = MODEL_MANAGER.readMavenModel(getPomFile());\n List<Plugin> plugins = new ArrayList<Plugin>(model.getBuild().getPlugins());\n out: for (Plugin plugin : plugins... |
"private synchronized void debugClassLoading(String name, String root) {\n Dictionary dict = backingBundle.getHeaders();\n String bname = dict.get(Constants.BUNDLE_NAME) + \"String_Node_Str\" + dict.get(Constants.BUNDLE_SYMBOLICNAME) + \"String_Node_Str\";\n log.debug(\"String_Node_Str\" + name + \"String_Node... |
"public CharSequence getFlyweightStrB(int col) {\n return rec.getFlyweightStrB(col);\n}\n"
|
"public static void main(String[] args) {\n IntensityFeatureScaleSpaceApp<ImageFloat32, ImageFloat32> app = new IntensityFeatureScaleSpaceApp<ImageFloat32, ImageFloat32>(ImageFloat32.class, ImageFloat32.class);\n ImageListManager manager = new ImageListManager();\n manager.add(\"String_Node_Str\", \"String_Nod... |
"public void debugf(String fmt, Object... args) {\n if (isDebugEnabled())\n log(LEVEL_DEBUG, String.format(fmt, args), null);\n}\n"
|
"public void actionPerformed(ActionEvent e) {\n if (getSelectedIndex() != lastIndex) {\n Thread t = new Thread() {\n public void run() {\n String decoderName = (String) getSelectedItem();\n try {\n live.setDecoder(decoderName);\n l... |
"private void generateCoreElemExtension(StringBuilder b, List<ElementDefinition> elements, ElementDefinition elem, List<ElementDefinition> children, int indent, String pathName, boolean asValue, TypeRefComponent type, boolean last, boolean complex) throws Exception {\n if (elem.getMax().equals(\"String_Node_Str\"))\... |
"protected void _getNextActuationEvent() {\n int eventIndex = 0;\n synchronized (_eventQueue) {\n while (eventIndex < _eventQueue.size()) {\n PtidesEvent nextEvent = ((PtidesListEventQueue) _eventQueue).get(eventIndex);\n if (nextEvent.ioPort() != null && nextEvent.ioPort().isOutput()... |
"public List<Triple> searchInLabels(String object, boolean replaceObject) {\n if (cacheSearch.containsKey(object)) {\n return cacheSearch.get(object);\n }\n List<Triple> triples = new ArrayList<Triple>();\n try {\n analyzer = new StandardAnalyzer(Version.LUCENE_40);\n parser = new Query... |
"private void updateGeneralizationGUIEnabledState() {\n boolean f = generalizationCheckBox.isSelected();\n boolean isSharpening = generalizationLICSharpeningSlider.getValue() > 0;\n generalizationMaxLevelsSpinner.setEnabled(f);\n generalizationDetailSlider.setEnabled(f);\n generalizationDetaiIsLabel.setE... |
"private void sendFeedbackThenCleanUp(Raid createdRaid, MessageChannel channel, MessageEmbed messageEmbed) {\n LOGGER.info(\"String_Node_Str\" + createdRaid.getRegion() + \"String_Node_Str\" + createdRaid);\n try {\n channel.sendMessage(messageEmbed).queue(m -> {\n try {\n channel... |
"public void setDeploymentDirs(String[] deploymentDirs) {\n this.deploymentDirs = ArrayUtils.clone(deploymentDirs);\n}\n"
|
"public synchronized void open() throws MessagebusConnectedFailedException {\n if (this.isOpen())\n return;\n this.exchangeManager = new ExchangerManager(this.getPubsuberHost(), this.getPubsuberPort());\n if (!this.exchangeManager.isZKAlive())\n throw new MessagebusConnectedFailedException(\"Stri... |
"public void testMultipleInstances() throws Exception {\n MockMessageLogger mockLogger = new MockMessageLogger();\n Ivy ivy = Ivy.newInstance();\n ivy.getLoggerEngine().setDefaultLogger(mockLogger);\n ivy.configure(new File(\"String_Node_Str\"));\n assertFalse(\"String_Node_Str\", IvyContext.getContext()... |
"public String getDefinedWidth() {\n return DEFAULT_WIDTH;\n}\n"
|
"public String getThirdComponent() {\n return getNthComponent(3);\n}\n"
|
"public boolean onCommand(CommandCaller caller, String[] args) {\n final PlotPlayer plr = (PlotPlayer) caller.getSuperCaller();\n final Location loc = plr.getLocation();\n final Plot plot = MainUtil.getPlot(loc);\n if (plot == null) {\n return !sendMessage(plr, C.NOT_IN_PLOT);\n }\n if (!plot.h... |
"public void test_large_nummber() {\n String res;\n long num_to_hash = 9007199254740992L;\n Hashids a = new Hashids(\"String_Node_Str\");\n String res = a.encode(num_to_hash);\n long[] b = a.decode(res);\n Assert.assertEquals(num_to_hash, b[0]);\n}\n"
|
"public net.minecraft.client.model.ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemstack, EntityEquipmentSlot armorSlot, net.minecraft.client.model.ModelBiped _default) {\n if (itemstack == null) {\n return null;\n }\n ModelBiped armorModel;\n armorModel = EntityRenderRegistry.g... |
"public void loadFromXML(Node node) throws XMLException {\n File newSrc = null;\n Map<String, String> newParams = new HashMap<String, String>();\n NodeList nodes = node.getChildNodes();\n for (int index = 0; index < nodes.getLength(); index++) {\n Node n = nodes.item(index);\n if (n.getNodeNam... |
"public void testRussianLanguage() {\n final AIConfiguration config = new AIConfiguration(getRuAccessToken(), getSubscriptionKey(), AIConfiguration.SupportedLanguages.Russian, AIConfiguration.RecognitionEngine.System);\n updateConfig(config);\n try {\n final AIDataService aiDataService = new AIDataServi... |
"public JsonElement serialize(ApplicationSpecification src, Type typeOfSrc, JsonSerializationContext context) {\n JsonObject jsonObj = new JsonObject();\n jsonObj.add(\"String_Node_Str\", new JsonPrimitive(src.getName()));\n jsonObj.add(\"String_Node_Str\", new JsonPrimitive(src.getDescription()));\n jsonOb... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.