content stringlengths 40 137k |
|---|
"public void testDoPostExecutesAndWritesResponse() throws Exception {\n when(req.getHeaders(\"String_Node_Str\")).thenReturn(convertRawEnumerationToGeneric(generateOAuthHeader(ROBOT.getAddress())));\n String operationId = \"String_Node_Str\";\n OperationRequest operation = new OperationRequest(\"String_Node_St... |
"private void updateReplicaFileInfoFilelist(long replicafileinfoId) {\n try {\n String sql = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n PreparedStatement statement = null;\n dbConnection.setAutoCommit(false);\n Date now = new Date(Calendar.getInstance().getTimeInMi... |
"protected String generateJobId() {\n synchronized (lastId) {\n String generatedId = System.currentTimeMillis() + \"String_Node_Str\";\n if (lastId != null) {\n while (lastId.equals(generatedId)) generatedId = generatedId.substring(0, generatedId.length() - 1) + (char) (generatedId.charAt(ge... |
"public VideoInfo setUri(Uri uri) {\n if (lastUri != null && !lastUri.equals(uri)) {\n PlayerManager.getInstance().releaseByFingerprint(fingerprint);\n }\n this.uri = uri;\n this.lastUri = this.uri;\n return this;\n}\n"
|
"protected int getTextureHandle() {\n return offscreenCanvas.getTextureName();\n}\n"
|
"public static boolean isValidCourseId(String courseId) {\n return (isValidString(courseId) && hasNoSpace(courseId) && courseId.matches(\"String_Node_Str\") && courseId.length() <= COURSE_ID_MAX_LENGTH);\n}\n"
|
"public void testDefaultExecutorIsShutdownWhenServiceIsStopped() throws Exception {\n final AtomicReference<ScheduledExecutorService> executor = Atomics.newReference();\n AbstractScheduledService service = new AbstractScheduledService() {\n volatile ScheduledExecutorService executorService;\n protec... |
"public <T> Future<T> invoke(Context context, Component component, String operation, Object[] args, TideResponder<T> tideResponder, boolean withContext, ComponentListener.Handler<T> handler) {\n log.debug(\"String_Node_Str\", context.getContextId(), component.getName() != null ? component.getName() : component.getCl... |
"public static void faceLocation(EntityNPC enpc, Vec3D loc2) {\n Location loc = new Location(enpc.world.getWorld(), enpc.locX, enpc.locY, enpc.locZ);\n double xDiff = loc2.a - loc.getX();\n double yDiff = loc2.b - loc.getY();\n double zDiff = loc2.c - loc.getZ();\n double DistanceXZ = Math.sqrt(xDiff * x... |
"public int getDefaultUsbCard() {\n ArrayList<AlsaCardsParser.AlsaCardRecord> prevRecs = mCardRecords;\n if (DEBUG) {\n LogDevices(\"String_Node_Str\", prevRecs);\n }\n scan();\n if (DEBUG) {\n LogDevices(\"String_Node_Str\", mCardRecords);\n }\n ArrayList<AlsaCardRecord> newRecs = ge... |
"private void importDataInit(App app) {\n log.debug(\"String_Node_Str\");\n String modules = app.getModules();\n String type = app.getTypeSelect();\n String lang = getLanguage(app);\n log.debug(\"String_Node_Str\", type, lang);\n if (lang == null) {\n return;\n }\n for (String module : mo... |
"private void validateUtilization(Utilization u, long expectedFacilityId) {\n List<Violation> violations = new ArrayList<>();\n validationService.validate(u, violations);\n if (!Objects.equals(u.facilityId, expectedFacilityId)) {\n violations.add(new Violation(\"String_Node_Str\", \"String_Node_Str\", \... |
"public String toString() {\n return \"String_Node_Str\" + fileID + \"String_Node_Str\" + clientID + \"String_Node_Str\" + xcapExpireTimeList + \"String_Node_Str\";\n}\n"
|
"public Symbol<?> findSymbol(String symbolName, SymbolType symbolScope, SymbolType[] args, ReferenceType... referenceType) {\n int j = indexStructure.size() - 1;\n Symbol<?> result = null;\n Scope selectedScope = null;\n if (symbolScope != null) {\n Class<?> clazz = symbolScope.getClazz();\n S... |
"public static void addJobGenerationMenu(final Menu menu, final Analysis analysis, final Indicator currentIndicator) {\n final Connection tdDataProvider = (Connection) analysis.getContext().getConnection();\n final boolean isMDMAnalysis = ConnectionUtils.isMdmConnection(tdDataProvider);\n final boolean isDelim... |
"public void run() throws Exception {\n final List<Data> keyValueSequence = this.keyValueSequence;\n if (keyValueSequence == null || keyValueSequence.isEmpty()) {\n return;\n }\n final int partitionId = getPartitionId();\n final MapService mapService = this.mapService;\n MapServiceContext mapSe... |
"public void checkDenyProcotol() {\n System.out.println(\"String_Node_Str\");\n AndroidElement element = mDriver.findElement(By.id(\"String_Node_Str\"));\n element.click();\n WaitUtil.forceWait(1);\n ScreenUtil.screenShot(\"String_Node_Str\");\n WaitUtil.implicitlyWait(1);\n AppUtil.launchApp();\n}... |
"private long storeNow() {\n int currentUnsavedPageCount = unsavedPageCount;\n long storeVersion = currentStoreVersion;\n long version = ++currentVersion;\n setWriteVersion(version);\n long time = getTime();\n lastCommitTime = time;\n retainChunk = null;\n Chunk lastChunk = chunks.get(lastChunkI... |
"protected void initialize() {\n String sqlQuery;\n List<Query> participatingQueries = new ArrayList<Query>();\n List<Query> cteQueries = new ArrayList<Query>();\n if (leftMostQuery instanceof CustomSQLQuery) {\n CustomSQLQuery customQuery = (CustomSQLQuery) leftMostQuery;\n List<Query> custom... |
"private boolean createInstance(String parentInstanceId, Cluster cluster) throws PolicyValidationException, PartitionValidationException {\n Instance parentMonitorInstance = this.parent.getInstance(parentInstanceId);\n String partitionId = null;\n if (parentMonitorInstance instanceof GroupInstance) {\n ... |
"public void setBoolean(Property property, boolean value) {\n convertValueAndSet(property, value);\n}\n"
|
"public <T extends ImageBase> SimpleImageSequence<T> load(String fileName, ImageType<T> imageType) {\n try {\n if (xuggler != null) {\n return xuggler.load(fileName, imageType);\n }\n }\n if (fileName.endsWith(\"String_Node_Str\") || fileName.endsWith(\"String_Node_Str\") || fileName.e... |
"public void onStop() {\n Log.d(LOGTAG, \"String_Node_Str\");\n Activity activity = getActivity();\n if (isStorable() && reader != null) {\n Storable storable = (Storable) readable;\n if (reader.isCompleted()) {\n activity.startService(createLastReadServiceIntent(activity, storable, Co... |
"public void notifyTxError() {\n if (txListener != null) {\n try {\n txListener.onError(event);\n } catch (Throwable e) {\n LOG.error().$(\"String_Node_Str\").$(e).$();\n }\n }\n}\n"
|
"public void testContentIdReferencing() throws Exception {\n List<BatchPart> batch = new ArrayList<BatchPart>();\n BatchChangeSet changeSet = BatchChangeSet.newBuilder().build();\n Map<String, String> changeSetHeaders = new HashMap<String, String>();\n changeSetHeaders.put(\"String_Node_Str\", \"String_Node... |
"public boolean shouldFilter() {\n HttpServletRequest request = RequestContext.getCurrentContext().getRequest();\n if (StrUtil.equalsIgnoreCase(request.getMethod(), HttpMethod.GET.name()) || StrUtil.containsIgnoreCase(request.getRequestURI(), TOKEN)) {\n return false;\n }\n return isPreview;\n}\n"
|
"public void startRequest(final MRCRequest rq) throws Throwable {\n String replMasterUUID = master.getReplMasterUUID();\n if (replMasterUUID != null && !replMasterUUID.equals(master.getConfig().getUUID().toString())) {\n ServiceUUID uuid = new ServiceUUID(replMasterUUID);\n throw new DatabaseExcepti... |
"public static String dataFromFile(String filePath) throws IOException, FileNotFoundException {\n StringBuilder dataStringBuffer = new StringBuilder();\n FileInputStream fis = null;\n InputStreamReader inputStreamReader = null;\n BufferedReader bufferedReader = null;\n try {\n fis = new FileInputS... |
"protected OQueryContextNative query(OQueryContextNative record, QClan e) {\n return null;\n}\n"
|
"public DirectValueAccess putIfAbsentDirect(K k, long valueLen) {\n if (k == null)\n throw new NullPointerException();\n final long keyLen = keySerializer.serializedSize(k);\n final long bytes = Util.allocLen(keyLen, valueLen);\n final long hashEntryAdr;\n if ((maxEntrySize > 0L && bytes > maxEntr... |
"public static void checkOclExpressions(MPatchModel mpatch) {\n final List<EObject> oclConditions = ExtEcoreUtils.collectTypedElements(mpatch.getChanges(), Collections.singleton(SymrefsPackage.Literals.OCL_CONDITION), true);\n for (EObject eObject : oclConditions) {\n if (eObject instanceof OclCondition) {... |
"private byte[][][] movements(Node from) {\n byte[][][] resultMoves = new byte[3][3][3];\n for (int dx = -1; dx <= +1; ++dx) {\n for (int dy = -1; dy <= +1; ++dy) {\n for (int dz = -1; dz <= +1; ++dz) {\n int x = from.index.x + dx;\n int y = from.index.y + dy;\n ... |
"public void clearForcedDisplayDensity(int displayId) {\n if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) != PackageManager.PERMISSION_GRANTED) {\n throw new SecurityException(\"String_Node_Str\" + android.Manifest.permission.WRITE_SECURE_SETTINGS);\n }\n if ... |
"private boolean isAnonymous(HashGroupifyEntry entry) {\n if (k != Integer.MAX_VALUE && entry.count < k) {\n return 0;\n }\n for (int i = 0; i < criteria.length; i++) {\n if (!criteria[i].isAnonymous(entry)) {\n return false;\n }\n }\n return true;\n}\n"
|
"public void actionPerformed(ActionEvent e) {\n JMenuItem menuItem = (JMenuItem) e.getSource();\n String itemName = menuItem.getName();\n ConferenceChatManager conferenceManager = GuiActivator.getUIService().getConferenceChatManager();\n String[] joinOptions;\n String subject = null;\n if (itemName.eq... |
"protected final String getEndpoint(final String[] iResources) {\n StringBuilder tEndpointBuilder = new StringBuilder(\"String_Node_Str\").append(getAddress());\n tEndpointBuilder.append(\"String_Node_Str\").append(getPort());\n for (final String tResource : iResources) {\n tEndpointBuilder.append(tReso... |
"public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + (int) (getId() ^ (getId() >>> 32));\n return result;\n}\n"
|
"public void _testOverriding_GRE440_2() {\n if (GroovyUtils.isGroovy16())\n return;\n runNegativeTest(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_St... |
"public List<Target> onCompleted(Response response) throws Exception {\n logResponse(response);\n if (isStatus2xx(response)) {\n JsonNode responseNode = mapper.readTree(response.getResponseBodyAsBytes());\n int count = responseNode.get(\"String_Node_Str\").asInt();\n if (count > readCount.get... |
"private static void createOverviews(boolean elevations, File directory, String extension, int width, int height, int bufferType, ByteOrder byteOrder, int[] outsideValues, Sector sector, double lzts, ProgressReporter progress) {\n progress.getLogger().info(\"String_Node_Str\");\n if (directory.isDirectory()) {\n ... |
"public void testWithDateFromAndTOAndDateAsInput() {\n UkaProgramService service = new UkaProgramService();\n UkaProgramRepository mock = Mockito.mock(UkaProgramRepository.class);\n service.setUkaProgramRepository(mock);\n Date from = new Date();\n Date to = new Date(from.getTime() + 8640000);\n Date ... |
"public void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n if (dy == 0 || recyclerView.getChildCount() <= 0)\n return;\n LinearLayoutManager linearLayoutManager = (LinearLayoutManager) recyclerView.getLayoutManager();\n int firstVisibleItem = linearLayoutManager.findFirstVisibleItemPosition(... |
"public boolean func_102008_b(int i, ItemStack itemstack, int j) {\n return false;\n}\n"
|
"private int exponentialBackOff() {\n mCurrentTimeoutMs += (mCurrentTimeoutMs * defaultBackoffMultiplier);\n return timeout;\n}\n"
|
"void writeToParcelLocked(Parcel out, boolean inclUids, int flags) {\n pullPendingStateUpdatesLocked();\n final long uSecUptime = SystemClock.uptimeMillis() * 1000;\n final long uSecRealtime = SystemClock.elapsedRealtime() * 1000;\n final long batteryRealtime = mOnBatteryTimeBase.getRealtime(uSecRealtime);\... |
"private void readPomFile() {\n try (InputStream inputStream = folder.openFile(\"String_Node_Str\")) {\n pomXmlParser = new PomXmlParser(inputStream);\n } catch (Exception e) {\n throw new InvalidConfigurationException(e);\n } finally {\n FolderUtil.closeStream(inputStream);\n }\n}\n"
|
"public static void addEntityManagementRelatedClasses(Context context) {\n ModuleEnvironment environment = context.get(ModuleManager.class).getEnvironment();\n NetworkSystem networkSystem = context.get(NetworkSystem.class);\n PojoEntityManager entityManager = new PojoEntityManager();\n context.put(EntityMan... |
"private List reorganize(List nodes) {\n List newList = new ArrayList();\n Iterator iter = nodes.iterator();\n while (iter.hasNext()) {\n ValidationNode node = (ValidationNode) iter.next();\n String id = node.getTriggerDefn().getValidationID();\n if (!validationIDs.contains(id)) {\n ... |
"public DatabaseConnection createConnection(ConnectionParameters parameters) {\n String dbType = parameters.getDbType();\n boolean isNeedSchema = EDatabaseTypeName.getTypeFromDbType(dbType).isNeedSchema();\n String productName = EDatabaseTypeName.getTypeFromDisplayName(dbType).getProduct();\n String schema ... |
"protected void updateNamespaces(QName qname, MarshalRecord marshalRecord, XMLField xmlField) {\n if (qname != null) {\n if (xmlField != null) {\n if (xmlField.isTypedTextField()) {\n if (xmlField.getSchemaType() == null) {\n if (qname.equals(XMLConstants.STRING_QN... |
"public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {\n if (getActivity() == null) {\n return;\n if (!cursor.moveToFirst()) {\n Context context = mGraphContainer.getContext();\n if (context != null) {\n LayoutInflater inflater = LayoutInflater.from(context);\n ... |
"public void registerObject(GameObject o) {\n if (o.getGameObjectDef().getType() != 1 && o.getGameObjectDef().getType() != 2) {\n return;\n }\n int dir = o.getDirection();\n int width, height;\n if (dir == 0 || dir == 4) {\n width = o.getGameObjectDef().getWidth();\n height = o.getGa... |
"public void save(Vm vm, VmModel model) throws VmException {\n lock.lock();\n try {\n IMachine machine = getIMachineReference(vm.getId());\n ISession session = mgr.getSessionObject();\n machine.lockMachine(session, LockType.Shared);\n machine = session.getMachine();\n try {\n ... |
"private void enhanceApplicationArchive(Archive<?> appArchive, TestClass testClass, Manifest manifest) {\n if (ClassContainer.class.isAssignableFrom(appArchive.getClass()) == false)\n throw new IllegalArgumentException(\"String_Node_Str\" + appArchive);\n Class<?> javaClass = testClass.getJavaClass();\n ... |
"private void setupGPSSubscriber() {\n new Subscriber(\"String_Node_Str\", NodeChannel.GPS.getMsgPath(), ((topicName, m) -> {\n GpsMeasurement gpsLoc = (GpsMeasurement) m;\n LocTuple loc = new LocTuple(gpsLoc.getLatitude(), gpsLoc.getLongitude());\n UTMTuple gps = LocalizerUtil.deg2UTM(loc);\n ... |
"protected void handleBuilderAction() {\n try {\n String sExpr = context.getUIServiceProvider().invoke(IUIServiceProvider.COMMAND_EXPRESSION_DATA_BINDINGS, getExpression(getInputControl()), context.getExtendedItem(), sTitle);\n boolean isSuccess = setUIText(getInputControl(), sExpr);\n updateQue... |
"public Object[] backwardReachableNodes(Object[] objs) {\n _computeTransitiveClosure();\n int N = objs.length;\n int[] ids = new int[N];\n for (int i = 0; i < N; i++) {\n ids[i] = _getNodeId(objs[i]);\n }\n Vector nodes = new Vector(_transitiveClosure.length);\n for (int i = 0; i < _transiti... |
"protected int getMaxWidth() {\n return 60;\n}\n"
|
"private EvaluationResult[] calculateAccuracies(List<int[]> matchingCounts, List<List<T>> goldStandard) {\n int tp, elements, tpSum = 0, elementsSum = 0, docCount = 0;\n double microAcc = 0, macroAcc = 0;\n for (int i = 0; i < counts.length; ++i) {\n elements = goldStandard.get(i).size();\n if (e... |
"public static Project createProject(String clusterName, String catalogName, String tableName, List<String> columnList) {\n List<ColumnName> columns = new ArrayList<>();\n for (String column : columnList) {\n columns.add(new ColumnName(catalogName, tableName, column));\n }\n TableName table = new Tab... |
"public void select(String message, GameView gameView, int messageId) {\n updateGame(gameView);\n String messageToDisplay = message;\n Map<String, Serializable> options = null;\n for (PlayerView playerView : gameView.getPlayers()) {\n if (playerView.getPlayerId().equals(playerId)) {\n if (... |
"public void parse(String htmlContent, String contextURL) {\n urls = new HashSet<String>();\n char[] chars = htmlContent.toCharArray();\n bulletParser.setCallback(textExtractor);\n bulletParser.parse(chars);\n text = textExtractor.text.toString().trim();\n title = textExtractor.title.toString().trim()... |
"private void orderEventChunk(ComplexEventChunk complexEventChunk) {\n ComplexEventChunk orderingComplexEventChunk = new ComplexEventChunk(complexEventChunk.isBatch());\n List<ComplexEvent> eventList = new ArrayList<>();\n while (complexEventChunk.hasNext()) {\n ComplexEvent event = complexEventChunk.ne... |
"public static void shutdown() {\n Log.event(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n Iterator s = HttpServer.getHttpServers().iterator();\n while (s.hasNext()) {\n HttpServer server = (HttpServer) s.next();\n try {\n System.out.println(\"String_Node_Str\" ... |
"private boolean handleUnescapedQuote() {\n switch(quoteHandling) {\n case STOP_AT_CLOSING_QUOTE:\n case STOP_AT_DELIMITER:\n output.appender.append(quote);\n output.appender.append(ch);\n prev = ch;\n parseQuotedValue();\n return true;\n de... |
"private void checkValueLabel(LegendItemHints lih) {\n if (sed != lih.getSeriesDefinition()) {\n if (laiValue != null) {\n laiValue.dispose();\n }\n Series series = (Series) lih.getSeriesDefinition().getSeries().get(0);\n Label laValue = LabelImpl.copyInstance(series.getLabel()... |
"public void configure(BundleAdjustmentSceneStructure structure, BundleAdjustmentObservations observations) {\n this.structure = structure;\n this.observations = observations;\n numViewsUnknown = structure.getUnknownViewCount();\n int numCameraParameters = structure.getUnknownCameraParameterCount();\n in... |
"private EvercamCamera patchCamera(CameraDetail detail) {\n try {\n Camera patchedCamera = Camera.patch(detail);\n if (patchedCamera != null) {\n Camera camera = patchedCamera;\n EvercamCamera evercamCamera = new EvercamCamera().convertFromEvercam(camera);\n DbCamera db... |
"public int initFromPage(long valueCountL, byte[] page, int offset) throws IOException {\n int valueCount = Ints.checkedCast(valueCountL);\n if (valueCount <= 0) {\n return offset;\n }\n ByteArrayInputStream in = new ByteArrayInputStream(page, offset, page.length);\n int length = BytesUtils.readIn... |
"private void playSoundEffect(int effectType, int volume) {\n synchronized (mSoundEffectsLock) {\n if (mSoundPool == null) {\n return;\n }\n if (SOUND_EFFECT_FILES_MAP[effectType][1] > 0) {\n mSoundPool.play(SOUND_EFFECT_FILES_MAP[effectType][1], volFloat, volFloat, 0, 0, 1... |
"public void testAuthorizationForPrivileges() throws Exception {\n Principal bob = new Principal(\"String_Node_Str\", Principal.PrincipalType.USER);\n Principal alice = new Principal(\"String_Node_Str\", Principal.PrincipalType.USER);\n String oldUser = getCurrentUser();\n setCurrentUser(alice.getName());\n... |
"private void fetchMessages() {\n if (mAvimConversation != null) {\n mAvimConversation.queryMessages(new AVIMMessagesQueryCallback() {\n public void done(List<AVIMMessage> list, AVIMException e) {\n if (filterException(e)) {\n if (mLayout.getChatLt() != null) {\n ... |
"public static void add(Object connector) {\n int port = -1;\n SslConnectionFactory sslConnectionFactory = (SslConnectionFactory) serverConnector.getConnectionFactory(\"String_Node_Str\");\n port = serverConnector.getPort();\n if (sslConnectionFactory != null) {\n boolean needClientAuth = sslConnecti... |
"public static long removeTimezone(long timestamp) {\n TimeZone tz = getTimezone();\n return timestamp + tz.getOffset(timestamp);\n}\n"
|
"private Statement handleNormalSetter(final SoyExpression baseArg, final FieldDescriptor field) {\n final MethodRef setterMethod = getSetOrAddMethod(field);\n final boolean isNullable = !baseArg.isNonNullable();\n return new Statement() {\n void doGen(CodeBuilder cb) {\n baseArg.gen(cb);\n ... |
"public void testGetColumns() {\n ColumnSet columnSet = RelationalPackage.eINSTANCE.getRelationalFactory().createTdTable();\n TdColumn column1 = RelationalPackage.eINSTANCE.getRelationalFactory().createTdColumn();\n column1.setName(\"String_Node_Str\");\n ColumnSetHelper.addColumn(column1, columnSet);\n ... |
"public boolean onMarkerClick(MarkerInfo info) {\n if (info instanceof MissionItemMarkerInfo) {\n editorListener.onItemClick(((MissionItemMarkerInfo) info).getMarkerOrigin(), false);\n return true;\n } else {\n return false;\n }\n}\n"
|
"private List<String> getColumns(final GridComponent grid, final String viewName) {\n List<String> columns = Lists.newLinkedList();\n grid.getColumns().entrySet().stream().forEach(entry -> {\n String columnAuthorizationRole = entry.getValue().getAuthorizationRole();\n if ((Strings.isNullOrEmpty(colu... |
"public void scheduleWork(Work work, long startTimeout, ExecutionContext execContext, WorkListener workListener) throws WorkException {\n WorkContextHandlerImpl contextHandler = createWorkContextHandler();\n validateWork(work, WorkCoordinator.getExecutionContext(execContext, work), contextHandler);\n if (logge... |
"public void shouldExecuteRaiseAnExceptionIfTheListSizeIsOneAndTwoSolutionsAreRequested() {\n exception.expect(JMetalException.class);\n exception.expectMessage(containsString(\"String_Node_Str\" + \"String_Node_Str\"));\n NaryTournamentSelection<IntegerSolution> selection = new NaryTournamentSelection<>(4, mo... |
"public void playerInteract(PlayerInteractEvent event) {\n Map<String, dObject> context = new HashMap<String, dObject>();\n Action action = event.getAction();\n dItem item = null;\n dMaterial itemMaterial = null;\n List<String> events = new ArrayList<String>();\n String interaction;\n if (action ==... |
"public synchronized void startProcessing() {\n if (!receivers.isEmpty()) {\n if (parallel == null) {\n parallel = executionPlanContext.isParallel();\n }\n if (parallel) {\n for (Constructor constructor : Disruptor.class.getConstructors()) {\n if (constructor... |
"public short getPrice(String itemName) {\n if (\"String_Node_Str\".equals(itemName)) {\n if (!normalPriceWeightsPlaced) {\n normalPriceWeightsPlaced = true;\n return 10;\n }\n int priceRoll = random.nextInt(20);\n if (priceRoll == 0 || priceRoll == 1) {\n ... |
"private boolean updateServiceClientActivitiesLocked(ProcessRecord proc, ConnectionRecord modCr) {\n if (modCr != null && modCr.binding.client != null) {\n if (modCr.binding.client.activities.size() <= 0) {\n return false;\n }\n }\n boolean anyClientActivities = false;\n for (int i ... |
"public List<TypeCheckElimination> generateTypeCheckEliminations() {\n List<TypeCheckElimination> typeCheckEliminations = new ArrayList<TypeCheckElimination>();\n StatementExtractor statementExtractor = new StatementExtractor();\n List<Statement> switchStatements = statementExtractor.getSwitchStatements(compos... |
"public List<Guide> listGuides() {\n ObjectMapper mapper = new ObjectMapper();\n try {\n String reposJson = \"String_Node_Str\";\n InputStream json = new ClassPathResource(reposJson, getClass()).getInputStream();\n return mapper.readValue(json, new TypeReference<List<Guide>>() {\n });\... |
"private boolean submitOrder(Order order, List<OrderDetail> orderDetailList) {\n try {\n StringBuilder submitStr = new StringBuilder(\"String_Node_Str\");\n submitStr.append(\"String_Node_Str\");\n submitStr.append(order.getOrderTotal() + \"String_Node_Str\");\n submitStr.append(\"String_... |
"public boolean optimize(int numIterations) {\n if (converged)\n return true;\n int n = optimizable.getNumParameters();\n double prevStepSize = initialStepSize;\n boolean searchingGradient = true;\n if (xi == null) {\n fp = optimizable.getValue();\n xi = new double[n];\n g = n... |
"public Point[] getTouches() {\n synchronized (this) {\n if (mInput == null) {\n return mPoints;\n }\n int index = 0;\n for (int k = 0; k < mPointIndicesCount; k++) {\n int id = mPointIndices[k];\n for (int i = 0; i < mInput.getPointerCount() && index < mP... |
"protected void initializeScriptContext(Context cx, Scriptable scope) {\n scriptContext.getContext().setWrapFactory(new WrapFactory() {\n protected IJavascriptWrapper coreWrapper = new CoreJavaScriptWrapper();\n public Object wrap(Context cx, Scriptable scope, Object obj, Class staticType) {\n ... |
"public static Map<String, String> generateHttpHeaders(ServiceRequest request, ProviderEndpoint endpoint) {\n logger.info(\"String_Node_Str\");\n Map<String, String> headers = new HashMap<>();\n if (endpoint.isSendXrdHeaders()) {\n logger.debug(\"String_Node_Str\");\n headers.put(Constants.XRD_HE... |
"private void addListenersToOutputButtons() {\n MetadataToolbarEditorView toolBar = outputMetaEditor.getToolBar();\n outputToolBarButtons = toolBar.getButtons();\n beforeCommandListenerForOutputButtons = new IExtendedButtonListener() {\n public void handleEvent(ExtendedButtonEvent event) {\n ... |
"public void remove() {\n if (mNumberInputEditText.length() > 0) {\n mRemoveButton.animate();\n Integer startCursorPosition = mEditText.getSelectionStart();\n Integer endCursorPosition = mEditText.getSelectionEnd();\n if (startCursorPosition == 0 && endCursorPosition == 0) {\n ... |
"void processBinaryAnnotations(zipkin.Span source) {\n zipkin.Endpoint ca = null, sa = null, ma = null;\n for (int i = 0, length = source.binaryAnnotations.size(); i < length; i++) {\n BinaryAnnotation b = source.binaryAnnotations.get(i);\n if (b.type == BOOL) {\n if (Constants.CLIENT_ADD... |
"public void download(URL url, File desc) throws Exception {\n String mavenUri = url.toExternalForm();\n MavenArtifact parseMvnUrl = MavenUrlHelper.parseMvnUrl(mavenUri);\n if (parseMvnUrl != null) {\n String tempPath = getTmpFolderPath();\n File createTempFile = File.createTempFile(\"String_Node... |
"protected static void outputFlash(Element ele, Map cssStyles, IContent content) {\n String src = ele.getAttribute(\"String_Node_Str\");\n if (src != null) {\n ObjectContent flash = (ObjectContent) ((ReportContent) (content.getReportContent())).createObjectContent();\n flash.setExtension(\"String_No... |
"private MediaType getMediaType(BufferedReader br) {\n int READ_AHEAD_LIMIT = 25;\n try {\n br.mark(READ_AHEAD_LIMIT);\n try {\n char c = 0;\n for (int i = 0; c != -1 && i < READ_AHEAD_LIMIT; i++) {\n c = (char) br.read();\n if (c == '[' || c == '{... |
"public static void initialize() {\n profile = new OnePondoParsingProfile();\n String searchString = profile.createSearchString(file);\n System.out.println(searchString);\n Document document = SpecificScraperAction.downloadDocument(searchString);\n profile.setDocument(document);\n}\n"
|
"public void testIObject9() throws Exception {\n testTypesWithExtraExterns(EXTERNS_WITH_IOBJECT_DECLS, LINE_JOINER.join(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n}\n"
|
"public void paint(Graphics g) {\n if (!displayEnabled) {\n return;\n }\n if (!isValid()) {\n super.validate();\n }\n Graphics2D g2d = (Graphics2D) g;\n if (transformAngle < 1) {\n float edgeOffset = (cardWidth + cardXOffset) / 2f;\n g2d.translate(edgeOffset * (1 - transfor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.