content stringlengths 40 137k |
|---|
"public void realmNotificationOrder() {\n final AtomicInteger listenerACalled = new AtomicInteger(0);\n final AtomicInteger listenerBCalled = new AtomicInteger(0);\n final Realm realm = looperThread.getRealm();\n final RealmChangeListener<Realm> listenerA = new RealmChangeListener<Realm>() {\n public... |
"public void start(BundleContext bc) {\n super.start(bc);\n links = new LinkedList<MenuLink>();\n eventTypes = new LinkedList<String>();\n eventTypes.add(\"String_Node_Str\");\n eventTypes.add(\"String_Node_Str\");\n builder.setApplication(this);\n Manager.getInstance().addProjectListener(builder);... |
"private void setResultSetMetadata(BatchSinkContext context) throws Exception {\n ensureJDBCDriverIsAvailable(context);\n Connection connection;\n if (dbSinkConfig.user == null) {\n connection = DriverManager.getConnection(dbSinkConfig.connectionString);\n } else {\n connection = DriverManager... |
"public boolean getSaveFormData() {\n return false;\n}\n"
|
"public void importMatchRule(MatchRuleDefinition matchRule, boolean overwrite) {\n if (overwrite) {\n this.removeAllBlockingKey();\n }\n List<String> conflictKeys = new ArrayList<String>();\n for (BlockKeyDefinition blockKey : matchRule.getBlockKeys()) {\n if (!overwrite && isKeyDefinitionAdde... |
"public double integrate(final FirstOrderDifferentialEquations equations, final double t0, final double[] y0, final double t, final double[] y) throws MathUserException, IntegratorException {\n final int n = y0.length;\n sanityChecks(equations, t0, y0, t, y);\n setEquations(equations);\n resetEvaluations();... |
"private static Object deepCopyUsingMetadata(Object source, Map<Object, Object> copiedObjectMap) {\n Object target = null;\n try {\n if (source == null)\n return null;\n Class<?> sourceObjectClass = source.getClass();\n EntityMetadata metadata = KunderaMetadataManager.getEntityMeta... |
"public Object[] toArrayObject() {\n String description = item.getDescription();\n String stockNumber = item.getStockNumber();\n float price = item.getPrice();\n int quantity1 = getQuantityQuarter1();\n int quantity2 = getQuantityQuarter2();\n int quantity3 = getQuantityQuarter3();\n int quantity4 ... |
"private static boolean isSkipIp(NetworkInterface networkInterface) {\n try {\n if (!networkInterface.isUp() || networkInterface.isLoopback() || networkInterface.isVirtual()) {\n return true;\n }\n return false;\n } catch (Exception ignore) {\n }\n return true;\n}\n"
|
"private void addChildren(TreeItem treeItem, JSONValue jsonValue) {\n JSONArray jsonArray;\n JSONObject jsonObject;\n JSONString jsonString;\n if ((jsonArray = jsonValue.isArray()) != null) {\n for (int i = 0; i < jsonArray.size(); ++i) {\n TreeItem child = treeItem.addItem(getChildText(\"... |
"public XMPPConnection login(XMPPConnectionConfiguration configuration) throws XMPPException {\n synchronized (this) {\n if (!multipleConnectionsAllowed) {\n XMPPConnection activeConnection = getActiveConnection();\n if (isReconnect) {\n if (activeConnection != null) {\n ... |
"public <T> MessageBodyWriter<T> getMessageBodyWriter(Class<T> c, Type t, Annotation[] as, MediaType mediaType) {\n MessageBodyWriter p;\n p = _getMessageBodyWriter(c, t, as, mediaType, customWriterProviders);\n if (p != null)\n return p;\n p = _getMessageBodyWriter(c, t, as, mediaType, writerProvide... |
"default SubscriptionCollection getSubscription(RequestContext requestContext) {\n Asset asset = getAsset(requestContext.fullName());\n Class<? extends SubscriptionCollection> subscriptionType = requestContext.getSubscriptionType();\n requestContext.viewType(subscriptionType);\n return asset == null ? null ... |
"public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer player) {\n if (player.isSneaking()) {\n onSneakClick(itemstack, world, player);\n return itemstack;\n }\n onPreWeaponFired(itemstack, world, player);\n if (!isEmpty(itemstack)) {\n onWeaponFired(itemstack... |
"protected AbstractRecord buildCompositeRow(Object attributeValue, AbstractSession session, XMLDescriptor referenceDescriptor, AbstractRecord parentRow, DatabaseField field, Object originalObject, boolean wasXMLRoot) {\n String defaultRootElementString = null;\n if (referenceDescriptor != null) {\n default... |
"public static void registerFluids() {\n if (!FluidRegistry.isFluidRegistered(\"String_Node_Str\")) {\n Fluid milk = new Fluid(\"String_Node_Str\").setUnlocalizedName(Names.Fluids.MILK);\n if (FluidRegistry.registerFluid(milk)) {\n FluidContainerRegistry.registerFluidContainer(new FluidStack... |
"public void flushQuery(UpdateContext context, String parameterPrefix, Query query, Object view, Object value) {\n if (element != null) {\n value = element;\n } else if (value == null || !(value instanceof MutableStateTrackable)) {\n return;\n }\n MutableStateTrackable element = (MutableStateT... |
"public FilterBuilder createFilterBuilderForDisjunctions(Collection<Disjunction> disjunctions) throws UnsupportedException, ExecutionException {\n if (disjunctions.size() > 1) {\n List<BoolFilterBuilder> external = new ArrayList<>();\n for (Disjunction disjunction : disjunctions) {\n List<Fi... |
"public void onChange(ColorFilter filter) {\n if (!filter.isEnabled() || filter.getFilter() == null)\n return;\n synchronized (log) {\n for (int i = 0; i < log.size(); i++) {\n boolean colorResult = log.get(i).testColorFilter(filter, true);\n if (colorResult)\n l... |
"public CheckedListenableFuture<R> dispatch(final ServiceConfiguration serviceConfig) {\n Future<CheckedListenableFuture<R>> res = Threads.lookup(Empyrean.class, AsyncRequest.class, serviceConfig.getFullName().toString()).limitTo(NUM_WORKERS).submit(new Callable<CheckedListenableFuture<R>>() {\n public Checke... |
"private void generateAndRecordEARFacadeContents(final DeploymentContext dc, final String appClientGroupList) throws IOException {\n final ClientArtifactsManager clientArtifactsManager = ClientArtifactsManager.get(dc);\n final Manifest manifest = new Manifest();\n Attributes mainAttrs = manifest.getMainAttribu... |
"public List<String> listRoles(String userId, String domainName) {\n debug(\"String_Node_Str\");\n List<String> roles = new ArrayList<String>();\n try {\n Domains domains = domainStore.getDomains(domainName);\n List<Domain> domainList = domains.getDomains();\n if (domainList.size() == 0) {... |
"public void testInvalidTransport() {\n thrown.expect(IllegalArgumentException.class);\n ComputeOptions.newBuilder().setTransportOptions(EasyMock.createMock(TransportOptions.class));\n}\n"
|
"public TypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType) {\n if (isStar()) {\n return TypePattern.ANY;\n }\n String simpleName = maybeGetSimpleName();\n if (simpleName != null) {\n FormalBinding formalBinding = scope.lookupFormal(simp... |
"public static Object convertProperty(Object dynaPropVal) {\n Object propertyValue = null;\n Class<?> propClass = dynaPropVal.getClass();\n String propName = propClass.getName();\n if (propName.contains(\"String_Node_Str\")) {\n String methodName = propName.substring(propName.indexOf(\"String_Node_St... |
"public org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent convertConformanceSoftwareComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceSoftwareComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Conformance.ConformanceSo... |
"private void registerReceiverIfRequired() {\n if (!receiverRegistered) {\n IntentFilter filter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION);\n context.registerReceiver(networkBroadcastReceiver, filter);\n receiverRegistered = true;\n }\n}\n"
|
"public void closeContainerTag() {\n writer.closeTag(HTMLTags.TAG_DIV);\n int display = ((Integer) cellDisplayStack.pop()).intValue();\n if (((display & HTMLEmitterUtil.DISPLAY_INLINE) > 0) || ((display & HTMLEmitterUtil.DISPLAY_INLINE_BLOCK) > 0)) {\n closeInlineBoxTag();\n }\n}\n"
|
"public static final MarkerLine create(Axis ax, DataElement de, ColorDefinition lineColor) {\n final MarkerLine ml = ComponentFactory.eINSTANCE.createMarkerLine();\n ml.setLineAttributes(LineAttributesImpl.create(lineColor, LineStyle.DASHED_LITERAL, 1));\n ml.setValue(de);\n ml.setLabel(LabelImpl.create());... |
"private void resetValues(final Text key, final Text value) {\n final IContext context = contextManager.getContext(contextCombo.getItem(contextCombo.getSelectionIndex()));\n value.setText(ContextParameterUtils.parseScriptContextCode(key.getText(), context));\n}\n"
|
"protected void setUp() throws Exception {\n if (isOnWindows()) {\n super.setUp();\n String[] pictures = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n String pkg = \"String_Node_Str\";\n for... |
"public boolean isAntiFalsingNeeded() {\n return onKeyguard();\n}\n"
|
"public boolean onTouch(View v, MotionEvent event) {\n final MFDatePicker mfDatePicker = new MFDatePicker();\n mfDatePicker.setOnDatePickListener(new MFDatePicker.OnDatePickListener() {\n public void onDatePicked(String date) {\n setValue(date);\n mfDatePicker.dismiss();\n... |
"V replace(Bytes keyBytes, K key, V expectedValue, V newValue, int hash2) {\n lock();\n try {\n long keyLen = keyBytes.remaining();\n hashLookup.startSearch(hash2);\n for (int pos; (pos = hashLookup.nextPos()) >= 0; ) {\n long offset = offsetFromPos(pos);\n NativeBytes e... |
"public void drawLeft(float x, float y, float maxWidth, DisplayHandler.Background background, int backgroundColor, int textColor) {\n DisplayHandler.Background bg = background;\n int bgColor = backgroundColor;\n int textCol = textColor;\n if (this.backgroundColor != null)\n bgColor = this.backgroundC... |
"public void AIDataServiceDevRuTest() {\n final String devUrl = getDevUrl();\n if (!TextUtils.isEmpty(devUrl)) {\n final AIConfiguration config = new AIConfiguration(\"String_Node_Str\", getSubscriptionKey(), AIConfiguration.SupportedLanguages.Russian, AIConfiguration.RecognitionEngine.System);\n co... |
"public void testGetPropertyName() {\n String result = CommonsHelper.getPropertyName(Student.class, Student::getAge);\n assertEquals(\"String_Node_Str\", result);\n}\n"
|
"public void executeJob(Job job, boolean async) throws JobAlreadyStartedException {\n LOGGER.info(\"String_Node_Str\", job.getName(), job.getId());\n if (runningJobs.containsKey(job.getId())) {\n LOGGER.info(\"String_Node_Str\", job.getName(), job.getId());\n throw new JobAlreadyStartedException();\... |
"protected static String instrumentBodyText(CharSequence bodyText, int halign, int valign, boolean isHtml, Border border, Insets margin, String cssid, char mnemonic, String imgID, String imgURL, int height, boolean isButton, Cursor bodyCursor, boolean isAnchored, boolean isElementAnchored) {\n Insets padding = null;... |
"public void onResultReceived(CameraMetadataNative result, CaptureResultExtras resultExtras) throws RemoteException {\n int requestId = resultExtras.getRequestId();\n if (DEBUG) {\n Log.v(TAG, \"String_Node_Str\" + resultExtras.getFrameNumber() + \"String_Node_Str\" + requestId);\n }\n final CaptureL... |
"public NavigationNode getNodeByName(String pagename, int depth) {\n return getNodeByName(ics.GetVar(\"String_Node_Str\"), pagename, depth);\n}\n"
|
"public static void saveChatMessages(Context context, List<QBChatHistoryMessage> messagesList, String dialogId) {\n MessageCache messageCache = null;\n for (QBChatHistoryMessage historyMessage : messagesList) {\n String messageId = historyMessage.getId();\n String message = historyMessage.getBody();... |
"public void commit() {\n LOG.debug(\"String_Node_Str\", _lastComittedOffset);\n LOG.debug(\"String_Node_Str\", _emittedToOffset);\n LOG.debug(\"String_Node_Str\", _lastEnquedOffset);\n if (_lastEnquedOffset >= _lastComittedOffset) {\n LOG.debug(\"String_Node_Str\", _partition);\n Map<Object, ... |
"protected void createMasterPart(final IManagedForm managedForm, Composite parent) {\n FormToolkit toolkit = managedForm.getToolkit();\n Section section = toolkit.createSection(parent, Section.DESCRIPTION | Section.TITLE_BAR);\n section.setText(\"String_Node_Str\");\n Composite client = toolkit.createCompos... |
"public List<KVDocument> createListFromJson(String json) {\n try {\n return converter.convert((List<Map<String, Object>>) mapper.readValue(json, typeReference));\n } catch (IOException e) {\n throw new RuntimeException(\"String_Node_Str\" + json);\n }\n}\n"
|
"public void play() {\n playingTrackList = frame.getMainPanel().currentContentPanel().getTrackList();\n playingContentPanel = frame.getMainPanel().currentContentPanelName();\n List<String> selSids = playingTrackList.getSelectedStreamIds();\n if (selSids.size() > 0) {\n playingTrackList.clearTableSele... |
"private static Object getExecuteThread() {\n if (getWLSMBeanServer() != null) {\n if (wlsThreadPoolRuntime == null) {\n try {\n ObjectName service = new ObjectName(WLS_SERVICE_KEY);\n ObjectName serverRuntime = (ObjectName) wlsMBeanServer.getAttribute(service, WLS_SER... |
"private void addParent(JSONArray parents, String name, URI location) throws JSONException {\n JSONObject parent = new JSONObject();\n parent.put(ProtocolConstants.KEY_NAME, name);\n parent.put(ProtocolConstants.KEY_LOCATION, location);\n URI childLocation;\n try {\n childLocation = new URI(locati... |
"public List<User> getAllUsers() {\n List<User> userList = null;\n String sparql = \"String_Node_Str\" + \"String_Node_Str\" + lSMOauthGraphURL + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n try {\n String service = sparqlEndPoint;\n QueryExecution vqe = new QueryEngineHTTP(... |
"public static List<KeyboardAddOnAndBuilder> getEnabledKeyboards(Context askContext) {\n final List<KeyboardAddOnAndBuilder> allAddOns = msInstance.getAllAddOns(askContext);\n Logger.i(TAG, \"String_Node_Str\" + allAddOns.size() + \"String_Node_Str\");\n final SharedPreferences sharedPreferences = PreferenceMa... |
"public void selectTeam(ActionRequest request, ActionResponse response) {\n Project project = request.getContext().asType(Project.class);\n project = Beans.get(ProjectRepository.class).find(project.getId());\n try {\n Beans.get(ProjectService.class).cascadeUpdateTeam(project, project.getTeam(), project.... |
"public void testGetMastery() throws InterruptedException, ExecutionException, TimeoutException {\n try {\n handler.getMastery(4353, MasteryData.SANITIZED_DESCRIPTION).get(1, MINUTES);\n } catch (RequestException ex) {\n if (isNotServerside(ex))\n throw ex;\n }\n}\n"
|
"public Slf4jReporter buildReporter(final MetricRegistry metricRegistry, final Exchange creatingExchange, final MetricGroup metricGroup) {\n Slf4jReporterDefinition definitionWithDefaults = getReporterDefinitionWithDefaults();\n final String filterValue = evaluateValue(definitionWithDefaults.getFilter(), definiti... |
"private void updateTiles() {\n baseScene.registerUpdateHandler(new TimerHandler(0.1f, new ITimerCallback() {\n public void onTimePassed(final TimerHandler pTimerHandler) {\n detachChild(gameFieldView);\n gameFieldView.addTiles();\n attachChild(gameFieldView);\n }\n ... |
"public void renderCoveredConection(int x, int y, int z, IPartRenderHelper rh, RenderBlocks renderer, int channels, ForgeDirection of) {\n TileEntity te = this.tile.getWorldObj().getTileEntity(x + of.offsetX, y + of.offsetY, z + of.offsetZ);\n IPartHost ccph = te instanceof IPartHost ? (IPartHost) te : null;\n ... |
"public void run() {\n MainActivity.getInstance().rebootIdeaMenuItems();\n}\n"
|
"protected void channelRead0(ChannelHandlerContext ctx, BasePackage msg) {\n switch(msg.getMsgType()) {\n case BasePackage.HEART_BEAT:\n serverSession.setLastHeartbeatTime(new Date());\n break;\n case BasePackage.INITIAL_RESPONSE:\n serverSession.updateContextSettings((... |
"private byte[] findClassBytes(String className) {\n if (JavaScriptHost.class.getName().equals(className)) {\n return javaScriptHostBytes;\n }\n if (classRewriter != null && classRewriter.isJsoIntf(className)) {\n return classRewriter.writeJsoIntf(className);\n }\n String lookupClassName = ... |
"public void handleJobUnbookedEvent(JobUnbookedEvent event) {\n DispatchJob job = jobIndex.get(event.getProc().getJobId());\n if (job == null) {\n logger.info(\"String_Node_Str\");\n return;\n }\n final DispatchFolder folder = folderIndex.get(job.getFolderId());\n logger.info(\"String_Node_... |
"public void decryptPassword(PasswordItem item) {\n Intent intent = new Intent(this, PgpHandler.class);\n intent.putExtra(\"String_Node_Str\", item.toString());\n intent.putExtra(\"String_Node_Str\", item.getFile().getAbsolutePath());\n intent.putExtra(\"String_Node_Str\", \"String_Node_Str\");\n if (Bui... |
"protected void initialize() {\n String[] indicatorThreshold = IndicatorHelper.getIndicatorThreshold(parameters);\n if (indicatorThreshold != null) {\n lowerText.setText(indicatorThreshold[0] == null ? \"String_Node_Str\" : indicatorThreshold[0]);\n higherText.setText(indicatorThreshold[1] == null ?... |
"public VirtualMachineEntity createVirtualMachineFromScratch(String id, String owner, String isoId, String hostName, String displayName, String hypervisor, String os, int cpu, int speed, long memory, Long diskSize, List<String> computeTags, List<String> rootDiskTags, Map<String, NicProfile> networkNicMap, DeploymentPla... |
"public Point getPoint(int index) {\n return data.getTrajectory(index).getReference().getTrajectory().getFirstPoint();\n}\n"
|
"public boolean equals(Object obj) {\n if (obj instanceof DependencyInfo) {\n final DependencyInfo other = (DependencyInfo) obj;\n return new EqualsBuilder().append(file, other.file).append(type, other.type).append(hints, other.hints).isEquals();\n } else {\n return false;\n }\n}\n"
|
"public ReturnCode save(IndicatorDefinition indicator) {\n IndicatorDefinitionWriter writer = ElementWriterFactory.getInstance().createIndicatorDefinitionWriter();\n ReturnCode saved = writer.save(indicator);\n return saved;\n}\n"
|
"private static SerializationData loadData(String dirName) throws IOException, JAXBException {\n SerializationManager serializationManager = GeneralManager.get().getSerializationManager();\n Unmarshaller unmarshaller = serializationManager.getProjectContext().createUnmarshaller();\n File metaData = new File(di... |
"public void testValidateMd5Sum() throws Exception {\n ImmutableMap<String, String> testVectors = ImmutableMap.<String, String>builder().put(\"String_Node_Str\", \"String_Node_Str\").put(\"String_Node_Str\", \"String_Node_Str\").put(\"String_Node_Str\", \"String_Node_Str\").put(\"String_Node_Str\", \"String_Node_Str... |
"public Annotation getResourceAnnotation(final ModelResource modelResource, final boolean forceCreate) throws ModelWorkspaceException {\n CoreArgCheck.isNotNull(modelResource, \"String_Node_Str\");\n Annotation annotation = modelResource.getAnnotations().getAnnotation(modelResource.getModelAnnotation());\n if ... |
"public RpcClientResult getStopAgentFee(String address) throws NulsException, IOException {\n AssertUtil.canNotEmpty(address, \"String_Node_Str\");\n if (!AddressTool.validAddress(address)) {\n return Result.getFailed(KernelErrorCode.PARAMETER_ERROR).toRpcClientResult();\n }\n StopAgentTransaction tx... |
"public static void shutdownAll() {\n com.hazelcast.impl.FactoryImpl.shutdownAll();\n synchronized (initLock) {\n defaultInstance.set(null);\n }\n}\n"
|
"private void fillValues(Point pt, TimeGraphControl threadStates, ITimeGraphEntry entry) {\n if (entry == null) {\n return;\n }\n if (entry.hasTimeEvents()) {\n long currPixelTime = timeGraphControl.getTimeAtX(pt.x);\n long nextPixelTime = timeGraphControl.getTimeAtX(pt.x + 1);\n if... |
"private Element createNode(Document document, Graph graph, Node n) throws Exception {\n Element nodeE = document.createElement(\"String_Node_Str\");\n nodeE.setAttribute(\"String_Node_Str\", n.getNodeData().getId());\n if (n.getNodeData().getLabel() != null && !n.getNodeData().getLabel().isEmpty()) {\n ... |
"public void setUuid(String uuid) {\n this.nicUuid = uuid;\n}\n"
|
"public void correct(final RealVector z) {\n MathUtils.checkNotNull(z);\n if (z.getDimension() != measurementMatrix.getRowDimension()) {\n throw new DimensionMismatchException(z.getDimension(), measurementMatrix.getRowDimension());\n }\n RealMatrix s = measurementMatrix.multiply(errorCovariance).mult... |
"public CertificatePair loadAgent(UUID siteId, UUID agentId) {\n try {\n if (this.agentKeyFile(siteId, agentId).exists()) {\n return new CertificatePair(this.agentCrtFile(siteId, agentId), this.agentKeyFile(siteId, agentId));\n } else {\n return new CertificatePair(this.agentCrtFi... |
"void processRemoteRules() {\n if (!conf.isDistributed())\n return;\n List<Rule> toAdd = new ArrayList<Rule>();\n for (RuleComp rc : ruleComps) {\n for (Rule r : rc.getRules()) {\n if (hasRemoteRuleHead(r, tableMap))\n processRemoteRuleHead(r, toAdd);\n }\n ... |
"public void unloadEvent(WorldEvent.Unload evt) {\n int d = evt.world.provider.dimensionId;\n if (d != 0) {\n return;\n }\n if (!evt.world.isRemote) {\n if (MinecraftServer.getServer().isDedicatedServer()) {\n RfToolsDimensionManager.cleanupDimensionInformation();\n Known... |
"public void printResult(DFATool program) {\n for (InstructionHandle instr : bounds.keySet()) {\n ContextMap<CallString, Pair<ValueMapping, ValueMapping>> r = bounds.get(instr);\n Context c = r.getContext();\n LineNumberTable lines = c.method.getMethodInfo().getCode().getLineNumberTable();\n ... |
"protected void runParallelForPaging(List<Integer> initialPartitions) throws InterruptedException, ExecutionException {\n final NodeEngine nodeEngine = getNodeEngine();\n final SerializationService ss = nodeEngine.getSerializationService();\n final ExecutorService executor = nodeEngine.getExecutionService().ge... |
"protected void checkWriteCrash(Node n, String description) {\n if (userControl.compareTo(FailureLvl.CRASH) < 0) {\n if (Utility.getRNG().nextDouble() < failureRate) {\n System.out.println(\"String_Node_Str\" + n.addr);\n NodeCrashException e = failNode(n.addr);\n throw e;\n ... |
"public void acquire() {\n int ticket = VM_Synchronization.fetchAndAdd(this, dispenserFieldOffset, 1);\n int retryCountdown = TIMEOUT_CHECK_FREQ;\n long localStart = 0;\n long lastSlowReport = 0;\n while (ticket != serving) {\n if (localStart == 0)\n lastSlowReport = localStart = VM_Tim... |
"public RootObjectMetaData createNewRootObjectMetaData(int rootObjectId, UUID rootObjectUuid, String name, int objectTypeId, int activeRelease, int latestRelease) throws RepositoryException {\n RootObjectMetaData romd = createRootObjectMetaData(rootObjectId, rootObjectUuid, name, objectTypeId, activeRelease, latestR... |
"private void initConfigFromFlags(String[] args, PrintStream err) {\n List<String> processedArgs = processArgs(args);\n CmdLineParser parser = new CmdLineParser(flags);\n isConfigValid = true;\n try {\n parser.parseArgument(processedArgs.toArray(new String[] {}));\n } catch (CmdLineException e) {\... |
"public static ControllerMethodInvoker build(Method method, Injector injector) {\n final Class[] paramTypes = method.getParameterTypes();\n final Annotation[][] paramAnnotations = method.getParameterAnnotations();\n ArgumentExtractor<?>[] argumentExtractors = new ArgumentExtractor<?>[paramTypes.length];\n f... |
"public void onClick(DialogInterface dialogInterface, int i) {\n Log.d(TAG, \"String_Node_Str\");\n sendMTMDecision(decisionId, MTMDecision.DECISION_ONCE);\n}\n"
|
"public boolean hasAny(Matcher<? super T> matcher) {\n synchronized (messageLog) {\n for (T element : messageLog) {\n if (matcher.matches(element)) {\n return true;\n }\n }\n }\n return false;\n}\n"
|
"public void addPrimaryKeyColumn_multiColumn() {\n CreateTableStatement statement = new CreateTableStatement(\"String_Node_Str\");\n statement.addPrimaryKeyColumn(\"String_Node_Str\", \"String_Node_Str\");\n statement.addPrimaryKeyColumn(\"String_Node_Str\", \"String_Node_Str\");\n assertEquals(2, statement... |
"private void remoteRemove(Bytes keyBytes, int hash2, final long timestamp, final byte identifier) {\n lock();\n try {\n MultiStoreBytes entry = tmpBytes;\n if (searchKey(keyBytes, hash2, entry, hashLookupLiveOnly) >= 0L) {\n long timeStampPos = entry.position();\n if (shouldTe... |
"public IStatus runInUIThread(IProgressMonitor monitor) {\n try {\n doImport(objs, monitor);\n port.initMDM(null);\n return Status.OK_STATUS;\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n return Status.CANCEL_STATUS;\n } finally {\n new UIJob(\"String_Nod... |
"protected void migrateContentData(String orgid) throws DatabaseException, SQLException {\n this.logger.info(\"String_Node_Str\");\n List<Object[]> contentRows = new LinkedList<Object[]>();\n Set<String> uuidCache = new HashSet<String>();\n ResultSet contentInfo = this.executeQuery(\"String_Node_Str\" + \"S... |
"public Collection<IClass> getAllImplementedInterfaces() throws ClassHierarchyException {\n Collection<IClass> realIfaces = realType.getAllImplementedInterfaces();\n if (realType.isInterface()) {\n HashSet<IClass> result = HashSetFactory.make(realIfaces);\n result.add(realType);\n return resu... |
"private List<String> findMultipleHeaders(HttpServletRequest request, String name) {\n String values = findHeader(request, name);\n if (values == null)\n return null;\n List<String> valueList = new ArrayList<String>();\n int idx = 0;\n do {\n idx = values.indexOf(';', idx);\n if (idx... |
"private synchronized Rectangle getSelection(boolean useScreenCoords) {\n int x = selectionStart.x;\n int y = selectionStart.y;\n int w = selectionEnd.x - selectionStart.x;\n int h = selectionEnd.y - selectionStart.y;\n boolean horizSwap = false;\n boolean vertSwap = false;\n if (w < 0) {\n ... |
"private void assertLogCanContainTx(long txId, long prevTxId) throws IOException {\n if (prevTxId >= txId) {\n throw new IOException(\"String_Node_Str\" + txId + \"String_Node_Str\" + prevTxId + \"String_Node_Str\");\n }\n}\n"
|
"private int calculateShowTextTimeout(MessageCap messageCap) {\n MessageParam textParam = messageCap.getMessageParams().get(0);\n MessageParam timePerWordParam = messageCap.getMessageParams().get(2);\n try {\n int numWords = StringParsing.countWords(textParam.getValue());\n return Integer.parseIn... |
"public void createStream(String streamName, List<ColumnNameTypeValue> columns) {\n StreamDefinition newStream = QueryFactory.createStreamDefinition().name(streamName);\n for (ColumnNameTypeValue column : columns) {\n newStream.attribute(column.getColumn(), getSiddhiType(column.getType()));\n }\n sid... |
"public boolean isSortByTransaction() {\n CustomizeData generateCustDataFromTable = xHistoryViewer.getXViewer().getCustomizeMgr().generateCustDataFromTable();\n return generateCustDataFromTable.getSortingData().getSortingIds().contains(HistoryXViewerFactory.transaction.getId());\n}\n"
|
"public void handleTransportError(WebSocketSession session, Throwable exception) throws Exception {\n protocolManager.processTransportError(session.getId(), exception);\n}\n"
|
"public int endIndex() {\n return this.type == Symbols.ARROW_OPERATOR ? this.start + 2 : this.start + 1;\n}\n"
|
"public int deleteMin() {\n while (buckets[minIdx].isEmpty()) {\n minIdx = (minIdx + 1) & MODULO_MASK;\n }\n size--;\n final int elementId = buckets[minIdx].popFront().value;\n return elementId;\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.