content stringlengths 40 137k |
|---|
"public List<String> getAllMetaColumns(ModelConfig modelConfig) throws IOException {\n if (metaColumns == null) {\n synchronized (this) {\n if (metaColumns == null) {\n PathFinder pathFinder = new PathFinder(modelConfig);\n List<String> scoreMetaColumns = null;\n ... |
"private void setPropertiesFormEditable(boolean visible) {\n clearContextParams();\n EDBParamName sidOrDatabase = null;\n if (EDatabaseTypeName.ORACLEFORSID.getProduct().equals(getConnection().getProductId())) {\n if (EDatabaseConnTemplate.ORACLESN.getDBDisplayName().equals(getConnection().getDatabaseTy... |
"protected void add(Node n, Context context) {\n if (!cc.continueProcessing()) {\n return;\n }\n if (preserveTypeAnnotations && n.getJSDocInfo() != null) {\n String jsdocAsString = jsDocInfoPrinter.print(n.getJSDocInfo());\n if (!jsdocAsString.equals(\"String_Node_Str\")) {\n ad... |
"public static Class getClassFromName(final String classname) throws ClassNotFoundException {\n Class theClass = null;\n if (classname.startsWith(\"String_Node_Str\")) {\n theClass = Class.forName(classname);\n } else {\n final int numMappings = Array.getLength(sPrimitiveNameToObjectClass);\n ... |
"public String removeLeadingPath(File leading, File path) {\n String l = normalize(leading.getAbsolutePath()).getAbsolutePath() + File.separator;\n String p = normalize(path.getAbsolutePath()).getAbsolutePath();\n if (p.startsWith(l)) {\n String result = p.substring(l.length());\n if (result.star... |
"public void retryOnInvalidToken() throws Exception {\n final HttpClient httpClient = new HttpClient() {\n private volatile boolean tokenIsValid = true;\n\n public CompletionStage<HttpResponse> execute(final HttpRequest httpRequest) {\n return CompletableFutureUtils.successful(executeSync(ht... |
"private Config buildConfiguration() {\n Config config = new Config();\n String hazelcastFilePath = \"String_Node_Str\";\n URL serverConfigURL;\n try {\n if (overrideConfiguration != null && overrideConfiguration.getAlternateConfigFile() != null && overrideConfiguration.getAlternateConfigFile().exist... |
"public void startPrefixMapping(String prefix, String uri) throws SAXException {\n if (null == prefix) {\n prefix = XMLConstants.EMPTY_STRING;\n }\n if (null == uri) {\n uri = XMLConstants.EMPTY_STRING;\n }\n if (namespaceDeclarations == null) {\n namespaceDeclarations = new HashMap(... |
"public void run() {\n IFile propertyFile = PropertyHelper.getPropertyFile(resource);\n if (propertyFile != null) {\n Resource propertyResource = RepResourceFileHelper.getInstance().getFileResource(propertyFile);\n updateProperty(resource, propertyResource);\n updateElement(resource, property... |
"protected DocumentReader<Person> newPersonUnmarshaller() {\n DocumentReader<Person> _r = mappingOf(Person.class).to(property(\"String_Node_Str\"), property(\"String_Node_Str\"), property(\"String_Node_Str\"));\n _r.registerConverters(new ThreadUnsafeDateStringConverter(\"String_Node_Str\"));\n return _r;\n}\n... |
"private boolean filterRepositoryNode(TreeObject node) {\n if (node == null) {\n return false;\n }\n if (node.getType() == TreeObject.SUBSCRIPTION_ENGINE || node.getType() == TreeObject.SERVICE_CONFIGURATION || node.getType() == TreeObject.JOB || node.getType() == TreeObject.JOB_REGISTRY) {\n ret... |
"public List<Project> getReferencedProjects(Project project) {\n Context ctx = CoreRuntimePlugin.getInstance().getContext();\n if (project != null && ctx != null) {\n if (project.equals(this.currentProject)) {\n return getReferencedProjects();\n }\n String parentBranch = getMainPro... |
"public void initForViewByRecipientQuestionGiver() {\n ViewType viewType = ViewType.RECIPIENT_QUESTION_GIVER;\n FieldValidator validator = new FieldValidator();\n if (!bundle.isComplete) {\n buildSectionPanelsForGiverQuestionRecipientForAjaxLoading(sections);\n return;\n }\n if (bundle.resp... |
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n if (null == value) {\n return false;\n }\n boolean wasXMLRoot = false;\n XPath... |
"public org.hl7.fhir.dstu2.model.DocumentReference.DocumentReferenceContextComponent convertDocumentReferenceContextComponent(org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.mode... |
"public void onChange(boolean selfChange) {\n update();\n try {\n mWindowManager.setRotation(USE_LAST_ROTATION, false, mFancyRotationAnimation);\n } catch (RemoteException e) {\n }\n}\n"
|
"private void setListeners() {\n mBackBtn.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n onBackPressed();\n }\n });\n enterVerificationCodeListener = new View.OnClickListener() {\n public void onClick(View v) {\n String confirmationC... |
"protected LinkedHashMap<String, ZuulRoute> locateRoutes() {\n LinkedHashMap<String, ZuulRoute> routesMap = new LinkedHashMap<String, ZuulRoute>();\n addConfiguredRoutes(routesMap);\n routesMap.putAll(this.staticRoutes);\n if (this.discovery != null) {\n Map<String, ZuulRoute> staticServices = new Li... |
"public void handle(WebSocket websocket) {\n JsonObject msg = new JsonObject().putString(\"String_Node_Str\", \"String_Node_Str\").putString(\"String_Node_Str\", _address);\n websocket.writeTextFrame(msg.encode());\n _websocket = websocket;\n if (subscribe.connectedPortList().size() > 0) {\n websocke... |
"public Author fetchAuthor(Elements tags) {\n if (tags.size() == 0)\n return Author.defaultAuthor();\n String tag = tags.get(tags.size() - 1).text();\n if (Strings.isNullOrEmpty(tag))\n return Author.defaultAuthor();\n String[] texts = tag.toUpperCase().split(\"String_Node_Str\");\n if (tex... |
"public void onDrawFrame(GL10 gl) {\n if (surfaceProgram == 0 || program == 0) {\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);\n return;\n }\n final long now = System.nanoTime();\n GLES20.glUseProgram(program);\n GLES20.glVertexAttribPointer(positionLoc, 2, GLES... |
"public JavaClass getTestJavaClass(final String relativePath) throws FileNotFoundException {\n File target = getTestSourceFile(relativePath);\n return JavaParser.parse(target);\n}\n"
|
"private void changeWorkPackage(IAtsWorkPackage workPackage, Collection<IAtsWorkItem> workItems, boolean remove) {\n JaxWorkPackageData data = new JaxWorkPackageData();\n data.setAsUserId(services.getUserService().getCurrentUserId());\n for (IAtsWorkItem workItem : workItems) {\n data.getWorkItemUuids()... |
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_add_agency, container, false);\n setHasOptionsMenu(true);\n getActivity().setTitle(\"String_Node_Str\");\n agencyListView = (ListView) rootView.findViewBy... |
"public int getIndex(String uri, String localName) {\n Attr item;\n int size = attrs.size();\n for (int i = 0; i < size; i++) {\n item = attrs.get(i);\n try {\n if (item.getNamespaceURI().equals(uri) && item.getLocalName().equals(localName)) {\n return i;\n }\... |
"protected void prepareParameters() throws Exception, RemoteException {\n __bean = context.getBean();\n __docName = __getReportDocument();\n __checkDocumentExists();\n InputOptions getPageCountOptions = new InputOptions();\n getPageCountOptions.setOption(InputOptions.OPT_LOCALE, __bean.getLocale());\n ... |
"public void doAction() {\n if (isSheetProtected())\n return;\n int row = getReservedRow();\n int column = getReservedColumn();\n int lastRow = getReservedLastRow();\n int lastColumn = getReservedLastColumn();\n Sheet sheet = getReservedSheet();\n oldData = new ReservedCellData[lastRow - row... |
"public void init(TreeViewer viewer, IStructuredSelection selection) {\n boolean canWork = !selection.isEmpty() && selection.size() == 1;\n IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();\n if (factory.isUserReadOnlyOnCurrentProject()) {\n canWork = false;\n }\n if (canWork... |
"public boolean isSimilar(EObject obj1, EObject obj2) throws FactoryException {\n DatabaseConnection connection1 = SwitchHelpers.DATABASECONNECTION_SWITCH.doSwitch(obj1);\n DatabaseConnection connection2 = SwitchHelpers.DATABASECONNECTION_SWITCH.doSwitch(obj2);\n if (connection1 != null && connection2 != null)... |
"public String toString() {\n final StringBuilder sb = new StringBuilder(\"String_Node_Str\");\n sb.append(\"String_Node_Str\").append(index);\n sb.append(\"String_Node_Str\").append(fieldName).append('\\'');\n sb.append(\"String_Node_Str\").append(type);\n sb.append(\"String_Node_Str\").append(classId);... |
"private void handleBrushSize(View view) {\n float bSize = getResources().getInteger(R.integer.medium_size);\n if (view.getId() == R.id.small_brush) {\n bSize = getResources().getInteger(R.integer.small_size);\n } else if (view.getId() == R.id.large_brush) {\n bSize = getResources().getInteger(R.... |
"public void doMobileInit() {\n HostNetworkConfig.mobileGWIP = System.getProperty(\"String_Node_Str\");\n}\n"
|
"public Object call() {\n final ClientEndpoint endpoint = getEndpoint();\n final ClientEngine clientEngine = getClientEngine();\n final MapService mapService = getService();\n EntryListener<Object, Object> listener = new EntryListener<Object, Object>() {\n private void handleEvent(EntryEvent<Object, ... |
"public void protoContactRemoved(ProtoContactEvent evt) {\n this.refreshAll();\n}\n"
|
"private Object doInvoke(InterpretContext ctx, FunctionInvoker fn, Object[] arguments) throws InterpretException {\n boolean useLatest = (fn != null);\n if (fn == null) {\n Class<?>[] argumentTypes = ParameterUtils.getParameterTypes(arguments);\n fn = resolveFunction(ctx, argumentTypes);\n if... |
"public void refinementTest() throws ParseException, ComponentInitException {\n ReasonerComponent rs = TestOntologies.getTestOntology(TestOntology.SIMPLE);\n Description input = KBParser.parseConcept(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + input);\n ELDown2 operator = new ELDown2(rs... |
"public void checkNotRefsLowerStateEnumeration(EnumTypeRef enumRef) {\n EObject owner = objLookup.getStatefulOwner(enumRef);\n ILifecycleStateResolver stateRes = new StateAttributeLifecycleStateResolver(owner.eResource().getResourceSet());\n LifecycleState ownerState = stateRes.getLifecycleState(owner);\n i... |
"public boolean isAdherenceCapturedForAnyWeek(String patientDocId, String treatmentAdviceId, LocalDate weekStartDate) {\n return allWeeklyAdherenceLogs.findLogsByWeekStartDate(patientDocId, treatmentAdviceId, weekStartDate).size() > 0;\n}\n"
|
"private int[] getMatchLocation(ClassNode node, IJavaElement elem, int maybeStart, int maybeEnd) {\n if (maybeEnd > 0 && cachedContentsAvailable(elem)) {\n return getMatchLocation0(node.getName(), maybeStart, maybeEnd);\n }\n return null;\n}\n"
|
"public void handleDragging(GL2 gl, GLMouseListener glMouseListener) {\n if (isDragging) {\n Point mouseWinCoords = glMouseListener.getPickedPoint();\n float[] fArTargetWorldCoordinates = new float[] { 0, 0 };\n PixelGLConverter pixelGLConverter = view.getPixelGLConverter();\n fArTargetWo... |
"public void decode(Object obj) {\n String refId = ReferenceUtil.fromDbReference(ref, value);\n Class<?> clazz = FieldUtil.getRealType(field);\n BuguEntity refObj = null;\n if (ref.cascade().toUpperCase().indexOf(Default.CASCADE_READ) == -1 || withoutCascade) {\n refObj = (BuguEntity) ConstructorCach... |
"protected void parseExpansionProfileExpansionProfileFixedVersionComponentProperties(JsonObject json, ExpansionProfile owner, ExpansionProfile.ExpansionProfileFixedVersionComponent res) throws IOException, FHIRFormatError {\n parseBackboneElementProperties(json, res);\n if (json.has(\"String_Node_Str\"))\n ... |
"private static <T> void testToString(Class<T> interfaceType, Function<? super T, ? extends T> wrapperFunction) {\n T proxy = new FreshValueGenerator().newFreshProxy(interfaceType);\n assertEquals(\"String_Node_Str\", proxy.toString(), wrapperFunction.apply(proxy).toString());\n}\n"
|
"private void updateNodeOnLink(CreationTool tool) {\n try {\n Class toolClass = TargetingTool.class;\n Field targetRequestField = toolClass.getDeclaredField(\"String_Node_Str\");\n Field targetEditpartField = toolClass.getDeclaredField(\"String_Node_Str\");\n targetRequestField.setAccessi... |
"public static String jsonifyEvent(Object event, String eventType, String serverName, String wlpUserDir, String serverHostName, String[] tags, int maxFieldLength) {\n if (eventType.equals(CollectorConstants.GC_EVENT_TYPE)) {\n if (event instanceof GenericData) {\n return jsonifyGCEvent(-1, wlpUserD... |
"public void updateEntity() {\n if (!(CarriageDirection != null && (CarriageDirection == pointedDir || CarriageDirection.oppositeOrdinal == pointedDir.ordinal()))) {\n CarriageDirection = null;\n }\n super.updateEntity();\n}\n"
|
"public boolean hasPackages() {\n return this.ignorePackages != null && !this.ignorePackages.isEmpty();\n}\n"
|
"public static void main(String[] args) throws IOException {\n DefaultOptionBuilder obuilder = new DefaultOptionBuilder();\n ArgumentBuilder abuilder = new ArgumentBuilder();\n GroupBuilder gbuilder = new GroupBuilder();\n Option inputOpt = obuilder.withLongName(\"String_Node_Str\").withRequired(true).withA... |
"private IStatus reportToALM(IProgressMonitor monitor, Map<String, List<CommentEntry>> taskIdToComment) {\n String repoLabel = m_projProps.getALMRepositoryName();\n Set<String> taskIds = taskIdToComment.keySet();\n int taskAmount = taskIds.size();\n String out = NLS.bind(Messages.ReportToALMJob, repoLabel);... |
"protected boolean isLoginAttempt(String authzHeader) {\n final String authzScheme = getAuthzScheme().toLowerCase(Locale.ROOT);\n final String authzHeaderLowerCase = authzHeader.toLowerCase(Locale.ROOT);\n return authzHeaderLowerCase.startsWith(authzScheme) || authzHeaderLowerCase.startsWith(BEARER_SCHEME);\n}... |
"public boolean changeEndpoints(final List<File> processFiles, final CSARID csarId) {\n this.csarId = csarId;\n final Map<QName, List<File>> unchangedFiles = new HashMap<>();\n final File deployXml = getDeployXML(processFiles);\n if (deployXml == null) {\n ODEEndpointUpdater.LOG.error(\"String_Node_S... |
"public static KeyStroke getKeystrokeOfBestActiveBindingFor(String commandId) {\n IBindingService bindingService = CommonUtils.getAdapter(PlatformUI.getWorkbench(), IBindingService.class);\n TriggerSequence ts = bindingService.getBestActiveBindingFor(commandId);\n if (ts == null)\n return null;\n Tri... |
"public void onClickNegative() {\n Toast.makeText(this, \"String_Node_Str\", Toast.LENGTH_SHORT).show();\n dialogAlert.dismiss();\n}\n"
|
"public MetaTTLField processTTL(DboTableMeta t, Field field) {\n Class type = field.getType();\n if (Integer.class.equals(type)) {\n MetaTTLField rc = ttlMetaProvider.get();\n rc.setup(t, field, field.getName(), field.isAnnotationPresent(NoSqlIndexed.class));\n return rc;\n } else if (int.... |
"public Object createValue() throws BasicException {\n Object[] myprod = new Object[16];\n myprod[0] = m_id == null ? UUID.randomUUID().toString() : m_id;\n myprod[1] = m_jRef.getText();\n myprod[2] = m_jCode.getText();\n myprod[3] = m_jName.getText();\n myprod[4] = Boolean.valueOf(m_jComment.isSelect... |
"public boolean addPlayer(Player player, Integer maxAmountOfTickets, Integer numberOfTickets) {\n if (playerInList(player) + numberOfTickets > maxAmountOfTickets) {\n return false;\n }\n if (Lottery.useiConomy == false) {\n if (player.getInventory().contains(Lottery.material, Lottery.cost * numbe... |
"public String getPackageForToken(IBinder token) {\n synchronized (this) {\n int index = indexOfTokenLocked(token);\n if (index >= 0) {\n HistoryRecord r = (HistoryRecord) mHistory.get(index);\n return r.packageName;\n }\n return null;\n }\n}\n"
|
"public final void start() {\n if (this.isStarted())\n throw (new IllegalStateException(\"String_Node_Str\"));\n if (this.publisher != null)\n throw (new IllegalStateException(\"String_Node_Str\"));\n this.exchangeLayout.start();\n this.routingKeyLayout.start();\n this.publisher = new AmqpP... |
"public IExtractedFileSet extractFileSet(Distribution distribution) throws IOException {\n try {\n final File dir = this.eDir.asFile();\n final FileSet filesSet = downloadConfig.getPackageResolver().getFileSet(distribution);\n final Path path = get(dir.getPath(), \"String_Node_Str\" + \"String_N... |
"public void setServerContext(String aValue) {\n String oldValue = getServerContext();\n if (aValue != null) {\n projectProperties.setProperty(SERVER_CONTEXT_KEY, aValue);\n } else {\n projectProperties.remove(SERVER_CONTEXT_KEY);\n }\n projectPropertiesIsDirty = true;\n changeSupport.fi... |
"public void commentOutText() {\n String highlightedTextArea = rSyntaxTextArea.getSelectedText();\n if (highlightedTextArea != null) {\n highlightedTextArea = findStartSymbol();\n if (highlightedTextArea.startsWith(\"String_Node_Str\")) {\n rSyntaxTextArea.replaceSelection(highlightedText... |
"public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {\n if (position != 0) {\n ((SchoolMateViewHolder) holder).initWithModel(getItem(position));\n }\n}\n"
|
"public Class<?> loadClass(String s) throws ClassNotFoundException {\n if (s.startsWith(\"String_Node_Str\") || s.equals(\"String_Node_Str\")) {\n return twillClassLoader.loadClass(s);\n }\n return super.loadClass(s);\n}\n"
|
"private void cloneCollection(final DBCollection fromCollection, final DBCollection toCollection) throws IllegalArgumentException {\n LOG.debug(\"String_Node_Str\", fromCollection.count(), fromCollection.getFullName(), toCollection.getFullName());\n final ProcessTimer timer = new ProcessTimer(15000);\n final i... |
"public void testAddZhaoFeatures() {\n CoNLL09Sentence sent = getSpanishConll09Sentence1();\n Alphabet<String> alphabet = new Alphabet<String>();\n SentFeatureExtractorPrm prm = new SentFeatureExtractorPrm();\n prm.useGoldSyntax = true;\n CorpusStatistics cs = new CorpusStatistics(prm);\n cs.init(Util... |
"public Map<String, String> toMap(byte[] bytes) {\n if (bytes == null || bytes.length == 0) {\n return Collections.emptyMap();\n }\n try {\n return reader.readValue(bytes);\n } catch (Exception e) {\n String contents;\n try {\n contents = new String(bytes, \"String_Nod... |
"public void setParentGroups(String[] parentGroups, String worldName) {\n if (parentGroups == null) {\n return;\n }\n this.node.set(FileEntity.formatPath(worldName, \"String_Node_Str\"), Arrays.asList(parentGroups));\n this.save();\n this.callEvent(PermissionEntityEvent.Action.INHERITANCE_CHANGED)... |
"public List<MetricGraphData> getMetricValue(CriteriaInfo criteriaInfo, long beginTime, long duration, int aggregationPeriod, String autoDelay) {\n List<MetricGraphData> result = new ArrayList<MetricGraphData>();\n String encodedMetricName = criteriaInfo.getMetricName();\n String metricName = decodeMetricName(... |
"private static int maxAbsU(short[] array, int startIndex, int rows, int columns, int stride) {\n int output = array[startIndex] & 0xFFFF;\n for (int y = 0; y < rows; y++) {\n int index = startIndex + y * stride;\n int end = index + columns;\n for (; index < end; index++) {\n int v... |
"private long getOldest() {\n ChannelContentKey[] array = keys.toArray(new ChannelContentKey[0]);\n Arrays.sort(array);\n if (array.length > 1) {\n ChannelContentKey oldest = array[array.length - 1];\n DateTime then = oldest.getContentKey().getTime();\n DateTime now = DateTime.now(DateTime... |
"protected ActionResult execute() throws EntityDoesNotExistException {\n String courseId = getRequestParamValue(Const.ParamsNames.COURSE_ID);\n String feedbackSessionName = getRequestParamValue(Const.ParamsNames.FEEDBACK_SESSION_NAME);\n Assumption.assertNotNull(courseId);\n Assumption.assertNotNull(feedbac... |
"public ItemStack getOutputStack() {\n return new ItemStack(MinechemItemsRegistration.element, 1, element.ordinal());\n}\n"
|
"public void gc(final long time) {\n CursorableLinkedList.Cursor<TemporalObject<E>> it = window.cursor();\n while (it.hasNext() && it.next().time < time - length) {\n it.remove();\n }\n}\n"
|
"private boolean removeAndIntrinsics(IntrinsicModel model, ExprNode node, RecordMetadata m) throws ParserException {\n switch(node.token) {\n case \"String_Node_Str\":\n return analyzeIn(translator, model, node, m);\n case \"String_Node_Str\":\n return analyzeGreater(model, node, ... |
"public E getDirectChecked(final int index) {\n return index < capacity() && index >= 0 ? getElements()[index] : null;\n}\n"
|
"public void onDataChanged(final AsyncDataChangeEvent<InstanceIdentifier<?>, DataObject> change) {\n printTraceStart(LOG);\n odlSfc.getLock();\n Map<InstanceIdentifier<?>, DataObject> dataOriginalDataObject = change.getOriginalData();\n for (Map.Entry<InstanceIdentifier<?>, DataObject> entry : dataOriginalD... |
"public IValue withType(IType type, ITypeContext typeContext, MarkerList markers, IContext context) {\n if (type == Types.VOID) {\n return this;\n }\n IValue value1 = this.value.withType(type, typeContext, markers, context);\n if (value1 == null) {\n return null;\n }\n this.value = value... |
"public void shouldUseDefaults() {\n Configuration<?, ?> config = new MutableConfiguration();\n assertFalse(config.isReadThrough());\n assertFalse(config.isWriteThrough());\n assertFalse(config.isStatisticsEnabled());\n assertTrue(config.isStoreByValue());\n ExpiryPolicy<?, ?> expiryPolicy = config.ge... |
"public static MetadataTable createSchema(String name, ComponentProperties properties, String schemaPropertyName) {\n IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();\n MetadataTable metadataTable = ConnectionFactory.eINSTANCE.createMetadataTable();\n metadataTable.setId(factory.getNextI... |
"public void doSave(IProgressMonitor monitor) {\n super.doSave(monitor);\n try {\n if (getSelectedPage() instanceof DataModelMainPage) {\n DataModelMainPage mainPage = (DataModelMainPage) getSelectedPage();\n String xsd = mainPage.getXSDSchemaString();\n WSDataModel wsDataM... |
"public boolean apply(Game game, Ability source) {\n for (Permanent creature : game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game)) {\n AttacksIfAbleTargetEffect effect = new AttacksIfAbleTargetEffect(Duration.EndOfTurn);\n effect.setTargetPointer(new... |
"public Response execute() {\n DatabaseAccessor db = null;\n try {\n db = new DatabaseAccessor(DatabaseSettings.username, DatabaseSettings.password, DatabaseSettings.host, DatabaseSettings.database);\n ArrayList<Genome> genomeReleases = db.getAllGenomReleases();\n return new GetGenomeReleaseR... |
"public static void main(String... args) {\n Exception error = null;\n try {\n InitLog.initLogger(args, getParser());\n log.info(getParser().getAppName() + \"String_Node_Str\");\n new DatabaseClone(args).execute();\n } catch (IllegalArgumentException e) {\n log.error(e.getMessage())... |
"private ToolBarContainer createBucketContainer() {\n mediator = new RemoteRenderingToolBarMediator();\n mediator.setToolBarContent(this);\n SerializedRemoteRenderingView serializedView = (SerializedRemoteRenderingView) getTargetViewData();\n ActionToolBarContainer container = new ActionToolBarContainer();\... |
"public static void handleOnCreate(ITableContent content, ExecutionContext context) {\n ReportItemDesign gridDesign = (ReportItemDesign) content.getGenerateBy();\n if (!needOnCreate(gridDesign)) {\n return;\n }\n try {\n IGridInstance grid = new GridInstance(content, context, RunningState.CREA... |
"public String value(Scope scope, String id, String resource, Long quantity) throws AuthException {\n switch(scope) {\n case ACCOUNT:\n return Long.toString(RestrictedTypes.quantityMetricFunction(VolumeMetadata.class).apply(AccountFullName.getInstance(id)) + 1);\n case GROUP:\n re... |
"public static void save(String queryResultID, IDocArchiveWriter writer, ICubeQueryDefinition qd) throws DataException, IOException {\n DataOutputStream dos = null;\n try {\n RAOutputStream outputStream = writer.createRandomAccessStream(queryResultID + STREAM_FLAG);\n dos = new DataOutputStream(outp... |
"protected SearchRequestResult parse_search(String html, int page) throws OpacErrorException, NotReachableException {\n Document doc = Jsoup.parse(html);\n if (doc.select(\"String_Node_Str\").size() > 0) {\n if (doc.select(\"String_Node_Str\").text().trim().startsWith(\"String_Node_Str\")) {\n r... |
"public void run(HttpResponse<JsonNode> response) {\n try {\n JSONObject respObject = response.getBody().getObject();\n Topic account = null;\n if (respObject.has(\"String_Node_Str\") && respObject.getString(\"String_Node_Str\").equals(THING_TYPE_ACCOUNT)) {\n extracted.add(author);\n... |
"public void testProxy() throws Exception {\n final IRemoteService service = registerAndGetRemoteService();\n final IConcatService proxy = (IConcatService) service.getProxy();\n assertNotNull(proxy);\n System.out.println(\"String_Node_Str\");\n String result = proxy.concat(\"String_Node_Str\", \"String_N... |
"public boolean hasAnnotations() {\n unpackAnnotations(false);\n return super.hasAnnotations();\n}\n"
|
"public static void outputNothing() {\n level = Level.OFF;\n}\n"
|
"public Long getId() {\n return getJobId();\n}\n"
|
"public void addTiles() {\n tileGroup.detachChildren();\n Tile[][] field = gameService.getGameField().getField();\n int width = field.length;\n int heigth = field[0].length;\n spacePerTile = camera.getWidth() / width;\n float tilesSceneStartY = getTileSceneStartY(spacePerTile);\n tileGroup.setPosit... |
"private void init(final String url, boolean loadImmediately) {\n final CountDownLatch lock;\n if (view == null) {\n loadImmediately = true;\n }\n if (loadImmediately) {\n startSyncLoad(url, view);\n } else {\n lock = null;\n startAsyncLoad(url, view);\n }\n}\n"
|
"public void flushSync() {\n Records records = getRecordsFromStorage();\n if (records.isEmpty()) {\n return;\n }\n while (!records.isEmpty()) {\n final List<JSONObject> serializedLogs = records.getSerializedLogs();\n if (!LogHouseConfiguration.isTest) {\n boolean isSuccess = ... |
"protected Map<Entity, Throwable> waitForTasksOnEntityStart(Map<Entity, Task<?>> tasks) {\n Map<Entity, Throwable> errors = Maps.newLinkedHashMap();\n for (Map.Entry<Entity, Task<?>> entry : tasks.entrySet()) {\n Entity entity = entry.getKey();\n Task<?> task = entry.getValue();\n try {\n ... |
"int findDesiredInputMethodWindowIndexLocked(boolean willMove) {\n WindowList windows = getDefaultWindowListLocked();\n WindowState w = null;\n int i;\n for (i = windows.size() - 1; i >= 0; --i) {\n WindowState win = windows.get(i);\n if (DEBUG_INPUT_METHOD && willMove)\n Slog.i(TAG... |
"public StateType getStateType() throws OseeCoreException {\n IAtsStateDefinition stateDefinition = workItem.getStateDefinition();\n if (stateDefinition == null) {\n return null;\n }\n return stateDefinition.getStateType();\n}\n"
|
"public static void cleanupOldCombos() {\n Enumeration<String> keys = recentlyUsedAbilities.keys();\n while (keys.hasMoreElements()) {\n String name = keys.nextElement();\n ArrayList<AbilityInformation> usedAbilities = recentlyUsedAbilities.get(name);\n usedAbilities.clear();\n }\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.