content stringlengths 40 137k |
|---|
"public void test_getValues_withValidInterval() {\n Timestamp from = today.minus(15);\n Timestamp to = today.minus(5);\n int[] expectedValues = { CHECKED_EXPLICITLY, CHECKED_IMPLICITLY, CHECKED_IMPLICITLY, CHECKED_EXPLICITLY, CHECKED_EXPLICITLY, UNCHECKED, UNCHECKED, UNCHECKED, UNCHECKED, UNCHECKED, UNCHECKED ... |
"private double getParticipationCoefficient(Node node, Communities communities) {\n HashMap<Community, Integer> counter = new HashMap<Community, Integer>();\n for (int dst : node.getOutgoingEdges()) {\n Community community = communities.getCommunityOfNode(dst);\n int count = counter.containsKey(comm... |
"public Chart getModel(String sSubType, Orientation orientation, String sDimension, Chart currentChart) {\n ChartWithAxes newChart = null;\n if (currentChart != null) {\n newChart = (ChartWithAxes) getConvertedChart(currentChart, sSubType, orientation, sDimension);\n if (newChart != null) {\n ... |
"public void encrypt(Bundle params) {\n params.putStringArray(OpenPgpConstants.PARAMS_USER_IDS, mEncryptUserIds.getText().toString().split(\"String_Node_Str\"));\n params.putBoolean(OpenPgpConstants.PARAMS_REQUEST_ASCII_ARMOR, true);\n InputStream is = getInputstream(false);\n final ByteArrayOutputStream os... |
"public XmlBindings getXmlBindings(Map<String, ?> properties, ClassLoader classLoader) {\n try {\n JAXBContext jaxbContext = CompilerHelper.getXmlBindingsModelContext();\n Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();\n if (null != xmlBindingsSource) {\n return (XmlBin... |
"private void getIcons(Context ctx) {\n mBackIcon = ctx.getDrawable(R.drawable.ic_sysbar_back);\n mBackLandIcon = mBackIcon;\n mBackAltIcon = ctx.getDrawable(R.drawable.ic_sysbar_back_ime);\n mBackAltLandIcon = mBackAltIcon;\n mHomeDefaultIcon = ctx.getDrawable(R.drawable.ic_sysbar_home);\n mRecentIco... |
"private Spacing getSpacingForRecords(CsvBlock child1, CsvBlock child2) {\n Spacing spacing;\n Block fieldBlock = null;\n CsvColumnInfo columnInfo = null;\n if (child2 != null && child2.getNode().getElementType() == CsvTypes.RECORD) {\n columnInfo = formattingInfo.getColumnInfo(0);\n fieldBloc... |
"public static void saveObject(Object object, String name) {\n if (saveIncomeData) {\n ObjectOutputStream oos = null;\n try {\n File dir = new File(\"String_Node_Str\");\n if (!dir.exists() || dir.exists() && dir.isFile()) {\n boolean bCreated = dir.mkdir();\n ... |
"public void testCreateDoubleMapFromV8Object() {\n V8Object object = v8.executeObjectScript(\"String_Node_Str\");\n Map<String, ? super Object> map = V8ObjectUtils.toMap(object);\n assertEquals(4, map.size());\n assertEquals(1.1, (double) map.get(\"String_Node_Str\"), 0.000001);\n assertEquals(2.2, (doub... |
"protected void onResume() {\n super.onResume();\n mTmpCities = getTmpCities();\n if (!mTmpCities.isEmpty()) {\n updateUI();\n } else {\n if (PreferenceUtils.getPrefBoolean(this, FIRST_RUN_APP, true)) {\n startActivity(new Intent(MainActivity.this, QueryCityActivity.class));\n ... |
"public static void setUp() throws WSDLException {\n if (conn == null) {\n try {\n conn = buildConnection();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n String ddlCreateProp = System.getProperty(DATABASE_DDL_CREATE_KEY, DEFAULT_DATABASE_DDL_CREATE);\n ... |
"FrameWorldDefault getFrame() {\n update(CHANGED_TOP_LEVEL);\n return frame;\n}\n"
|
"public static void handleApplicationInstanceActivatedEvent(String appId, String instanceId) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + appId + \"String_Node_Str\" + instanceId);\n }\n Applications applications = ApplicationHolder.getApplications();\n Application application = ... |
"public static ReturnCode updateJrxmlRelatedReport(List<String> jrxmlFileNames, List<String> jrxmlFileNamesAfterMove) {\n ReturnCode rc = new ReturnCode();\n if (jrxmlFileNames.size() == 0 || jrxmlFileNamesAfterMove.size() < jrxmlFileNames.size()) {\n rc.setOk(Boolean.FALSE);\n rc.setMessage(Default... |
"public void run() {\n info.notifyRemovedIfUserMatch(sbn_light);\n}\n"
|
"public String getReport() {\n Map<Double, Integer> distHubs = new HashMap<Double, Integer>();\n for (Node node : hub_list) {\n int n_index = indicies.get(node);\n Double d = hubs[n_index];\n if (distHubs.containsKey(d)) {\n Integer v = distHubs.get(d);\n distHubs.put(d,... |
"public boolean findTarget(boolean doSet) {\n if (worldObj.isRemote)\n return false;\n boolean[][] blockedColumns = new boolean[bluePrintBuilder.bluePrint.sizeX - 2][bluePrintBuilder.bluePrint.sizeZ - 2];\n for (int searchY = yCoord + 3; searchY >= 0; --searchY) {\n int startX, endX, incX;\n ... |
"public void doexport(TreeObject[] objs, IProgressMonitor monitor) {\n if (objs.length == 0)\n return;\n monitor.beginTask(\"String_Node_Str\", IProgressMonitor.UNKNOWN);\n Exports eps = new Exports();\n List<TreeObject> exports = new ArrayList<TreeObject>();\n XtentisPort port;\n try {\n ... |
"private void performRescore() {\n RescoreDialog dialog = new RescoreDialog();\n if (dialog.process()) {\n List<AdjustScore> adjusters = new ArrayList<AdjustScore>();\n CalculateScore score = new TrainingSetScore(dialog.getTrainingSet());\n ParallelScore ps = new ParallelScore(this.population... |
"public boolean apply(Game game, Ability source) {\n Player player = game.getPlayer(this.getTargetPointer().getFirst(game, source));\n Player controller = game.getPlayer(source.getControllerId());\n if (player == null || controller == null) {\n return false;\n }\n Cards cards = new CardsImpl();\n ... |
"public void onVideoSizeChanged(int width, int height, int unappliedRotationDegrees, float pixelWidthHeightRatio) {\n if (contentFrame != null) {\n float aspectRatio = height == 0 ? 1 : (width * pixelWidthHeightRatio) / height;\n aspectRatioVideoFrame.setAspectRatio(aspectRatio);\n }\n}\n"
|
"public OutputStream getOutputStream(String relativePath, boolean mustExist) {\n HttpURLConnection httpUrlConnection = buildHttpUrlConnection(relativePath);\n return new HttpOutputStream(httpUrlConnection);\n}\n"
|
"public void testSaveAndRestoreMemento() throws Exception {\n AndokuPuzzle p1 = MockPuzzleSource.createPuzzle(0);\n p1.computeSolution();\n p1.setValues(0, 1, ValueSet.of(7));\n p1.setValues(0, 2, ValueSet.of(6));\n p1.setValues(0, 4, ValueSet.of(3, 4));\n p1.setValues(0, 5, ValueSet.of(8));\n p1.c... |
"public boolean associateIpAddressListToAccount(long userId, long accountId, long zoneId, Long vlanId, Network network) throws InsufficientCapacityException, ConcurrentOperationException, ResourceUnavailableException, ResourceAllocationException {\n Account owner = _accountMgr.getActiveAccountById(accountId);\n b... |
"public long getDurationInMillis() {\n if (startTickNanoSeconds != null && stopTickNanoSeconds != null) {\n return (stopTickNanoSeconds - startTickNanoSeconds) / (long) Math.pow(MILLIS_FACTOR, EXPONENT);\n }\n return -1;\n}\n"
|
"public Module getSingleNodeModules() {\n File warehouseDir = new File(new File(conf.get(Constants.CFG_LOCAL_DATA_DIR), \"String_Node_Str\"), \"String_Node_Str\");\n File databaseDir = new File(new File(conf.get(Constants.CFG_LOCAL_DATA_DIR), \"String_Node_Str\"), \"String_Node_Str\");\n LOG.debug(\"String_Nod... |
"public void testGetDefaultTOCStyle() throws Exception {\n StyleHandle styleHandle = session.getDefaultTOCStyle(TOCHandle.defaultTOCPrefixName + \"String_Node_Str\");\n assertNotNull(styleHandle);\n DimensionHandle dimension = styleHandle.getFontSize();\n assertNotNull(dimension);\n assertEquals(\"String... |
"public Job waitForCompletion(final String id, final long blockTimeout, final long pollTime) throws GenieException, InterruptedException {\n if (StringUtils.isEmpty(id)) {\n final String msg = \"String_Node_Str\";\n LOG.error(msg);\n throw new GenieException(HttpURLConnection.HTTP_BAD_REQUEST, m... |
"private void handleAddAttachmentError(int error, int mediaTypeStringId) {\n if (error == WorkingMessage.OK) {\n return;\n }\n Resources res = getResources();\n String mediaType = res.getString(mediaTypeStringId);\n String title, message;\n switch(error) {\n case WorkingMessage.UNKNOWN_E... |
"protected Double compute() {\n int tensorDim;\n if (y == null)\n tensorDim = OpExecutionerUtil.chooseElementWiseTensorDimension(x);\n else\n tensorDim = OpExecutionerUtil.chooseElementWiseTensorDimension(x, y);\n int nTensors = x.tensorssAlongDimension(tensorDim);\n if (nTensors == 1) {\n ... |
"public static void getSpecifiedPageNumber(HandlerContext handlerCtx) {\n String pageNumberValue = (String) handlerCtx.getInputValue(\"String_Node_Str\");\n int result = 0;\n try {\n int pageNumber = Integer.parseInt(pageNumberValue);\n if (pageNumber > 0) {\n result = (pageNumber * DE... |
"public static Cell getSupercell(Cell c, List<List<Integer>> coefficients) {\n Cell cell = c.getCellWithAllAtomsInCell();\n if (coefficients.size() != Constants.numDimensions)\n throw new IllegalArgumentException(\"String_Node_Str\" + coefficients.size());\n List<Vect> newVectors = new LinkedList<Vect>(... |
"public double addAndReturnExcess(int x, int y, double toAdd) {\n double excess = 0;\n double newVal = get(x, y) + toAdd;\n if (newVal > MAX_VALUE) {\n excess = newVal - MAX_VALUE;\n newVal = MAX_VALUE;\n }\n set(x, y, newVal);\n return excess;\n}\n"
|
"public JsonValue encrypt(JsonValue value, String cipher, String alias) throws JsonCryptoException, JsonException {\n JsonValue result = null;\n if (value != null) {\n JsonEncryptor encryptor = getEncryptor(cipher, alias);\n result = new JsonCrypto(encryptor.getType(), encryptor.encrypt(value)).toJs... |
"private void testSimpleLeftJoinCube() throws Exception {\n DeployUtil.prepareTestData(\"String_Node_Str\", \"String_Node_Str\");\n SimpleDateFormat f = new SimpleDateFormat(\"String_Node_Str\");\n f.setTimeZone(TimeZone.getTimeZone(\"String_Node_Str\"));\n long dateStart;\n long dateEnd;\n ArrayList<... |
"public boolean onPreferenceChange(Preference preference, Object objValue) {\n if (preference == mButtonDTMF) {\n int index = mButtonDTMF.findIndexOfValue((String) objValue);\n Settings.System.putInt(mPhone.getContext().getContentResolver(), Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, index);\n } e... |
"public boolean checkFile() throws IOException {\n boolean success = true;\n if (!allocated) {\n allocate();\n } else {\n try {\n if (!super.checkFile()) {\n return false;\n }\n HashSet<String> realFiles = new HashSet<>();\n File[] realFi... |
"private double sigmoid(double[] inputs, double[] weights) {\n double value = 0.0d;\n for (int i = 0; i < inputs.length; i++) {\n value += weights[i] * inputs[i];\n }\n return 1.0d / (1.0d + BoundMath.exp(-1 * value));\n}\n"
|
"public <T> T lookup(final Class<T> type, final String identifier) throws MetadataStoreException {\n ArgumentChecks.ensureNonNull(\"String_Node_Str\", type);\n ArgumentChecks.ensureNonEmpty(\"String_Node_Str\", identifier);\n Object value;\n if (ControlledVocabulary.class.isAssignableFrom(type)) {\n ... |
"public DatabaseField getDatabaseField() {\n DatabaseField field = super.getDatabaseField();\n field.setUnique(m_unique == null ? false : m_unique.booleanValue());\n field.setScale(m_scale == null ? 0 : m_scale.intValue());\n field.setLength(m_length == null ? 0 : m_length.intValue());\n field.setPrecisi... |
"public void testIjsModule() {\n allowExternsChanges();\n test(new String[] { lines(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"), lines(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\") }, new String[] { lines(\"String_Node_Str\", \"String_Node_Str\") });\n}\n"
|
"public void testValidateNodes1() throws DataException {\n ExprManager em = new ExprManager(null);\n Map m = new HashMap();\n m.put(\"String_Node_Str\", new ScriptExpression(\"String_Node_Str\"));\n m.put(\"String_Node_Str\", new ScriptExpression(\"String_Node_Str\"));\n m.put(\"String_Node_Str\", new Sc... |
"public void handle(Event e) {\n if (e.getKind() == EventKind.ERROR) {\n hasErrors = true;\n }\n super.handle(e);\n}\n"
|
"public ImmutablePair<PathInfoData, PathInfoData> getPath(Flow flow, Strategy strategy) throws UnroutablePathException, RecoverableException {\n long latency = 0L;\n List<PathNode> forwardNodes = new LinkedList<>();\n List<PathNode> reverseNodes = new LinkedList<>();\n if (!flow.isOneSwitchFlow()) {\n ... |
"protected static void findCuts(Table table, int[] v1, int v2) {\n double bestEval = Double.POSITIVE_INFINITY;\n for (int i = 0; i < table.resp.length - 1; i++) {\n double sum1 = table.resp[i][v2][0];\n double sum2 = table.resp[i][v2][2];\n double weight1 = table.count[i][v2][0];\n dou... |
"public static long getViaAgentId(final byte[] bytes) {\n return NumbersUtil.bytesToLong(bytes, 32);\n}\n"
|
"public Object putFromLoad(Data key, Object value, long ttl) {\n return putFromLoadInternal(key, value, ttl, false);\n}\n"
|
"private static TurboMilestone updateRandomMilestone(String repoId) {\n int i = (int) (Math.random() * milestoneCounter);\n return milestones.set(i, new TurboMilestone(repoId, (i + 1), \"String_Node_Str\" + (i + 1) + \"String_Node_Str\" + Math.random()));\n}\n"
|
"public boolean isEnabled() {\n return !Boolean.valueOf(getUserProperties().getProperty(MANIPULATIONS_DISABLED_PROP, \"String_Node_Str\"));\n}\n"
|
"public void executeCreateModelTask(CreateModelTask task) throws DBExecutionException, ModelAlreadyExistException {\n try {\n if (_xmlContainer == null) {\n throw new DBExecutionException(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n }\n if (_xmlTransaction == nu... |
"protected void onHandleIntent(Intent intent) {\n mActionCanceled.set(false);\n Bundle extras = intent.getExtras();\n if (extras == null) {\n Log.e(Constants.TAG, \"String_Node_Str\");\n return;\n }\n if (!(extras.containsKey(EXTRA_MESSENGER) || extras.containsKey(EXTRA_DATA) || (intent.get... |
"private void calculateWidthAndHeight() {\n String sCurrent;\n Rectangle2D box;\n float fTemp;\n Iterator<String> contentIterator = sContent.iterator();\n int iCount = 0;\n float fFontScalingFactor = 0.01f;\n while (contentIterator.hasNext()) {\n sCurrent = contentIterator.next();\n i... |
"public long getDomainId() {\n if (publicIpId != null)\n return _networkService.getIp(getSourceIpAddressId()).getDomainId();\n if (domainId != null) {\n return domainId;\n }\n return UserContext.current().getCaller().getDomainId();\n}\n"
|
"public KernelConfiguration start(BundleContext context, EventLogger eventLogger) throws IOException {\n ServiceReference<ConfigurationAdmin> configurationAdminReference = context.getServiceReference(ConfigurationAdmin.class);\n ConfigurationAdmin configAdmin = null;\n if (configurationAdminReference != null) ... |
"private void refreshSharedConfig() {\n VizModel vizModel = VizController.getInstance().getVizModel();\n setEnable(!vizModel.isDefaultModel());\n if (vizModel.isDefaultModel()) {\n return;\n }\n if (showEdgesCheckbox.isSelected() != vizModel.isShowEdges()) {\n showEdgesCheckbox.setSelected(... |
"private String createDeployment(AWSClients aws, RevisionLocation revisionLocation) throws Exception {\n this.logger.println(\"String_Node_Str\" + revisionLocation);\n CreateDeploymentResult createDeploymentResult = aws.codedeploy.createDeployment(new CreateDeploymentRequest().withDeploymentConfigName(this.deploy... |
"private void writeText(int type, Object value, StyleEntry style) {\n String txt = ExcelUtil.format(value, type);\n writer.openTag(\"String_Node_Str\");\n if (type == SheetData.NUMBER) {\n if (ExcelUtil.isNaN(value) || ExcelUtil.isBigNumber(value) || ExcelUtil.isInfinity(value)) {\n writer.at... |
"private static boolean evaluateInExpression(String simpleExpression, List<? extends IElementParameter> listParam) {\n String[] strings = null;\n if (simpleExpression.contains(\"String_Node_Str\")) {\n strings = simpleExpression.split(\"String_Node_Str\");\n } else {\n strings = simpleExpression.... |
"public void partClosed(IWorkbenchPart part) {\n if (part instanceof AbstractMultiPageTalendEditor && currentProcess != null) {\n AbstractMultiPageTalendEditor mpte = (AbstractMultiPageTalendEditor) part;\n if (mpte.isKeepPropertyLocked()) {\n currentProcess = null;\n return;\n ... |
"public void drawLine(PoincareNode node1, PoincareNode node2, int numberOfDetails, int mode) {\n if (numberOfDetails != 0) {\n float[] startPoint = new float[2];\n startPoint = this.projectPoint(node1.getZoomedPosition(), false);\n float[] endPoint = new float[2];\n endPoint = projectPoin... |
"public void handle(IOContext context) throws IOException {\n ExportHandlerContext ctx = localContext.get(context);\n if (ctx == null) {\n localContext.set(context, ctx = new ExportHandlerContext(context.channel.getFd(), context.getServerConfiguration().getDbCyclesBeforeCancel()));\n }\n ChunkedRespo... |
"private Pair<List<TemplateJoinVO>, Integer> searchForIsosInternal(ListIsosCmd cmd) {\n TemplateFilter isoFilter = TemplateFilter.valueOf(cmd.getIsoFilter());\n Long id = cmd.getId();\n Map<String, String> tags = cmd.getTags();\n Account caller = CallContext.current().getCallingAccount();\n boolean listA... |
"public List<String> validateQuestionDetails() {\n List<String> errors = new ArrayList<String>();\n if (generateOptionsFor == FeedbackParticipantType.NONE && numOfMsqChoices < MIN_NUM_OF_MSQ_CHOICES) {\n errors.add(ERROR_NOT_ENOUGH_MSQ_CHOICES + MIN_NUM_OF_MSQ_CHOICES + \"String_Node_Str\");\n }\n re... |
"public void testPut_ComparableKey() {\n final boolean java6CompatibleSources = !TestUtils.isJvm() || TestUtils.getJdkVersion() < 7;\n TreeMap map = new TreeMap();\n ConflictingKey conflictingKey = new ConflictingKey(\"String_Node_Str\");\n try {\n TreeMap untypedMap = map;\n untypedMap.put(co... |
"private Bitmap createThumbnailFromUri(Uri uri, long id) {\n Bitmap bitmap = Util.makeBitmap(IImage.THUMBNAIL_TARGET_SIZE, IImage.THUMBNAIL_MAX_NUM_PIXELS, uri, mContentResolver);\n if (bitmap != null) {\n storeThumbnail(bitmap, id);\n } else {\n bitmap = Util.makeBitmap(IImage.MINI_THUMB_TARGET_... |
"private void setCommandAndApplicationForJob(final ProcessBuilder processBuilder) throws GenieException {\n final Command command = this.commandService.getCommand(this.job.getCommandId());\n if (command.getConfigs() != null && !command.getConfigs().isEmpty()) {\n processBuilder.environment().put(\"String_N... |
"public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n ResidueIdentifier other = (ResidueIdentifier) obj;\n return this.seqResIndex == other.seqResIndex;\n}\n"
|
"public void onPlayerChat(PlayerChatEvent event) {\n Player p = event.getPlayer();\n if (ACHelper.getInstance().getConfBoolean(\"String_Node_Str\")) {\n AFKWorker.getInstance().updateTimeStamp(p);\n if (AFKWorker.getInstance().isAfk(p))\n AFKWorker.getInstance().setOnline(p);\n }\n ... |
"private boolean analyzeIn(IntrinsicModel model, ExprNode node, RecordMetadata metadata) throws ParserException {\n if (node.paramCount < 2) {\n throw QueryError.$(node.position, \"String_Node_Str\");\n }\n ExprNode col = node.paramCount < 3 ? node.lhs : node.args.getLast();\n if (col.type != ExprNod... |
"public void export(Graph graph, String filename) throws IOException {\n if (graph.getNodeCount() <= 1)\n return;\n for (Node node : graph.getNodes()) {\n minX = Math.min((int) node.getNodeData().x(), minX);\n minY = Math.min((int) node.getNodeData().y(), minY);\n maxX = Math.max((int)... |
"protected void fullLayout() {\n FormLayout layout = new FormLayout();\n layout.marginHeight = WidgetUtil.SPACING;\n layout.marginWidth = WidgetUtil.SPACING;\n layout.spacing = WidgetUtil.SPACING;\n setLayout(layout);\n int btnWidth = 60;\n int height = QUICK_BUTTON_HEIGHT - 2;\n FormData data =... |
"private static void copyDirectory(File source, File destination) throws IOException {\n if (source != null && source.isDirectory()) {\n if (destination != null && !destination.exists()) {\n destination.mkdir();\n }\n for (String child : source.list()) {\n copyDirectory(new... |
"private void processActionBuilder(Iterator<ActionBuilder> actionIter) {\n if (!actionIter.hasNext()) {\n return;\n }\n ActionBuilder actionBuilder = actionIter.next();\n log.debug(\"String_Node_Str\", actionBuilder.getName(), actionBuilder.getTypeSelect());\n MetaModel model = getModel(actionBuil... |
"public static String createSessionTempDir(String tempRootDir) throws DataException {\n final String prefix = \"String_Node_Str\";\n File sessionFile = null;\n synchronized (cacheCounter2) {\n String sessionTempDir = tempRootDir + File.separator + prefix + System.currentTimeMillis() + cacheCounter2.intV... |
"public void testSoldOut() throws InterruptedException {\n List<TicketCategoryModification> categories = Arrays.asList(new TicketCategoryModification(null, \"String_Node_Str\", AVAILABLE_SEATS - 1, new DateTimeModification(LocalDate.now().minusDays(1), LocalTime.now()), new DateTimeModification(LocalDate.now().plusD... |
"public static void main(String[] args) throws ConfigurationException, WikapidiaException {\n Options options = new Options();\n options.addOption(new DefaultOptionBuilder().withLongOpt(\"String_Node_Str\").withDescription(\"String_Node_Str\").create(\"String_Node_Str\"));\n options.addOption(new DefaultOption... |
"public Future write(Request request, Object data) throws IOException {\n Object object = invokeEncoder(request.encoders(), data);\n if (WebSocketTransport.class.isAssignableFrom(transport.getClass())) {\n webSocketWrite(request, object, data);\n } else {\n try {\n Response r = httpWri... |
"private void createReturn(polyglot.ast.Return retStmt) {\n polyglot.ast.Expr expr = retStmt.expr();\n soot.Value sootLocal = null;\n if (expr != null) {\n sootLocal = createExpr(expr);\n }\n if (monitorStack != null) {\n Stack putBack = new Stack();\n while (!monitorStack.isEmpty())... |
"public InetSocketAddress[] getPeers(long timeoutValue, TimeUnit timeoutUnit) throws PeerDiscoveryException {\n ArrayList<InetSocketAddress> addresses = new ArrayList<InetSocketAddress>();\n connection = null;\n BufferedReader reader = null;\n try {\n InetAddress[] ips = InetAddress.getAllByName(serv... |
"private void sendNoteByEmail(long id) {\n Uri noteUri = ContentUris.withAppendedId(getIntent().getData(), id);\n Cursor c = getContentResolver().query(noteUri, new String[] { NotePad.Notes.TITLE, NotePad.Notes.NOTE }, null, null, PreferenceActivity.getSortOrderFromPrefs(this));\n String title = \"String_Node_... |
"private String convertScopeToDescription() {\n StringBuilder sb = new StringBuilder();\n Map<String, Counter> counts = new TreeMap<String, Counter>();\n for (IReviewScopeItem item : scope.getItems()) {\n String key = item.getType(1);\n if (!counts.containsKey(key)) {\n counts.put(key,... |
"public static String generateCreateTableStatement(JoinedFlatTableDesc intermediateTableDesc, String storageDfsDir, String jobUUID) {\n StringBuilder ddl = new StringBuilder();\n ddl.append(\"String_Node_Str\" + intermediateTableDesc.getTableName(jobUUID) + \"String_Node_Str\");\n ddl.append(\"String_Node_Str\... |
"private SourceFile findSourceCoverageForElement(ICElement element) {\n List<SourceFile> sources = new ArrayList<>();\n ICProject cProject = element.getCProject();\n IPath target = GcovAnnotationModelTracker.getInstance().getBinaryPath(cProject.getProject());\n try {\n IBinary[] binaries = cProject.g... |
"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... |
"protected Bundle perform(Bundle extras) throws Exception {\n QBUser user = (QBUser) extras.getSerializable(QBServiceConsts.EXTRA_USER);\n File file = (File) extras.getSerializable(QBServiceConsts.EXTRA_FILE);\n user.setOldPassword(user.getPassword());\n int authorizationType = extras.getInt(QBServiceConsts... |
"public void windowClosing(WindowEvent e) {\n fireWizardEvent(WizardEvent.CANCEL);\n}\n"
|
"public static void main(String[] args) throws Exception {\n int degreeOfParallelism = 2;\n JobGraph jobGraph = new JobGraph(\"String_Node_Str\");\n JobInputVertex pageWithRankInput = JobGraphUtils.createInput(PageWithRankInputFormat.class, \"String_Node_Str\", \"String_Node_Str\", jobGraph, degreeOfParallelis... |
"static PlanarImage createScaledImage(PlanarImage sourceImage, S2SpatialResolution resolution, int level) {\n int sourceWidth = sourceImage.getWidth();\n int sourceHeight = sourceImage.getHeight();\n int targetWidth = getSizeAtResolutionLevel(L1C_TILE_LAYOUTS[0].width, level);\n int targetHeight = getSizeAt... |
"protected double updateHappinessAfterVotes(Proposition proposition, int votes, double overallMovement) {\n return this.getDataModel().getCurrentHappiness();\n}\n"
|
"public List<Integer> getRowIDList() {\n ArrayList<Integer> list = new ArrayList<Integer>(metaData.nrColumns);\n for (int count = 0; count < metaData.getNrRows(); count++) {\n list.add(count);\n }\n return list;\n}\n"
|
"public ServerResponse<PageInfo> getProductByKeywordCategory(Integer categoryId, String keyword, int pageNum, int pageSize, String orderBy) {\n if (StringUtils.isBlank(keyword) && categoryId == null) {\n return ServerResponse.createByErrorCodeMessage(ResponseCode.ILLEGAL_ARGUMENT.getCode(), ResponseCode.ILLEG... |
"public void run() {\n DataSetHandle dsHandle = ((DataSetEditor) getContainer()).getHandle();\n try {\n DataSetMetaDataHelper.clearPropertyBindingMap(dataSetHandle, dataSetBindingMap, dataSourceBindingMap);\n } catch (SemanticException e) {\n ExceptionHandler.handle(e);\n }\n}\n"
|
"public void checkPolygonCornerDistance() {\n List<Point2D_I32> contour = new ArrayList<Point2D_I32>();\n for (int i = 0; i < 20; i++) {\n contour.add(new Point2D_I32(rand.nextInt(), rand.nextInt()));\n }\n contour.get(3).set(10, 10);\n contour.get(4).set(13, 10);\n contour.get(8).set(20, 10);\... |
"public List<SurfaceFormSenseScore<T, U>> disambiguate(Collection<? extends SurfaceFormSenses<T, U>> surfaceFormsSenses, Graph subgraph) {\n VertexScorer<Vertex, Double> vertexScorer = getVertexScorer(subgraph);\n List<SurfaceFormSenseScore<T, U>> senseScores = ModelTransformer.initializeScores(surfaceFormsSenses... |
"public static NadminReturn nadminWithOutput(final int timeout, final String... args) {\n File cmd = new File(nucleusRoot, isWindows() ? \"String_Node_Str\" : \"String_Node_Str\");\n if (!cmd.canExecute()) {\n cmd = new File(nucleusRoot, isWindows() ? \"String_Node_Str\" : \"String_Node_Str\");\n }\n ... |
"public Object apply(State callerState) {\n SSAAbstractInvokeInstruction callInstr = ir.getCalls(call)[0];\n PointerKey returnAtCallerKey = heapModel.getPointerKeyForLocal(caller, isExceptional ? callInstr.getException() : callInstr.getDef());\n Set<CGNode> possibleTargets = g.getPossibleTargets(caller, call, ... |
"public void showSubordinateLeaves(ActionRequest request, ActionResponse response) {\n List<User> userList = Query.of(User.class).filter(\"String_Node_Str\", AuthUtils.getUser()).fetch();\n List<Long> leaveListId = new ArrayList<Long>();\n for (User user : userList) {\n List<LeaveRequest> leaveList = Qu... |
"public static CodeBlock.Builder getSQLiteStatementMethod(AtomicInteger index, String elementName, BaseColumnAccess columnAccess, TypeName elementTypeName, boolean isModelContainerAdapter) {\n String statement = columnAccess.getColumnAccessString(elementTypeName, elementName, isModelContainerAdapter, ModelUtils.getV... |
"public void removeAttribute(String key) {\n throw notSupportedOnClient();\n}\n"
|
"public void exec() {\n try {\n super.exec();\n } catch (AbortException e) {\n } catch (VMException e) {\n throw e;\n } catch (Exception e) {\n VMException lastException = new VMException(e);\n if (debugSupport != null) {\n debugSupport.notifyDebugEvent(new DebugEventE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.