content stringlengths 40 137k |
|---|
"public void setCurrentJson() {\n Model cModel = getCurrentModel();\n if (cModel != null && mapModelsToJsons.containsKey(cModel)) {\n currentJson = mapModelsToJsons.get(cModel);\n JSONObject msg = currentJson.createSetCurrentModelJson();\n websocketdb.broadcastMessageJson(msg, null);\n ... |
"public Short getCidOfEClass(EClass eClass) {\n return eClassToCid.get(eClass);\n}\n"
|
"public SimpleToolWindowPanel createToolWindowContent(final Project project) {\n this.project = project;\n changeListPanel.registerChangeListPanel(this);\n diffManager.registerDiffTool(commentsDiffTool);\n SimpleToolWindowPanel panel = new SimpleToolWindowPanel(true, true);\n ActionToolbar toolbar = crea... |
"public void forwardMessage(int value) {\n if (value == 0) {\n System.out.println(id);\n System.exit(0);\n } else {\n value--;\n StageService.sendMessage(next, 4, new Object[] { value });\n }\n}\n"
|
"public String getVariableValueString(int index) {\n String result = \"String_Node_Str\";\n for (BitSet var : variables) {\n for (int i = 0; i < problem.getNumberOfBits(i); i++) {\n if (var.get(i)) {\n result += \"String_Node_Str\";\n } else {\n result +=... |
"void shiftPc(int where, int gapLength, boolean exclusive) {\n int n = tableLength();\n for (int i = 0; i < n; ++i) {\n int pos = i * 10 + 2;\n int pc = ByteArray.readU16bit(info, pos);\n int len = ByteArray.readU16bit(info, pos + 2);\n if (pc > where || (exclusive && pc == where && pc... |
"public List<AgentStat> aggregate() {\n if (stats.isEmpty()) {\n return stats;\n }\n List<AgentStat> result = new ArrayList<>();\n AgentStat current = toAggregatedAgentStat(stats.get(0));\n for (AgentStat stat : stats.subList(1, stats.size())) {\n long timestamp = toAggregatedTimestamp(stat... |
"private static long diffSecond(Date d1, Date d2) {\n if (d1 == null || d2 == null) {\n throw new java.lang.IllegalArgumentException(Messages.getString(\"String_Node_Str\"));\n }\n long diff = d2.getTime() - d1.getTime();\n if (timeZone != null && timeZone.inDaylightTime(d1))\n diff -= timeZon... |
"private void updateGoButton() {\n if (mCurrentWebView.isLoading()) {\n mGoButton.setImageResource(R.drawable.ic_btn_stop);\n mUrlEditText.setCompoundDrawables(getNormalizedFavicon(), null, mCircularProgress, null);\n ((AnimationDrawable) mCircularProgress).start();\n } else {\n mGoBut... |
"private void createPermissionPanel() {\n Permissions permissions = aip.getPermissions();\n GWT.log(\"String_Node_Str\" + permissions);\n for (String username : permissions.getUsernames()) {\n permissionsPanel.add(new PermissionPanel(username, true, permissions.getUserPermissions(username)));\n }\n ... |
"public void accept(Visitor<Contract> visitor) {\n boolean descend = visitor.preVisit(this);\n if (descend) {\n if (visitor.preVisit(this)) {\n for (Contract c : this.input1) {\n c.accept(visitor);\n }\n for (Contract c : this.input2) {\n c.acc... |
"public void onServiceDisconnected(int profile) {\n switch(profile) {\n case BluetoothProfile.A2DP:\n synchronized (mConnectedDevices) {\n synchronized (mA2dpAvrcpLock) {\n for (int i = 0; i < mConnectedDevices.size(); i++) {\n DeviceListSpec... |
"private int handleExecutorService(MemberStateImpl memberState, int count, Config config, Map<String, LocalExecutorStats> executorServices) {\n for (Map.Entry<String, LocalExecutorStats> entry : executorServices.entrySet()) {\n String name = entry.getKey();\n if (count >= maxVisibleInstanceCount) {\n ... |
"public double computeF(double l, double ldot, double l0, double excitation) {\n double lenOpt = myOptLength;\n double lenRat = l / lenOpt;\n double lenUpperLim = 1.6 * lenOpt;\n double lenLowerLim = 0.4 * lenOpt;\n double fact = 0;\n double fpas = 0;\n double P1 = myExpStressCoeff;\n double P2 ... |
"public void notifyTemperature(boolean enable) {\n if (isConnected())\n queue.enqueueNotify(getFlowerPowerService().getCharacteristic(UUID.fromString(FlowerPowerConstants.CHARACTERISTIC_UUID_TEMPERATURE)), enable);\n}\n"
|
"private static String getEmote(Guild guild, int count, String emote) {\n if (!(emote.startsWith(\"String_Node_Str\")))\n return guild.getEmoteById(emote).getAsMention();\n if (count < 5)\n return \"String_Node_Str\";\n else if (count > 5)\n return \"String_Node_Str\";\n else if (count ... |
"public void executeScheduledTasks() {\n final LocalDate date = dateTimeProvider.getCurrentDate();\n final String hostName = Hosts.getLocalHost().getHostName();\n for (final DailyScheduledTask task : scheduledTasks) {\n final String taskName = task.getClass().getSimpleName();\n if (!acquireDailyT... |
"public void testValidateNodes11() throws DataException {\n ExprManager em = new ExprManager(null);\n Map m = new HashMap();\n m.put(\"String_Node_Str\", new ScriptExpression(\"String_Node_Str\"));\n m.put(\"String_Node_Str\", new ScriptExpression(\"String_Node_Str\"));\n m.put(\"String_Node_Str\", new S... |
"protected int indexOf(Object obj) {\n if (_indexCache.isEmpty()) {\n reindex();\n }\n return -1;\n}\n"
|
"private BaseFont createBaseFont(String physicalFont) {\n BaseFont font = (BaseFont) fonts.get(physicalFont);\n if (font == null) {\n font = fontManager.createFont(physicalFont, fontStyle);\n fonts.put(physicalFont, font);\n }\n return font;\n}\n"
|
"public static void main(String[] args) throws IOException, StructureException, InterruptedException, ExecutionException {\n List<String> names = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n AtomCache cache = new AtomCache();\n List<Atom[]> atomArrays = n... |
"protected void addItem(String parentCategory, ItemTreeItem newItem) throws NullPointerException {\n categories.get(parentCategory.toLowerCase()).addItem(newItem);\n if (itemsByName.containsKey(newItem.getName())) {\n itemsByName.get(newItem.getName()).add(newItem);\n } else {\n Vector<ItemTreeIt... |
"public Identity getIdentity(String identityId, boolean forceLoadOrReloadProfile) {\n Identity cachedIdentity = identityCacheById.get(identityId);\n if (cachedIdentity != null && !forceLoadOrReloadProfile) {\n return cachedIdentity;\n }\n Identity foundIdentity = super.getIdentity(identityId, forceLo... |
"private static MapKeyLookupResult getContextMapKey(ClassLoader classLoader, String classLoaderName) {\n if (classLoaderName.startsWith(OC4J_CLASSLOADER_NAME)) {\n if ((classLoader.getParent() != null) && ((classLoader.toString().indexOf(SDOConstants.CLASSLOADER_WEB_FRAGMENT) != -1) || (classLoader.toString()... |
"private void computeTileStackForNormalProduct(final Map<Band, Tile> targetTileMap, Rectangle targetRectangle, final ProgressMonitor pm) throws OperatorException {\n try {\n final int rgOffset = (cohWinRg - 1) / 2;\n final int azOffset = (cohWinAz - 1) / 2;\n final int cohx0 = targetRectangle.x ... |
"private boolean hasOverridenNativeProperty(String propertyName) {\n if (isNativeObjectType()) {\n return false;\n }\n JSType propertyType = getPropertyType(propertyName);\n ObjectType nativeType = isFunctionType() ? registry.getNativeObjectType(JSTypeNative.FUNCTION_PROTOTYPE) : registry.getNativeOb... |
"public Iterator<Entry<byte[], byte[]>> prefixLookup(byte[] prefix, int snapId) {\n if (prefix != null && prefix.length == 0)\n prefix = null;\n List<Iterator<Entry<byte[], byte[]>>> list = new ArrayList<Iterator<Entry<byte[], byte[]>>>(2);\n list.add(overlay.prefixLookup(prefix, snapId, true));\n if... |
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.list_view_with_spinner, null);\n mListView = (ListView) v.findViewById(R.id.list);\n mProgressBar = (ProgressBar) v.findViewById(R.id.progress);\n if (mAdapter != null) {... |
"private String createFilePath() {\n return new String(BASE_PATH + BASE_NAME + \"String_Node_Str\" + currentChunkId++ + \"String_Node_Str\");\n}\n"
|
"private String getAppUid() {\n final TelephonyManager telephony = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\n final String id = telephony.getDeviceId();\n try {\n MessageDigest digest = MessageDigest.getInstance(\"String_Node_Str\");\n digest.update(id.getBytes());\n ... |
"public IValue withType(IType type, ITypeContext typeContext, MarkerList markers, IContext context) {\n IContext context1 = new CombiningContext(this, context);\n if (type.typeTag() == IType.LAMBDA) {\n LambdaType lt = (LambdaType) type;\n IType returnType = lt.getType();\n int parameterCount... |
"private String getSelectionText() {\n InputStream inputStream = null;\n if (this.selection instanceof IStructuredSelection) {\n Object selection = ((IStructuredSelection) this.selection).getFirstElement();\n if (selection instanceof IFile) {\n IFile file = (IFile) selection;\n ... |
"public void fillContextMenu(IMenuManager menu) {\n Iterator<?> iter = ((TreeSelection) this.getContext().getSelection()).iterator();\n while (iter.hasNext()) {\n Object obj = iter.next();\n if (obj instanceof RepositoryNode) {\n if (ConnectionUtils.isMdmConnection(((RepositoryNode) obj).... |
"private IResultClass createCustomDataSetMetaData(BaseQuery query, IResultClass meta) throws DataException {\n List projectedColumns = new ArrayList();\n if (query.getFetchEvents() != null) {\n for (int i = 0; i < meta.getFieldCount(); i++) {\n ResultFieldMetadata rfMeta = new ResultFieldMetadat... |
"public Intent getManageKeyphraseIntent(int action, String keyphrase, Locale locale) {\n if (mEnrollmentPackage == null || mEnrollmentPackage.isEmpty()) {\n Slog.w(TAG, \"String_Node_Str\");\n return null;\n }\n if (getKeyphraseMetadata(keyphrase, locale) != null) {\n Intent intent = new I... |
"private void signOffAndClearWithout(final UserSession usess) {\n boolean isDebug = log.isDebug();\n if (isDebug)\n log.debug(\"String_Node_Str\");\n final IdentityEnvironment identityEnvironment = usess.getIdentityEnvironment();\n final SessionInfo sessionInfo = usess.getSessionInfo();\n final Id... |
"public void addContact_Fail() {\n expect(userDAO.findByUsername(USERNAME)).andReturn(user1);\n replay(userDAO);\n expect(userContactDAO.doesContactExistForUserId(user1.getId(), user2.getId())).andReturn(true);\n replay(userContactDAO);\n userService.addContact(user2, user1.getUsername());\n}\n"
|
"public void gotoTrait(int traitId) {\n if (traitId == -1) {\n return;\n }\n Highlighting tc = Highlighting.searchIndex(classHighlights, classIndex);\n if (tc != null) {\n Highlighting th = Highlighting.searchIndex(traitHighlights, traitId, tc.startPos, tc.startPos + tc.len);\n int pos;... |
"public void putInt(final String key, final int value) {\n p.putInt(safeKey(key), value);\n}\n"
|
"public boolean hasSeed() {\n return CropPlantHandler.isValidSeed(this.seed);\n}\n"
|
"public ErrorCollection validate(BuildConfiguration buildConfiguration) {\n boolean error = false;\n ErrorCollection errorCollection = super.validate(buildConfiguration);\n String hostame = StringUtils.trim(buildConfiguration.getString(REPOSITORY_GERRIT_REPOSITORY_HOSTNAME));\n if (!StringUtils.isNotBlank(h... |
"public void updateUIInThreadIfThread() {\n if (treeItem.isDisposed()) {\n return;\n }\n if (checkConnectionIsDone) {\n treeItem.setText(3, EMPTY_STRING + metadataColumns.size());\n treeItem.setText(4, Messages.getString(\"String_Node_Str\"));\n countSuccess++;\n tableColumnN... |
"public void testSimplifyJavaLangString() {\n TypeMirror string = typeMirrorOf(\"String_Node_Str\");\n Set<TypeMirror> types = ImmutableSet.of(string);\n TypeSimplifier typeSimplifier = new TypeSimplifier(typeUtil, \"String_Node_Str\", types, baseWithoutContainedTypes());\n assertEquals(\"String_Node_Str\",... |
"public void sendMoneyOut(ActionEvent event) {\n SendMoneyController.open();\n}\n"
|
"public static List getDriverList() {\n HashSet jdbcDriverSet = new HashSet();\n for (int i = 0; i < jdbcDriverInfos.size(); i++) {\n jdbcDriverSet.add(jdbcDriverInfos.get(i));\n }\n return new ArrayList(jdbcDriverSet);\n}\n"
|
"public BigDecimal computeReportedBalance2(LocalDate fromDate, LocalDate toDate, Partner partner, Account account) {\n List<? extends MoveLine> moveLineList = MoveLine.all().filter(\"String_Node_Str\", partner, fromDate, toDate, account).fetch();\n BigDecimal reportedBalanceAmount = BigDecimal.ZERO;\n for (Mov... |
"public final SimonInfo[] getSimonInfos() {\n String[] simonNames = getSimonNamesOrdered();\n SimonInfo[] simonInfo = new SimonInfo[simonNames.length];\n int i = 0;\n for (String name : simonNames) {\n Simon s = manager.getSimon(name);\n simonInfo[i++] = new SimonInfo(name, s instanceof Stopwa... |
"public void executeUpdate(Rider rider) {\n if (rider != null) {\n rider.setTarget(null);\n LivingEntity ride = rider.getRide();\n if (target == null) {\n isGoalDone = true;\n } else {\n if (target.isDead()) {\n target = null;\n goalMana... |
"public String getCallingPackage(IBinder token) {\n synchronized (this) {\n ActivityRecord r = getCallingRecordLocked(token);\n return r != null ? r.info.packageName : null;\n }\n}\n"
|
"public Type applyState(CompilerState state, IContext context) {\n if (this.position == null) {\n return this;\n }\n if (state == CompilerState.RESOLVE_TYPES) {\n Type type = this.resolve(context);\n if (!type.isResolved()) {\n state.addMarker(new SemanticError(this.position, \"... |
"public Time fireAt(Actor actor, Time time, int index) throws IllegalActionException {\n if (actor == this.getContainer()) {\n fireContainerAt(time);\n return time;\n }\n int newIndex = index;\n if (_currentLogicalTime != null && _currentLogicalTime.compareTo(time) == 0 && index <= getIndex())... |
"private String trimWhitespaces(String content, String lineEnding) {\n BufferedReader reader = new BufferedReader(new StringReader(content));\n return reader.lines().map((String t) -> {\n return t.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n }).collect(Collectors.joining(lineEnding));\n}\n"
|
"public Variable[] getStack(int index) {\n if (index < 0 || index >= calls.length) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n Vector variables = new Vector();\n Hashtable variablesSeen = new Hashtable();\n Proto p = calls[index].closure.p;\n for (int i = index; i >= 0; i--) {\n ... |
"private PhotoAnnotation getAnnotationInGrid(MKMapRect gridMapRect, List<PhotoAnnotation> annotations) {\n Set<MKAnnotation> visibleAnnotationsInBucket = mapView.getAnnotations(gridMapRect);\n for (MKAnnotation annotation : annotations) {\n if (visibleAnnotationsInBucket.contains(annotation)) {\n ... |
"public boolean match(Query other) {\n if (other instanceof PlayerQuery) {\n PlayerQuery query = (PlayerQuery) other;\n return QueryMatching.matchParameter(names, query.names) && QueryMatching.matchParameter(groups, query.groups) && QueryMatching.matchParameter(deathCause, query.deathCause) && QueryMat... |
"public static SpaceGroup getSpaceGroup(String shortName) {\n if (shortName == null || shortName.length() <= 2)\n return null;\n if (shortName.equals(\"String_Node_Str\"))\n shortName = \"String_Node_Str\";\n shortName = shortName.substring(0, 1) + shortName.substring(1).toLowerCase();\n retur... |
"public boolean inChannel() {\n return (activeChannel != null);\n}\n"
|
"protected void exec() {\n m_console.show();\n m_console.getStream().print(showCommand());\n SysCommandExecutor executor = new SysCommandExecutor();\n executor.setOutputLogDevice(getLogDevice(m_console.getOutputStream()));\n executor.setErrorLogDevice(getLogDevice(m_console.getErrorStream()));\n execu... |
"public HazelcastHttpSession getOrCreateHazelcastSession() {\n if (requestedSessionId == null) {\n requestedSessionId = getSessionCookie(this);\n if (requestedSessionId == null) {\n requestedSessionId = getParameter(HAZELCAST_SESSION_COOKIE_NAME);\n }\n }\n if (requestedSessionI... |
"public static Number createLocalFormatValue(Object input) {\n DecimalFormat format = (DecimalFormat) DecimalFormat.getInstance(Locale.getDefault());\n return format.parse(input.toString());\n}\n"
|
"public int emulateOP(long maxCycles) throws EmulationException {\n int pc = readRegister(PC);\n long startCycles = cycles;\n if (interruptsEnabled && servicedInterrupt == -1 && interruptMax >= 0) {\n pc = serviceInterrupt(pc);\n }\n if (cpuOff || flash.blocksCPU()) {\n while (cycles >= nex... |
"public void testRuntimeArgs() throws Exception {\n String qualifiedServiceId = String.format(\"String_Node_Str\", FakeApp.NAME, PrefixedEchoHandler.NAME);\n ServiceId service = NamespaceId.DEFAULT.app(FakeApp.NAME).service(PrefixedEchoHandler.NAME);\n testServiceRuntimeArgs(qualifiedServiceId, service);\n}\n"... |
"ServiceReference getServiceReference() {\n return (closed) ? null : exportReference.getExportedService();\n}\n"
|
"public double getY() {\n return longitude;\n}\n"
|
"public ListenableActionFuture<SQLReduceJobResponse> reduceOperationStart(SQLReduceJobRequest request) {\n ParsedStatement parsedStatement = sqlParseService.parse(request.request.stmt(), request.request.args());\n SQLReduceJobStatus reduceJobStatus = new SQLReduceJobStatus(parsedStatement, threadPool, request.exp... |
"protected void fillMenu(Menu menu) {\n IRepositoryView repositoryView = RepositoryManagerHelper.findRepositoryView();\n if (repositoryView == null) {\n return;\n }\n if (repositoryView.containsRepositoryType(ERepositoryObjectType.PROCESS)) {\n IDesignerCoreService service = (IDesignerCoreServ... |
"private void handleReferenced(RepositoryNode parent) {\n if (parent.getType().equals(ENodeType.SYSTEM_FOLDER)) {\n for (ProjectReference refProject : (List<ProjectReference>) project.getEmfProject().getReferencedProjects()) {\n String parentBranch = ProjectManager.getInstance().getMainProjectBranc... |
"public void collectionProcessComplete() throws AnalysisEngineProcessException {\n closeQuietly(writer);\n}\n"
|
"protected String getParamValueAsString(HttpServletRequest request, ScalarParameterHandle parameter) {\n String paramName = parameter.getName();\n String paramValue = null;\n if (ParameterAccessor.isReportParameterExist(request, paramName)) {\n paramValue = ParameterAccessor.getReportParameter(request, ... |
"public List<T> onCompleted(Response response) throws Exception {\n logResponse(response);\n if (isStatus2xx(response)) {\n JsonNode responseNode = mapper.readTree(response.getResponseBodyAsBytes());\n int count = responseNode.get(\"String_Node_Str\").asInt();\n if (count > readCount.get()) {... |
"public String toString() {\n return request == null ? \"String_Node_Str\" : request.toString();\n}\n"
|
"private void startRepeatingTask() {\n mHandler.post(secondsAnimation);\n}\n"
|
"protected void configureNifty() {\n bind().toInstance(new ThriftServerDefBuilder().listen(8080).withProcessor(new scribe.Processor<scribe.Iface>(new scribe.Iface() {\n\n public ResultCode Log(List<LogEntry> messages) throws TException {\n for (LogEntry message : messages) {\n log.in... |
"public void createPartControl(Composite parent) {\n super.createPartControl(parent);\n createGLCanvas();\n view = new GLTagCloud(glCanvas, parentComposite, serializedView.getViewFrustum());\n initializeView();\n createPartControlGL();\n}\n"
|
"public long getKeepAliveDuration(HttpResponse response, HttpContext context) {\n HeaderElementIterator it = new BasicHeaderElementIterator(response.headerIterator(HTTP.CONN_KEEP_ALIVE));\n while (it.hasNext()) {\n HeaderElement he = it.nextElement();\n String param = he.getName();\n String v... |
"private void doWork() {\n while (!shouldExit.get()) {\n DateTime latestStableInChannel = getLatestStable();\n logger.trace(\"String_Node_Str\", channel, lastQueryTime, latestStableInChannel);\n if (lastQueryTime.isBefore(latestStableInChannel)) {\n TimeUtil.Unit unit = getStepUnit(la... |
"private void initCallUI(final JsonObject callInviteParams, VideoLayoutConfiguration aLocalVideoPosition) {\n Log.d(LOG_TAG, \"String_Node_Str\");\n if (isCallEnded()) {\n Log.w(LOG_TAG, \"String_Node_Str\");\n return;\n }\n if (isVideo()) {\n Log.d(LOG_TAG, \"String_Node_Str\");\n ... |
"private void fillDefaultValues(DatabaseConnection connection) {\n String distribution = connection.getParameters().get(ConnParameterKeys.CONN_PARA_KEY_HIVE_DISTRIBUTION);\n String version = connection.getParameters().get(ConnParameterKeys.CONN_PARA_KEY_HIVE_VERSION);\n String[] hiveServersDisplay = HiveMetada... |
"private HandlerProcessingResult processAnnotations(ProcessingContext ctx, AnnotatedElement element) throws AnnotationProcessorException {\n HandlerProcessingResultImpl result = new HandlerProcessingResultImpl();\n try {\n for (Annotation annotation : element.getAnnotations()) {\n AnnotationInfo... |
"public Object[] callMethod(IComputerAccess computer, int method, Object[] arguments) throws Exception {\n if (this.prevDian < this.YAO_DIAN) {\n throw new Exception(\"String_Node_Str\");\n }\n List<Double> returnArray;\n switch(method) {\n case 0:\n List<EDaoDan> daoDans = DaoDanGu... |
"public boolean processArguments(String[] args) throws Exception {\n log.info(\"String_Node_Str\" + Arrays.toString(args).replace(\"String_Node_Str\", \"String_Node_Str\"));\n ConfigurationProperties.clear();\n CommandLine cmd = null;\n try {\n cmd = parser.parse(options, args);\n } catch (Unrecog... |
"public void buildCellStyle(ICellContent cell, StringBuffer styleBuffer, boolean isHead) {\n if (HTMLRenderOption.LAYOUT_PREFERENCE_FIXED.equals(layoutPreference)) {\n styleBuffer.append(\"String_Node_Str\");\n }\n IStyle style = cell.getStyle();\n CSSValue display = style.getProperty(IStyle.STYLE_DI... |
"public LastComposedWord commitWord(final int type, final String committedWord, final String separatorString, final String prevWord) {\n final int[] primaryKeyCodes = mPrimaryKeyCodes;\n mPrimaryKeyCodes = new int[MAX_WORD_LENGTH];\n final LastComposedWord lastComposedWord = new LastComposedWord(primaryKeyCode... |
"public void render(Renderer renderer, StringOutput target, Component source, URLBuilder ubu, Translator translator, RenderResult renderResult, String[] args) {\n Choice choice = (Choice) source;\n TableDataModel<?> tdm = choice.getTableDataModel();\n boolean iframePostEnabled = renderer.getGlobalSettings().ge... |
"private Response<Object> invokeByName(MethodCall<Object> methodCall) {\n final MethodAccess method = classMeta.method(methodCall.name());\n if (method != null) {\n return mapArgsAsyncHandlersAndInvoke(methodCall, method);\n } else {\n if (methodCall.name().equals(\"String_Node_Str\")) {\n ... |
"private String readNextString(FileChannel channel) throws IOException {\n return PrimitiveUtils.readLengthAndString(channel, buffer(100));\n}\n"
|
"protected void update(List<TableInfo> tableInfos) {\n for (TableInfo tableInfo : tableInfos) {\n if (tableInfo != null && tableInfo.getTableName() != null) {\n HTableDescriptor hTableDescriptor = getTableMetaData(tableInfo);\n try {\n HTableDescriptor descriptor = admin.g... |
"protected void setUp() throws Exception {\n super.setUp();\n jruby = new ScriptingContainer(LocalContextScope.SINGLETHREAD);\n xs = new XStream() {\n protected MapperWrapper wrapMapper(MapperWrapper next) {\n return new JRubyMapper(next);\n }\n };\n JRubyXStream.register(xs, jru... |
"public void startRequest(MRCRequest rq) throws Throwable {\n if (master.getReplMasterUUID() != null && !master.getReplMasterUUID().equals(master.getConfig().getUUID().toString()))\n throw new DatabaseException(ExceptionType.REDIRECT);\n final openRequest rqArgs = (openRequest) rq.getRequestArgs();\n fi... |
"public TridentChunk loadChunkData(TridentWorld owner, ChunkLocation location) throws NBTException, IOException, DataFormatException {\n TridentChunk chunk = new TridentChunk(owner, location);\n short compression;\n byte[] compressedData;\n synchronized (this.readWriteLock) {\n RandomAccessFile acces... |
"private IMDMSVNProviderService getSvnProviderService() {\n if (svnProviderService == null) {\n try {\n if (GlobalServiceRegister.getDefault().isServiceRegistered(IMDMSVNProviderService.class)) {\n svnProviderService = (IMDMSVNProviderService) GlobalServiceRegister.getDefault().getSe... |
"private void cutStone(ShortPoint2D pos) {\n short x = (short) (pos.getX() - 1);\n short y = (short) (pos.getY() + 1);\n AbstractHexMapObject stone = grid.getMapObject(x, y, EMapObjectType.STONE);\n if (stone != null) {\n stone.cutOff();\n if (!stone.canBeCut()) {\n addSelfDeletingM... |
"private static void renderString(String str, int x, int y, int maxWidth, int normalColor, int smoothColor) {\n Minecraft mc = Minecraft.getMinecraft();\n FontRenderer fontRenderer = mc.fontRenderer;\n boolean origFont = fontRenderer.getUnicodeFlag();\n fontRenderer.setUnicodeFlag(true);\n if (mc.gameSet... |
"public String toString() {\n return \"String_Node_Str\" + \"String_Node_Str\" + this.getIdentity() + (this.isSetDisplayId() ? \"String_Node_Str\" + this.getDisplayId() : \"String_Node_Str\") + (this.isSetName() ? \"String_Node_Str\" + this.getName() : \"String_Node_Str\") + (this.isSetDescription() ? \"String_Node_... |
"private void ini() {\n log.debug(\"String_Node_Str\", tableBean.getRowCount(), tableBean.getColumnCount());\n for (int r = 0; r < tableBean.getRowCount(); r++) {\n Row row = sheet.createRow(r);\n if (tableBean.getRowHeight() != null) {\n row.setHeight(tableBean.getRowHeight().shortValue(... |
"protected RuleKey.Builder ruleKeyBuilder() {\n ImmutableSortedSet.Builder<String> metaInfFiles = ImmutableSortedSet.naturalOrder();\n addMetaInfContents(metaInfFiles);\n return super.ruleKeyBuilder().set(\"String_Node_Str\", mainClass).set(\"String_Node_Str\", manifestFile).set(\"String_Node_Str\", metaInfFil... |
"public List<List<GraphTargetItem>> getSubs() {\n List<List<GraphTargetItem>> ret = new ArrayList<>();\n if (functions != null) {\n ret.add(functions);\n }\n if (staticFunctions != null) {\n ret.add(staticFunctions);\n }\n return ret;\n}\n"
|
"public IStorageUtilityIndexed<FormInstance> getUserFixtureStorage() {\n return app.getFileBackedUserStorage(HybridFileBackedSqlStorage.FIXTURE_STORAGE_TABLE_NAME, FormInstance.class);\n}\n"
|
"private void computeProperty(ResourcesManager manager, ItemRecord itemRecord) {\n InputStream stream = null;\n try {\n stream = manager.getStream(itemRecord.getPath());\n final Resource resource = createResource(itemRecord, itemRecord.getPath(), false);\n URIConverter uriConverter = resource... |
"public void setPicture(byte[] picture) {\n this.picture = Arrays.copyOf(picture, picture.length);\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.