idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,667,023 | public void printAll() {<NEW_LINE>AutoTypeImage[] types = AutoTypeImage.getSpecificTypes();<NEW_LINE>ImageType.Family[] families = new ImageType.Family[] { ImageType.Family.<MASK><NEW_LINE>List<CodeGenerator> functions = new ArrayList<>();<NEW_LINE>functions.add(new GenerateMin());<NEW_LINE>functions.add(new GenerateMa... | GRAY, ImageType.Family.INTERLEAVED }; |
203,736 | private Plugin addJaxb2Plugin(POMModel model) {<NEW_LINE>// NOI18N<NEW_LINE>assert model.isIntransaction() : "need to call model modifications under transaction.";<NEW_LINE>Build bld = model.getProject().getBuild();<NEW_LINE>if (bld == null) {<NEW_LINE>bld = model.getFactory().createBuild();<NEW_LINE>model.getProject()... | .getFactory().createPlugin(); |
1,778,854 | private Object createBareHighlightGreyTip(String entityUin, int istroop, String fromUin, long time, String msg, long msgUid, long shmsgseq) throws Exception {<NEW_LINE>// MessageRecord.MSG_TYPE_TROOP_GAP_GRAY_TIPS<NEW_LINE>int msgtype = -2030;<NEW_LINE>Object messageRecord = invoke_static_declared_ordinal_modifier(DexK... | time, msgtype, istroop, time); |
225,031 | private void downloadJobAlert() {<NEW_LINE>// prompt for input params<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());<NEW_LINE>View view = View.inflate(getActivity(), R.layout.sample_cachemgr_input, null);<NEW_LINE>BoundingBox boundingBox = mMapView.getBoundingBox();<NEW_LINE>zoom_max = v... | int) mMapView.getMaxZoomLevel()); |
344,357 | public void applyToBlock(Level world, HitResult mop, @Nullable Player shooter, ItemStack thrower, Fluid fluid) {<NEW_LINE>if (!(mop instanceof BlockHitResult))<NEW_LINE>return;<NEW_LINE>BlockHitResult brtr = (BlockHitResult) mop;<NEW_LINE>BlockState hit = world.getBlockState(brtr.getBlockPos());<NEW_LINE>// Kill leaves... | : otherProjectiles) shot.remove(); |
1,131,406 | public okhttp3.Call changeUserPasswordCall(CurrentAndNewPasswordsDTO currentAndNewPasswordsDTO, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = currentAndNewPasswordsDTO;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/me/change-password";<NEW_LINE>List<P... | localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); |
1,625,457 | public void mapPartition(Iterable<Tuple2<Long, Vector>> values, Collector<Vector> out) throws Exception {<NEW_LINE>List<Tuple2<Long, Vector>> listValues = Lists.newArrayList(values);<NEW_LINE>listValues.sort(new Comparator<Tuple2<Long, Vector>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(Tuple2<Long, V... | = o1.f1.toString(); |
959,263 | static String prettyPrint(ConstraintDescriptor constraintDescriptor, TokenNameLookup tokenNameLookup) {<NEW_LINE>SchemaDescriptor schema = constraintDescriptor.schema();<NEW_LINE>int[] entityTokenIds = schema.getEntityTokenIds();<NEW_LINE>if (entityTokenIds.length != 1) {<NEW_LINE>throw new IllegalArgumentException("Ca... | schema.entityType() + "."); |
422,695 | static CommandLineOptions splitStartupOptions(Iterable<BlazeModule> modules, String... args) {<NEW_LINE>List<String> prefixes = new ArrayList<>();<NEW_LINE>List<OptionDefinition> startupOptions = Lists.newArrayList();<NEW_LINE>for (Class<? extends OptionsBase> defaultOptions : BlazeCommandUtils.getStartupOptions(module... | startupArgs = new ArrayList<>(); |
204,145 | public boolean showInfo(Context context) {<NEW_LINE>// add more Build Info<NEW_LINE>final StringBuilder sb = new StringBuilder();<NEW_LINE>Tinker tinker = Tinker.with(getApplicationContext());<NEW_LINE>if (tinker.isTinkerLoaded()) {<NEW_LINE>sb.append(String.format("[patch is loaded] \n"));<NEW_LINE>sb.append(String.fo... | getManifestTinkerID(getApplicationContext()))); |
1,819,764 | public void confirmPassword(String password) {<NEW_LINE>// see [MS-OFFCRYPTO] - 2.3.3 EncryptionVerifier<NEW_LINE>Random r = new SecureRandom();<NEW_LINE>int blockSize = builder.getHeader().getBlockSize();<NEW_LINE>int keySize = builder.getHeader<MASK><NEW_LINE>int hashSize = builder.getHeader().getHashAlgorithmEx().ha... | ().getKeySize() / 8; |
377,222 | public static void toJSON(OutputWriter outputWriter, StageInstanceModel stageInstanceModel) {<NEW_LINE>if (stageInstanceModel.getResult() != null) {<NEW_LINE>outputWriter.add("result", stageInstanceModel.<MASK><NEW_LINE>}<NEW_LINE>outputWriter.add("status", stageInstanceModel.getState().toString());<NEW_LINE>if (stageI... | getResult().toString()); |
435,342 | public BackfillBean loadBackfillMeta(long backfillId) {<NEW_LINE>List<BackfillObjectRecord> bfoList = queryBackfillObject(backfillId);<NEW_LINE>if (CollectionUtils.isEmpty(bfoList)) {<NEW_LINE>return BackfillBean.EMPTY;<NEW_LINE>}<NEW_LINE>BackfillObjectRecord logicalBfo = null;<NEW_LINE>List<BackfillObjectRecord> phys... | ), logicalBfo.getExtra()); |
825,890 | private void expireScript(AeiObjects aeiObjects) throws Exception {<NEW_LINE>ExpireScriptResult expire = new ExpireScriptResult();<NEW_LINE>ScriptContext scriptContext = aeiObjects.scriptContext();<NEW_LINE>CompiledScript cs = aeiObjects.business().element().getCompiledScript(aeiObjects.getWork().getApplication(), aeiO... | put(ScriptingFactory.BINDING_NAME_EXPIRE, expire); |
981,767 | protected RunContentDescriptor doExecute(@NotNull RunProfileState state, @NotNull ExecutionEnvironment environment) throws ExecutionException {<NEW_LINE>assert state instanceof GoTestRunningState;<NEW_LINE>GoTestRunningState runningState = (GoTestRunningState) state;<NEW_LINE>GoTestRunConfiguration runConfiguration = O... | coverageEnabledConfiguration = CoverageEnabledConfiguration.getOrCreate(runConfiguration); |
963,153 | public boolean evaluateContext(VarnodeContext context, Instruction instr) {<NEW_LINE>// find the cmpli to set the size of the table<NEW_LINE>// tableSize = size<NEW_LINE>String mnemonic = instr.getMnemonicString();<NEW_LINE>if ((mnemonic.compareToIgnoreCase("cmpi") == 0) || (mnemonic.compareToIgnoreCase("cmpwi") == 0) ... | instr.getScalar(numOps - 1); |
258,239 | public emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord buildPartial() {<NEW_LINE>emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord result = new emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord(this);<NEW_LINE>int from_bitField0_ = bitField... | util.Collections.unmodifiableList(towerTeamList_); |
202,274 | protected void readFromBundle(Bundle bundle) {<NEW_LINE>id = bundle.getString("id");<NEW_LINE>name = bundle.getString("name");<NEW_LINE>zOrder = bundle.getFloat("zOrder");<NEW_LINE>imagePoints = bundle.getBoolean("imagePoints");<NEW_LINE>circlePointMinZoom = bundle.getInt("circlePointMinZoom");<NEW_LINE><MASK><NEW_LINE... | circlePointMaxZoom = bundle.getInt("circlePointMaxZoom"); |
1,543,331 | public void takePicture(final TakePictureCallback callback) {<NEW_LINE>if (mCamera == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(cameraAngle) {<NEW_LINE>case 90:<NEW_LINE>nowAngle = Math.abs(angle + cameraAngle) % 360;<NEW_LINE>break;<NEW_LINE>case 270:<NEW_LINE>nowAngle = Math.abs(cameraAngle - angle);<NEW_LI... | data, 0, data.length); |
12,684 | public BLDevice[] broadlinkDiscover() {<NEW_LINE>BLDevice[] clients = null;<NEW_LINE>int aDiscoverPort = Configuration.BROADLINK_DISCOVER_PORT;<NEW_LINE>broadlinkMap = new HashMap<String, BLDevice>();<NEW_LINE>while (aDiscoverPort > 0) {<NEW_LINE>try {<NEW_LINE>log.info("Broadlink discover....");<NEW_LINE>if (isDevMode... | log.warn("Could not discover Broadlinks, with IO Exception", e); |
633,219 | private void releaseChannel(final Channel channel, final Promise<Void> promise) {<NEW_LINE>checkState(channel.eventLoop().inEventLoop());<NEW_LINE>final ChannelPool pool = channel.attr(POOL_KEY).getAndSet(null);<NEW_LINE>final boolean acquired = this.acquiredChannels.get(channel) != null;<NEW_LINE>if (acquired && pool ... | (channel, cause, promise)); |
1,313,260 | private Mono<Response<PolicyAssignmentInner>> createByIdWithResponseAsync(String policyAssignmentId, PolicyAssignmentInner 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 ... | this.client.mergeContext(context); |
566,080 | public static int[] generateWeightedIndicesSampleWithoutReplacement(int size, double[] weights, Random rng) {<NEW_LINE>double[] cdf = generateCDF(weights);<NEW_LINE>if (Math.abs(cdf[cdf.length - 1] - 1.0) > 1e-6) {<NEW_LINE>throw new IllegalStateException("Weights do not sum to 1, cdf[cdf.length-1] = " + cdf[cdf.length... | double uniform = rng.nextDouble(); |
454,711 | Node<K, V> findNode(K key) {<NEW_LINE>net.sourceforge.retroweaver.harmony.runtime.java.lang.Comparable<K> object = comparator == null ? toComparable<MASK><NEW_LINE>K keyK = (K) key;<NEW_LINE>Node<K, V> node = root;<NEW_LINE>while (node != null) {<NEW_LINE>K[] keys = node.keys;<NEW_LINE>int left_idx = node.left_idx;<NEW... | ((K) key) : null; |
1,167,503 | public static Optional<String> maybeCreateProcessingLogTopic(final KafkaTopicClient topicClient, final ProcessingLogConfig config, final KsqlConfig ksqlConfig) {<NEW_LINE>if (!config.getBoolean(ProcessingLogConfig.TOPIC_AUTO_CREATE)) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>final String topicName = getTo... | config.getShort(ProcessingLogConfig.TOPIC_REPLICATION_FACTOR); |
1,453,673 | public static ListDeployConfigResponse unmarshall(ListDeployConfigResponse listDeployConfigResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDeployConfigResponse.setRequestId(_ctx.stringValue("ListDeployConfigResponse.RequestId"));<NEW_LINE>listDeployConfigResponse.setCode(_ctx.integerValue("ListDeployConfigResponse.C... | ("ListDeployConfigResponse.Data[" + i + "].EnvType")); |
120,229 | public OChannelBinary writeBytes(final byte[] iContent, final int iLength) throws IOException {<NEW_LINE>if (debug)<NEW_LINE>OLogManager.instance().info(this, "%s - Writing bytes (4+%d=%d bytes): %s", socket.getRemoteSocketAddress(), iLength, iLength + 4<MASK><NEW_LINE>if (iContent == null) {<NEW_LINE>out.writeInt(-1);... | , Arrays.toString(iContent)); |
437,371 | private static void updateDataRecordWithRequestQtys(final I_MD_Cockpit dataRecord, final UpdateMainDataRequest dataUpdateRequest) {<NEW_LINE>// was QtyMaterialentnahme<NEW_LINE>dataRecord.setQtyMaterialentnahme(stripTrailingDecimalZeros(dataRecord.getQtyMaterialentnahme().add(dataUpdateRequest.getDirectMovementQty())))... | dataUpdateRequest.getQtyInventoryTime()))); |
768,959 | protected DatadogReporter createInstance() {<NEW_LINE>final DatadogReporter.Builder reporter = DatadogReporter.forRegistry(getMetricRegistry());<NEW_LINE>final Transport transport;<NEW_LINE>String transportName = getProperty(TRANSPORT);<NEW_LINE>if ("http".equalsIgnoreCase(transportName)) {<NEW_LINE>HttpTransport.Build... | reporter.filter(getMetricFilter()); |
1,688,812 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String vmName, String vmExtensionName, 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 nu... | getSubscriptionId(), accept, context); |
713,195 | private void loadNode187() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_TransferSubscriptionsCount, new QualifiedName(0, "TransferSubscriptionsCount"), new LocalizedText("en", "TransferSubscriptionsCount"), LocalizedText... | .expanded(), true)); |
467,152 | public static byte[] base64ToByteArray(char[] base64) {<NEW_LINE>int pad = base64.length % 4;<NEW_LINE>if (pad > 0) {<NEW_LINE>pad = 4 - pad;<NEW_LINE>if (pad != 1 && pad != 2) {<NEW_LINE>throw new IllegalArgumentException("'" + <MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>int index = 0;<NEW_LINE>byte[] data64 = new byte[base... | new String(base64) + "' invalid base64!"); |
936,017 | private Mono<Response<Void>> deleteProcessWithResponseAsync(String resourceGroupName, String name, String processId, 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 null."));<NEW_L... | error(new IllegalArgumentException("Parameter processId is required and cannot be null.")); |
1,140,762 | public OperationOrder plan(OperationOrder operationOrder, Long cumulatedDuration) throws AxelorException {<NEW_LINE>if (CollectionUtils.isEmpty(operationOrder.getToConsumeProdProductList())) {<NEW_LINE>Beans.get(OperationOrderService.class).createToConsumeProdProductList(operationOrder);<NEW_LINE>}<NEW_LINE>LocalDateTi... | operationOrder.setStatusSelect(OperationOrderRepository.STATUS_PLANNED); |
18,731 | public IHub sentryHub(@NotNull final List<Sentry.OptionsConfiguration<SentryOptions>> optionsConfigurations, @NotNull final SentryProperties options, @NotNull final ObjectProvider<GitProperties> gitProperties) {<NEW_LINE>optionsConfigurations.forEach(optionsConfiguration -> optionsConfiguration.configure(options));<NEW... | .class.isAssignableFrom(it)); |
1,428,959 | public int loadComponents(InputStream in) {<NEW_LINE>long time = System.nanoTime();<NEW_LINE>int count = 0;<NEW_LINE>try {<NEW_LINE>in.mark(32);<NEW_LINE>DataStreamReader reader = new DataStreamReader(in);<NEW_LINE>long delta = SerializationUtil.readNanotimeSynchronizationMark(reader);<NEW_LINE>String mark = Serializat... | .toMillis(time), count); |
1,048,887 | void cancelJoinRequest() throws GroupChangeFailedException, IOException {<NEW_LINE>Set<UUID> uuids = Collections.singleton(selfAci.uuid());<NEW_LINE>GroupChange signedGroupChange;<NEW_LINE>try {<NEW_LINE>signedGroupChange = commitCancelChangeWithConflictResolution(groupOperations.createRefuseGroupJoinRequest(uuids, fal... | , Collections.emptyList())); |
1,702,244 | public void startUp(FloodlightModuleContext context) throws FloodlightModuleException {<NEW_LINE>logger.info("LDHAWorker is starting...");<NEW_LINE>try {<NEW_LINE>HAController.syncService.registerStore("LDUpdates", Scope.GLOBAL);<NEW_LINE>HAController.storeLD = HAController.syncService.getStoreClient("LDUpdates", Strin... | sesController = Executors.newScheduledThreadPool(10); |
1,138,415 | private void drawPoints(float[] verArray, byte[] colorArray) {<NEW_LINE>if (colorArray != null) {<NEW_LINE>ByteBuffer tex = ByteBuffer.allocateDirect(colorArray.length);<NEW_LINE>tex.order(ByteOrder.nativeOrder());<NEW_LINE>tex.put(colorArray);<NEW_LINE>tex.position(0);<NEW_LINE>GLES10.glEnableClientState(GLES10.GL_COL... | GLES10.glEnableClientState(GLES10.GL_VERTEX_ARRAY); |
624,695 | private void addTinkerID() throws IOException, ParseException {<NEW_LINE>if (!config.mPackageFields.containsKey(TypedValue.TINKER_ID)) {<NEW_LINE>AndroidParser oldAndroidManifest = AndroidParser.getAndroidManifest(config.mOldApkFile);<NEW_LINE>String tinkerID = oldAndroidManifest.metaDatas.get(TypedValue.TINKER_ID);<NE... | metaDatas.get(TypedValue.TINKER_ID); |
312,831 | protected Intent doInBackground(Void... params) {<NEW_LINE>Intent intent = new Intent(Intent.ACTION_SEND_MULTIPLE);<NEW_LINE>intent.setType("message/rfc822");<NEW_LINE>if (subject != null) {<NEW_LINE>intent.putExtra(Intent.EXTRA_SUBJECT, subject);<NEW_LINE>}<NEW_LINE>if (addresses != null) {<NEW_LINE>intent.putExtra(In... | additionalAttachments.size() + 1); |
77,626 | public HttpRequest createRequest(final HttpServerRequest request, final Supplier<Buffer> buffer, final Map<String, Object> data, final CopyOnWriteArrayList<HttpResponseDecorator> decorators, final HttpResponseCreator httpResponseCreator) {<NEW_LINE>final MultiMap<String, String> headers = request.headers().size() == 0 ... | : time).setHeaders(headers); |
565,649 | public Dependencies resolve(SootClass sc) {<NEW_LINE>InputStream d = null;<NEW_LINE>try {<NEW_LINE>d = foundFile.inputStream();<NEW_LINE>ClassReader clsr = new ClassReader(d);<NEW_LINE>SootClassBuilder scb = new SootClassBuilder(sc);<NEW_LINE>clsr.accept(scb, ClassReader.SKIP_FRAMES);<NEW_LINE>Dependencies deps = new D... | , className.lastIndexOf('$')); |
1,546,860 | public RunProjectValidator validateStartFile(File siteRootFolder, File startFile) {<NEW_LINE>if (siteRootFolder == null) {<NEW_LINE>result.addWarning(new ValidationResult.Message(SITE_ROOT, Bundle.RunProjectValidator_error_siteRoot_none()));<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>ValidationResult foldersResult = new... | , Bundle.RunProjectValidator_error_startFile_invalid())); |
1,268,053 | final MimeMessage populateMimeMessage(@NotNull final Email email, @NotNull Session session, @Nullable final Pkcs12Config defaultSmimeSigningStore) throws MessagingException, UnsupportedEncodingException {<NEW_LINE>checkArgumentNotEmpty(email, "email is missing");<NEW_LINE>checkArgumentNotEmpty(session, "session is need... | orElse(new Date())); |
1,083,830 | public Object evaluate(@Nullable String value, BeanExpressionContext beanExpressionContext) throws BeansException {<NEW_LINE>if (!StringUtils.hasLength(value)) {<NEW_LINE>return value;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Expression expr = this.expressionCache.get(value);<NEW_LINE>if (expr == null) {<NEW_LINE>expr = this... | .addPropertyAccessor(new BeanFactoryAccessor()); |
1,551,717 | public void saveNotification(final NotificationDTO notification) throws DotDataException {<NEW_LINE>if (!UtilMethods.isSet(notification.getGroupId())) {<NEW_LINE>notification.setGroupId(UUID.<MASK><NEW_LINE>}<NEW_LINE>final DotConnect dc = new DotConnect();<NEW_LINE>dc.setSQL("insert into notification (group_id,message... | randomUUID().toString()); |
776,456 | private void copyLayersToTarget(BufferedImage srcimg, int layer1x, int layer1y, int layer2x, int layer2y, int w, int h, int[] dest, int destoff, int destscansize) {<NEW_LINE>int[] l1 <MASK><NEW_LINE>int[] l2 = new int[w * h];<NEW_LINE>int imgh = srcimg.getHeight();<NEW_LINE>// Read layer 1<NEW_LINE>if (imgh >= (layer1y... | = new int[w * h]; |
437,067 | public RegexMatchSet unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RegexMatchSet regexMatchSet = new RegexMatchSet();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_... | String currentParentElement = context.getCurrentParentElement(); |
1,702,089 | private void writeSavedConnectionResponse(HttpServletResponse response) throws IOException {<NEW_LINE>Writer w = response.getWriter();<NEW_LINE>try {<NEW_LINE>List<DatabaseConfiguration> savedConnections = DatabaseUtils.getSavedConnections();<NEW_LINE>JsonGenerator writer = ParsingUtilities.mapper.getFactory().createGe... | String dbPasswd = dbConfig.getDatabasePassword(); |
1,021,619 | public boolean doUpdateKeeperActive(String dc, String clusterId, String shardId, KeeperMeta activeKeeper) {<NEW_LINE>if (!valid(activeKeeper)) {<NEW_LINE>logger.info("[updateKeeperActive][keeper information unvalid]{}", activeKeeper);<NEW_LINE>}<NEW_LINE>ShardMeta shardMeta = getDirectShardMeta(dc, clusterId, shardId);... | logger.info("[updateKeeperActive][set keeper active]{}", keeperMeta); |
1,387,535 | static Tuple<String, Class> splitClassAndName(String classLabel) {<NEW_LINE>String[] stringNameSplit = classLabel.split("@");<NEW_LINE>// If i don't have a @, then no name is provided, use the class as the name.<NEW_LINE>if (stringNameSplit.length == 1) {<NEW_LINE>try {<NEW_LINE>return new Tuple<>(classLabel, Class.for... | RuntimeException("Configured class: " + classLabel + " has not been found"); |
490,031 | protected void runOneIteration() {<NEW_LINE>try {<NEW_LINE>LaunchingTasks launchingTasks = new LaunchingTasks(facadeService.getEligibleJobContext());<NEW_LINE>List<TaskRequest> taskRequests = launchingTasks.getPendingTasks();<NEW_LINE>if (!taskRequests.isEmpty()) {<NEW_LINE>AppConstraintEvaluator.getInstance().loadAppR... | ).size() * 10); |
1,673,348 | public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "not");<NEW_LINE>if (instruction.getOperands().si... | String operandRegister = result.getRegister(); |
153,822 | public static I_AD_UI_Element createUIElementNoSave(@Nullable final UIElementGroupId uiElementGroupId, @NonNull final I_AD_Field adField) {<NEW_LINE>final I_AD_UI_Element uiElement = InterfaceWrapperHelper.newInstance(I_AD_UI_Element.class);<NEW_LINE>uiElement.setAD_Tab_ID(adField.getAD_Tab_ID());<NEW_LINE>uiElement.se... | (UIElementGroupId.toRepoId(uiElementGroupId)); |
1,112,289 | private void initHelpMenu() throws NoSuchMethodException {<NEW_LINE>int scMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();<NEW_LINE>_helpMenu = new JMenu(_I("menuHelp"));<NEW_LINE>_helpMenu.setMnemonic(java.awt.event.KeyEvent.VK_H);<NEW_LINE>_helpMenu.add(createMenuItem(_I("menuHelpQuickStart"), null, new H... | HelpAction(HelpAction.OPEN_DOC))); |
1,160,253 | public void transmit(AMQChannel channel) throws IOException {<NEW_LINE>int channelNumber = channel.getChannelNumber();<NEW_LINE>AMQConnection connection = channel.getConnection();<NEW_LINE>synchronized (assembler) {<NEW_LINE>Method m = this.assembler.getMethod();<NEW_LINE>if (m.hasContent()) {<NEW_LINE>byte[] body = th... | (m.toFrame(channelNumber)); |
1,175,406 | private STNode parseMemberRhsInStmtStartWithBrace(STNode identifier, STNode colon, STNode secondIdentifier, STNode secondNameRef) {<NEW_LINE>STNode typedBPOrExpr = parseTypedBindingPatternOrMemberAccess(secondNameRef, false, true, ParserRuleContext.AMBIGUOUS_STMT);<NEW_LINE>if (isExpression(typedBPOrExpr.kind)) {<NEW_L... | createTypedBindingPatternNode(newTypeDesc, typedBP.bindingPattern); |
1,807,206 | static Set<UniverseModule> loadUniverseModules(ModuleEntry[] platformModules, Set<NbModuleProject> suiteModules, Set<ModuleEntry> extraBinaryModules) throws IOException {<NEW_LINE>Set<UniverseModule> universeModules <MASK><NEW_LINE>for (NbModuleProject p : suiteModules) {<NEW_LINE>Manifest mani = p.getManifest();<NEW_L... | = new LinkedHashSet<UniverseModule>(); |
372,597 | private void testOSGiLookupServlet(final String lookupURI, final boolean negativeTest, final String extraText) throws Exception {<NEW_LINE>String serviceMsg = null;<NEW_LINE>boolean exceptionOccurred = false;<NEW_LINE>try {<NEW_LINE>InitialContext context = new InitialContext();<NEW_LINE>final Object service = context.... | info(e.getMessage()); |
1,818,612 | public void visitNonMoveInsn(NormalSsaInsn insn) {<NEW_LINE>Insn originalRopInsn = insn.getOriginalRopInsn();<NEW_LINE>Rop opcode = originalRopInsn.getOpcode();<NEW_LINE>RegisterSpecList sources = insn.getSources();<NEW_LINE>// Replace insns with constant results with const insns<NEW_LINE>if (tryReplacingWithConstant(i... | sources.get(0))); |
1,328,883 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>TargetCardInLibrary target = new TargetCardInLibrary(0, Integer.MAX_VALUE, StaticFilters.FILTER_CARD_BASIC_LAND);<NEW_LIN... | new FixedTarget(land, game)); |
1,353,609 | public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length != 1) {<NEW_LINE><MASK><NEW_LINE>System.out.println("Output stored in: <inputQuestionsFile>.output");<NEW_LINE>System.exit(0);<NEW_LINE>}<NEW_LINE>FocusFinder.initialize();<NEW_LINE>StanfordParser.initialize();<NEW_LINE>List<String> ques... | System.out.println("USAGE: FocusFinder <inputQuestionsFile>"); |
1,128,411 | public boolean keyMatches(Object key, int ordinal, int fieldIdx) {<NEW_LINE>HollowObjectTypeReadState typeState = this.typeState;<NEW_LINE>HollowObjectSchema schema = typeState.getSchema();<NEW_LINE>int lastFieldPath = fieldPathIndexes[fieldIdx].length - 1;<NEW_LINE>for (int i = 0; i < lastFieldPath; i++) {<NEW_LINE>in... | Integer) key).intValue(); |
203,505 | private Collection<AlterConfigOp> diff(int brokerId, String desired, Config brokerConfigs) {<NEW_LINE>if (brokerConfigs == null || desired == null) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>Collection<AlterConfigOp> updatedCE = new ArrayList<>();<NEW_LINE>Map<String, String> desiredMap = readLog4jC... | , AlterConfigOp.OpType.SET)); |
427,777 | public void offsetGraphAjax(HttpServletResponse response, HttpServletRequest request) {<NEW_LINE>HttpSession session = request.getSession();<NEW_LINE>String clusterAlias = session.getAttribute(KConstants.SessionAlias.CLUSTER_ALIAS).toString();<NEW_LINE>try {<NEW_LINE>String group = StrUtils.convertNull(request.getParam... | param = new HashMap<>(); |
1,601,070 | private void processNewClient(NetClient client) {<NEW_LINE>ServerConnectListManager serverConnectListManager = context.get(ServerConnectListManager.class);<NEW_LINE>if (!serverConnectListManager.isClientAllowedToConnect(client.getId())) {<NEW_LINE>String errorMessage = serverConnectListManager.getErrorMessage(client.ge... | errorMessage)).build()); |
1,760,056 | public static QueryMqSofamqMessageByTopicResponse unmarshall(QueryMqSofamqMessageByTopicResponse queryMqSofamqMessageByTopicResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryMqSofamqMessageByTopicResponse.setRequestId(_ctx.stringValue("QueryMqSofamqMessageByTopicResponse.RequestId"));<NEW_LINE>queryMqSofamqMessageByT... | ("QueryMqSofamqMessageByTopicResponse.Data.Content[" + i + "].BodyCrc")); |
1,728,937 | private List<NameValueCountPair> listProcessPair(Business business, EffectivePerson effectivePerson, String applicationId) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(WorkCompleted.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq =... | collect(Collectors.toList()); |
379,289 | public static void horizontal11(Kernel1D_F32 kernel, GrayF32 image, GrayF32 dest) {<NEW_LINE>final float[] dataSrc = image.data;<NEW_LINE>final float[] dataDst = dest.data;<NEW_LINE>final float <MASK><NEW_LINE>final float k2 = kernel.data[1];<NEW_LINE>final float k3 = kernel.data[2];<NEW_LINE>final float k4 = kernel.da... | k1 = kernel.data[0]; |
942,945 | public static void reconnect(@NonNull final PublicizeConnection connection) {<NEW_LINE>String path = String.format(Locale.ROOT, "sites/%d/publicize-connections/%d/delete", connection.siteId, connection.connectionId);<NEW_LINE>RestRequest.Listener listener = new RestRequest.Listener() {<NEW_LINE><NEW_LINE>@Override<NEW_... | AppLog.T.SHARING, volleyError); |
1,635,811 | public static final <T> T asWeak(final T object, final Class<T> interfaceClass) {<NEW_LINE>if (object == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>//<NEW_LINE>// Check if our object is already wrapped as Weak<NEW_LINE>InvocationHandler handler = null;<NEW_LINE>final Class<? extends Object<MASK><NEW_LINE>if (Pro... | > objectClass = object.getClass(); |
406,898 | private void showTitleTip() {<NEW_LINE>JRootPane rootPane = SwingUtilities.getRootPane(desktopIcon);<NEW_LINE>if (rootPane == null)<NEW_LINE>return;<NEW_LINE>if (titleTip == null) {<NEW_LINE>titleTip = new JToolTip();<NEW_LINE>rootPane.getLayeredPane().<MASK><NEW_LINE>}<NEW_LINE>titleTip.setTipText(frame.getTitle());<N... | add(titleTip, JLayeredPane.POPUP_LAYER); |
1,013,271 | private void flattenComposedSchema(Schema inner, String key) {<NEW_LINE>ComposedSchema composedSchema = (ComposedSchema) inner;<NEW_LINE>String inlineModelName = "";<NEW_LINE>List<Schema> list = null;<NEW_LINE>if (composedSchema.getAllOf() != null) {<NEW_LINE>list = composedSchema.getAllOf();<NEW_LINE>inlineModelName =... | inline = list.get(i); |
1,346,910 | public void UIInputReceiverClosed(UIInputReceiver receiver) {<NEW_LINE>if (!receiver.hasSubmittedInput()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String str = receiver<MASK><NEW_LINE>int share_ratio = (int) (DisplayFormatters.parseFloat(df, str) * 1000);<NEW_LINE>for (Object object : dms) {<NEW_LINE>if (o... | .getSubmittedInput().trim(); |
773,065 | public void onActivityCreated(Bundle savedInstanceState) {<NEW_LINE>super.onActivityCreated(savedInstanceState);<NEW_LINE>loadButton = getView().findViewById(R.id.adsizes_btn_loadad);<NEW_LINE>cb120x20 = getView().findViewById(R.id.adsizes_cb_120x20);<NEW_LINE>cb320x50 = getView().findViewById(R.id.adsizes_cb_320x50);<... | sizeList.add(AdSize.BANNER); |
1,313,507 | public static void horizontal9(Kernel1D_S32 kernel, GrayU8 image, GrayI16 dest) {<NEW_LINE>final byte[] dataSrc = image.data;<NEW_LINE>final short[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel... | k6 = kernel.data[5]; |
1,529,446 | private void processUnsafeArrayIndexScaleInvoke(ResolvedJavaType type, Invoke unsafeArrayIndexScale, StructuredGraph clinitGraph) {<NEW_LINE>SnippetReflectionProvider snippetReflectionProvider = GraalAccess.getOriginalSnippetReflection();<NEW_LINE>List<String> unsuccessfulReasons = new ArrayList<>();<NEW_LINE>Class<?> ... | asNode(), ArrayIndexScale, unsuccessfulReasons); |
265,900 | protected void generateClassHeader() {<NEW_LINE>int modifier = getModifiers(sc.getModifiers(), sc);<NEW_LINE>// Retrieve class-name<NEW_LINE>String className = slashify(sc.getName());<NEW_LINE>// Retrieve generics<NEW_LINE>SignatureTag sigTag = (SignatureTag) <MASK><NEW_LINE>String sig = sigTag == null ? null : sigTag.... | sc.getTag(SignatureTag.NAME); |
344,500 | public void executeQuery(String sql, List<Object> params, CentralRepositoryDbQueryCallback queryCallback) throws CentralRepoException {<NEW_LINE>if (queryCallback == null) {<NEW_LINE>throw new CentralRepoException("Query callback is null");<NEW_LINE>}<NEW_LINE>try (Connection conn = connect()) {<NEW_LINE>PreparedStatem... | preparedStatement.setObject(paramIndex, param); |
523,705 | public boolean addLexWords(String... vargs) {<NEW_LINE>ArrayList<LexWord> <MASK><NEW_LINE>boolean containsKey = false;<NEW_LINE>// number of arguments must be key (1) + lexWord pairs ( x * 2 )<NEW_LINE>if (vargs.length % 2 != 1)<NEW_LINE>return false;<NEW_LINE>String key = vargs[0].toUpperCase();<NEW_LINE>if (this.cont... | lexWords = new ArrayList<>(); |
981,488 | public PartitionChunk<ObjectType> remove(Interval interval, VersionType version, PartitionChunk<ObjectType> chunk) {<NEW_LINE>lock<MASK><NEW_LINE>try {<NEW_LINE>Map<VersionType, TimelineEntry> versionEntries = allTimelineEntries.get(interval);<NEW_LINE>if (versionEntries == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_... | .writeLock().lock(); |
262,243 | protected void onResolverStateUpdated(Resolver resolver) {<NEW_LINE>mResolver = resolver;<NEW_LINE>if (!(resolver instanceof ScriptResolver) || ((ScriptResolver) resolver).getScriptAccount().getMetaData().manifest.iconBackground != null) {<NEW_LINE>resolver.loadIconBackground(mHeaderBackground<MASK><NEW_LINE>} else {<N... | , !resolver.isEnabled()); |
1,754,139 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_flexiblespacewithimagescrollview);<NEW_LINE>mFlexibleSpaceImageHeight = getResources().<MASK><NEW_LINE>mFlexibleSpaceShowFabOffset = getResources().getDimensionPixelSize(R.dimen.fl... | getDimensionPixelSize(R.dimen.flexible_space_image_height); |
6,401 | final AddJobFlowStepsResult executeAddJobFlowSteps(AddJobFlowStepsRequest addJobFlowStepsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addJobFlowStepsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,409,881 | public static FieldPath fromServerFormat(String path) {<NEW_LINE>List<String> res = new ArrayList<>();<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>// TODO: We should make this more strict.<NEW_LINE>// Right now, it allows non-identifier path components, even if they aren't escaped.<NEW_LINE>int i = 0... | String lastElem = builder.toString(); |
502,439 | public static long[] coordinatesToHilbert(int[] coords, int bitsperdim, int offset) {<NEW_LINE>final int numdim = coords.length;<NEW_LINE>final int numbits = numdim * bitsperdim;<NEW_LINE>final long[] output = BitsUtil.zero(numbits);<NEW_LINE>int rotation = 0;<NEW_LINE>long[] refl = BitsUtil.zero(numdim);<NEW_LINE>for ... | cycleRightI(bits, rotation, numdim); |
1,731,426 | public void run() {<NEW_LINE>if (window != null) {<NEW_LINE>Server newDefault = null;<NEW_LINE>if (ServerManager.getInstance().getDefaultServer().getId() == serverId) {<NEW_LINE>Set<Integer> serverIdSet = ServerManager.getInstance().getOpenServerList();<NEW_LINE>Integer[] serverIds = serverIdSet.toArray(new Integer[ser... | getInstance().getServer(serverId); |
1,694,837 | public Result.PreparedMetadata decode(ByteBuf body, ProtocolVersion version) {<NEW_LINE>// flags & column count<NEW_LINE>int iflags = body.readInt();<NEW_LINE>int columnCount = body.readInt();<NEW_LINE>EnumSet<Result.Flag> flags = Result.Flag.deserialize(iflags);<NEW_LINE>short[] partitionKeyBindIndexes = null;<NEW_LIN... | int numPKNames = body.readInt(); |
965,539 | final UntagMeetingResult executeUntagMeeting(UntagMeetingRequest untagMeetingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagMeetingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
537,150 | private void linkRuleToHashedBuckOut(BuildRule rule, SourcePathResolverAdapter pathResolver, boolean buckOutCompatLink, OutputLabel outputLabel, HashedBuckOutLinkMode linkMode) throws IOException {<NEW_LINE>Optional<Path> outputPath = PathUtils.getUserFacingOutputPath(pathResolver, <MASK><NEW_LINE>if (!outputPath.isPre... | rule, buckOutCompatLink, outputLabel, showOutputs); |
1,834,476 | private void initVirtualTransformations() {<NEW_LINE>// Note the use of reverseOrder() comparator. This iteration order allows for efficient<NEW_LINE>// construction of chained transformations later on.<NEW_LINE>// incoming transformations<NEW_LINE>ImmutableSortedMap.Builder<String, SimpleTransformation> virtualIncomin... | (e.getValue())); |
837,788 | private void configureButtonBindings() {<NEW_LINE>// Move the arm to 2 radians above horizontal when the 'A' button is pressed.<NEW_LINE>new JoystickButton(m_driverController, Button.kA.value).whenPressed(() -> {<NEW_LINE>m_robotArm.setGoal(2);<NEW_LINE>m_robotArm.enable();<NEW_LINE>}, m_robotArm);<NEW_LINE>// Move the... | ).whenPressed(m_robotArm::disable); |
658,668 | final UpdateServiceInstanceResult executeUpdateServiceInstance(UpdateServiceInstanceRequest updateServiceInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateServiceInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,055,075 | private Mono<ResourceResponse<Document>> replaceDocumentInternal(String documentLink, Document document, RequestOptions options, DocumentClientRetryPolicy retryPolicyInstance) {<NEW_LINE>if (document == null) {<NEW_LINE>throw new IllegalArgumentException("document");<NEW_LINE>}<NEW_LINE>logger.debug("Replacing a Docume... | ResourceType.Document, OperationType.Replace); |
437,130 | private Node makeCardView(Card card) {<NEW_LINE>Rectangle bg = new Rectangle(100, 150, card.getSuit().color.brighter());<NEW_LINE>bg.setArcWidth(15);<NEW_LINE>bg.setArcHeight(15);<NEW_LINE>bg.setStrokeWidth(4);<NEW_LINE>bg.setStroke(Color.WHITE);<NEW_LINE>Text text = getUIFactoryService().newText(card.toString(<MASK><N... | ), Color.BLACK, 32); |
571,156 | public synchronized void modify(ZuulStrategyRouteEntity zuulStrategyRouteEntity) {<NEW_LINE>if (zuulStrategyRouteEntity == null) {<NEW_LINE>throw new DiscoveryException("Zuul dynamic route is null");<NEW_LINE>}<NEW_LINE>Map<String, ZuulProperties.ZuulRoute> idRouteMap = zuulProperties.getRoutes();<NEW_LINE><MASK><NEW_L... | String routeId = zuulStrategyRouteEntity.getId(); |
1,455,566 | private Mono<Response<ManagedEnvironmentStoragesCollectionInner>> listWithResponseAsync(String resourceGroupName, String envName, 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 nu... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
179,484 | final DescribeDocumentVersionsResult executeDescribeDocumentVersions(DescribeDocumentVersionsRequest describeDocumentVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDocumentVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDocumentVersions"); |
1,068,621 | final ListWorkteamsResult executeListWorkteams(ListWorkteamsRequest listWorkteamsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listWorkteamsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.