content stringlengths 40 137k |
|---|
"protected void downloadDesFile() throws IOException {\n String filename = getFilename(\"String_Node_Str\");\n URL url = new URL(scopDownloadURL + filename);\n downloadFileFromRemote(url, new File(getDesFilename()));\n}\n"
|
"public Animator createAnimator(ViewGroup sceneRoot, TransitionValues startValues, TransitionValues endValues) {\n if (startValues == null || endValues == null) {\n return null;\n }\n final View view = endValues.view;\n Drawable startBackground = (Drawable) startValues.values.get(PROPNAME_BACKGROUND)... |
"public byte[] encodeBE() {\n if (isLessThanUnsigned(value, 253)) {\n return new byte[] { (byte) value };\n } else if (Utils.isLessThanUnsigned(value, 65536)) {\n return new byte[] { (byte) 253, (byte) (value), (byte) (value >> 8) };\n } else if (Utils.isLessThanUnsigned(value, 4294967295L)) {\n ... |
"public static Drawable getBorderDrawable(LayoutParser parser, Context context) {\n if (!parser.isObject() || parser.isNull()) {\n return null;\n }\n float cornerRadius = 0;\n int borderWidth = 0, borderColor = Color.TRANSPARENT, bgColor = Color.TRANSPARENT;\n parser = parser.peek();\n String v... |
"public void visit(NodeTraversal t, Node n, Node parent) {\n switch(n.getType()) {\n case Token.LABEL:\n tryMinimizeExits(n.getLastChild(), Token.BREAK, n.getFirstChild().getString());\n break;\n case Token.FOR:\n case Token.WHILE:\n tryMinimizeExits(NodeUtil.get... |
"public void start(CoprocessorEnvironment env) {\n if (env instanceof RegionCoprocessorEnvironment) {\n HTableDescriptor tableDesc = ((RegionCoprocessorEnvironment) env).getRegion().getTableDesc();\n String hTableName = tableDesc.getNameAsString();\n String prefixBytes = tableDesc.getValue(HBase... |
"public IStyle getComputedStyle() {\n if (computedStyle == null) {\n if (inlineStyle == null || inlineStyle.isEmpty()) {\n String cacheKey = styleClass;\n ITableContent table = ((IRowContent) parent).getTable();\n if (column >= 0 && column < table.getColumnCount()) {\n ... |
"private void showIdeaDialog() {\n mDetailedIdeaDialog = new LovelyCustomDialog(context, mDarkTheme ? R.style.EditTextTintThemeDark : R.style.EditTextTintTheme).setView(R.layout.detailed_idea_form).setTopColor(mPrimaryColor).setIcon(R.drawable.ic_bulb).setListener(R.id.editButton, new View.OnClickListener() {\n\n ... |
"protected void finalize() throws Throwable {\n try {\n if (mCloseGuard != null) {\n mCloseGuard.warnIfOpen();\n }\n release();\n } finally {\n super.finalize();\n }\n}\n"
|
"void handleProviderAdded(ProtocolProviderService pps) {\n pps.addRegistrationStateChangeListener(this);\n if (pps.isRegistered()) {\n handleProviderRegistered(pps, false);\n }\n}\n"
|
"protected List<ICompletionProposal> sortProposals(List<ICompletionProposal> proposals, IProgressMonitor monitor, ContentAssistInvocationContext context) {\n proposals = super.sortProposals(proposals, monitor, context);\n Map<String, ICompletionProposal> completionProposalMap = new HashMap<String, ICompletionProp... |
"private Text createHyperLink(Composite sectionClient, String lbl) {\n FormToolkit toolkit = new FormToolkit(sectionClient.getDisplay());\n Hyperlink link = toolkit.createHyperlink(sectionClient, \"String_Node_Str\", SWT.WRAP);\n link.setBackground(sectionClient.getBackground());\n link.addHyperlinkListener... |
"public boolean unifyWithSubtype(JSType other, List<String> typeParameters, Multimap<String, JSType> typeMultimap) {\n Preconditions.checkNotNull(other);\n if (this.isUnknown() || this.isTop()) {\n return true;\n } else if (getMask() == TYPEVAR_MASK && typeParameters.contains(getTypeVar())) {\n u... |
"private static void setPGW(Epc epc, Resource pgw) {\n PDNGatewayContents pgwContents = new ObjectFactory().createPDNGatewayContents();\n if (pgw.hasProperty(info.openmultinet.ontology.vocabulary.Epc.rateCodeUp)) {\n int rate = pgw.getProperty(info.openmultinet.ontology.vocabulary.Epc.rateCodeUp).getObject... |
"public double getLocationRatio(ITmfLocation location) {\n fLock.lock();\n try {\n if (fTrace != null) {\n if (location.getLocationInfo() instanceof Long) {\n return ((Long) location.getLocationInfo()).doubleValue() / fTrace.length();\n }\n }\n } catch (final ... |
"public void execute(AdminCommandContext context) {\n final ActionReport report = context.getActionReport();\n Config tmp = null;\n try {\n tmp = configs.getConfigByName(target);\n } catch (Exception ex) {\n }\n if (tmp != null) {\n config = tmp;\n }\n if (tmp == null) {\n S... |
"private void listWorkersMessageReceived(RequestID id, Network.ListWorkersRequest listMessage) {\n if (listMessage.getRequestType() == Network.ListWorkersRequest.RequestType.IMMEDIATE_RESPONSE) {\n sendListWorkersResponse(listMessage.getWorkerID(), id);\n LOG.log(Level.INFO, String.format(\"String_Node... |
"public void setManagedEmployees(Vector managedEmployees) {\n propertyChange(\"String_Node_Str\", this.managedEmployees.getValue(), managedEmployees);\n this.managedEmployees.setValue(managedEmployees);\n}\n"
|
"public DatabaseMetaData getMetaData() throws SQLException {\n return getDelegate().getMetaData();\n}\n"
|
"protected Bindings bindEntityData(ScriptEngine scriptEngine, EntityData entityData) {\n Bindings bindings = scriptEngine.createBindings();\n Model model = context.getFlowStep().getComponent().getInputModel();\n List<ModelEntity> entities = model.getModelEntities();\n for (ModelEntity modelEntity : entities... |
"public void run() {\n try {\n Thread.sleep(4000);\n } catch (final InterruptedException e) {\n throw new RuntimeException(e);\n }\n boolean notified = false;\n synchronized (stop) {\n while (!notified) {\n stop.notifyAll();\n notified = true;\n }\n }\... |
"public org.springframework.web.servlet.View stormpathJsonView() {\n MappingJackson2JsonView jsonView = new MappingJackson2JsonView(objectMapper);\n jsonView.setDisableCaching(false);\n return jsonView;\n}\n"
|
"public void dumpIfNotEmpty() throws BimServerClientException {\n if (size() > 0) {\n for (Entry<T, List<WaitingObject>> entry : waitingObjects.entrySet()) {\n StringBuilder sb = new StringBuilder(\"String_Node_Str\" + entry.getKey() + \"String_Node_Str\");\n for (WaitingObject waitingOb... |
"public TmfTimestampLocation clone() {\n return (TmfTimestampLocation) super.clone();\n}\n"
|
"public void stop(BundleContext context) throws Exception {\n super.stop(context);\n ignore.clear();\n if (cellLeftCursor != null) {\n cellLeftCursor.dispose();\n }\n if (cellRightCursor != null) {\n cellRightCursor.dispose();\n }\n Platform.getExtensionRegistry().removeRegistryChange... |
"public void release(Loader loader, Loader.LoaderListener listener) {\n if (!loaders.containsValue(loader)) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n if (loader.removeListener(listener)) {\n loaders.remove(loader.getLoadable());\n }\n}\n"
|
"protected void doRun() {\n UIJob job = new UIJob(\"String_Node_Str\") {\n public IStatus runInUIThread(IProgressMonitor monitor) {\n monitor.beginTask(\"String_Node_Str\", 100);\n if (nodes == null) {\n nodes = (List<RepositoryNode>) selection.toList();\n }\n ... |
"public void addMap(Map map, Boolean base64_encoded, String type_encoded, String type_no_encoded) {\n if (map == null) {\n logger.debug(\"String_Node_Str\");\n return;\n }\n String mapString;\n try {\n mapString = objectMapper.writeValueAsString(map);\n } catch (JsonProcessingExcepti... |
"protected void configureHttpProtocol(final ServiceLocator habitat, final NetworkListener networkListener, final Http http, final FilterChainBuilder filterChainBuilder, boolean securityEnabled) {\n if (httpAdapter == null) {\n registerMonitoringStatsProviders();\n final V3Mapper mapper = new V3Mapper(l... |
"public AssembleResult doDisassemble() {\n World world = ship.worldObj;\n MobileChunk chunk = ship.getShipChunk();\n AssembleResult result = new AssembleResult();\n result.xOffset = Integer.MAX_VALUE;\n result.yOffset = Integer.MAX_VALUE;\n result.zOffset = Integer.MAX_VALUE;\n int currentrot = Mat... |
"public void hint(int which) {\n boolean oldValue = which > 0 ? hints[which] : hints[-which];\n super.hint(which);\n boolean newValue = hints[which];\n if (oldValue == newValue) {\n return;\n }\n if (which == DISABLE_DEPTH_TEST) {\n flush();\n pgl.disableDepthTest();\n pgl.... |
"public void toString(Collection<Object> ret, boolean direct) {\n boolean remote = (this.transform == Transform.RELATIVE) && !direct;\n if (mode == MultiMode.COMBINED) {\n ret.add(combine(map(), direct));\n } else {\n addAll(ret, map(), remote);\n }\n}\n"
|
"public BrokerMessage.SendMessageResponse sendMessage(BrokerMessage.SendMessageRequest request) {\n BrokerMessage.SendMessageResponse.Builder responseBuilder = BrokerMessage.SendMessageResponse.newBuilder();\n BrokerMessage.BaseResponse.Builder baseResBuilder = BrokerMessage.BaseResponse.newBuilder();\n baseRe... |
"protected void createActions() {\n this.newConceptAction = new XSDNewConceptAction(this);\n this.deleteConceptAction = new XSDDeleteConceptAction(this);\n this.newBrowseItemAction = new XSDNewBrowseItemViewAction(this);\n this.deleteConceptWrapAction = new XSDDeleteConceptWrapAction(this);\n this.newEle... |
"public void handshake(SocketChannel socket) throws WebSocketException {\n try {\n ByteBuffer request = createHandshakeRequest();\n socket.write(request);\n } catch (IOException ioe) {\n throw new WebSocketException(3100, ioe);\n }\n}\n"
|
"public Component createComponents() {\n initPlayers();\n JPanel panel = new JPanel();\n panel.setBorder(BorderFactory.createEmptyBorder(30, 30, 10, 30));\n panel.setLayout(new GridLayout(0, 1));\n defaultTableModel = buildTableModel();\n JTable jtable = buildJTable(defaultTableModel);\n panel.add(... |
"protected static void buildFormatters(XMLConversionManager xmlConversionManager) {\n xmlConversionManager.dateFormatter = new DateFormatThreadLocal(XSD_DATE_FORMAT_STR, xmlConversionManager);\n xmlConversionManager.timeFormatter = new DateFormatThreadLocal(XSD_TIME_FORMAT_STR, xmlConversionManager);\n xmlConv... |
"public void installUI(JComponent c) {\n if (c == null)\n throw new NullPointerException(\"String_Node_Str\");\n tree = (JTree) c;\n tree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() {\n\n public void valueChanged(TreeSelectionEvent e) {\n layoutCache.invali... |
"public Node[] sort(Graph g, Random rand) {\n Node[] sorted = this.clone(g.getNodes());\n this.roles = (RoleList) g.getProperty(\"String_Node_Str\" + this.key + \"String_Node_Str\");\n RolesAsc asc = new RolesAsc(this.order, this.roles);\n Arrays.sort(sorted, asc);\n this.randomize(sorted, rand);\n re... |
"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... |
"public void setSelectedPermissions() {\n Timer t = new Timer() {\n public void run() {\n int selectedIndex = rolesListBox.getSelectedIndex();\n if (selectedIndex >= 0) {\n String roleName = rolesListBox.getItemText(selectedIndex);\n List<String> logicalRole... |
"public void run(final IProgressMonitor monitor) throws InvocationTargetException {\n try {\n final JdbcSource src = getSource();\n final RelationalModelProcessor processor = JdbcModelProcessorManager.createRelationalModelProcessor(srcPg.getMetadataProcessor());\n processor.setMoveRatherThanCopy... |
"public void gotoFirstPage() {\n int size = contextList.size();\n if (size == 1) {\n return;\n } else {\n int index = contextList.indexOf(currentContext);\n if (index > 0) {\n setCurrentContext(0);\n parent.step(0 - index);\n }\n }\n}\n"
|
"public void fire() throws IllegalActionException {\n TypedCompositeActor container = (TypedCompositeActor) getContainer();\n if (container == null) {\n throw new IllegalActionException(this, \"String_Node_Str\");\n }\n if (_debugging) {\n _debug(\"String_Node_Str\");\n }\n Schedule unit... |
"public void close() throws IOException {\n try {\n int responseCode = connection.getResponseCode();\n if (responseCode >= 300) {\n String responseBody;\n try {\n responseBody = readFully(getInputStream(connection));\n } catch (IOException e) {\n ... |
"private void broadcastClaim(Set<LHProtos.Pledge> pledges, KeyParameter key) {\n try {\n Main.wallet.completeContractWithFee(projectToClaim, pledges, key, (val) -> {\n progressBar.setProgress(val);\n if (val >= 1.0)\n overlayUI.done();\n }, (ex) -> {\n ov... |
"public void delete(Transaction tx, Iterable<Key> keyIterable) {\n boolean newTx = (tx == null);\n if (newTx)\n tx = beginTransaction();\n try {\n for (Key key : keyIterable) {\n EntityGroupTracker.trackKey(tx, key);\n store.remove(key);\n }\n if (newTx) {\n ... |
"private void parseSystemClasspath() {\n clearClasspath();\n final ArrayList<ClassLoader> classLoaders = new ArrayList<>();\n final HashSet<ClassLoader> classLoadersSet = new HashSet<>();\n classLoadersSet.add(ClassLoader.getSystemClassLoader());\n classLoaders.add(ClassLoader.getSystemClassLoader());\n ... |
"private void cancelSchedule() {\n Intent i = new Intent(CV.SERVICE_INTENT_ACTION);\n i.putExtra(CV.SERVICEACTION, CV.SERVICEACTION_CANCEL_SCHEDULE);\n startService(i);\n}\n"
|
"public void init(IDynamicProperty dp) {\n super.init(dp);\n initHadoopVersionType();\n}\n"
|
"public List<Integer> getIdList() {\n synchronized (idList) {\n return Collections.unmodifiableList(idList);\n }\n}\n"
|
"public <T> T invoke(K key, javax.cache.processor.EntryProcessor<K, V, T> entryProcessor, Object... arguments) {\n ensureOpen();\n if (key == null) {\n throw new NullPointerException();\n }\n if (entryProcessor == null) {\n throw new NullPointerException();\n }\n long start = statisticsE... |
"private IClass loadFromProjectOutputLocation(final SourceType type) throws JavaModelException {\n final IFile eclipseFile = createClassFileHandleForClassName(type);\n if (eclipseFile == null) {\n final String msg = format(\"String_Node_Str\", type.getFullyQualifiedName(), type.getJavaProject().getElementN... |
"public void logQueuedEnvelopes() {\n if (this.encapsulatedContext != null) {\n this.encapsulatedContext.logQueuedEnvelopes();\n }\n}\n"
|
"public WireParser<Void> getWireParser() {\n WireParser<Void> parser = new VanillaWireParser<>((s, in, out) -> {\n }, null);\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.text(this, (o, x) -> o.cluster = x));\n parser.register(() -> \"String_Node_Str\", (s, v, $) -> v.text(this, RequestContext... |
"public void shouldValidateFalseWithoutGenomeRelease() {\n String username = \"String_Node_Str\";\n String expid = \"String_Node_Str\";\n String processtype = \"String_Node_Str\";\n String parameters = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\... |
"static void getRBuildFilesParallel(SkyQueryEnvironment env, Collection<PathFragment> fileIdentifiers, Callback<Target> callback) throws QueryException, InterruptedException {\n Uniquifier<SkyKey> keyUniquifier = env.createSkyKeyUniquifier();\n RBuildFilesVisitor visitor = new RBuildFilesVisitor(env, keyUniquifie... |
"public DependencyTree buildDependency(ParentComponent component) throws DependencyBuilderException {\n String identifier = component.getUniqueIdentifier();\n DependencyTree dependencyTree = new DependencyTree(identifier);\n DependencyOrder dependencyOrder = component.getDependencyOrder();\n if (dependencyO... |
"MotionEvent generateAbsMotion(InputDevice device, long curTime, long curTimeNano, Display display, int orientation, int metaState) {\n if (mNextNumPointers <= 0 && mLastNumPointers <= 0) {\n return null;\n }\n final int lastNumPointers = mLastNumPointers;\n final int nextNumPointers = mNextNumPointe... |
"private void applyEnvironmentNameOnBaseFileDir(Element app) {\n ArgumentNotValid.checkNotNull(app, \"String_Node_Str\");\n List<Element> elems = XmlStructure.getAllChildrenAlongPath(app.element(Constants.COMPLETE_SETTINGS_BRANCH), Constants.SETTINGS_BITARCHIVE_BASEFILEDIR_LEAF);\n for (Element el : elems) {\n... |
"public void nativeMouseDragged(NativeMouseEvent e) {\n nativeMouseMoved(e);\n}\n"
|
"public void fire() throws IllegalActionException {\n super.fire();\n BigInteger intResult = null;\n int bitsInResult = 0;\n if (A.isKnown() && A.hasToken(0)) {\n FixPoint valueA = ((FixToken) A.get(0)).fixValue();\n bitsInResult = valueA.getPrecision().getNumberOfBits();\n BigInteger b... |
"protected Collection<Throwable> call(final String inputName) throws Exception {\n if (this.XML == null) {\n return wrapException(\"String_Node_Str\" + OPTION_XML + \"String_Node_Str\");\n }\n final Map<String, Map<Integer, String>> flowcell2lane2id = new HashMap<String, Map<Integer, String>>();\n Sa... |
"protected ItemStack findAmmo(EntityPlayer player, ItemStack bowStack) {\n if (this.isArrow(player.getHeldItem(EnumHand.OFF_HAND))) {\n return player.getHeldItem(EnumHand.OFF_HAND);\n } else if (this.isArrow(player.getHeldItem(EnumHand.MAIN_HAND))) {\n return player.getHeldItem(EnumHand.MAIN_HAND);\... |
"public void update() {\n if (visible)\n build();\n if (view != null)\n view.update();\n}\n"
|
"public org.hl7.fhir.dstu2.model.DeviceComponent convertDeviceComponent(org.hl7.fhir.dstu3.model.DeviceComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.DeviceComponent tgt = new org.hl7.fhir.dstu2.model.DeviceComponent();\n copyDomainRes... |
"public void actionPerformed(ActionEvent actionEvent) {\n if (!getSyncStatusFrame().isVisible()) {\n getSyncStatusFrame().setVisible(true);\n } else {\n update();\n }\n}\n"
|
"private Alignments.AlignmentEntry transform(final int index, int indexInReducedCollection, final Alignments.AlignmentEntry source) {\n final Alignments.AlignmentEntry.Builder result = Alignments.AlignmentEntry.newBuilder(source);\n final int position = source.getPosition();\n final int targetIndex = source.ge... |
"private int getIndexForSelectedSegment(final int mouseX, final int mouseY, final Point2DArray oldPoints) {\n NFastStringMap<Integer> colorMap = new NFastStringMap<Integer>();\n AbstractDirectionalMultiPointShape<?> line = m_connector.getLine();\n ScratchPad scratch = line.getScratchPad();\n scratch.clear()... |
"public void copyJarToODADir() {\n File source = new File(filePath);\n File odaDir = getDriverLocation();\n File dest1 = null;\n if (odaDir != null) {\n dest1 = new File(odaDir.getAbsolutePath() + File.separator + source.getName());\n }\n if (viewDir != null) {\n dest2 = new File(viewDir... |
"public void shouldReportErrorRow() throws Exception {\n try {\n createKS(keyspace);\n createTableAndIndexForRow();\n ResultSet rs = getResults(\"String_Node_Str\", \"String_Node_Str\", true);\n List<Row> rows = rs.all();\n Assert.assertEquals(true, rows.toString().contains(\"Strin... |
"public void clearParameters() {\n List<Node> params = new ArrayList<>(getChildren());\n for (Node p : params) p.delete();\n}\n"
|
"private void load() {\n String line;\n BufferedReader in = null;\n File file = new File(fileFullPath);\n if (!file.exists()) {\n version = 1;\n created = Util.getTime();\n updated = Util.getTime();\n } else {\n try {\n in = new BufferedReader(new FileReader(file));... |
"public int hashCode() {\n if (hashCode == null) {\n int code = 0;\n for (int i = 0; i < StyleConstant.COUNT; i++) {\n int hashCode = props[i] == null ? 0 : props[i].hashCode();\n code += hashCode * 2 + 1;\n }\n }\n return code;\n}\n"
|
"public static boolean hasManager() {\n return getManager() != null;\n}\n"
|
"private NodeRef createOrResolveRecordFolder(Action action, NodeRef actionedUponNodeRef) {\n NodeRef context = filePlanService.getFilePlan(actionedUponNodeRef);\n if (context == null) {\n throw new AlfrescoRuntimeException(\"String_Node_Str\");\n } else if (!nodeService.exists(context)) {\n throw... |
"protected Long doInBackground(Void... ton) {\n ((card_adapter) ((ArrayListFragment) getFragmentManager().findFragmentByTag(\"String_Node_Str\" + viewPager.getId() + \"String_Node_Str\")).getListAdapter()).clear_static_list();\n for (int i = 0; i < current_groups.length; i++) {\n String[] feeds_array = rea... |
"public void doRun() throws Exception {\n if (debugLogging)\n log.debug(SEONConnection.this + \"String_Node_Str\");\n while (true) {\n PushDataReceiver dataRec = null;\n ByteBuffer buf = null;\n receiveLock.lock();\n try {\n dataRec = dataReceiver;\n if (da... |
"public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {\n currentClass = name;\n isMessage = false;\n msgPackDefined = false;\n if (superName.equals(\"String_Node_Str\")) {\n if (!name.startsWith(\"String_Node_Str\") && !name.startsWith(\"St... |
"private List<String> compareConifg(String zkData, String dbData) {\n List<String> errorKeyList = new ArrayList<String>();\n Properties prop = new Properties();\n try {\n prop.load(IOUtils.toInputStream(dbData, \"String_Node_Str\"));\n } catch (IOException e) {\n LOG.error(e.toString());\n ... |
"public void onWaypointsUpdate() {\n for (OnWaypointChangedListner listner : missionListner) {\n if (listner != null) {\n listner.onWaypointsUpdate();\n }\n }\n}\n"
|
"public int getCount() {\n return 5;\n}\n"
|
"public void test() throws Exception {\n FileUtils.deleteRecursive(getBaseDir(), true);\n FileUtils.createDirectories(getBaseDir());\n testIsEmpty();\n testOffHeapStorage();\n testNewerWriteVersion();\n testCompactFully();\n testBackgroundExceptionListener();\n testOldVersion();\n testAtomicO... |
"public String getAttribute(Attribute attribute) {\n if (attribute == null)\n return \"String_Node_Str\";\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getCitizen().hasTrait(NicknameTrait.class) ? getCitizen().getTrait(NicknameTrait.class).getNickname() : getName()).getAttrib... |
"protected Control createDialogArea(final Composite parent) {\n composite = (Composite) super.createDialogArea(parent);\n GridLayout layout = (GridLayout) composite.getLayout();\n layout.makeColumnsEqualWidth = false;\n layout.numColumns = 2;\n if (message != null) {\n label = new Label(composite,... |
"public void cascadeDiscoverAndPersistUnregisteredNewObjects(Object object, boolean cascade, Map newObjects, Map unregisteredExistingObjects, Map visitedObjects, UnitOfWorkImpl uow) {\n if (((DatabaseMapping) keyMapping).isOneToOneMapping()) {\n Object key = ((Map.Entry) object).getKey();\n if (uow.has... |
"public void testSetCurrentUserWithRequest() throws AuthenticationException {\n System.out.println(\"String_Node_Str\");\n Authenticator instance = ESAPI.authenticator();\n instance.logout();\n String password = instance.generateStrongPassword();\n String accountName = ESAPI.randomizer().getRandomString(... |
"public static List<MetadataColumn> guessSchemaFromArray(final CsvArray csvArray, boolean isFirstLineCaption, MetadataEmfTableEditorView tableEditorView, int header) {\n List<MetadataColumn> columns = new ArrayList<MetadataColumn>();\n if (csvArray == null) {\n return columns;\n } else {\n List<S... |
"private boolean tryFileCache(GL gl, String file, int level, int i, int j, float xmin, float xmax, float ymin, float ymax) {\n String tileId = this.buildTileId(level, i, j);\n Cache cacheInstance = CacheManager.getCacheInstance(activeGir.getDisplayName(activeBand));\n boolean ok = true;\n if (file.exists() ... |
"public void beforeRun() throws Exception {\n if (operations != null && operations.length > 0) {\n final NodeEngine nodeEngine = getNodeEngine();\n final int len = operationData.length;\n operations = new Operation[len];\n for (int i = 0; i < len; i++) {\n final Operation op = ... |
"public void baseTest() throws IOException {\n UncompressedStringArrayChunk chunk = new UncompressedStringArrayChunk(1, new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" });\n assertEquals(1, chunk.getOffset());\n assertEquals(3, chunk.getLength());\n assertArrayEquals(new String[... |
"public void testExpression9() {\n String expression = oldExpressions[9];\n try {\n List list = extractColumnExpression(new ScriptExpression(expression));\n assertTrue(list.size() == 1);\n } catch (BirtException e) {\n fail(\"String_Node_Str\");\n }\n}\n"
|
"private void setWindowTitle() {\n setTitle(TITLE_NAME + \"String_Node_Str\" + (VERSION == null ? \"String_Node_Str\" : VERSION.toString()) + \"String_Node_Str\" + ((session != null && session.isConnected()) ? session.getVersionInfo() : \"String_Node_Str\"));\n}\n"
|
"public void build() throws ODataJPAModelException {\n JPAEdmBuilder keyViewBuilder = null;\n properties = new ArrayList<Property>();\n Set<?> jpaAttributes = null;\n if (isBuildModeComplexType) {\n jpaAttributes = complexTypeView.getJPAEmbeddableType().getAttributes();\n } else {\n jpaAttr... |
"public void onCommand(CommandEvent event, EntityRef entity) {\n List<String> params = event.getParams();\n ICommand cmd = console.getCommand(event.getCommand());\n if (cmd.getRequiredParameterCount() == params.size() && cmd.isRunOnServer()) {\n console.execute(event.getCommand(), event.getParams(), ent... |
"public static Vector3 getAxisAngles(Quaternion a) {\n float yaw = (float) Math.toDegrees(Math.atan2(2 * (a.getX() * a.getY() + a.getZ() * a.getW()), 1 - 2 * (a.getY() * a.getY() + a.getZ() * a.getZ())));\n float pitch = -1 * (float) Math.toDegrees(Math.asin(2 * (a.getX() * a.getZ() - a.getW() * a.getY())));\n ... |
"public void addPages() {\n setWindowTitle(Messages.getString(\"String_Node_Str\"));\n setDefaultPageImageDescriptor(ImageProvider.getImageDesc(EHCatalogImage.HCATALOG_WIZ));\n if (isToolBar) {\n pathToSave = null;\n }\n propertiesPage = new HadoopPropertiesWizardPage(\"String_Node_Str\", connecti... |
"public static List<GraphTargetItem> checkClass(List<GraphTargetItem> output) {\n if (true) {\n }\n List<GraphTargetItem> ret = new ArrayList<>();\n List<GraphTargetItem> functions = new ArrayList<>();\n List<GraphTargetItem> staticFunctions = new ArrayList<>();\n List<KeyValue<GraphTargetItem, GraphT... |
"public void topLevelAspectIsNotAnAspect() throws Exception {\n scratch.file(\"String_Node_Str\", \"String_Node_Str\");\n scratch.file(\"String_Node_Str\", \"String_Node_Str\");\n reporter.removeHandler(failFastHandler);\n try {\n AnalysisResult result = update(ImmutableList.of(\"String_Node_Str\"), ... |
"private void removeLocationUpdates() {\n if (mLocationRequestUpdatesEnabled) {\n mLocationManager.removeUpdates(mLocationListener);\n mLocationRequestUpdatesEnabled = false;\n }\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.