content stringlengths 40 137k |
|---|
"private void writeResource(String filename, byte[] content, File srcLocation) throws IOException {\n if (state.hasResource(filename)) {\n IMessage msg = new Message(\"String_Node_Str\" + filename + \"String_Node_Str\", IMessage.WARNING, null, new SourceLocation(srcLocation, 0));\n handler.handleMessag... |
"private Node makeVarDeclNode(String namespace, Node sourceNode) {\n Node name = Node.newString(Token.NAME, namespace);\n name.addChildToFront(createNamespaceLiteral());\n Node decl = new Node(Token.VAR, name);\n decl.putBooleanProp(Node.IS_NAMESPACE, true);\n if (compiler.getCodingConvention().isConstan... |
"public void onClick(DialogInterface dialog, int which) {\n if (which == DialogInterface.BUTTON1) {\n final long groupId = getExpandableListAdapter().getGroupId(groupPosition);\n Log.i(cTag, \"String_Node_Str\" + groupId);\n Uri uri = ContentUris.withAppendedId(getGroupContentUri(), groupId);\n ... |
"private void setParallelization(INode node) {\n if (node.getOutgoingConnections().size() > 0) {\n for (IConnection con : node.getOutgoingConnections()) {\n EConnectionType lineStyle = con.getLineStyle();\n if (lineStyle.hasConnectionCategory(IConnectionCategory.MAIN) || lineStyle.hasCon... |
"public void visitCode() {\n if (include) {\n getAdaptee().visitCode();\n }\n}\n"
|
"public Parameters getParameters() throws RemoteException {\n final Drone drone = getDroneMgr().getDrone();\n final Map<String, com.ox3dr.services.android.lib.drone.property.Parameter> proxyParams = new HashMap<String, com.ox3dr.services.android.lib.drone.property.Parameter>();\n List<Parameter> droneParameter... |
"private void init(GameUIManager gameUIManager) {\n TileManager tmgr = gameUIManager.getGameManager().getTileManager();\n Tile tile;\n Field label;\n BufferedImage hexImage;\n ImageIcon hexIcon;\n int picId;\n List<Integer> tileIds = tmgr.getTileIds();\n log.debug(\"String_Node_Str\" + tileIds.s... |
"public void start(Collection<? extends Location> locations) {\n super.start(locations);\n policy = new AbstractMembershipTrackingPolicy(MutableMap.of(\"String_Node_Str\", getName() + \"String_Node_Str\")) {\n protected void onEntityChange(Entity member) {\n }\n protected void onEntityAdded(E... |
"public void run() {\n try {\n int taskId;\n for (int i = 0; i < configs.length; ++i) {\n if (couldHaveCachedResult(configs[i])) {\n taskId = experimentDAO.connectCachedResultOrCreateTask(configs[i].annotatorConfig.getName(), configs[i].datasetConfig.getName(), configs[i].type... |
"public static FilteringPipeline getPipeline() {\n if (sPipeline == null) {\n sPipeline = new FilteringPipeline();\n }\n return sPipeline;\n}\n"
|
"public static void cancelAndRescheduleUploadingService(final Context context, final boolean needsRescheduling) {\n final Intent intent = new Intent(context, UploaderService.class);\n final PendingIntent pendingIntent = PendingIntent.getService(context, 0, intent, 0);\n final AlarmManager alarmManager = (Alarm... |
"private void updateDownload(Cursor cursor, int arrayPos, long now) {\n DownloadInfo info = (DownloadInfo) mDownloads.get(arrayPos);\n int statusColumn = cursor.getColumnIndexOrThrow(Downloads.Impl.COLUMN_STATUS);\n int failedColumn = cursor.getColumnIndexOrThrow(Constants.FAILED_CONNECTIONS);\n info.mId = ... |
"public CQLStatement next() {\n CQLStatement ret = CQLStatement.make(String.format(CQLTemplate.getQuery(), numberRemaining));\n List values = Lists.newArrayList(ret.getValues());\n values.add(0, this.shardIdIterator.next());\n ret.setValues(values.toArray());\n ret.setCacheable(CQLTemplate.isCacheable())... |
"protected void detachFrame() {\n if (logger.isLoggable(Level.FINEST)) {\n logger.finest(\"String_Node_Str\");\n }\n if (frameView != null) {\n frameView.setVisibleUser(false, false);\n frameView.setVisibleApp(false);\n detachView(frameView);\n frameView = null;\n }\n}\n"
|
"public Result upload(String target, Long id) {\n final int maxTotalSize = conf.getInt(\"String_Node_Str\");\n final int maxFileSize = conf.getInt(\"String_Node_Str\");\n Call ret = controllers.routes.Application.index();\n Group group;\n if (target.equals(Media.GROUP)) {\n group = Group.findById(... |
"public void should_support_multimodule_projects() {\n SonarScanner build = SonarScanner.create().setProjectDir(Tests.projectDirectoryFor(\"String_Node_Str\")).setProfile(\"String_Node_Str\");\n Tests.executeBuildWithExpectedWarnings(orchestrator, build);\n assertThat(getMeasureAsInt(MULTIMODULE_PROJET_KEY + \... |
"private void rolloverStats(final long currentTimeMillis) {\n final long startTime = SystemClock.elapsedRealtime();\n Slog.i(TAG, mLogPrefix + \"String_Node_Str\");\n final Configuration previousConfig = mCurrentStats[UsageStatsManager.INTERVAL_DAILY].activeConfiguration;\n ArraySet<String> continuePrevious... |
"public void run() {\n callback.onBitmapReady(bitmap);\n}\n"
|
"private Object decodeArray(Object val, Class elementClass) {\n elementClass = FieldUtil.getRealType(elementClass, field);\n List list = (ArrayList) val;\n int size = list.size();\n if (size <= 0) {\n return null;\n }\n Object arr = Array.newInstance(elementClass, size);\n if (refList.cascad... |
"protected void configure(HttpSecurity http) throws Exception {\n http.httpBasic().and().csrf().ignoringAntMatchers(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\").and().authorizeRequests().antMatchers(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\").permitAll().antM... |
"protected Result doInBackground(String... params) {\n Op op = Op.valueOf(params[0]);\n Result result = new Result(op);\n try {\n Log.d(CLASS_NAME, String.format(\"String_Node_Str\", op));\n int port;\n Socket newSocket;\n switch(op) {\n case CONNECT:\n Str... |
"private Entitlement addEntitlement(Consumer consumer, Pool pool, Integer quantity) throws EntitlementRefusedException {\n PreEntHelper preHelper = enforcer.pre(consumer, pool, quantity);\n ValidationResult result = preHelper.getResult();\n if (!result.isSuccessful()) {\n log.warn(\"String_Node_Str\" + ... |
"private void setTitle(Player player, String[] args) {\n if (args.length < 3) {\n plugin.error_message(player, \"String_Node_Str\");\n return;\n }\n plugin.setTitle(player, args[1], combine(args, 2));\n}\n"
|
"public void render(Context context, Result result) throws Exception {\n ResponseStreams resultJsonCustom = context.finalizeHeaders(result);\n try (Writer writer = resultJsonCustom.getWriter()) {\n writer.write(string);\n } catch (IOException ioException) {\n logger.error(\"String_Node_Str\", ioE... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n useDoubleBackPressed = true;\n isImportInitialized = App.getInstance().getPrefsHelper().getPref(PrefsHelper.PREF_IMPORT_INITIALIZED, false);\n initNavigationDrawer();\n ... |
"public void addCaller(String rootModuleConf, IvyNode node, String callerConf, String[] dependencyConfs, DependencyDescriptor dd) {\n ModuleDescriptor md = node.getDescriptor();\n ModuleRevisionId mrid = node.getId();\n if (mrid.getModuleId().equals(getId().getModuleId())) {\n throw new IllegalArgumentE... |
"protected Workflow createWorkflow(JobContext jobContext) {\n JavaAction action = new JavaAction(jobContext.getJobName(), jobContext.getJobTrackerEndPoint(), jobContext.getNameNodeEndPoint(), jobContext.getJobFQClassName());\n action.addArgument(\"String_Node_Str\");\n action.addArgument(jobContext.get(\"Strin... |
"public static boolean isArrayType(String t) {\n if (t == null || t.length() == 0) {\n return false;\n } else {\n switch(t.charAt(0)) {\n case '[':\n return true;\n default:\n return false;\n }\n }\n}\n"
|
"public boolean isFreeformFamily(BlockUri familyUri) {\n return freeformBlockUris.contains(familyUri.getRootFamilyUri());\n}\n"
|
"public void testJavaScriptReservedWords() {\n boolean delete = noOptimizeTrue();\n for (int in = 0; in < 10; ++in) {\n assertTrue(in < 10);\n assertTrue(delete);\n }\n}\n"
|
"public JavaClassBuilderAt processElement(ParserContext handlerManager, Element element) throws ConfigurationException {\n String type = $(element).attr(ATTR_REFERENCES);\n String as = $(element).attr(\"String_Node_Str\");\n if (as == null) {\n as = Iteration.DEFAULT_VARIABLE_LIST_STRING;\n }\n if... |
"public void mousePressed(MouseEvent me) {\n boolean lookup = lookupModelRow.containsPoint(me.x, me.y);\n if (lookup) {\n if (selectedFigure != lookupModelRow) {\n lookupModelRow.setOpaque(true);\n lookupModelRow.setBackgroundColor(ColorProviderMapper.getColor(ColorInfo.COLOR_COLUMN_T... |
"public ELibraryInstallStatus getStatus() {\n String mvnUriStatusKey = getMavenUri(true);\n final ELibraryInstallStatus eLibraryInstallStatus = ModuleStatusProvider.getStatusMap().get(mvnUriStatusKey);\n if (eLibraryInstallStatus != null) {\n return eLibraryInstallStatus;\n } else {\n ILibrary... |
"private static void put(Class<? extends Packet> cls, NetState state, Bound bound, int id) {\n int identifier = shift(state, bound, id);\n PACKET_IDS.put(cls, identifier);\n if (bound == Bound.SERVER) {\n CTORS.put(cls, ConstructorAccess.get(cls));\n }\n}\n"
|
"private void assemble(String code) {\n assembleAt(code, 0x0300);\n}\n"
|
"public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws OseeCoreException {\n BranchId branch = variableMap.getBranch(\"String_Node_Str\");\n List<AttributeType> attributeTypes = variableMap.getAttributeTypes(\"String_Node_Str\");\n String input = variableMap.getString(ARTIFACT_IDS_... |
"public void decode(ChannelHandlerContext ctx, DatagramPacket packet, List<Object> out) {\n ByteBuf buff = packet.content();\n byte[] bytes = new byte[2];\n buff.readBytes(bytes, 0, 2);\n int size = (bytes[0] & 0xFF) << 8 | (bytes[1] & 0xFF);\n bytes = new byte[size];\n buff.readBytes(bytes, 0, size);... |
"public static List connect(String dbType, String url, String username, String pwd, final String driverClassNameArg, final String driverJarPathArg, String dbVersion, String additionalParams) throws Exception {\n Connection connection = null;\n DriverShim wapperDriver = null;\n List conList = new ArrayList();\n... |
"private NetResponse fetch(final NetRequest request) throws ApiException {\n final FanFouOAuthProvider provider = new FanFouOAuthProvider();\n final OAuthToken token = App.getOAuthToken();\n final OAuthService service = new OAuthService(provider, token);\n final OAuthClient client = new OAuthClient(service,... |
"private void init() {\n try {\n JedisPoolConfig poolConfig = new JedisPoolConfig();\n String prop;\n if ((prop = poolProps.get(CONF_TESTONBORROW)).equals(null)) {\n poolConfig.setTestOnBorrow(DEFAULT_TESTONBORROW);\n } else {\n log.info(\"String_Node_Str\" + prop);\... |
"private void onMouseMove(MouseEvent e) {\n Point cell = getCell(new Point(e.x, e.y));\n if (cell != null && cell.x != 0) {\n GridVisibleRange range = getVisibleRange();\n for (GridItem item : range.getItems()) {\n int i = indexOf(item);\n if (i == cell.y) {\n it... |
"public String[] GetSubjects() {\n File files = new File(root());\n return files.list();\n}\n"
|
"private void generateZips() throws Exception {\n SpecMapManager map = new SpecMapManager(Constants.VERSION, Constants.REVISION, execTime, igpkp.getCanonical());\n for (FetchedFile f : fileList) {\n for (FetchedResource r : f.getResources()) {\n String u = igpkp.getCanonical() + r.getUrlTail();\... |
"public ImageStore discoverImageStore(AddImageStoreCmd cmd) throws IllegalArgumentException, DiscoveryException, InvalidParameterValueException {\n String providerName = cmd.getProviderName();\n DataStoreProvider storeProvider = _dataStoreProviderMgr.getDataStoreProvider(providerName);\n if (storeProvider == n... |
"public void handleResource(ClasspathResource resource) {\n String path = resource.getPath();\n if (resource instanceof JarClasspathResource) {\n if (path.endsWith(\"String_Node_Str\")) {\n File sourceFile = new File(tempSourcesDir, path.substring(0, path.length() - 6) + \"String_Node_Str\");\n ... |
"public void testSlowOperationOnPartitionOperationThread() {\n instance = getSingleNodeCluster(1000);\n SlowOperation operation = new SlowOperation(4, 2);\n executeOperation(instance, operation);\n operation.await();\n Collection<SlowOperationLog> logs = getSlowOperationLogs(instance);\n assertNumberO... |
"public boolean setMethod(Plugin method) {\n PluginManager loader = method.getServer().getPluginManager();\n if (method.isEnabled()) {\n PluginDescriptionFile info = method.getDescription();\n String name = info.getName();\n if (name.equalsIgnoreCase(\"String_Node_Str\")) {\n if (m... |
"public static List<CloudServerURL> getUserDefinedUrls(String serverTypeId) {\n List<CloudServerURL> urls = new ArrayList<CloudServerURL>();\n IPreferenceStore prefStore = CloudFoundryServerUiPlugin.getDefault().getPreferenceStore();\n String urlString = prefStore.getString(ATTR_USER_DEFINED_URLS + \"String_No... |
"static void saveGroupDefn(OutputStream outputStream, List groupList, int version) throws DataException {\n DataOutputStream dos = new DataOutputStream(outputStream);\n int size = groupList == null ? 0 : groupList.size();\n try {\n IOUtil.writeInt(dos, size);\n for (int i = 0; i < size; i++) {\n ... |
"public static Map<Object, Object> getTaskFlagsForEffectorInvocation(Entity entity, Effector<?> effector) {\n return MutableMap.builder().put(\"String_Node_Str\", \"String_Node_Str\" + effector.getName() + \"String_Node_Str\" + entity.getDisplayName()).put(\"String_Node_Str\", effector.getName()).put(\"String_Node_S... |
"public void drop(int posn) throws SemanticException {\n DesignElement content = getElement().getSlot(slotID).getContent(posn);\n ContentCommand cmd = new ContentCommand(getModule(), new ContainerContext(getElement(), slotID), false, true);\n cmd.remove(content);\n}\n"
|
"public Matrix buildMatrix(Bitmap bitmap, boolean rotated) {\n float dx = bitmap.getWidth() / 2;\n float dy = bitmap.getHeight() / 2;\n if (mGeometry.hasSwitchedWidthHeight()) {\n float temp = dx;\n dx = dy;\n dy = temp;\n }\n return drawMatrix;\n}\n"
|
"public UpdateGroup getAsUpdateGroup() {\n UpdateGroup.Builder builder = new UpdateGroup.Builder();\n builder.updateDisplayName(getDisplayName());\n if (getExternalId() != null && getExternalId().equals(\"String_Node_Str\")) {\n builder.deleteExternalId();\n } else {\n builder.updateExternalId... |
"private void _importByValue() {\n ArrayList<String> modelNames = new ArrayList();\n for (SearchResultPanel panel : _resultPanelList) {\n modelNames.addAll(panel.getSelections());\n }\n if (modelNames.size() > 0) {\n for (String modelName : modelNames) {\n try {\n Ent... |
"public int compareTo(AuctionMessage other) {\n int cmp = other.value.compareTo(value);\n if (cmp == 0) {\n return vertexId.hashCode() - other.vertexId.hashCode();\n }\n return other.value.subtract(value).intValue();\n}\n"
|
"private double translateCoor(double d) {\n return d / dpi * 96d;\n}\n"
|
"protected void tearDown() throws Exception {\n synchronized (MUTEX) {\n if (!DEFER_CLEANUP.get()) {\n List<TestEnvironment> envs = Arrays.asList(testEnvs);\n ListIterator<TestEnvironment> it = envs.listIterator(envs.size());\n while (it.hasPrevious()) {\n it.pr... |
"private static void addLevelSorting(List<LevelViewHandle> levelViews, Map<LevelHandle, ILevelDefinition> levelMapping, ICubeQueryDefinition cubeQuery) throws BirtException {\n List<ILevelDefinition> levels = new ArrayList<ILevelDefinition>();\n List<Object> values = new ArrayList<Object>();\n for (Iterator<Le... |
"public void run() {\n try {\n if (Thread.currentThread().isInterrupted() || isClosing())\n throw new InterruptedException(\"String_Node_Str\" + getID().getName());\n ISharedObject obj = load(description);\n SOConfig aConfig = makeNewSharedObjectConfig(description, obj);\n obj.... |
"protected void makeInitialSet() {\n Chain locals = ((UnitGraph) graph).getBody().getLocals();\n List refLocals = new ArrayList();\n for (Iterator lIt = locals.iterator(); lIt.hasNext(); ) {\n final Local l = (Local) lIt.next();\n if (l.getType() instanceof RefType) {\n refLocals.add(l... |
"public void onEnable() {\n Config Messages = new Config(\"String_Node_Str\", \"String_Node_Str\" + pluginname + \"String_Node_Str\", \"String_Node_Str\");\n Config Config = new Config(\"String_Node_Str\", \"String_Node_Str\" + pluginname + \"String_Node_Str\", \"String_Node_Str\");\n if (null == getConfigurat... |
"public void testResultType() {\n map.put(localKey1, \"String_Node_Str\");\n Set<String> entries = map.localKeySet(TruePredicate.INSTANCE);\n QueryResultCollection collection = assertInstanceOf(QueryResultCollection.class, entries);\n QueryResultRow row = (QueryResultRow) collection.getRows().iterator().nex... |
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n Map<UUID, UUID> playerCreature = new HashMap<>(2);\n Choice choice = new ChoiceLeftOrRight();\n controller.choose(Outcome.Neutral, choice, game);\n ... |
"public void renderChildren() throws Exception {\n uicomponent_.processRender((WebuiRequestContext) WebuiRequestContext.getCurrentInstance());\n}\n"
|
"private void appendNumberOfCompletionEvents() {\n int total = 0;\n for (CompletionEvent e : okayEvents) {\n total += e.numberOfProposals;\n selected += e.applied != null ? 1 : 0;\n }\n styledString.append(\"String_Node_Str\").append(format(\"String_Node_Str\", events.size()), COUNTER_STYLER).... |
"static JavaRDD<Cells> doWhere(JavaRDD<Cells> rdd, Relation relation) throws UnsupportedException, ExecutionException {\n Operator operator = relation.getOperator();\n JavaRDD<Cells> result = null;\n Serializable field = filterFromLeftTermWhereRelation(relation);\n Term rightTerm = filterFromRightTermWhereR... |
"private String getUniqueName(TreeObject treeObj, String name) {\n int type = treeObj.getType();\n if (type == TreeObject.PICTURES_RESOURCE) {\n if (name == null) {\n name = treeObj.getName();\n }\n String[] fileInfo = getPicResourceFileInfo(name);\n if (fileInfo != null) {\... |
"public void refreshSessionTrees(Session session) {\n if (_tabFolder == null || _tabFolder.getSelectionIndex() < 0) {\n return;\n CTabItem[] items = _tabFolder.getItems();\n if (items != null) {\n for (CTabItem item : items) {\n TabData tabData = (TabData) item.getData();\n ... |
"public void adjustMasterVolume(int steps, int flags) {\n IAudioService service = getService();\n try {\n service.adjustMasterVolume(steps, flags, mContext.getOpPackageName());\n } catch (RemoteException e) {\n Log.e(TAG, \"String_Node_Str\", e);\n }\n}\n"
|
"private List find(PreparedStatement statement) {\n ResultSet result = null;\n List snips = new ArrayList();\n try {\n result = statement.executeQuery();\n Snip snip = null;\n while (result.next() && --count > 0) {\n snip = cacheLoad(result);\n snips.add(snip);\n ... |
"private NamedObj _deleteEntity(String entityName) throws Exception {\n ComponentEntity toDelete = _searchForEntity(entityName, _current);\n if (toDelete == null) {\n return null;\n }\n if (toDelete.isDerived()) {\n throw new IllegalActionException(toDelete, \"String_Node_Str\");\n }\n S... |
"public String getProperty(String property) {\n String systemProperty = System.getProperty(property);\n if (systemProperty != null) {\n return systemProperty;\n }\n String[] tokens = property.split(\"String_Node_Str\");\n int lastTokenNumber = tokens.length - 1;\n JsonObject currentObject = con... |
"public static void handleGroupActivatedEvent(GroupActivatedEvent groupActivatedEvent) {\n Topology topology = TopologyManager.getTopology();\n Application application = topology.getApplication(groupActivatedEvent.getAppId());\n if (application == null) {\n log.warn(String.format(\"String_Node_Str\", gr... |
"public final int[] sqlTypes() {\n return Arrays.copyOf(sqlTypes, sqlTypes.length);\n}\n"
|
"private void copyLogFilesForLocalhost(String sourceDir, String targetDir, ActionReport report, String instanceName) throws IOException {\n File logsDir = new File(sourceDir);\n File[] allLogFileNames = logsDir.listFiles();\n if (allLogFileNames == null) {\n throw new IOException(\"String_Node_Str\");\n... |
"public String getCookieValue(String cookie, String defaultValue) {\n Map<String, String> cookiesMap = getCookiesMap();\n return cookiesMap.containsKey(cookie) ? cookiesMap.get(cookie) : defaultValue;\n}\n"
|
"public String toString() {\n StringBuffer buf = new StringBuffer(\"String_Node_Str\");\n if (values != null) {\n for (int i = 0; i < values.length; i++) {\n buf.append(values[i].toString());\n if (i + 1 < values.length)\n buf.append(\"String_Node_Str\");\n }\n ... |
"public void buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> handlers) {\n JAXBContextImpl context = chain.context;\n for (TypeRef<Type, Class> e : prop.getTypes()) {\n JaxBeanInfo bi = context.getOrCreate((RuntimeTypeInfo) e.getTarget());\n Loader l = bi.getLoader(cont... |
"protected void _execute() throws Exception {\n synchronized (this) {\n ComponentEntity entity = null;\n Iterator priors = entityList().iterator();\n while (priors.hasNext()) {\n ComponentEntity prior = (ComponentEntity) priors.next();\n if (priors.hasNext() && !isDerived()... |
"protected boolean proxyReturnBooleanWithSequence(final E eventId, final Collection sequence) {\n final long startTime = Time.currentTimeMillis();\n final long tid = sendEvent(startTime, eventId, out -> sequence.forEach(out::object));\n return readBoolean(tid, startTime);\n}\n"
|
"protected final void layout() {\n super.layout();\n Vec2f size = getSize();\n if (dirtyAnimation || forceLayout) {\n List<AAnimation> tmp = Lists.newArrayList(animations);\n Collection<GLElement> elems = asSeenIn(0);\n List<RecordingLayoutElement> l = new ArrayList<>(elems.size());\n ... |
"public BufferedImage parseUserSkin(BufferedImage image) {\n if (image == null)\n return null;\n ratio = image.getWidth() / 64;\n BufferedImage bufferedimage = new BufferedImage(64 * ratio, 64 * ratio, 2);\n Graphics graphics = bufferedimage.getGraphics();\n graphics.setColor(new Color(0, 0, 0, 0)... |
"public Object calculate(Object value) {\n if (value == null) {\n return new Double(-1);\n }\n if (intervalStart == null) {\n return new Double(Math.floor(DateTimeUtil.diffWeek(defaultStart, target) / getDateIntervalRange()));\n } else {\n if (DateTimeUtil.diffWeek((Date) intervalStart,... |
"protected void initialize() throws ServletException {\n super.initialize();\n WebApplicationContext parentAppCtx = ContextLoaderListener.getCurrentWebApplicationContext();\n String implDesc = getInitParameter(\"String_Node_Str\");\n String fhirVersionParam = getInitParameter(\"String_Node_Str\");\n if (... |
"public void init(Config cfg, MessageType t, TaskPlan taskPlan, int ed) {\n this.edge = ed;\n this.thisSources = TaskPlanUtils.getTasksOfThisWorker(taskPlan, sources);\n LOG.log(Level.FINE, String.format(\"String_Node_Str\", taskPlan.getThisExecutor(), sources, destinations));\n this.thisTasks = taskPlan.ge... |
"private void writeRec0(long addr, Record record) {\n int varOffset = this.varOffset;\n for (int i = 0, n = slaveValueIndexes.size(); i < n; i++) {\n int idx = slaveValueIndexes.getQuick(i);\n long address = addr + fixedOffsets.getQuick(i);\n switch(slaveValueTypes.getQuick(i)) {\n ... |
"public int compare(Value[] a, Value[] b) {\n for (int i = 0, len = queryColumnIndexes.length; i < len; i++) {\n int idx = queryColumnIndexes[i];\n int type = sortTypes[i];\n Value ao = a[idx];\n Value bo = b[idx];\n boolean aNull = ao == ValueNull.INSTANCE, bNull = bo == ValueNull... |
"public void engineLoad(InputStream stream, char[] password) throws IOException, NoSuchAlgorithmException, CertificateException {\n synchronized (entries) {\n List<XXRangerKeyStore> rangerKeyDetails = dbOperationLoad();\n DataInputStream dis;\n MessageDigest md = null;\n if (rangerKeyDeta... |
"public static void backspace() {\n switch(sState) {\n case ACCEPTED_DEFAULT:\n case SPACE_AFTER_ACCEPTED:\n sState = State.UNDO_COMMIT;\n sAutoSuggestUndoneCount++;\n break;\n case PICKED_TYPED_ADDED_TO_DICTIONARY:\n case SPACE_AFTER_PICKED:\n ... |
"public static final String getDate(Date aDate) {\n SimpleDateFormat df = null;\n String returnValue = \"String_Node_Str\";\n if (aDate != null) {\n df = new SimpleDateFormat(getDatePattern());\n returnValue = df.format(aDate);\n }\n return (returnValue);\n}\n"
|
"private void dispose() {\n assertTrue(isInitialized(), \"String_Node_Str\");\n final Iterator<Object> iterator = this._serviceOrdering.iterator();\n while (iterator.hasNext()) {\n final Object service = iterator.next();\n if (service instanceof Lifecycle) {\n try {\n ((... |
"public void setOnCompletionListener(final OnCompletionListener listener) {\n _mediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n public void onCompletion(MediaPlayer mp) {\n listener.onCompletion(MusicPlayer.this);\n }\n });\n }\n}\n"
|
"public boolean chooseTarget(Outcome outcome, Cards cards, TargetCard target, Ability source, Game game) {\n log.debug(\"String_Node_Str\");\n if (cards == null || cards.isEmpty()) {\n if (!target.isRequired(source)) {\n return false;\n }\n return true;\n }\n ArrayList<Card> ... |
"public TreeOperation handleDeleteOnTextNode(Range caret) {\n int pos = caret.getStartOffset();\n Node startContainer = caret.getStartContainer();\n Text textNode = Text.as(startContainer);\n List<Integer> path = TreeHelper.getLocator(startContainer);\n TreeOperation op = null;\n final Node ancestorPa... |
"protected String getContent(URLConnection connection) {\n try {\n InputStream inputStream = connection.getInputStream();\n InputStreamReader reader = new InputStreamReader(inputStream);\n try {\n StringBuilder builder = new StringBuilder();\n char[] buffer = new char[1024]... |
"public ChannelFuture answer(HttpResponse output, MessageEvent event, final boolean close, final StartStopListenerDelegate startStopListenerDelegate) throws IOException {\n ChannelFuture future = null;\n long CLoverride = -2;\n StringBuilder response = new StringBuilder();\n DLNAResource dlna = null;\n b... |
"public static boolean updateVersionInDB(String url, String driver, Properties props) {\n Connection connection = null;\n try {\n connection = ConnectionUtils.createConnection(url, driver, props);\n if (connection != null) {\n Statement stat = connection.createStatement();\n Pr... |
"public long getFilePointer() throws IOException {\n return fd.position;\n}\n"
|
"public IAEItemStack extractItems(IAEItemStack request, Actionable mode, BaseActionSource src) {\n if (mode == Actionable.SIMULATE) {\n int howMany = cs.getItemCount(request.getItemStack());\n return howMany > request.getStackSize() ? request : request.copy().setStackSize(howMany);\n }\n ItemStac... |
"public void showInformationDialog(String info) {\n Alert information = new Alert(Alert.AlertType.INFORMATION, info);\n information.setHeaderText(\"String_Node_Str\");\n information.initOwner(windowManager.getStage());\n information.show();\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.