content stringlengths 40 137k |
|---|
"void addInputDataSource(DataSource inputDataSource, AudioMixingPushBufferDataSource outputDataSource) {\n if (inputDataSource == null)\n throw new IllegalArgumentException(\"String_Node_Str\");\n synchronized (inputDataSources) {\n for (InputDataSourceDesc inputDataSourceDesc : inputDataSources) if... |
"private String getDubboURL(String group, String version, String method, Integer localPort, String protocol, String path) {\n StringBuilder requestURL = new StringBuilder();\n requestURL.append(protocol).append(\"String_Node_Str\").append(ip).append(\"String_Node_Str\").append(localPort);\n if (group != null) ... |
"public void update(Target target) {\n UserInfo userInfo = target.getUserInfo();\n Team team = target.getTeam();\n LocalDate fromDate = target.getFromDate();\n LocalDate toDate = target.getToDate();\n if (userInfo != null) {\n Query q = JPA.em().createQuery(\"String_Node_Str\");\n q.setPara... |
"public void addItem(final Item item, final FileElement file, final Feed feed) {\n if (feed.isInternal()) {\n return coordinator.getSyncer().doInSync(feed, new SyncerCallback<Feed>() {\n\n public VFSLeaf execute() {\n Feed reloadedFeed = getFeed(feed, false);\n if (ite... |
"public void move(DatabaseUtil database, double timeleft, double time) {\n assert (vehicles.size() > 0);\n Map map = new Map();\n for (Vehicle v : vehicles) {\n if (v.stopped)\n continue;\n v.initMovement(database, timeleft, time);\n }\n}\n"
|
"private void testFactTableSaveAndLoad1(IDocumentManager documentManager) throws IOException, BirtException {\n Dimension[] dimensions = new Dimension[3];\n ILevelDefn[] levelDefs = new ILevelDefn[1];\n String[] levelNames = new String[1];\n levelNames[0] = \"String_Node_Str\";\n DimensionForTest iterato... |
"static Collection<ServiceController<?>> installLoggerHandlers(final ServiceTarget serviceTarget, final String loggerName, final ModelNode handlers, final ServiceVerificationHandler verificationHandler) {\n final List<ServiceController<?>> controllers = new ArrayList<ServiceController<?>>();\n for (final ModelNod... |
"public boolean canHandle(Config config, User user, Raid raid) {\n if (config == null || user == null || raid == null) {\n LOGGER.debug(\"String_Node_Str\" + config + \"String_Node_Str\" + (user == null ? \"String_Node_Str\" : user.getName()) + \"String_Node_Str\" + raid);\n return false;\n }\n i... |
"public synchronized void endRows() throws IOException {\n try {\n while (!endReached && pendingRow != null) wait();\n } catch (InterruptedException ie) {\n } finally {\n pendingRow = null;\n endReached = true;\n notifyAll();\n }\n}\n"
|
"public long getStartClockTime() {\n final long currentTime = System.currentTimeMillis();\n if (ensureStartClockTime(currentTime)) {\n recordCurrentTimeChangeLocked(currentTime, SystemClock.elapsedRealtime(), SystemClock.uptimeMillis());\n }\n return mStartClockTime;\n}\n"
|
"public void run() {\n AppIndicatorTray.this.blockUntilStarted.countDown();\n libgtk.gtk_main();\n}\n"
|
"private Plugin addFileInstallPlugin(JobInfo job) {\n Plugin plugin = new Plugin();\n plugin.setGroupId(\"String_Node_Str\");\n plugin.setArtifactId(\"String_Node_Str\");\n plugin.setVersion(\"String_Node_Str\");\n String jobVersion = PomIdsHelper.getJobVersion(job);\n Xpp3Dom configuration = new Xpp3... |
"public List<WFConfig> accept(Role r, IOAction a) {\n List<WFConfig> res = new LinkedList<>();\n List<EndpointFSM> succs = this.states.get(r).takeAll(a);\n for (EndpointFSM succ : succs) {\n Map<Role, EndpointFSM> tmp1 = new HashMap<>(this.states);\n tmp1.put(r, succ);\n WFBuffers tmp2 = a... |
"public String toString() {\n return \"String_Node_Str\" + fileName + \"String_Node_Str\" + begin + \"String_Node_Str\" + end + \"String_Node_Str\" + \"String_Node_Str\" + ((data == null) ? \"String_Node_Str\" : \"String_Node_Str\") + \"String_Node_Str\";\n}\n"
|
"public void listChanged(ListEvent<E> listChanges) {\n handleListChange(listChanges);\n}\n"
|
"public void drawValues(Canvas c) {\n if (passesCheck()) {\n List<BarDataSet> dataSets = mChart.getBarData().getDataSets();\n final float valueOffsetPlus = Utils.convertDpToPixel(5f);\n float posOffset = 0f;\n float negOffset = 0f;\n final boolean drawValueAboveBar = mChart.isDrawV... |
"public void activate(String userLogin, UUID token) {\n User user = userFinder.findByLogin(userLogin);\n if (user != null && user.getActionToken() != null && user.getActionToken().equals(UUID.fromString(token))) {\n user.setActivated(true);\n user.setActionToken(null);\n } else {\n throw n... |
"public void addRemovePlugin(MyButton addremove, String filename) {\n File pluginfile = new File(Repository.PLUGINSDIRECTORY + Repository.getBar() + filename);\n if (addremove.getText().equals(\"String_Node_Str\")) {\n GridBagLayout layout = (GridBagLayout) localtable.getLayout();\n GridBagConstrain... |
"public void answer(OutputStream output, StartStopListenerDelegate startStopListenerDelegate) throws IOException {\n this.output = output;\n long CLoverride = -2;\n if (lowRange != 0 || highRange != 0) {\n output(output, http10 ? HTTP_206_OK_10 : HTTP_206_OK);\n } else {\n if (soapaction != nu... |
"public synchronized ObjectName bootAMX() {\n if (mDomainRootObjectName == null) {\n getLoader();\n final ObjectName startupON = AMXStartupServiceMBean.OBJECT_NAME;\n if (!mMBeanServer.isRegistered(startupON)) {\n throw new IllegalStateException(\"String_Node_Str\" + startupON);\n ... |
"public void loadExtensions(ClassLoader classLoader, List<String> extensions, List<Settings.ConfiguredExtension> extensionsWithConfiguration) {\n this.extensions = new ArrayList<>();\n if (extensions != null) {\n this.extensions.addAll(loadInstances(classLoader, extensions, EmitterExtension.class));\n }... |
"public void show() {\n if (issue == null || issue.getId() <= 0) {\n return;\n }\n Task<Boolean> bgTask = new Task<Boolean>() {\n protected Boolean call() throws Exception {\n contentHandler.startContentUpdate();\n return true;\n }\n };\n WeakReference<IssueDeta... |
"protected void startUp() {\n LOG.info(\"String_Node_Str\");\n taskExecutorService = Executors.newCachedThreadPool(new ThreadFactoryBuilder().setNameFormat(\"String_Node_Str\").build());\n taskExecutorService.submit(new SchedulerEventNotificationSubscriberThread(cConf.get(Constants.Scheduler.TIME_EVENT_TOPIC))... |
"public void setItems(ObservableList<String> items) {\n listeners.clear();\n ObservableList<BetterCheckListItem> newItems = FXCollections.observableArrayList();\n WeakReference<BetterCheckListView> that = new WeakReference<>(this);\n for (int i = 0; i < items.size(); i++) {\n final int j = i;\n ... |
"public void resume() {\n MFConfiguration.getStaticMFLogger().logMessage(TAG, \"String_Node_Str\");\n executor.resume();\n}\n"
|
"private void buildStreamVariableExecutor(Variable variable, int streamEventChainIndex, ConditionVisitor conditionVisitor, Attribute.Type type) {\n String id = variable.getAttributeName();\n if (variable.getStreamId() != null) {\n id = variable.getStreamId() + \"String_Node_Str\" + id;\n }\n conditio... |
"protected Void execute(KillContainerCmd command) {\n WebTarget webResource = getBaseResource().path(\"String_Node_Str\").resolveTemplate(\"String_Node_Str\", command.getContainerId());\n if (command.getSignal() != null) {\n webResource = webResource.queryParam(\"String_Node_Str\", command.getSignal());\n ... |
"public Entity get(final InternalDataDefinition dataDefinition, final Long entityId) {\n checkNotNull(dataDefinition, L_DATA_DEFINITION_MUST_BE_GIVEN);\n checkState(dataDefinition.isEnabled(), L_DATA_DEFINITION_BELONGS_TO_DISABLED_PLUGIN);\n checkNotNull(entityId, \"String_Node_Str\");\n Object databaseEnti... |
"public void setEquipment(EquipmentSlot slot, ItemStack item) {\n item = item.cloneItemStack();\n equipment.put(slot, item);\n if (status == PetState.Here) {\n ((EntityMyPigZombie) getCraftPet().getHandle()).setPetEquipment(slot.getSlotId(), item);\n }\n}\n"
|
"public void onHeldItemActivated(OnActivatedComponent event, EntityRef character, CharacterHeldItemComponent heldItemComponent, CharacterComponent characterComponents) {\n if (localPlayer.getCharacterEntity().equals(character)) {\n EntityRef oldHeldItem = currentHeldItem;\n currentHeldItem = heldItemCo... |
"public void testSetType() {\n TestEvent event = new TestEvent(fEvent1);\n assertEquals(\"String_Node_Str\", fType, event.getType());\n String typeId = \"String_Node_Str\";\n String[] labels = new String[] { fLabel2, fLabel1 };\n TmfEventType newType = new TmfEventType(fContext, typeId, TmfEventField.mak... |
"private List<EnhanceEntity> populateEnhanceEntities(EntityMetadata m, List<String> relationNames, Client client, String sqlQuery) {\n List<EnhanceEntity> ls;\n boolean isWithNoRelation = relationNames != null && relationNames.isEmpty();\n List result = ((HibernateClient) client).find(sqlQuery, relationNames, ... |
"protected void coGroup(JsonNode key, ArrayNode values1, ArrayNode values2, JsonCollector out) {\n if (!key.isArray()) {\n for (JsonNode array : values2) {\n out.collect(((ArrayNode) array).get(0), ((ArrayNode) array).get(1));\n }\n } else {\n if (values2.isEmpty()) {\n ... |
"private static void writeRepeatedDelta(final int delta, final int repeatCount, final DataOutputStream dataStream) throws IOException {\n dataStream.writeByte(TimelineOpcode.REPEATED_DELTA_TIME.getOpcodeIndex());\n dataStream.writeByte(repeatCount);\n dataStream.writeByte(delta);\n}\n"
|
"long getBeginIdleTime(String packageName) {\n final IntervalStats yearly = mCurrentStats[UsageStatsManager.INTERVAL_YEARLY];\n UsageStats packageUsage;\n if ((packageUsage = mAppIdleRollingWindow.packageStats.get(packageName)) == null) {\n return -1;\n } else {\n return packageUsage.getBeginI... |
"public static void renderArea(Graphics2D g, Level level, int x0, int y0, int xCam, int yCam, int w, int h) {\n Art.init(GraphicsUtil.getConfiguration());\n g.setBackground(transparent);\n g.clearRect(x0, y0, w, h);\n int xTileStart = (x0 + xCam) / 16;\n int yTileStart = (y0 + yCam) / 16;\n int xTileE... |
"public Transaction[] getPendingTransactions() {\n final JournalInfoBlock infoBlock = getJournalInfoBlock();\n final ReadableRandomAccessStream journalStream = getJournalDataStream(infoBlock);\n final JournalHeader jh = getJournalHeader(infoBlock, journalStream);\n final long start = jh.getRawStart();\n ... |
"protected void doDecode(FacesContext context, UIComponent component) {\n String clientId = component.getClientId(context);\n Map<String, String> requestParameterMap = context.getExternalContext().getRequestParameterMap();\n String newValue = (String) requestParameterMap.get(clientId);\n if (null != newValu... |
"private void genCache3() throws BirtException {\n this.dataSet.setCacheRowCount(4);\n myDataEngine = newDataEngine();\n IResultIterator parentRi = getResultIterator1(myDataEngine);\n parentRi.next();\n IResultIterator ri = parentRi.getSecondaryIterator(\"String_Node_Str\", scope);\n ;\n while (ri.... |
"public void onOpen(WebSocket socket) {\n fireConnected();\n}\n"
|
"public boolean pause() {\n synchronized (lifecycleLock) {\n if (!paused.get()) {\n fireLifecycleEvent(PAUSING);\n } else {\n return false;\n }\n paused.set(true);\n fireLifecycleEvent(new LifecycleEvent(LifecycleEvent.LifecycleState.PAUSED));\n return ... |
"public void update_person_with_non_latin_chars() throws Exception {\n {\n final RpslObject update = new RpslObjectBuilder(TEST_PERSON).replaceAttribute(TEST_PERSON.findAttribute(AttributeType.ADDRESS), new RpslAttribute(AttributeType.ADDRESS, \"String_Node_Str\")).sort().get();\n final WhoisResources ... |
"protected MementoElement[] createItemPath(TreeItem item) {\n MementoElement tempMemento = null;\n while (item.getParentItem() != null) {\n TreeItem parent = item.getParentItem();\n for (int i = 0; i < parent.getItemCount(); i++) {\n if (parent.getItem(i) == item) {\n Memen... |
"public ImageApiProfile merge(ImageApiProfile other) {\n ImageApiProfile merged = new ImageApiProfile();\n streamNotNull(this.features).forEach(merged::addFeature);\n streamNotNull(other.features).forEach(merged::addFeature);\n streamNotNull(this.formats).forEach(merged::addFormat);\n streamNotNull(other... |
"protected void configureServlets() {\n filter(\"String_Node_Str\").through(TestFilter.class);\n serve(\"String_Node_Str\").with(TestServlet.class);\n}\n"
|
"public Long getVersion(T entity) {\n ElasticsearchPersistentProperty versionProperty = entityMetadata.getVersionProperty();\n try {\n if (versionProperty != null) {\n return (Long) BeanWrapper.create(entity, null).getProperty(versionProperty);\n }\n } catch (Exception e) {\n th... |
"public static JavaRDD<Cells> groupByFields(JavaRDD<Cells> rdd, List<Selector> ids) {\n JavaPairRDD<List<Object>, Cells> rddWithKeys = rdd.keyBy(new Function<Cells, List<Object>>() {\n private static final long serialVersionUID = 8157822963856298774L;\n public List<Object> call(Cells v1) throws Excepti... |
"protected void addToOXProjectForObjectTableTypeArg(DatabaseType dbType, Project oxProject, String objectTableName, String objectTableAlias) {\n XMLDescriptor xdesc = (XMLDescriptor) oxProject.getDescriptorForAlias(objectTableAlias);\n if (xdesc == null) {\n xdesc = buildAndAddNewXMLDescriptor(oxProject, o... |
"protected ByteCodec<C> createCodec(CodecSupplier registry, FieldWrapper field) {\n FieldWrapper componentType = field.genericTypeOrThrow(0);\n ByteCodec componentCodec = registry.getCodecOrThrow(componentType).toByteCodec();\n return new ByteCodec<C>() {\n public void encode(ByteBuf target, C message) ... |
"private void createToolbar() {\n int iconSize = 20;\n JToolBar toolbar = new JToolBar();\n toolbar.setFloatable(false);\n toolbar.setRollover(true);\n toolbar.setPreferredSize(new Dimension(0, iconSize + 20));\n URL imgURL = getClass().getResource(\"String_Node_Str\");\n ImageIcon iconOpen = new I... |
"private boolean isDoing(Player player, Map<String, Long> map, double max) {\n if (map.containsKey(player.getName())) {\n if (max != -1) {\n if (((System.currentTimeMillis() - map.get(player.getName())) / 1000) > max) {\n map.remove(player.getName());\n return false;\n... |
"private Transaction beginTx(SlaveContext txId) {\n try {\n TransactionManager txManager = graphDbConfig.getTxModule().getTxManager();\n txManager.begin();\n System.out.println(\"String_Node_Str\" + txId);\n Transaction tx = txManager.getTransaction();\n transactions.put(txId, tx);... |
"public void setHexModel(MapHex model) {\n this.model = model;\n currentTile = model.getCurrentTile();\n hexName = model.getName();\n currentTileId = model.getCurrentTile().getId();\n currentTileOrientation = model.getCurrentTileRotation();\n currentGUITile = new GUITile(currentTileId, this);\n cur... |
"public final Attr removeAttributeNode(Attr oldAttr) {\n Attribute attr = (Attribute) oldAttr;\n int j = getAttributeIndex(0, attr.getTagName());\n if (j >= 0) {\n return _attrs.remove(j);\n } else {\n throw new DOMException(DOMException.NOT_FOUND_ERR, getLocator());\n }\n}\n"
|
"public static int resolveType(SourceGeneratorLocalData localData, GraphTargetItem item, ABC abc, List<ABC> allABCs) throws CompilationException {\n int name_index = 0;\n GraphTargetItem typeItem = null;\n if (item instanceof UnresolvedAVM2Item) {\n String fullClass = localData.getFullClass();\n ... |
"private Map<String, Map<String, List<DatabaseConnectionItem>>> getLinkedDbMap() {\n Map<String, Map<String, List<DatabaseConnectionItem>>> linkedDbMap = new HashMap<String, Map<String, List<DatabaseConnectionItem>>>();\n try {\n List<IRepositoryViewObject> repObjs = ProxyRepositoryFactory.getInstance().ge... |
"protected JMethod generateRemoveTagFromList() throws Exception {\n JMethodSignature jms = JMethodSignature.factory.create(JParameter.factory.create(JModifier.FINAL, \"String_Node_Str\", \"String_Node_Str\"), JParameter.factory.create(JModifier.FINAL, \"String_Node_Str\", \"String_Node_Str\"));\n JMethod jm = JMe... |
"public void onCreate() {\n super.onCreate();\n Languager.setLanguage(this);\n IntentFilter filter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION);\n registerReceiver(networkReceiver, filter);\n updateConnectedFlags();\n sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n ... |
"public void removeSource() {\n sourceURL = null;\n sourceCodeLocation.setText(\"String_Node_Str\");\n sourceCodeLinesList.clear();\n sourceCodeLines.validate();\n}\n"
|
"private final void renderResource(String relUrl, Output output, Context context) throws IOException, ResourceNotFoundException {\n String httpUrl = getUrlForHttpResource(relUrl, context);\n String fileUrl = getUrlForFileResource(relUrl, context);\n MultipleOutput multipleOutput = new MultipleOutput();\n mu... |
"public boolean ContainsKey(short x) {\n return (binarySearch(0, size, x) >= 0);\n}\n"
|
"private static int findFrequency(Sound channel1) {\n final int threshold = 100;\n double sum = 0;\n final double[] magnitude = new double[channel1.getSamples().length / threshold + 1];\n SoundTransformation magnFreqTransform = new NoOpFrequencySoundTransformation() {\n int index = 0;\n public... |
"private void setAnnotationActions(Object obj, IMenuManager manager) {\n if (obj instanceof XSDElementDeclaration) {\n manager.add(setAnnotationDescriptionsAction);\n manager.add(setAnnotationLookupFieldsAction);\n manager.add(setAnnotationPrimaryKeyInfoAction);\n }\n if (obj instanceof XS... |
"public void testRemoveTerm() {\n try {\n GwtTerm gwtTerm = new GwtTerm();\n gwtTerm.setTerm(\"String_Node_Str\");\n gwtTerm.setDefinition(\"String_Node_Str\");\n GwtTerm gwtTerm2 = new GwtTerm();\n gwtTerm2.setTerm(\"String_Node_Str\");\n gwtTerm2.setDefinition(\"String_Nod... |
"private void restoreWalletFromEncrypted(final File file, final String password) {\n try {\n final BufferedReader cipherIn = new BufferedReader(new InputStreamReader(new FileInputStream(file), StandardCharsets.UTF_8));\n final StringBuilder cipherText = new StringBuilder();\n Io.copy(cipherIn, c... |
"public Configuration getConfiguration(AllocatedEvaluator allocatedEvaluator) {\n try {\n final NumberedSplit<InputSplit> numberedSplit = evaluatorToPartitionMapper.getInputSplit(allocatedEvaluator.getEvaluatorDescriptor().getNodeDescriptor().getName(), allocatedEvaluator.getId());\n final Configuratio... |
"public void test1() {\n final Interval interval = new FinalInterval(new long[] { 10, 20 });\n final long[] dims = IntervalUtils.getDims(interval);\n assertEquals(10, dims[0]);\n assertEquals(20, dims[1]);\n}\n"
|
"public boolean readFromStream(ByteBuf out) throws IOException {\n int facadeSides = out.readByte();\n int[] ids = new int[2];\n for (int x = 0; x < facades.length; x++) {\n ForgeDirection side = ForgeDirection.getOrientation(x);\n int ix = (1 << x);\n if ((facadeSides & ix) == ix) {\n ... |
"public void shouldPresent_AvailableData_IntoView() throws Exception {\n Flowable<FactAboutNumber> data = Flowable.just(ImmutableFactAboutNumber.of(\"String_Node_Str\", \"String_Node_Str\"), ImmutableFactAboutNumber.of(\"String_Node_Str\", \"String_Node_Str\"));\n when(usecase.fetchTrivia()).thenReturn(data);\n ... |
"public static Object invokeMPIMethod(String mpiRunner, String mpiBinary, Object[] values, boolean hasReturn, Stream[] streams, String[] prefixes, File taskSandboxWorkingDir) throws InvokeExecutionException {\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + mpiBinary);\n St... |
"private WebElement getTableRowByQueueName(final String qName) {\n if (driver.findElement(By.id(UIElementMapper.getInstance().getElement(\"String_Node_Str\"))).getText().contains(\"String_Node_Str\")) {\n return null;\n }\n WebElement queueTable = driver.findElement(By.xpath(UIElementMapper.getInstance(... |
"public void setPathValue(String pathValue) {\n if (getEditor() != null && !pathValue.equals(getPathValue()) && !OozieJobTrackerListener.getProcess().isReadOnly()) {\n IProcess2 process = OozieJobTrackerListener.getProcess();\n getCommandStack().execute(new PropertyChangeCommand(process, \"String_Node_... |
"public static String convertTimeline(int spriteId, List<Integer> nonLibraryShapes, String backgroundColor, List<Tag> tags, List<Tag> timelineTags, HashMap<Integer, CharacterTag> characters, String name, FLAVersion flaVersion, HashMap<String, byte[]> files) {\n String ret = \"String_Node_Str\";\n ret += \"String_... |
"public boolean act() {\n if (target.isAlive()) {\n if (target.HP < target.HT && !((Hero) target).isStarving()) {\n target.HP += 1;\n }\n ChaliceOfBlood.chaliceRegen regenBuff = Dungeon.hero.buff(ChaliceOfBlood.chaliceRegen.class);\n if (regenBuff != null)\n spend(RE... |
"public static String getSerializationSignature(Class<?> instanceType) {\n String result;\n synchronized (classCRC32Cache) {\n result = classCRC32Cache.get(instanceType);\n if (result == null) {\n CRC32 crc = new CRC32();\n try {\n generateSerializationSignature(... |
"public AtlasMetrics getMetrics(boolean ignoreCache) {\n if (ignoreCache || !isCacheValid()) {\n AtlasMetrics metrics = new AtlasMetrics();\n for (MetricQuery metricQuery : MetricQuery.values()) {\n try {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_No... |
"public static void saveGame(String fileName) throws IOException {\n try {\n Bundle bundle = new Bundle();\n version = Game.versionCode;\n bundle.put(VERSION, version);\n bundle.put(CHALLENGES, challenges);\n bundle.put(HERO, hero);\n bundle.put(GOLD, gold);\n bundle.... |
"public static void main(String[] args) throws IOException {\n MvccMetainfoRepository mvccMetainfoRepository = new MvccMetainfoRepository(initialView);\n TableRefFactory tableRefFactory = new TableRefFactoryImpl();\n RidGenerator ridGenerator = new InMemoryRidGenerator();\n IdentifierFactory identifierFacto... |
"public void testAddJsWithExistingFiles() throws Exception {\n LinkedList<FileInfo> files = new LinkedList<FileInfo>();\n FileInfo expected = new FileInfo(\"String_Node_Str\", 1, -1, false, false, null);\n files.add(expected);\n String lcovSource = \"String_Node_Str\";\n List<FileInfo> processed = new Co... |
"public JsonStructure getJsonStructure() {\n try {\n try (JsonReader reader = Json.createReader(getResourceInputStream())) {\n return reader.read();\n }\n } catch (Exception e) {\n throw new ResourceException(\"String_Node_Str\", e);\n }\n}\n"
|
"public static boolean isSchemaFromSidOrDatabase(EDatabaseTypeName inType) {\n if (EDatabaseTypeName.TERADATA.equals(inType) || EDatabaseTypeName.IMPALA.equals(inType) || EDatabaseTypeName.AS400.equals(inType)) {\n return true;\n } else {\n return false;\n }\n}\n"
|
"public List<MeaningSpan> getAnnotations(String textWithMentions) throws GerbilException {\n String agdistisUrl = \"String_Node_Str\" + host + \"String_Node_Str\" + port + \"String_Node_Str\";\n String parameters = null;\n try {\n parameters = \"String_Node_Str\" + URLEncoder.encode(textWithMentions, \"... |
"public void run() {\n resetProjectOperationSelection(needCheckError);\n}\n"
|
"public Iterator<CheckException> iterator() {\n return new Iterator<CheckException>() {\n CheckException curr;\n {\n this.next = CheckException.this;\n }\n public boolean hasNext() {\n return (this.curr != null) && (this.curr.other != null);\n }\n publi... |
"public static void export(Writer writer, OTDataObject rootObject, OTDatabase db) throws Exception {\n writtenIds = new ArrayList();\n processedClasses = new ArrayList();\n duplicateClasses = new ArrayList();\n containers = new HashMap();\n processedIds = new ArrayList();\n incomingReferenceMap = new ... |
"private boolean validateContext(VmwareContext context, Command cmd) {\n String guid = cmd.getContextParam(\"String_Node_Str\");\n assert (guid != null);\n String[] tokens = guid.split(\"String_Node_Str\");\n assert (tokens != null && tokens.length == 2);\n ManagedObjectReference morHyperHost = new Manag... |
"private static boolean isTwoExpressionEqual(IConditionalExpression obj1, IConditionalExpression obj2) {\n if (obj1.getOperator() != obj2.getOperator())\n return false;\n return isEqualString(obj1.getGroupName(), obj2.getGroupName()) && isTwoExpressionEqual(obj1.getExpression(), obj2.getExpression(), ignor... |
"public void processPacket(Packet packet) {\n if (packet instanceof Message) {\n Message msg = (Message) packet;\n String body = msg.getBody();\n String sender = msg.getFrom();\n Occupant oc = chatRoom.getOccupant(sender);\n if (!oc.getNick().equals(chatRoom.getNickname())) {\n ... |
"boolean isMatch(Object[] replayArgs, Map<Object, Object> instanceMap) {\n if (matchers == null) {\n return areEqual(replayArgs, instanceMap);\n }\n VarargsComparison varargsComparison = new VarargsComparison(replayArgs);\n int totalArgCount = varargsComparison.getTotalArgumentCountWhenDifferent();\n... |
"public IIcon getIcon(int side, int meta) {\n return Blocks.stone.getIcon(side, meta);\n}\n"
|
"public String getCanonicalForm(Dimension nativeSize, ImageApiProfile profile) {\n Dimension resolved = this.resolve(nativeSize, profile);\n double nativeRatio = nativeSize.getWidth() / nativeSize.getHeight();\n double resolvedRatio = resolved.getWidth() / resolved.getHeight();\n if (resolved.equals(nativeS... |
"private Map<String, Object> getOrCreateRepo(String repoId) throws JobPersistenceException, ResourceException {\n synchronized (lock) {\n if (!setAccessor()) {\n throw new JobPersistenceException(\"String_Node_Str\");\n }\n Map<String, Object> map;\n map = readFromRepo(repoId).... |
"public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n ReferenceKey that = (ReferenceKey) o;\n return sourceObject == that.sourceObject && mapping == that.mapping;\n}\n"
|
"protected SR getNfsSR(Connection conn, String poolid, String uuid, String server, String serverpath, String pooldesc) {\n Map<String, String> deviceConfig = new HashMap<String, String>();\n try {\n serverpath = serverpath.replace(\"String_Node_Str\", \"String_Node_Str\");\n Set<SR> srs = SR.getAll(... |
"public int getItemViewType(int position) {\n int numHeadersAndPlaceholders = getHeadersCount() * mNumColumns;\n if (position < numHeadersAndPlaceholders && (position % mNumColumns != 0)) {\n return mAdapter != null ? mAdapter.getViewTypeCount() : 1;\n }\n if (mAdapter != null && position >= numHeade... |
"public void deviceConnected() {\n Log.i(FlowerPowerConstants.TAG, \"String_Node_Str\");\n invalidateOptionsMenu();\n serviceManager.enableReconnect(1000 * 60 * 10);\n}\n"
|
"private void writeHierarchies(final ModelConfiguration config, final String prefix, final ZipOutputStream zip) throws IOException {\n for (Entry<String, Hierarchy> entry : config.getHierarchies().entrySet()) {\n zip.putNextEntry(new ZipEntry(prefix + \"String_Node_Str\" + toFileName(entry.getKey()) + \"Strin... |
"public void onBigBoom(EntityExplodeEvent event) {\n Location location = BukkitUtil.getLocation(event.getLocation());\n PlotArea area = location.getPlotArea();\n if (area == null) {\n if (!PS.get().hasPlotArea(location.getWorld())) {\n return;\n }\n Iterator<Block> iterator = ev... |
"public static void main(String[] args) {\n String configFile = null;\n String inputFolderPath = null;\n try {\n configFile = args[0];\n inputFolderPath = args[1];\n } catch (Exception e) {\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n ... |
"private double loss(LogisticRegression logisticRegression, ClfDataSet dataSet) {\n double negativeLogLikelihood = logisticRegression.dataSetLogLikelihood(dataSet) * -1;\n double penalty = penalty(logisticRegression);\n return negativeLogLikelihood / dataSet.getNumDataPoints() + penalty;\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.