content stringlengths 40 137k |
|---|
"public static byte[] getQueueRowPrefix(QueueName queueName) {\n byte[] queueBytes = queueName.toBytes();\n byte[] bytes = new byte[queueBytes.length + 2];\n Hashing.md5().hashBytes(queueBytes).writeBytesTo(bytes, 0, 2);\n System.arraycopy(queueBytes, 0, bytes, 2, queueBytes.length);\n return bytes;\n}\n... |
"public static String[] BrayAndTravasarou2007(final double ky, final double ts, final double sa, final double m) {\n String[] ret = new String[3];\n final double p = 0.2316419;\n final double b1 = 0.319381530;\n final double b2 = -0.356563782;\n final double b3 = 1.781477937;\n final double b4 = -1.82... |
"private void markForPropagation(LitChunk toChunk, int[] depth, int[] startingRegen, int[] adjDepths, int[] adjStartingRegen) {\n Vector3i pos = new Vector3i();\n for (int z = 0; z < ChunkConstants.SIZE_Z; ++z) {\n for (int x = 0; x < ChunkConstants.SIZE_X; ++x) {\n int depthIndex = x + ChunkCon... |
"public static boolean implementSameInterfaces(final Class<?> object1, final Class<?> object2, final Class<?> base) {\n if (object1 == object2) {\n return true;\n }\n if (object1 == null || object2 == null) {\n return false;\n }\n final Class<?>[] c1 = getLeafInterfaces(object1, baseInterfa... |
"Type[] getGenericParameterTypes(Constructor m) {\n try {\n return m.getGenericParameterTypes();\n } catch (Throwable ex) {\n ex.printStackTrace();\n System.err.println(\"String_Node_Str\" + m + \"String_Node_Str\");\n return m.getParameterTypes();\n }\n}\n"
|
"public boolean moveTo(AbstractFile destFile) throws FileTransferException {\n if (!destFile.getURL().getProtocol().equals(FileProtocols.FILE)) {\n return super.moveTo(destFile);\n }\n destFile = destFile.getTopAncestor();\n if (!(destFile instanceof LocalFile)) {\n return super.moveTo(destFil... |
"ContentResolver getContentResolver() {\n return getContext().getContentResolver();\n}\n"
|
"public DbMaintainer createDbMaintainer() {\n ScriptRunner scriptRunner = createScriptRunner();\n ScriptSource scriptSource = createScriptSource();\n ExecutedScriptInfoSource executedScriptInfoSource = createExecutedScriptInfoSource();\n boolean cleanDbEnabled = PropertyUtils.getBoolean(PROPKEY_CLEANDB_ENAB... |
"private String getPhysicalDestinationFromConfiguration(String logicalDest, String appName, String moduleName) throws ConnectorRuntimeException {\n Property ep = null;\n try {\n AdminObjectResource res = null;\n res = (AdminObjectResource) ResourcesUtil.createInstance().getResource(logicalDest, appN... |
"private String convertImportPathToFilesystemPath(String path) {\n String[] tokens = path.split(\"String_Node_Str\");\n if (tokens.length != 2) {\n throw new UnsupportedProjectException(\"String_Node_Str\" + path);\n }\n List<Folder> folders = findFoldersContainingFile(tokens[1]);\n if (folders.si... |
"public void onNext(Anthology anthology) {\n mHotAnthology.setNextPageUrl(anthology.getNextPageUrl());\n mHotAnthology.getStories().addAll(anthology.getStories());\n}\n"
|
"public PluginStep doStep(PluginStep step, String parameter) {\n switch(step.getStep()) {\n case PluginStep.STEP_DECRYPT:\n Vector<String[]> decryptedLinks = new Vector<String[]>();\n RequestInfo reqinfo;\n try {\n while (true) {\n reqinfo = g... |
"protected DirtyAttributeFlusher<CollectionAttributeFlusher<E, V>, E, V> determineDirtyFlusherForNewCollection(UpdateContext context, V initial, V current) {\n EqualityChecker equalityChecker;\n if (elementDescriptor.isSubview()) {\n equalityChecker = EqualsEqualityChecker.INSTANCE;\n } else {\n ... |
"public void clear() {\n ensureOpen();\n Iterator<Map.Entry<Object, RICachedValue>> iterator = entries.iterator();\n while (iterator.hasNext()) {\n Map.Entry<Object, RICachedValue> entry = iterator.next();\n Object internalKey = entry.getKey();\n K key = keyConverter.fromInternal(internalK... |
"public void viewUpdated() {\n BufferedImage active = null;\n if (controls.selectedView == 0) {\n active = original;\n } else if (controls.selectedView == 1) {\n synchronized (lockProcessing) {\n VisualizeBinaryData.renderBinary(detector.getBinaryImage(), false, work);\n }\n ... |
"private static boolean start(Activity activity) {\n bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (bluetoothAdapter == null) {\n Log.e(TAG, \"String_Node_Str\");\n return false;\n } else if (!bluetoothAdapter.isEnabled()) {\n final Intent enableBluetoothIntent = new Intent... |
"public void run() {\n if (this.server != null) {\n ISelection selection = server.getViewer().getSelection();\n xobject = (TreeParent) ((IStructuredSelection) selection).getFirstElement();\n }\n if (xobject.getType() != TreeObject.JOB_REGISTRY)\n return;\n try {\n XtentisPort por... |
"public void ShowNewGameWarning() {\n if (NewGameWarning == null) {\n NewGameWarning = new Scene();\n Text areyouSure = new Text(30, (base.getCameraHeight() / 2) - 10, base.mFont2, \"String_Node_Str\");\n Text YesOption = new Text(areyouSure.getX(), areyouSure.getY() + areyouSure.getHeight(), ba... |
"protected TdColumn[] getColumns() {\n Object obj = getSelection().getFirstElement();\n if (obj instanceof TdColumn) {\n TdColumn[] column = new TdColumn[getSelection().size()];\n for (int i = 0; i < getSelection().size(); i++) {\n column[i] = (TdColumn) getSelection().toArray()[i];\n ... |
"public void processContent(Document document, boolean longPolling) {\n openHABWidgetAdapter.stopVideoWidgets();\n openHABWidgetAdapter.stopImageRefresh();\n Node rootNode = document.getFirstChild();\n openHABWidgetDataSource.setSourceNode(rootNode);\n widgetList.clear();\n for (OpenHABWidget w : open... |
"public static EF_Normal_NormalParents toEFDistribution(Normal_NormalParents dist) {\n EF_Normal_NormalParents ef_normal_normalParents = new EF_Normal_NormalParents(dist.getVariable(), dist.getConditioningVariables());\n CompoundVector naturalParameters = ef_normal_normalParents.createEmtpyCompoundVector();\n ... |
"public void addProjectTask(String message, IMessage.Kind kind) {\n listModel.addElement(new Message(message, kind, null, null));\n checkIfWarning(kind);\n}\n"
|
"public void inotTest5() {\n System.out.println(\"String_Node_Str\");\n final short[] content = new short[32768 - 5];\n content[0] = 0;\n content[1] = 2;\n content[2] = 4;\n content[3] = 6;\n content[4] = 8;\n for (int i = 10; i <= 32767; ++i) content[i - 10 + 5] = (short) i;\n MappeableConta... |
"public void characters(CharSequence characters) throws SAXException {\n JSONWriterRecord.this.characters(characters.toString());\n}\n"
|
"IPooledConnection getConnection(IThriftPool pool) {\n IThriftPool iThriftPool = pool;\n boolean success = false;\n while (!success) {\n success = true;\n if (iThriftPool != null) {\n Node[] nodes = ((CommonsBackedPool) iThriftPool).getCluster().getNodes();\n String host = n... |
"public Image getImage(Object element) {\n if (((ITestResultSummaryPO) element).hasTestResultDetails()) {\n return IconConstants.TRSV_DETAILS;\n }\n return IconConstants.TRSV_NODETAILS;\n}\n"
|
"public void start() {\n logger.info(\"String_Node_Str\");\n startTime = System.currentTimeMillis();\n fetchedRows = 0;\n currentlyBestAxioms = new ArrayList<EvaluatedAxiom>();\n Description existingDomain = reasoner.getDomain(propertyToDescribe);\n logger.info(\"String_Node_Str\" + existingDomain);\n... |
"public static int getInsertionEndIndex(List<? extends Delayed> list, Delayed key, boolean randomAccessList) {\n int searchResult = binarySearch(list, key, randomAccessList);\n if (searchResult >= 0) {\n long keyDelay = key.getDelay(TimeUnit.MILLISECONDS);\n Iterator<? extends Delayed> it = list.lis... |
"private static String getCurrentDateTimeTZ(String blogTimeZoneOption, String pattern) {\n Date date = new Date();\n SimpleDateFormat gmtDf = new SimpleDateFormat(pattern);\n if (blogTimeZoneOption == null) {\n AppLog.w(T.UTILS, \"String_Node_Str\");\n return gmtDf.format(date);\n }\n AppLo... |
"private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {\n TicketLineInfo line;\n int numAux = receipttwo.countNumberAuxiliar();\n int ini = receipttwo.getJticketLine().getSelectedIndex();\n if (numAux != 0) {\n line = receipttwo.getSelectedLineUnit();\n receiptone.addSelectedLi... |
"protected void propertyChange(Map info) {\n boolean invalidate = false;\n if (info.get(ReportDesignHandle.BIDI_ORIENTATION_PROP) instanceof ReportDesignHandle) {\n String newOrientation = ((ReportDesignHandle) info.get(ReportDesignHandle.BIDI_ORIENTATION_PROP)).getBidiOrientation();\n UIUtil.proces... |
"private void refreshView() {\n refreshForNewApp();\n ArrayList<ApplicationRecord> readyApps = CommCareApplication._().getUsableAppRecords();\n if (readyApps.size() == 1) {\n spinner.setVisibility(View.GONE);\n welcomeMessage.setText(Localization.get(\"String_Node_Str\"));\n ApplicationRec... |
"public void onAttach(Activity activity) {\n super.onAttach(activity);\n String key = ViewPagerAdapter.TEAM_TAG;\n Object thing = getCachedObject(key);\n if (thing != null) {\n mData = (ArrayList<TeamMember>) thing;\n } else {\n setCachedObject(key, mData);\n }\n mAdapter = new TeamFr... |
"public void generate() throws IOException, SAXException, ProcessingException {\n if (this.bitstreamInputStream == null)\n return;\n if (isSpider) {\n long modSince = request.getDateHeader(\"String_Node_Str\");\n if (modSince != -1 && item != null && item.getLastModified().getTime() < modSinc... |
"public void testMath85_CustomBasicIngredientStrategy() throws Exception {\n AstorMain main1 = new AstorMain();\n String dep = new File(\"String_Node_Str\").getAbsolutePath();\n String[] args = new String[] { \"String_Node_Str\", dep, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node... |
"public static boolean isBetween(double a, double b, double c) {\n return a == c || b == c || (b > a ? c > a && c < b : c > b && c < a);\n}\n"
|
"public void componentResized(ComponentEvent e) {\n calcColumnWidths();\n}\n"
|
"public Object visitTableGroup(TableGroupDesign group, Object value) {\n TableGroupScriptExecutor.handleOnCreate((ITableGroupContent) value, context);\n return value;\n}\n"
|
"private static synchronized void setShellCommand() {\n String buffer;\n if (ConfigurationManager.getVariableBoolean(ConfigurationVariables.USE_CUSTOM_SHELL, ConfigurationVariables.DEFAULT_USE_CUSTOM_SHELL))\n buffer = ConfigurationManager.getVariable(ConfigurationVariables.CUSTOM_SHELL, PlatformManager.DE... |
"public boolean sacrifice(UUID sourceId, Game game) {\n if (!game.replaceEvent(GameEvent.getEvent(EventType.SACRIFICE_PERMANENT, objectId, sourceId, controllerId))) {\n moveToZone(Zone.GRAVEYARD, sourceId, game, true);\n Player player = game.getPlayer(getControllerId());\n if (player != null) {\... |
"private void unary(OPT_Instruction s, OPT_Operator opCode, OPT_IR ir) {\n OPT_RegisterOperand result = Unary.getClearResult(s);\n OPT_Operand op1 = Unary.getClearVal(s);\n if (result.similar(op1)) {\n OPT_DefUse.removeUse(op1.asRegister());\n OPT_DefUse.removeDef(result);\n OPT_DefUse.rec... |
"private void ctorAddKnownGlobalSymbols() {\n String[] commonBuiltins = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\",... |
"private void refreshUserDetails() {\n WPNetworkImageView imgAvatar = (WPNetworkImageView) findViewById(R.id.person_avatar);\n TextView txtDisplayName = (TextView) findViewById(R.id.person_display_name);\n TextView txtUsername = (TextView) findViewById(R.id.person_username);\n TextView txtRole = (TextView) ... |
"private boolean performConnect(boolean reconnect) {\n if (currentConnection == null || !reconnect) {\n String server = MagePreferences.getServerAddress();\n int port = MagePreferences.getServerPort();\n String userName = MagePreferences.getUserName(server);\n String password = MagePrefer... |
"public ResolvedPointcutDefinition makeResolvedPointcutDefinition() {\n if (resolvedPointcutDeclaration != null)\n return resolvedPointcutDeclaration;\n resolvedPointcutDeclaration = new ResolvedPointcutDefinition(EclipseFactory.fromBinding(this.binding.declaringClass), declaredModifiers, declaredName, Ecl... |
"public void drawLine(PoincareNode node1, PoincareNode node2, int numberOfDetails, int mode) {\n Point2D.Double startingPoint = node1.getPosition();\n double width = this.getMetric(startingPoint, lineWidth) * lineFactor;\n gl.glLineWidth((float) width);\n gl.glBegin(GL.GL_LINE);\n gl.glColor3i(0, 0, 0);\... |
"protected String applyColour(Color[] palette, Color oldBackground, Color oldForeground, boolean[] oldFormat, Color newBackground, Color newForeground, boolean[] newFormat) {\n StringBuilder rc = new StringBuilder();\n int colourindex1back = -1, colourindex2back = -1;\n int colourindex1fore = -1, colourindex2f... |
"public String readLine() throws IOException {\n int available = available();\n if (available == 0) {\n return null;\n }\n buf.reset();\n boolean done = false;\n while (!done) {\n int linetmpPos = mCurrentOffset;\n int bCnt = 0;\n while ((available-- > 0)) {\n fi... |
"public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (!(obj instanceof RouteInfo))\n return false;\n RouteInfo target = (RouteInfo) obj;\n return Objects.equals(mDestination, target.getDestinationLinkAddress()) && Objects.equals(mGateway, target.getGateway()) && Objects.... |
"public Iterable<String> buildUpdates(JavaPairRDD<String, String> newData) {\n return ExampleBatchLayerUpdate.countDistinctOtherWords(newData).entrySet().stream().map(entry -> {\n String word = entry.getKey();\n int count = entry.getValue();\n int newCount;\n synchronized (distinctOtherWo... |
"public static int getHeight(final String dirName, final String fileName) {\n final DITAOTJavaLogger logger = new DITAOTJavaLogger();\n File imgInput = new File(dirName + File.separatorChar + fileName);\n if (checkDirName(dirName))\n imgInput = new File(getImageOutPutPath(fileName));\n try {\n ... |
"public void preloadLineTile(int y, int length, int band) {\n if (y < 0) {\n return;\n }\n CeosBinaryReader tiff = (CeosBinaryReader) getImage(band);\n preloadedInterval = new int[] { y, y + length };\n Rectangle rect = new Rectangle(0, y, tiff.getxSize(), length);\n rect = tiff.getBounds().int... |
"public static String addToStockableString(int UID, String s, Stockable st) {\n if (s.contains(st.toString() + \"String_Node_Str\"))\n return \"String_Node_Str\";\n return st.toString() + \"String_Node_Str\";\n}\n"
|
"private void loadProjects(List<IProject> projects) {\n if (projectCombo.getItemCount() > 0)\n projectCombo.removeAll();\n projectCombo.setData(projects);\n Collections.sort(projects, new Comparator<IProject>() {\n public int compare(IProject o1, IProject o2) {\n return String.CASE_INS... |
"public long appendDocument(Bytes buffer) {\n long length = buffer.remaining();\n if (length > MAX_LENGTH)\n throw new IllegalStateException(\"String_Node_Str\" + length);\n LongValue writeByte = header.writeByte();\n long lastByte = writeByte.getVolatileValue();\n for (; ; ) {\n if (bytes.... |
"Object[] addParams(Object... newParams) {\n int newParamLength = newParams.length;\n Object[] newParamList = new Object[parameters.length + newParamLength];\n System.arraycopy(parameters, 0, newParamList, 0, parameters.length);\n System.arraycopy(newParams, 0, newParamList, parameters.length, newParamLengt... |
"private void draw(Canvas canvas, Paint paint, int thumbColor, int colorLeft, int colorRight, float halfLeft, float halfRight) {\n Rect bounds = getBounds();\n int thumbX = mPoint.x;\n int thumbY = mPoint.y;\n int startLeft = bounds.left + mTouchRadius;\n int startRight = bounds.right - mTouchRadius;\n ... |
"public void showEmptyClientIdentifier() {\n llError.setVisibility(View.VISIBLE);\n mNoIdentifierText.setText(getResources().getString(R.string.no_identifier_to_show));\n mNoIdentifierIcon.setImageResource(R.drawable.ic_assignment_turned_in_black_24dp);\n}\n"
|
"public Object getNewObject() {\n OPMEffectLink link = OPMFactory.eINSTANCE.createOPMEffectLink();\n link.setId(OPMIdManager.getNextId());\n return link;\n}\n"
|
"public ResourceResolver getResolver() {\n if (this.resolver == null) {\n IllegalStateException e = new IllegalStateException(\"String_Node_Str\" + \"String_Node_Str\");\n logger.error(\"String_Node_Str\", e);\n throw e;\n }\n return resolver;\n}\n"
|
"private JSType createRecordTypeFromNodes(Node n, String sourceName, StaticScope<JSType> scope) {\n RecordTypeBuilder builder = new RecordTypeBuilder(this);\n for (Node fieldTypeNode = n.getFirstChild(); fieldTypeNode != null; fieldTypeNode = fieldTypeNode.getNext()) {\n Node fieldNameNode = fieldTypeNode;... |
"protected void appendToConsole(final IProcessMessage message) {\n newMessages.add(message);\n}\n"
|
"public void execute(AdminCommandContext context) {\n ActionReport report = context.getActionReport();\n report.setActionExitCode(ActionReport.ExitCode.SUCCESS);\n Logger logger = context.getLogger();\n ActionReport.MessagePart top = report.getTopMessagePart();\n List<Cluster> clusterList = null;\n if... |
"private void detectLinebreak() throws IOException {\n BufferedReader r = null;\n final char[] buffer = new char[ImportWizardModel.DETECT_MAX_CHARS];\n int read = 0;\n try {\n r = new BufferedReader(new FileReader(new File(comboLocation.getText())));\n read = r.read(buffer);\n } finally {\n... |
"private void disconnectFromCluster(final ClientConnection connection) {\n clusterConnectionExecutor.execute(new Runnable() {\n\n public Void call() throws Exception {\n Address endpoint = connection.getEndPoint();\n if (endpoint == null || !endpoint.equals(ownerConnectionAddress)) {\n ... |
"public static void readAndWriteExit(Object obj, AnyType... args) {\n long current = System.nanoTime();\n elapse.addAndGet(current - vars.get(args[0]));\n}\n"
|
"private void handleH2LinkPreload(HeaderField header, HttpInboundLink link) {\n if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {\n Tr.entry(tc, \"String_Node_Str\");\n }\n int streamId = ((H2HttpInboundLinkWrap) link).getStreamId();\n String uri = header.asString().substring(header.... |
"public boolean apply(Game game, Ability source) {\n Player activePlayer = game.getPlayer(game.getActivePlayerId());\n if (activePlayer == null) {\n return false;\n }\n int landCount = game.getBattlefield().getAllActivePermanents(filter, activePlayer.getId(), game).size();\n if (landCount == 0) {\... |
"public void testSendAsyncQuery() {\n final Object monitor = new Object();\n Query query = QueryFactory.newKeepAlive();\n TestMessageQueueListener testMsgQueueList = new TestMessageQueueListener();\n session.registerMessageQueueListener(testMsgQueueList);\n try {\n session.sendAsyncQuery(query);\n... |
"public InetAddress getInetAddress() {\n try {\n InetAddress address = InetAddress.getByAddress(getBytes());\n if (address instanceof Inet6Address) {\n return (Inet6Address) address;\n }\n } catch (UnknownHostException ignore) {\n }\n return null;\n}\n"
|
"public static JsonParser sendMMSRequest(Project project, HttpRequestBase request) throws IOException, ServerException, URISyntaxException {\n File targetFile = File.createTempFile(\"String_Node_Str\", null);\n targetFile.deleteOnExit();\n HttpEntityEnclosingRequest httpEntityEnclosingRequest = null;\n bool... |
"public boolean init(Graph graph) {\n visibleInterval = dynamicModel.getVisibleInterval();\n min = Double.POSITIVE_INFINITY;\n max = Double.NEGATIVE_INFINITY;\n return true;\n}\n"
|
"public static void putField(ContentValues values, FlowManager flowManager, Field field, String fieldName, Object value) {\n Class<?> fieldType = field.getType();\n if (value != null && !StructureUtils.isForeignKey(field)) {\n final TypeConverter typeSerializer = flowManager.getTypeConverterForClass(fieldT... |
"public ProgramRunStatus recordProgramStart(ProgramId programId, String pid, long startTs, String twillRunId, Map<String, String> runtimeArgs, Map<String, String> systemArgs, byte[] sourceId) {\n MDSKey.Builder keyBuilder = getProgramKeyBuilder(TYPE_RUN_RECORD_STARTING, programId);\n boolean isValid = validateExi... |
"public DateTimeCalc compileDateTime(Exp exp) {\n return (DateTimeCalc) compileScalar(exp, false);\n}\n"
|
"private ByteBuffer allocateBuffer(final int requestedCapacity) {\n if (requestedCapacity > MAX_CAPACITY) {\n currentAllocateCapacity = MAX_CAPACITY;\n return ByteBuffer.allocate(requestedCapacity);\n }\n if (allocateCapacity > MAX_CAPACITY) {\n allocateCapacity = MAX_CAPACITY;\n }\n ... |
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final CpuUsage other = (CpuUsage) obj;\n if (percpuUsage == null) {\n if (other.percpuUsag... |
"protected void updateFormatSpecifierImpl(String name, EObject eParentObj, FormatSpecifier eObj, FormatSpecifier eRefObj, FormatSpecifier eDefObj, boolean eDefOverride) {\n if (eObj != null || (eRefObj == null && eDefObj == null)) {\n return;\n }\n if (eRefObj != null) {\n Object v = eRefObj;\n ... |
"private Bitmap generateBitmap(BaseRequest<RemoteRenderingResponse> request) {\n RemoteRenderingResponse response = request.getResponse();\n JsonObject layout = response.getResponse().getLayout();\n FrameLayout frameLayout = new FrameLayout(getBaseContext());\n frameLayout.setLayoutParams(new FrameLayout.La... |
"public void testTooManyIntervals() {\n given().param(\"String_Node_Str\", getParameter(\"String_Node_Str\")).param(\"String_Node_Str\", getParameter(\"String_Node_Str\")).param(\"String_Node_Str\", \"String_Node_Str\").param(\"String_Node_Str\", \"String_Node_Str\").param(\"String_Node_Str\", \"String_Node_Str\").w... |
"public static String getDatePattern() {\n if (defaultDatePattern == null) {\n Locale locale = LocaleContextHolder.getLocale();\n defaultDatePattern = ResourceBundle.getBundle(Constants.BUNDLE_KEY).getString(\"String_Node_Str\");\n }\n return defaultDatePattern;\n}\n"
|
"public AnalysisContextLocal getRootContext() {\n return getAnalysisContext(CallString.EMPTY);\n}\n"
|
"public double getValue() {\n if (isValueCacheValid) {\n return this.value;\n }\n double weightSquare = 0;\n for (int k = 0; k < numClasses; k++) {\n Vector weightVector = logisticRegression.getWeights().getWeightsWithoutBiasForClass(k);\n weightSquare += weightVector.dot(weightVector);... |
"public void testReadPDBFile() throws Exception {\n assertEquals(\"String_Node_Str\", \"String_Node_Str\", structure.getPDBCode());\n Chain c = structure.getChain(0);\n assertEquals(\"String_Node_Str\", 58, c.getAtomGroups(GroupType.AMINOACID).size());\n assertEquals(0, c.getAtomGroups(GroupType.HETATM).siz... |
"public void onResponse(Call<UpcomingModel> call, Response<UpcomingModel> response) {\n if (response.isSuccessful()) {\n List<ResultsItem> items = response.body().getResults();\n int index = new Random().nextInt(items.size());\n String title = items.get(index).getTitle();\n String message... |
"public void updateEntity() {\n super.updateEntity();\n if (worldObj.isRemote)\n return;\n if (powerHandler.getEnergyStored() <= 0)\n return;\n int sources = 0;\n for (ForgeDirection o : ForgeDirection.VALID_DIRECTIONS) {\n if (!container.isPipeConnected(o)) {\n powerSourc... |
"public void animate(int duration, final Layout.AnimationCallback callback) {\n layoutCmd.schedule(duration, callback);\n}\n"
|
"private Map<String, String> getLocaleProperties(Locale locale) {\n Set<String> loadedBundles = null;\n Map<String, String> props = null;\n int loadedBundleCount = 0;\n String tenantDomain = getTenantDomain();\n boolean init = false;\n Map<Locale, Set<String>> tenantLoadedResourceBundles = null;\n ... |
"private void initializeBricks(ArrayList<ISet> metaSets) {\n dimensionGroups.clear();\n for (ISet set : metaSets) {\n DimensionGroup dimensionGroup = (DimensionGroup) GeneralManager.get().getViewGLCanvasManager().createGLView(DimensionGroup.class, getParentGLCanvas(), new ViewFrustum(ECameraProjectionMode.... |
"public CellArea deepClone() {\n CellArea cell = (CellArea) super.deepClone();\n cell.setRowSpan(rowSpan);\n cell.setColSpan(colSpan);\n cell.setBoxStyle(new BoxStyle(cell.getBoxStyle()));\n if (getRowSpan() > 1) {\n cell.setHeight(currentBP + getOffsetY() + localProperties.getPaddingBottom());\n ... |
"private void runContentClustering(AClusterer clusterer, ClusterState clusterState, ClusterResult result, int progressBarOffset, int progressBarMulti) {\n clusterer.setClusterState(clusterState);\n TempResult tempResult = clusterer.getSortedVA(set, clusterState, progressBarOffset, progressBarMulti);\n result.c... |
"private View getListEditorView(String headerText) {\n Context themer = new ContextThemeWrapper(getActivity(), R.style.Calypso_SiteSettingsTheme);\n View view = View.inflate(themer, R.layout.list_editor, null);\n ((TextView) view.findViewById(R.id.list_editor_header_text)).setText(headerText);\n mAdapter = ... |
"private boolean getFeature() {\n FeatureFrame ff;\n try {\n curFeature = frontEnd.getData();\n if (curFeature == null) {\n return false;\n }\n curFeature = ff.getFeatures()[0];\n if (curFeature.getSignal() == Signal.UTTERANCE_START) {\n ff = frontEnd.getFe... |
"public void onClick(ClickEvent event) {\n hablarEventBus.fireEvent(new ClosePageEvent(PageLogic.this));\n}\n"
|
"private void acceptButtonActionPerformed(java.awt.event.ActionEvent evt) {\n accepted = true;\n setVisible(false);\n}\n"
|
"public static SphereClient of(final SphereClient delegate, final Duration duration) {\n return of(delegate, duration.toMillis(), TimeUnit.MILLISECONDS);\n}\n"
|
"public static CxxPlatform build(Platform platform, CxxBuckConfig config) {\n String sharedLibraryExtension;\n String sharedLibraryVersionedExtensionFormat;\n String staticLibraryExtension;\n String objectFileExtension;\n Path defaultCFrontend;\n Path defaultCxxFrontend;\n Path defaultLinker;\n ... |
"protected void processImageThread(final BufferedImage buffered, final T input) {\n synchronized (processLock) {\n if (buffered != null)\n imageCopy1 = checkCopyBuffered(buffered, imageCopy1);\n if (processRunning) {\n processRequested = true;\n } else {\n proces... |
"private String processFile(String inFile, String outName) {\n String outFile;\n if (outName == \"String_Node_Str\" || outName == null) {\n outFile = ppDir + System.getProperty(\"String_Node_Str\") + (new File(inFile).getName());\n } else {\n outFile = ppDir + System.getProperty(\"String_Node_Str... |
"public static boolean isLowerCase(char ch) {\n return (ch >= 'a' && ch <= 'z') || (ch >= 0xDF && ch <= 0xF6) || (ch >= 0xF8 && ch <= 0xFF);\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.