idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,385,393 | private static IfCondition simplifyCmpOp(Compare c) {<NEW_LINE>if (!c.getA().isInsnWrap()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (!c.getB().isLiteral()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>long lit = ((LiteralArg) c.getB()).getLiteral();<NEW_LINE>if (lit != 0 && lit != 1) {<NEW_LINE>return null;<NEW_LI... | new Compare(if2)))); |
487,942 | protected WebResourceResponse handleAppRequest(String url) {<NEW_LINE>String path;<NEW_LINE>if (url.startsWith(ASSET_PREFIX)) {<NEW_LINE>path = url.<MASK><NEW_LINE>} else {<NEW_LINE>path = url.substring(url.indexOf("//localhost/") + 12);<NEW_LINE>}<NEW_LINE>InputStream stream;<NEW_LINE>try {<NEW_LINE>Log.i(TAG, "webvie... | substring(ASSET_PREFIX.length()); |
1,027,678 | private void seekToTimeBarPosition(Player player, long positionMs) {<NEW_LINE>int windowIndex;<NEW_LINE><MASK><NEW_LINE>if (multiWindowTimeBar && !timeline.isEmpty()) {<NEW_LINE>int windowCount = timeline.getWindowCount();<NEW_LINE>windowIndex = 0;<NEW_LINE>while (true) {<NEW_LINE>long windowDurationMs = timeline.getWi... | Timeline timeline = player.getCurrentTimeline(); |
1,038,147 | // GEN-LAST:event_browseLicenceButtonActionPerformed<NEW_LINE>private void browseLibraryButtonActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_browseLibraryButtonActionPerformed<NEW_LINE>JFileChooser chooser = new JFileChooser(ModuleUISettings.getDefault().getLastChosenLibraryLocation());<N... | getText().trim()); |
271,162 | public static synchronized String expandEnvironmentStrings(String path) {<NEW_LINE>if (isWindows()) {<NEW_LINE>String expanded = CoreNatives.ExpandEnvironmentStrings(path);<NEW_LINE>if (expanded != null) {<NEW_LINE>path = expanded;<NEW_LINE>}<NEW_LINE>if (path.startsWith(DESKTOP_DIRECTORY)) {<NEW_LINE>String desktopDir... | substring(COMMON_APPDATA.length()); |
1,328,700 | public static Map marshalMap(List<Class<?>> mapGenericClasses, Class keyClass, Class valueClass, Map rawMap) {<NEW_LINE>Map dataCollection = new HashMap();<NEW_LINE>if (keyClass.isAssignableFrom(BytesType.class) || valueClass.isAssignableFrom(BytesType.class)) {<NEW_LINE>Iterator iter = rawMap.keySet().iterator();<NEW_... | .get(1), valueAsBytes); |
1,345,347 | public static void dexoatAndDisableInline(String dexFilePath, String oatFilePath) throws IOException {<NEW_LINE>final File oatFile = new File(oatFilePath);<NEW_LINE>if (!oatFile.exists()) {<NEW_LINE>oatFile.getParentFile().mkdirs();<NEW_LINE>}<NEW_LINE>final List<String> <MASK><NEW_LINE>commandAndParams.add("dex2oat");... | commandAndParams = new ArrayList<>(); |
1,101,172 | public Request<ListIdentityProvidersRequest> marshall(ListIdentityProvidersRequest listIdentityProvidersRequest) {<NEW_LINE>if (listIdentityProvidersRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListIdentityProvidersRequest)");<NEW_LINE>}<NEW_LINE>Request<ListIdentityP... | request.addHeader("X-Amz-Target", target); |
610,849 | /* Build call for applicationsApplicationIdGet */<NEW_LINE>private com.squareup.okhttp.Call applicationsApplicationIdGetCall(String applicationId, String accept, String ifNoneMatch, String ifModifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener pr... | String[] localVarAccepts = { "application/json" }; |
53,149 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.demo_activity_main);<NEW_LINE>// enable ActionBar app icon to behave as action to toggle nav drawer<NEW_LINE>getActionBar().setDisplayHomeAsUpEnabled(true);<NEW_LINE>getActionBar().setHomeButt... | getInstance().retrieveData(mHelper); |
292,755 | public JarContent addJarContent(String jarPath, AnalysisType analysisType) {<NEW_LINE>// Make sure classpath is scraped first, so we'll overwrite it.<NEW_LINE>getClassPathClasses();<NEW_LINE>File file = new File(jarPath);<NEW_LINE>if (!file.exists()) {<NEW_LINE>throw new ConfusedCFRException("No such jar file " + jarPa... | ).get(MiscConstants.MANIFEST_CLASS_PATH); |
388,295 | public static ByteBuffer bitmapToByteBuffer(Bitmap bitmap, int width, int height, boolean quantized) {<NEW_LINE>// preallocated buffers for storing image data in<NEW_LINE>final int[] intValues = new int[width * height];<NEW_LINE>int bytesPerChannel = quantized ? QUANT_NUM_OF_BYTES_PER_CHANNEL : FLOAT_NUM_OF_BYTES_PER_C... | 8) & 0xFF) / 255.0f); |
417,031 | private static void buildColorTable() {<NEW_LINE>synchronized (TiColorHelper.class) {<NEW_LINE>colorTable = new HashMap<>(20);<NEW_LINE>colorTable.put("black", Color.BLACK);<NEW_LINE>colorTable.put("red", Color.RED);<NEW_LINE>colorTable.put("purple", Color.rgb(0x80, 0, 0x80));<NEW_LINE>colorTable.put("orange", Color.rg... | (0, 0, 0x80)); |
99,903 | public static AndroidManifest parseFrom(Path manifest) {<NEW_LINE>try (InputStream input = Files.newInputStream(manifest)) {<NEW_LINE>final XMLEventReader xmlEventReader = XmlResourceValues.getXmlInputFactory().createXMLEventReader(input);<NEW_LINE>String packageName = "";<NEW_LINE>String minSdk = "";<NEW_LINE>while (x... | StartElement element = xmlEvent.asStartElement(); |
400,638 | public void run() {<NEW_LINE>try {<NEW_LINE>while (!Thread.interrupted() && socket.isConnected()) {<NEW_LINE>if (ois != null) {<NEW_LINE>Object object = ois.readObject();<NEW_LINE>handleObject(object);<NEW_LINE>} else {<NEW_LINE>String str = br.readLine();<NEW_LINE>if (str != null) {<NEW_LINE>handleString(str);<NEW_LIN... | "Class not found: " + ex.getMessage()); |
612,968 | public void saveSharesDB(List<OCShare> shares) {<NEW_LINE>ArrayList<ContentProviderOperation> operations = new ArrayList<>();<NEW_LINE>// Reset flags & Remove shares for this files<NEW_LINE>String filePath = "";<NEW_LINE>for (OCShare share : shares) {<NEW_LINE>if (!filePath.equals(share.getPath())) {<NEW_LINE>filePath ... | operations = prepareRemoveSharesInFile(filePath, operations); |
295,642 | final PutImageRecipePolicyResult executePutImageRecipePolicy(PutImageRecipePolicyRequest putImageRecipePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putImageRecipePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,292,487 | public static void appendCall(StringBuilder sb, String begin, String separator, String end, List<? extends CharSequence> args) {<NEW_LINE>int size = begin.length();<NEW_LINE>// Typically just-in-time compiler would eliminate Iterator in case foreach is used,<NEW_LINE>// however the code below uses indexed iteration to ... | int numberOfArguments = args.size(); |
1,823,910 | private void addNameInfo(VCard vCard) {<NEW_LINE>List<View> nameList = new ArrayList<>();<NEW_LINE>addItem(nameList, contactInfoItems, getString(R.string.vcard_nick_name), vCard.getField(VCardProperty<MASK><NEW_LINE>addItem(nameList, contactInfoItems, getString(R.string.vcard_formatted_name), vCard.getField(VCardProper... | .NICKNAME.name())); |
1,671,294 | final CreateConfigurationSetResult executeCreateConfigurationSet(CreateConfigurationSetRequest createConfigurationSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createConfigurationSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
208,607 | public Toolchain unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Toolchain toolchain = new Toolchain();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token =... | String currentParentElement = context.getCurrentParentElement(); |
1,809,269 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListTagsFo... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,332,925 | public CompilationResultBuilder newCompilationResultBuilder(LIRGenerationResult lirGenRen, FrameMap frameMap, CompilationResult compilationResult, CompilationResultBuilderFactory factory) {<NEW_LINE>HotSpotLIRGenerationResult gen = (HotSpotLIRGenerationResult) lirGenRen;<NEW_LINE>LIR lir = gen.getLIR();<NEW_LINE>assert... | updateStub(stub, gen, frameMap); |
722,384 | ByteBuffer encrypt(ByteBuffer toEncrypt, SecretKeySpec key, byte[] iv) throws GeneralSecurityException {<NEW_LINE>try {<NEW_LINE>Cipher encrypter = Cipher.getInstance(GCM_CRYPTO_INSTANCE, "BC");<NEW_LINE>if (iv == null) {<NEW_LINE>iv = new byte[ivValSize];<NEW_LINE>random.nextBytes(iv);<NEW_LINE>}<NEW_LINE>encrypter.in... | getOutputSize(toEncrypt.remaining()); |
850,712 | private DashboardProperties mapDashboardInfoToProperties(final com.linkedin.dashboard.DashboardInfo info) {<NEW_LINE>final DashboardProperties result = new DashboardProperties();<NEW_LINE>result.setDescription(info.getDescription());<NEW_LINE>result.setName(info.getTitle());<NEW_LINE>result.<MASK><NEW_LINE>if (info.has... | setLastRefreshed(info.getLastRefreshed()); |
314,966 | private void computePercentageTimeSpentOnInsertions() {<NEW_LINE>int[] numberOfSearches = { 1000, 1000000, 1000000000 };<NEW_LINE>BinarySearchSymbolTable<Integer, String> binarySearchSymbolTable = new BinarySearchSymbolTable<>();<NEW_LINE>for (int i = 0; i < 10000; i++) {<NEW_LINE>binarySearchSymbolTable.put(i, "Value ... | double insertionsTime = insertionsTimer.elapsedTime(); |
1,551,036 | public void msg(Msg msg, String fromPort) {<NEW_LINE>try {<NEW_LINE>if (msg.isPureNack()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (msg.getByte("Cmd") == 0x60) {<NEW_LINE>// add the modem to the device list<NEW_LINE>InsteonAddress a = new InsteonAddress(msg.getAddress("IMAddress"));<NEW_LINE>String prodKey = "0x000045... | error("unknown modem product key: {} for modem: {}.", prodKey, a); |
836,746 | public static void convolveBorder(GrayS32 integral, IntegralKernel kernel, GrayS32 output, int borderX, int borderY) {<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, integral.width, x -> {<NEW_LINE>for (int x = 0; x < integral.width; x++) {<NEW_LINE>for (int y = 0; y < borderY; y++) {<NEW_LINE>int total = 0;<N... | ) * kernel.scales[i]; |
1,029,941 | protected void createCollisionShape() {<NEW_LINE>if (spatial == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (spatial instanceof Geometry) {<NEW_LINE>Geometry geom = (Geometry) spatial;<NEW_LINE>Mesh mesh = geom.getMesh();<NEW_LINE>if (mesh instanceof Sphere) {<NEW_LINE>collisionShape = new SphereCollisionShape(((Sp... | ) mesh).getRadius()); |
1,389,301 | public void merge(LwM2MModelConfig modelConfig) {<NEW_LINE>if (modelConfig.isEmpty() && modelConfig.getToCancelRead().isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>modelConfig.getAttributesToAdd().forEach((k, v) -> {<NEW_LINE>if (this.attributesToRemove.contains(k)) {<NEW_LINE>this.attributesToRemove.remove(k);<NEW... | , modelConfig.getToObserve())); |
223,327 | public void scannerError(Parser parser, String errorTokenName) {<NEW_LINE>Scanner scanner = parser.scanner;<NEW_LINE>int flag = IProblem.ParsingErrorNoSuggestion;<NEW_LINE>int startPos = scanner.startPosition;<NEW_LINE>int endPos = scanner.currentPosition - 1;<NEW_LINE>// special treatment for recognized errors....<NEW... | char[] source = scanner.source; |
1,262,924 | private Object handleReplaceHtmlAction(final ActionContext actionContext, final java.util.Map<String, java.lang.Object> parameters, final EventContext eventContext) throws FrameworkException {<NEW_LINE>final SecurityContext securityContext = actionContext.getSecurityContext();<NEW_LINE>final String dataTarget = (String... | throw new FrameworkException(422, "Cannot execute replace-html action without empty html source."); |
424,701 | protected void processMaxIdleBackups() {<NEW_LINE>if (!isStarted() || maxIdleBackup < 0)<NEW_LINE>return;<NEW_LINE>final List<Session> sessions = findSessions();<NEW_LINE>final <MASK><NEW_LINE>// Back up all sessions idle longer than maxIdleBackup<NEW_LINE>if (maxIdleBackup >= 0) {<NEW_LINE>for (Session session1 : sess... | long timeNow = System.currentTimeMillis(); |
1,784,272 | public List<ViewManager> createViewManagers(ReactApplicationContext reactApplicationContext) {<NEW_LINE>List<ViewManager> managers = new ArrayList<>();<NEW_LINE>// components<NEW_LINE>managers.add(new RCTMGLMapViewManager(reactApplicationContext));<NEW_LINE>managers.add(new RCTMGLAndroidTextureMapViewManager(reactAppli... | .add(new RCTMGLImageSourceManager()); |
1,654,665 | public HashMap<String, Integer> convert(String[] strs) {<NEW_LINE>HashMap<String, Integer> res = new HashMap<>();<NEW_LINE>for (String st : strs) {<NEW_LINE>if (st.indexOf(":") < 0) {<NEW_LINE>res.put(st, res.getOrDefault(st, 0) + 1);<NEW_LINE>} else {<NEW_LINE>String[] cells = st.split(":");<NEW_LINE>int si = Integer.... | 0].substring(1)); |
1,002,755 | private HeartbeatMsg buildHeartbeat() {<NEW_LINE>ConfigManager configManager = ConfigManager.getInstance();<NEW_LINE>HeartbeatMsg heartbeatMsg = new HeartbeatMsg();<NEW_LINE>Map<String, String> commonProperties = configManager.getCommonProperties();<NEW_LINE>String localIp = commonProperties.get(ConfigConstants.PROXY_L... | streamHeartbeats = new ArrayList<>(); |
1,660,568 | protected void dispatch(MethodInvocation invocation, Iterator<? extends Dispatch<MethodInvocation>> handlers) {<NEW_LINE>// Defer creation of failures list, assume dispatch will succeed<NEW_LINE>List<Throwable> failures = null;<NEW_LINE>while (handlers.hasNext()) {<NEW_LINE>Dispatch<MethodInvocation> handler = handlers... | add(e.getCause()); |
605,803 | public ProvisioningTemplateSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ProvisioningTemplateSummary provisioningTemplateSummary = ne... | ().unmarshall(context)); |
1,707,832 | protected Object doExecute(ExecutionEvent event) throws ExecutionException {<NEW_LINE>GitRepository theRepo = getSelectedRepository();<NEW_LINE>if (theRepo == null && getSelectedResources() != null && getSelectedResources().size() != 1) {<NEW_LINE>openError(Messages.CommitAction_MultipleRepos_Title, Messages.CommitActi... | reponame.length() - 4); |
1,384,802 | // Since our TileEntity implements ITickableTileEntity, we get an update method which is called once per tick (20 times / second)<NEW_LINE>// When the timer elapses, replace our block with a random one.<NEW_LINE>@Override<NEW_LINE>public void tick() {<NEW_LINE>// prevent crash<NEW_LINE>if (!this.hasWorld())<NEW_LINE>re... | .nextInt(blockChoices.length)]; |
1,259,061 | public StockQtyAndUOMQty extractQtys(final IHUContext huContext, final ProductId productId, final Quantity pickedQty, final I_M_HU huRecord) {<NEW_LINE>final IUOMConversionBL uomConversionBL = Services.get(IUOMConversionBL.class);<NEW_LINE>final IProductBL productBL = Services.get(IProductBL.class);<NEW_LINE>final UomI... | .of(productId), stockUOMId); |
678,301 | private Mono<Response<Void>> updateWithResponseAsync(String objectId, String tenantId, ServicePrincipalUpdateParameters parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be ... | error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); |
1,592,881 | public boolean onTouchEvent(TextView widget, Spannable buffer, MotionEvent event) {<NEW_LINE>int action = event.getAction();<NEW_LINE>if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_DOWN) {<NEW_LINE>int x = (int) event.getX();<NEW_LINE>int y = (int) event.getY();<NEW_LINE>x -= widget.getTotalPadding... | getSpanEnd(link[0])); |
1,112,728 | public CreateThingTypeResult createThingType(CreateThingTypeRequest createThingTypeRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createThingTypeRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
635,359 | public List<VaultVH> fetchVaultDetails(SubscriptionVH subscription) throws Exception {<NEW_LINE>List<VaultVH> vaultList = new ArrayList<VaultVH>();<NEW_LINE>String accessToken = azureCredentialProvider.getToken(subscription.getTenant());<NEW_LINE>String url = String.format(apiUrlTemplate, URLEncoder.encode(subscription... | ) propertiesMap.get("enabledForTemplateDeployment")); |
937,358 | private void bondAction(JSONArray args, CallbackContext callbackContext) {<NEW_LINE>if (!isBondReceiverRegistered) {<NEW_LINE>cordova.getActivity().registerReceiver(mBondReceiver, new IntentFilter(BluetoothDevice.ACTION_BOND_STATE_CHANGED));<NEW_LINE>isBondReceiverRegistered = true;<NEW_LINE>}<NEW_LINE>if (isNotInitial... | int bondState = device.getBondState(); |
164,506 | final ListOpsItemEventsResult executeListOpsItemEvents(ListOpsItemEventsRequest listOpsItemEventsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listOpsItemEventsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListOpsItemEventsReq... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,846,258 | public boolean delete(String groupId, String operator) {<NEW_LINE>LOGGER.info("begin to delete inlong group for groupId={} by user={}", groupId, operator);<NEW_LINE>Preconditions.checkNotNull(groupId, ErrorCodeEnum.GROUP_ID_IS_EMPTY.getMessage());<NEW_LINE>InlongGroupEntity entity = groupMapper.selectByGroupId(groupId)... | forCode(entity.getStatus()); |
892,322 | public void execute(AdminCommandContext context) {<NEW_LINE>ActionReport actionReport = context.getActionReport();<NEW_LINE>Node node = nodes.getNode(name);<NEW_LINE>if (node == null) {<NEW_LINE>// No node to delete nothing to do here<NEW_LINE>actionReport.setActionExitCode(FAILURE);<NEW_LINE>actionReport.setMessage("N... | commandParameters.add("DEFAULT", name); |
661,851 | public <E extends Exception & QueryExceptionMarkerInterface> void findTargetsBeneathDirectory(final RepositoryName repository, final String originalPattern, String directory, boolean rulesOnly, ImmutableSet<PathFragment> forbiddenSubdirectories, ImmutableSet<PathFragment> excludedSubdirectories, BatchCallback<Target, E... | IllegalStateException(e.getCause()); |
1,090,131 | public LaunchTemplateOverrides unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>LaunchTemplateOverrides launchTemplateOverrides = new LaunchTemplateOverrides();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocu... | ().unmarshall(context)); |
1,714,917 | public void testTaskIsRunning(HttpServletRequest request, PrintWriter out) throws Exception {<NEW_LINE>String jndiName = request.getParameter("jndiName");<NEW_LINE>long taskId = Long.parseLong(request.getParameter("taskId"));<NEW_LINE>boolean cancel = Boolean.parseBoolean<MASK><NEW_LINE>PersistentExecutor executor = (P... | (request.getParameter("cancel")); |
972,403 | private void insertDefault(SQLiteDatabase db) {<NEW_LINE>ContentValues screenValues = new ContentValues();<NEW_LINE>screenValues.put(DB_KEY_SCREEN_COLORS, 32);<NEW_LINE>screenValues.put(DB_KEY_SCREEN_RESOLUTION, 1);<NEW_LINE>screenValues.put(DB_KEY_SCREEN_WIDTH, 1024);<NEW_LINE>screenValues.put(DB_KEY_SCREEN_HEIGHT, 76... | bookmarkValues.put(DB_KEY_BOOKMARK_DOMAIN, ""); |
261,980 | public static /*<NEW_LINE>public static void initPhysicalDbForPartitionTableIfNeed() {<NEW_LINE>try (Connection metaDbConn = MetaDbDataSource.getInstance().getConnection()) {<NEW_LINE>DbInfoAccessor dbInfoAccessor = new DbInfoAccessor();<NEW_LINE>dbInfoAccessor.setConnection(metaDbConn);<NEW_LINE>List<DbInfoRecord> dbI... | stmt.executeQuery("show create table " + tableName); |
1,766,028 | public void received(Obj field) {<NEW_LINE>final InstanceRef instanceRef = ((Field) field).getStaticValue();<NEW_LINE>// static field may be not initialized yet, in this case this instanceRef is in fact a Sentinel<NEW_LINE>if ("@Instance".equals(instanceRef.getType())) {<NEW_LINE>list.add(new DartVmServiceValue(myDebug... | , null, fieldRef, false)); |
1,622,904 | public static ErrorDescription apply(HintContext hc) {<NEW_LINE>if (hc.isCanceled() || (hc.getPath().getLeaf().getKind() != Tree.Kind.IDENTIFIER || hc.getPath().getParentPath().getLeaf().getKind() != Tree.Kind.ANNOTATION)) {<NEW_LINE>// NOI18N<NEW_LINE>// we pass only if it is an annotation<NEW_LINE>return null;<NEW_LI... | (TopLevelClass.class, "MSG_NestedClassAsEntity")); |
1,387,040 | private int findBestCompatible(LineSegment2D_F32 target, List<LineSegment2D_F32> candidates, int start) {<NEW_LINE>int bestIndex = -1;<NEW_LINE>double bestDistance = Double.MAX_VALUE;<NEW_LINE>int bestFarthest = 0;<NEW_LINE>float targetAngle = UtilAngle.atanSafe(target.slopeY(), target.slopeX());<NEW_LINE>float cos = (... | cos * yy + sin * xx); |
1,663,129 | public long sweepNextBatch(ShardAndStrategy shardStrategy, long sweepTs) {<NEW_LINE>metrics.updateSweepTimestamp(shardStrategy, sweepTs);<NEW_LINE>long lastSweptTs = progress.getLastSweptTimestamp(shardStrategy);<NEW_LINE>if (lastSweptTs + 1 >= sweepTs) {<NEW_LINE>return 0L;<NEW_LINE>}<NEW_LINE>log.debug("Beginning ite... | , shardStrategy.toText())); |
190,250 | private static String dumpSnapshot(ElementSnapshot snapshot, int indent) {<NEW_LINE>StringBuffer sb = new StringBuffer();<NEW_LINE>String indentString = createIndentString(indent);<NEW_LINE>if (snapshot instanceof SplitSnapshot) {<NEW_LINE>SplitSnapshot splitSnapshot = (SplitSnapshot) snapshot;<NEW_LINE>// NOI18N<NEW_L... | append(indentString + "mode=" + snapshot); |
1,712,149 | private void generateDeleteAllWithIterable(ClassCreator classCreator, String generatedClassName, String entityTypeStr, Map<MethodDescriptor, Boolean> allMethodsToBeImplementedToResult) {<NEW_LINE>MethodDescriptor deleteAllWithIterableDescriptor = MethodDescriptor.ofMethod(generatedClassName, "deleteAll", void.class, It... | entities = deleteAll.getMethodParam(0); |
1,360,807 | public void printActiveWork(PrintWriter writer) {<NEW_LINE>final Instant now = Instant.now();<NEW_LINE>// The max number of keys in COMMITTING or COMMIT_QUEUED status to be shown.<NEW_LINE>final int maxCommitPending = 50;<NEW_LINE>int commitPendingCount = 0;<NEW_LINE>writer.println("<table border=\"1\" " + "style=\"bor... | .getStateStartTime(), now)); |
1,711,180 | public MutableForwardIndex newForwardIndex(MutableIndexContext.Forward context) {<NEW_LINE>String column = context.getFieldSpec().getName();<NEW_LINE><MASK><NEW_LINE>FieldSpec.DataType storedType = context.getFieldSpec().getDataType().getStoredType();<NEW_LINE>boolean isSingleValue = context.getFieldSpec().isSingleValu... | String segmentName = context.getSegmentName(); |
868,473 | public Attachment unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Attachment attachment = new Attachment();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MA... | JsonToken token = context.getCurrentToken(); |
1,669,469 | // <editor-fold desc="10 run scripts"><NEW_LINE>@Override<NEW_LINE>protected int doRunScript(String scriptFile, String[] scriptArgs, IRunner.Options options) {<NEW_LINE>// Since we have a static interpreter, we have to synchronize class wide<NEW_LINE>Integer exitCode = 0;<NEW_LINE>Object exitValue = null;<NEW_LINE>sync... | getAbsolutePath(), injectAbortWatcherLineCount()); |
1,364,451 | private void disassemble(IStackMapAttribute attribute, StringBuffer buffer, String lineSeparator, int tabNumber, int mode) {<NEW_LINE>writeNewLine(buffer, lineSeparator, tabNumber + 3);<NEW_LINE>int numberOfEntries = attribute.getNumberOfEntries();<NEW_LINE>final IStackMapFrame[] stackMapFrames = attribute.getStackMapF... | final IStackMapFrame frame = stackMapFrames[j]; |
261,610 | public WorkflowUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>WorkflowUpdate workflowUpdate = new WorkflowUpdate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<... | String currentParentElement = context.getCurrentParentElement(); |
94,593 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>int power = 0;<NEW_LINE>int toughness = 0;<NEW_LINE>for (Cost cost : source.getCosts()) {<NEW_LINE>if (cost instanceof SacrificeTargetCost && !((SacrificeT... | drawCards(power, source, game); |
886,912 | public void stop(boolean systemShutdownInProgress) {<NEW_LINE>if (!running) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (fireTimer != null) {<NEW_LINE>fireTimer.cancel(true);<NEW_LINE>fireTimer = null;<NEW_LINE>}<NEW_LINE>if (statsTimer != null) {<NEW_LINE>statsTimer.cancel(true);<NEW_LINE>statsTimer = nu... | LOG.info("Stopping: " + this); |
295,549 | public Standard unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Standard standard = new Standard();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken t... | class).unmarshall(context)); |
658,556 | public // returns null if not a match<NEW_LINE>StateLocator proceed(Event inputEvent) {<NEW_LINE>if (curState.hasProceed()) {<NEW_LINE>// try to proceed<NEW_LINE>CEPCall condition = (CEPCall) curState.getProceedCondition();<NEW_LINE>String patternVar = curState.getPatternVar();<NEW_LINE>if (evalCondition(inputEvent, co... | getNextState(), 0, inputEvent); |
205,425 | public AccessPathSample<E> sample(final int limit, final SampleType sampleType, IPredicate<E> predicate) {<NEW_LINE>final IRelation<E> relation = context.getRelation(predicate);<NEW_LINE>// @todo assumes raw AP.<NEW_LINE>final AccessPath<E> accessPath = (AccessPath<E>) context.getAccessPath(relation, predicate);<NEW_LI... | ), accessPath.getToKey()); |
1,082,753 | void copyFile(File sourceFile, File targetFile, long progress, long totalSize) throws IOException {<NEW_LINE>BufferedInputStream from = new BufferedInputStream(new FileInputStream(sourceFile));<NEW_LINE>BufferedOutputStream to = new <MASK><NEW_LINE>byte[] buffer = new byte[16 * 1024];<NEW_LINE>int bytesRead;<NEW_LINE>i... | BufferedOutputStream(new FileOutputStream(targetFile)); |
1,117,039 | public void marshall(DomainPackageDetails domainPackageDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (domainPackageDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(domainPackageDetails.get... | domainPackageDetails.getReferencePath(), REFERENCEPATH_BINDING); |
1,638,462 | public String findOrphanDescriptors() {<NEW_LINE>com.haulmont.cuba.core.app.filestorage.FileStorage fileStorage;<NEW_LINE>FileStorageAPI fileStorageAPI = AppBeans.get(FileStorageAPI.class);<NEW_LINE>if (fileStorageAPI instanceof com.haulmont.cuba.core.app.filestorage.FileStorage) {<NEW_LINE>fileStorage = (com.haulmont.... | ()).append("\n"); |
53,889 | private I_GO_DeliveryOrder toDeliveryOrderPO(@NonNull final DeliveryOrder order) {<NEW_LINE>I_GO_DeliveryOrder orderPO = null;<NEW_LINE>if (order.getId() != null) {<NEW_LINE>orderPO = InterfaceWrapperHelper.load(order.getId(), I_GO_DeliveryOrder.class);<NEW_LINE>}<NEW_LINE>final OrderId orderId = order.getOrderId();<NE... | InterfaceWrapperHelper.newInstance(I_GO_DeliveryOrder.class); |
768,425 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = game.getObject(source);<NEW_LINE>if (sourceObject != null && controller != null) {<NEW_LINE>Cards cards = new CardsImpl(controller.getLibrary().getTopCards(game, 5)... | cardToBattlefield = cards.getRandom(game); |
596,391 | private static List<FileEntriesLayer> createLayersForLayeredSpringBootJar(Path localExplodedJarRoot) throws IOException {<NEW_LINE>Path layerIndexPath = localExplodedJarRoot.resolve(BOOT_INF).resolve("layers.idx");<NEW_LINE>Pattern layerNamePattern = Pattern.compile("- \"(.*)\":");<NEW_LINE>Pattern layerEntryPattern = ... | (entryMatcher.group(1)); |
385,155 | private List<Application> list(Business business, EffectivePerson effectivePerson, String applicationCategory) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Application.class);<NEW_LINE><MASK><NEW_LINE>CriteriaQuery<Application> cq = cb.createQuery(Application.class);<NEW_LINE>Roo... | CriteriaBuilder cb = em.getCriteriaBuilder(); |
1,700,830 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
670,791 | public static void reloadConfig(EnumRestartRequirement restarted) {<NEW_LINE>minePlayerProtected = propMinePlayerProtected.getBoolean();<NEW_LINE>BCLibConfig.useColouredLabels = propUseColouredLabels.getBoolean();<NEW_LINE>BCLibConfig.useHighContrastLabelColours = propUseHighContrastColouredLabels.getBoolean();<NEW_LIN... | getDouble(), 1, 200); |
676,742 | public static ListTagMetricsResponse unmarshall(ListTagMetricsResponse listTagMetricsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTagMetricsResponse.setRequestId(_ctx.stringValue("ListTagMetricsResponse.RequestId"));<NEW_LINE>listTagMetricsResponse.setCode<MASK><NEW_LINE>listTagMetricsResponse.setMessage(_ctx.str... | (_ctx.stringValue("ListTagMetricsResponse.Code")); |
932,495 | private void resolveAttributes(Iterable<AttributeDependencyKind> attributeDependencyKinds, OrderedSetMultimap<DependencyKind, Label> outgoingLabels, Rule rule, ConfiguredAttributeMapper attributeMap, BuildConfigurationValue ruleConfig) {<NEW_LINE>for (AttributeDependencyKind dependencyKind : attributeDependencyKinds) {... | > type = attribute.getType(); |
1,797,715 | private void cmd_select() {<NEW_LINE>log.info("");<NEW_LINE>WarehouseId warehouseId = attributeContext.getWarehouseId();<NEW_LINE>final DocTypeId docTypeId = attributeContext.getDocTypeId();<NEW_LINE>if (docTypeId != null) {<NEW_LINE>final I_C_DocType docType = Services.get(IDocTypeDAO.class).getById(docTypeId);<NEW_LI... | prepareStatement(sql, ITrx.TRXNAME_None); |
681,828 | final RegisterElasticIpResult executeRegisterElasticIp(RegisterElasticIpRequest registerElasticIpRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerElasticIpRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<RegisterElasticIpReq... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,006,449 | public void execute() throws MojoExecutionException, MojoFailureException {<NEW_LINE>Log log = getLog();<NEW_LINE>Model model = project.getModel();<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Executing task '" + taskId + <MASK><NEW_LINE>}<NEW_LINE>assert manager != null;<NEW_LINE>List<ExecuteTask> tasks = ... | "' for model: " + model.getId()); |
411,302 | public void doSubscribe(URL url, NotifyListener listener) {<NEW_LINE>String subscribeKey = getSubscribeKey(url);<NEW_LINE>ConcurrentHashMap<URL, ConcurrentHashSet<NotifyListener>> urlListeners = subscribeListeners.get(subscribeKey);<NEW_LINE>if (urlListeners == null) {<NEW_LINE>subscribeListeners.putIfAbsent(subscribeK... | ConcurrentHashSet<NotifyListener>>()); |
525,839 | public double distance(NumberVector v1, NumberVector v2) {<NEW_LINE>final int dim1 = v1.getDimensionality(), dim2 = v2.getDimensionality();<NEW_LINE>final int mindim = (dim1 < dim2) ? dim1 : dim2;<NEW_LINE>double agg = 0.;<NEW_LINE>for (int d = 0; d < mindim; d++) {<NEW_LINE>final double xd = v1.doubleValue(d), <MASK><... | yd = v2.doubleValue(d); |
817,239 | public void onSingleClick(View v) {<NEW_LINE>dataSet.refreshLayout.setRefreshing(true);<NEW_LINE>if (SettingValues.fastscroll) {<NEW_LINE>mPage.fastScroll.setVisibility(View.VISIBLE);<NEW_LINE>}<NEW_LINE>if (mPage.fab != null)<NEW_LINE>mPage.fab.setVisibility(View.VISIBLE);<NEW_LINE>mPage.overrideFab = false;<NEW_LINE>... | replyArea.setVisibility(View.GONE); |
1,200,880 | final CreateGroupResult executeCreateGroup(CreateGroupRequest createGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createGroupRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<CreateGroupRequest> request = null;<NEW_LINE>Respo... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,110,189 | private List<Tuple> findEipTuplesOnVmNic(VmNicInventory nic) {<NEW_LINE>List<Tuple> eips = SQL.New("select eip.vipIp, eip.guestIp, nic.l3NetworkUuid, nic.mac, vip.l3NetworkUuid, eip.uuid " + "from EipVO eip, VmNicVO nic, VmInstanceVO vm, VipVO vip " + "where eip.vmNicUuid = nic.uuid " + "and nic.vmInstanceUuid = vm.uui... | EipState.Enabled).list(); |
1,317,593 | public static final List<ModifierType> resolveAsmOpcode(RoleFilter filter, int opcode) {<NEW_LINE>final List<ModifierType> retList = new ArrayList<ModifierType>();<NEW_LINE>// Modifiers associated with Classes, Fields, and Methods<NEW_LINE>if (0 != (Opcodes.ACC_ABSTRACT & opcode)) {<NEW_LINE>retList.add(ModifierType.AB... | retList.add(ModifierType.PROTECTED); |
38,499 | public void enable() {<NEW_LINE>setSensorValue(HighLowValue.UNDEF);<NEW_LINE>if (tfConfig != null) {<NEW_LINE>logger.debug("{} found config for DigitalSensor", LoggerConstants.TFINIT);<NEW_LINE><MASK><NEW_LINE>logger.debug("{} pull-up resistor state is {}", LoggerConstants.TFINIT, isPullUpResistorEnabled());<NEW_LINE>}... | setPullUpResistorEnabled(tfConfig.isPullUpResistorEnabled()); |
1,701,390 | public Object execute(Object iThis, OIdentifiable iCurrentRecord, Object iCurrentResult, Object[] iParams, OCommandContext iContext) {<NEW_LINE>final Supplier<String> paramsPrettyPrint = () -> Arrays.stream(iParams).map(p -> p + " [ " + p.getClass().getName() + " ]").collect(Collectors.joining(", ", "(", ")"));<NEW_LIN... | this, "Error executing function %s", x, name); |
780,574 | private void addAllSegmentsBetween(Obstacle source, Obstacle target) {<NEW_LINE>addConnectingSegment(new Segment(source.bottomLeft, target.bottomLeft), source, target, false, false);<NEW_LINE>addConnectingSegment(new Segment(source.bottomRight, target.bottomRight), source, target, true, true);<NEW_LINE>addConnectingSeg... | source, target, false, true); |
286,276 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.set_password);<NEW_LINE>setTitle(R.string.password_title);<NEW_LINE>// Ok button<NEW_LINE>Button okButton = (Button) findViewById(R.id.ok);<NEW_LINE>okButton.setOnClickListener(new View.OnC... | getText().toString()); |
1,412,460 | public boolean releaseBrokerRunInfo(int brokerId, String blockId, boolean isTimeout) {<NEW_LINE>StringBuilder sBuffer = new StringBuilder(512);<NEW_LINE>BrokerRunStatusInfo runStatusInfo = brokerRunSyncManageMap.get(brokerId);<NEW_LINE>if (runStatusInfo == null) {<NEW_LINE>logger.info(sBuffer.append("[Broker Release] b... | runStatusInfo = brokerRunSyncManageMap.remove(brokerId); |
1,844,485 | private UnidbgStructure createDyldImageInfo(MachOModule module) {<NEW_LINE>if (emulator.is64Bit()) {<NEW_LINE>int elementSize = UnidbgStructure.calculateSize(DyldImageInfo64.class);<NEW_LINE>Pointer pointer = emulator.getSvcMemory().allocate(elementSize, "notifySingle");<NEW_LINE>DyldImageInfo64 info = new DyldImageInf... | ).allocate(elementSize, "notifySingle"); |
472,503 | public static void enqueue(long threadId, @NonNull RecipientId recipientId, List<MarkedMessageInfo> markedMessageInfos) {<NEW_LINE>if (recipientId.equals(Recipient.self().getId())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>List<List<MarkedMessageInfo>> messageIdChunks = ListUtil.chunk(markedMessageInfos, M... | JobManager jobManager = ApplicationDependencies.getJobManager(); |
1,027,202 | /*<NEW_LINE>* @see com.ibm.ws.http.channel.internal.HttpServiceContextImpl#isCompressionAllowed()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected boolean isCompressionAllowed() {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, "isCompressionAllowed");<NEW_LINE>}<NEW_L... | tc, "isCompressionAllowed(1)", Boolean.TRUE); |
695,075 | public void process(VuzeFile[] files, int expected_types) {<NEW_LINE>for (int i = 0; i < files.length; i++) {<NEW_LINE>VuzeFile vf = files[i];<NEW_LINE>VuzeFileComponent[] comps = vf.getComponents();<NEW_LINE>for (int j = 0; j < comps.length; j++) {<NEW_LINE>VuzeFileComponent comp = comps[j];<NEW_LINE>if (comp.getType(... | () == 1 ? "jar" : "zip"; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.