idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,266,513 | static void markRunning(Context context) {<NEW_LINE>final File <MASK><NEW_LINE>final File runningMarkerFile = new File(tinkerBaseDir, RUNNING_MARKER_FILE_RELPATH_PREFIX + android.os.Process.myPid());<NEW_LINE>if (runningMarkerFile.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final File runningMarkerDir = runningMar... | tinkerBaseDir = SharePatchFileUtil.getPatchDirectory(context); |
1,088,853 | private void processInterfaceClassConstant(ClassConstantElement classConstant) {<NEW_LINE>PhpModifiers phpModifiers = classConstant.getPhpModifiers();<NEW_LINE>List<HintFix> fixes;<NEW_LINE>String invalidModifier;<NEW_LINE>if (phpModifiers.isPrivate()) {<NEW_LINE>// NOI18N<NEW_LINE>invalidModifier = "private";<NEW_LINE... | .getNameRange(), fixes)); |
670,647 | public boolean processLine(String line) {<NEW_LINE>line = line.trim();<NEW_LINE>// We begin to see such line in result of pm list instrumentation.<NEW_LINE>// 'WARNING: linker: Warning: unable to normalize ""', just ignore it now.<NEW_LINE>if (line.startsWith("WARNING:")) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// ... | 1 != classTargetSeperatorIndex, "Seperating whitespace not found: %s", line); |
1,841,777 | public static FloatProcessor[] colorDeconvolve(ColorProcessor cp, ColorDeconvolutionStains stains) {<NEW_LINE>int width = cp.getWidth();<NEW_LINE>int height = cp.getHeight();<NEW_LINE>int[] rgb = (int[]) cp.getPixels();<NEW_LINE>FloatProcessor fpStain1 = new FloatProcessor(width, height, ColorTransformer.getTransformed... | .Stain_1, null, stains)); |
1,035,879 | public void updateStoragePool(StoragePool storagePool, Map<String, String> details) {<NEW_LINE>StoragePoolVO storagePoolVo = storagePoolDao.findById(storagePool.getId());<NEW_LINE>String strCapacityBytes = details.get(PrimaryDataStoreLifeCycle.CAPACITY_BYTES);<NEW_LINE>Long capacityBytes = strCapacityBytes != null ? Lo... | usedBytes = _capacityMgr.getUsedBytes(storagePoolVo); |
65,795 | public static MethodCallExpression call(Class clazz, String methodName, List<? extends Expression> arguments, Expression targetExpression) {<NEW_LINE>Class[] argumentTypes = Types.toClassArray(arguments);<NEW_LINE>try {<NEW_LINE>Method candidate = clazz.getMethod(methodName, argumentTypes);<NEW_LINE>return Expressions.... | boolean varArgs = method.isVarArgs(); |
852,843 | private void renderTitleBarButton(MatrixStack matrixStack, int x1, int y1, int x2, int y2, boolean hovering) {<NEW_LINE>int x3 = x2 + 2;<NEW_LINE>Matrix4f matrix = matrixStack.peek().getPositionMatrix();<NEW_LINE>BufferBuilder bufferBuilder = Tessellator.getInstance().getBuffer();<NEW_LINE>RenderSystem.setShader(GameRe... | y1, 0).next(); |
1,120,225 | public static ListDiscoveredResourcesResponse unmarshall(ListDiscoveredResourcesResponse listDiscoveredResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDiscoveredResourcesResponse.setRequestId(_ctx.stringValue("ListDiscoveredResourcesResponse.RequestId"));<NEW_LINE>DiscoveredResourceProfiles discoveredResour... | ("ListDiscoveredResourcesResponse.DiscoveredResourceProfiles.DiscoveredResourceProfileList[" + i + "].AccountId")); |
361,260 | private void createAction() {<NEW_LINE>DockingAction selectAction = new MakeProgramSelectionAction(plugin, resultsTable) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected ProgramSelection makeSelection(ActionContext context) {<NEW_LINE>Program program = plugin.getProgram();<NEW_LINE>AddressSet set = new AddressSet();<N... | (HelpTopics.SEARCH, "AddressTables_Selection_Navigation")); |
870,174 | public Void visitUniverse(Concrete.UniverseExpression expr, Precedence prec) {<NEW_LINE>if (expr.getHLevel() instanceof Concrete.NumberLevelExpression && ((Concrete.NumberLevelExpression) expr.getHLevel()).getNumber() == -1) {<NEW_LINE>myBuilder.append("\\Prop");<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>boolean hParen... | AppExpression.PREC + 1))); |
1,285,457 | public static ScenarioSetup initDeleteHistoricProcessInstancesBatch() {<NEW_LINE>return new ScenarioSetup() {<NEW_LINE><NEW_LINE>public void execute(ProcessEngine engine, String scenarioName) {<NEW_LINE>for (int i = 0; i < 10; i++) {<NEW_LINE>engine.getRuntimeService().startProcessInstanceByKey("oneTaskProcess_710", "D... | processInstanceBusinessKey("DeleteHistoricProcessInstancesBatchScenario").list(); |
710,428 | private void populateSupportedFieldNamesFromVcfFile() {<NEW_LINE>final VCFFileReader reader = new VCFFileReader(sourceFilePath);<NEW_LINE>final VCFHeader header = reader.getFileHeader();<NEW_LINE>final List<String> infoLineKeys = new ArrayList<>();<NEW_LINE>final Map<String, Boolean> infoFieldFlagMap = new HashMap<>();... | (name, key), ""); |
331,904 | final StopSolutionVersionCreationResult executeStopSolutionVersionCreation(StopSolutionVersionCreationRequest stopSolutionVersionCreationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopSolutionVersionCreationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
495,377 | public void xmlWriteOn(FormattedWriter writer) throws IOException {<NEW_LINE>DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd @ HH:mm:ss.SSS");<NEW_LINE>String timeNow = dateFormat.format(new Date());<NEW_LINE>writer.newLine();<NEW_LINE>writer.startTag(XML_CACHE_LOADER);<NEW_LINE>writer.indent();<NEW_LINE>write... | writer.taggedValue("maxStreamsPerCycle", maxStreamsPerCycle); |
1,457,760 | public void run(BlackboxTestStage stage) throws Throwable {<NEW_LINE>final String onErrorMethod = "required_spec203_blackbox_mustNotCallMethodsOnSubscriptionOrPublisherInOnError_call";<NEW_LINE>final Subscription subs = new Subscription() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void request(long n) {<NEW_LINE>fi... | <T> sub = createSubscriber(); |
987,079 | public TaskResult run() {<NEW_LINE>Config params = request.getConfig();<NEW_LINE>Config doConfig = request.getConfig().getNested("_do");<NEW_LINE>Config map = params.parseNested("_command");<NEW_LINE>LinkedHashMap<String, List<JsonNode>> entries = new LinkedHashMap<>();<NEW_LINE>for (String key : map.getKeys()) {<NEW_L... | .getFactory().create(); |
1,012,192 | public GetCredentialsForIdentityResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetCredentialsForIdentityResult getCredentialsForIdentityResult = new GetCredentialsForIdentityResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.g... | ().unmarshall(context)); |
103,579 | public Map<String, Object> toHeaders(MimeMessage source) {<NEW_LINE>Map<String, Object> headers = MailUtils.extractStandardHeaders(source);<NEW_LINE>try {<NEW_LINE>Enumeration<?> allHeaders = source.getAllHeaders();<NEW_LINE>MultiValueMap<String, String> rawHeaders = new LinkedMultiValueMap<String, String>();<NEW_LINE>... | throw new MessagingException("Failed to map message headers", e); |
795,376 | public Object schemaGet(String model) throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/schema";<NEW_LINE>// query params<NEW_LINE>List<Pair> queryParams = new ArrayList<Pair>();<NEW_LINE>... | authNames = new String[] {}; |
462,710 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>binding = ActivityAboutBinding.inflate(getLayoutInflater());<NEW_LINE>final View view = binding.getRoot();<NEW_LINE>setContentView(view);<NEW_LINE>setSupportActionBar(binding.toolbarBinding.toolbar);<NEW_LINE>getSupp... | getString(R.string.about_license); |
1,414,043 | private static List<ConfigurationMetadata> addVariantsFromRules(ModuleComponentResolveMetadata componentMetadata, ImmutableList<ConfigurationMetadata> derivedVariants, VariantMetadataRules variantMetadataRules) {<NEW_LINE>List<AdditionalVariant> additionalVariants = variantMetadataRules.getAdditionalVariants();<NEW_LIN... | String name = additionalVariant.getName(); |
1,751,818 | public boolean matchAnyBiome(CompoundTag data, Collection<BiomeRegistry.BiomeIdentifier> biomes) {<NEW_LINE>Integer dataVersion = Helper.intFromCompound(data, "DataVersion");<NEW_LINE>if (dataVersion == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (dataVersion >= 2834) {<NEW_LINE>ListTag<CompoundTag> sections ... | Helper.tagFromLevelFromRoot(data, "Biomes"); |
341,253 | public Resource load(RepositoryContext context, String uri, RepositoryService repositoryService) {<NEW_LINE>JacksonResource<Object> resource = null;<NEW_LINE>InputStreamResource isResource = repositoryService.getResource(context, uri, InputStreamResource.class);<NEW_LINE>InputStream is = isResource == null ? null : isR... | resource = new JacksonResource<>(); |
1,267,113 | public RexNode go(RexNode rex) {<NEW_LINE>if (rex instanceof RexCall) {<NEW_LINE>ImmutableList.Builder<RexNode<MASK><NEW_LINE>final RexCall call = (RexCall) rex;<NEW_LINE>for (RexNode operand : call.operands) {<NEW_LINE>builder.add(go(operand));<NEW_LINE>}<NEW_LINE>return call.clone(call.getType(), builder.build());<NE... | > builder = ImmutableList.builder(); |
667,081 | public void build(Capabilities capabilities, Optional<ResteasyServerConfigBuildItem> resteasyServerConfig, BuildProducer<FeatureBuildItem> feature, BuildProducer<FilterBuildItem> filter, BuildProducer<ServletBuildItem> servlet, BuildProducer<ReflectiveClassBuildItem> reflectiveClass, BuildProducer<ServletInitParamBuild... | (true).build()); |
1,158,604 | private void createLocalDecl(polyglot.ast.LocalDecl localDecl) {<NEW_LINE>// System.out.println("local decl: "+localDecl);<NEW_LINE>String name = localDecl.name();<NEW_LINE>polyglot.types.LocalInstance localInst = localDecl.localInstance();<NEW_LINE>soot.Value lhs = createLocal(localInst);<NEW_LINE>polyglot.ast.Expr ex... | position().endColumn()); |
957,097 | public Map<String, Object> readObject() {<NEW_LINE>type = bytes[offset++];<NEW_LINE>if (type == BC_NULL) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (type == BC_TYPED_ANY) {<NEW_LINE>ObjectReader objectReader = checkAutoType(Map.class, 0, 0);<NEW_LINE>return (Map) objectReader.readObject(this, null, null, 0);<NEW_LI... | ("object not support input " + error(type)); |
587,419 | private // ----------------------------------------------------------------------------------------------<NEW_LINE>void processBaseClassesRecursive(CppCompositeType cppType, boolean isDirect, List<ClassPdbMember> myPdbMembers, List<LayoutBaseClass> myAccumulatedDirectBases, List<VirtualLayoutBaseClass> myAccumulatedVir... | getBaseClassType().getName()); |
938,115 | public static void main(String[] args) throws UnsupportedAudioFileException, IOException, MaryConfigurationException {<NEW_LINE>if (args.length < 3) {<NEW_LINE>System.out.println("Missing parameters:");<NEW_LINE>System.out.println("<input wav file or directory> <output wav file or directory> <full path of phone set fil... | System.out.println("Example phone set file: .../lib/modules/en/us/lexicon/allophones.en_US.xml"); |
1,010,341 | public void init(SamplerConfiguration config) {<NEW_LINE>String hasherOpt = config.getOptions().get("hasher");<NEW_LINE>String modulusOpt = config.<MASK><NEW_LINE>requireNonNull(hasherOpt, "Hasher not specified");<NEW_LINE>requireNonNull(modulusOpt, "Modulus not specified");<NEW_LINE>switch(hasherOpt) {<NEW_LINE>case "... | getOptions().get("modulus"); |
1,018,639 | public void onUnsubscribe(int iLiveToken) {<NEW_LINE>boolean sendFail = true;<NEW_LINE>do {<NEW_LINE>List<OClientConnection> connections = session.getConnections();<NEW_LINE>if (connections.size() == 0) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>ONetworkProtocolBinary protocol = (ONetworkProtocolBinary) connections.get(0).g... | getClientConnectionManager().disconnect(connection); |
508,143 | public static void showCompletionPopup(JComponent toolbarComponent, final JList list, String title, final JTextComponent textField, String ad) {<NEW_LINE>final Runnable callback = new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>String selectedValue = (String) list.getSelectedValue();... | setAdText(ad, SwingConstants.LEFT); |
782,581 | public void removeB2BPendingMsg(SipServletMessage msg, UAMode mode) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>Object[] params = { _tuWrapper.getAppName(), _tuWrapper.getId(), mode, _isB2B, Integer.toHexString(msg.hashCode()) };<NEW_LINE>c_logger.traceEntry(TransactionUserImpl.class.getName(), "remov... | " list.size: " + listToWork.size()); |
680,800 | private void initialize(Context aContext) {<NEW_LINE>inflate(aContext, R.layout.setting_edit, this);<NEW_LINE>mAudio = AudioEngine.fromContext(aContext);<NEW_LINE>mDescriptionView = findViewById(R.id.setting_description);<NEW_LINE>mDescriptionView.setText(mDescription);<NEW_LINE>mText1 = findViewById(R.id.textValue1);<... | InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD); |
1,475,745 | private ReportOptions parseReportOptions(final List<String> classPath) {<NEW_LINE>final ReportOptions data = new ReportOptions();<NEW_LINE>if (this.mojo.getProject().getBuild() != null) {<NEW_LINE>this.log.info("Mutating from " + this.mojo.getProject().getBuild().getOutputDirectory());<NEW_LINE>data.setCodePaths(Collec... | this.mojo.getIncludedTestMethods()); |
1,193,286 | public static LimitOrder adaptLimitOrder(BitmexOrder bitmexOrder, String id) {<NEW_LINE>BitmexOrderDescription orderDescription = bitmexOrder.getOrderDescription();<NEW_LINE>OrderType type = adaptOrderType(orderDescription.getType());<NEW_LINE>BigDecimal originalAmount = bitmexOrder.getVolume();<NEW_LINE>BigDecimal fil... | .getOpenTimestamp() * 1000L)); |
988,470 | final DeleteAuditSuppressionResult executeDeleteAuditSuppression(DeleteAuditSuppressionRequest deleteAuditSuppressionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAuditSuppressionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAuditSuppression"); |
1,186,874 | private TestReturn extractTestReturn(String testStepName, TestStepResult result) {<NEW_LINE>int code = TestReturn.FAILURE_CODE;<NEW_LINE>if (result.getStatus() == TestStepStatus.OK) {<NEW_LINE>code = TestReturn.SUCCESS_CODE;<NEW_LINE>}<NEW_LINE>String message = null;<NEW_LINE>// Re-build request and response.<NEW_LINE>... | (rrsr.getRequestHeaders())); |
1,212,771 | public final void updateToRelationships(String field, String fromEntityType, UUID fromId, Relationship relationshipType, String toEntityType, List<EntityReference> origToRefs, List<EntityReference> updatedToRefs, boolean bidirectional) throws JsonProcessingException {<NEW_LINE>List<EntityReference> added = new ArrayLis... | updatedToRefs.sort(EntityUtil.compareEntityReference); |
413,194 | public void paintIcon(Component c, Graphics g, int x, int y) {<NEW_LINE>Graphics2D g2D = (Graphics2D) g;<NEW_LINE>final String iconName = MTreeNode.getIconName(m_type);<NEW_LINE>final Icon icon = Images.getImageIcon2(iconName);<NEW_LINE>if (icon != null) {<NEW_LINE>int xI = x + ((WIDTH - icon<MASK><NEW_LINE>int yI = y ... | .getIconWidth()) / 2); |
867,784 | private Object handleResolveIntent(Object target, Method method, Object[] args) throws Throwable {<NEW_LINE>final Class<?>[] methodExceptionTypes = method.getExceptionTypes();<NEW_LINE>try {<NEW_LINE>final Object res = method.invoke(target, args);<NEW_LINE>if (res != null) {<NEW_LINE>return res;<NEW_LINE>} else {<NEW_L... | e(TAG, "unexpected exception.", thr); |
1,578,488 | private void init_standard_header_with_expandcollapse_button() {<NEW_LINE>// Create a Card<NEW_LINE>Card card = new Card(getActivity());<NEW_LINE>// Create a CardHeader<NEW_LINE>CardHeader header = new CardHeader(getActivity());<NEW_LINE>// Set the header title<NEW_LINE>header.setTitle(getString(R.string.demo_header_ba... | = new CardExpand(getActivity()); |
291,050 | public TupleList evaluateList(Evaluator evaluator) {<NEW_LINE>TupleList list = listCalc.evaluateList(evaluator);<NEW_LINE>double target = doubleCalc.evaluateDouble(evaluator);<NEW_LINE>if (list.isEmpty()) {<NEW_LINE>return list;<NEW_LINE>}<NEW_LINE>Map<List<Member>, Object> mapMemberToValue = Sorter.evaluateTuples(eval... | int memberCount = list.size(); |
1,161,370 | private List<Sample> generateSamples(DataSource dataSource, int dataOffset, long dataSize, int corePresent) throws IOException {<NEW_LINE>LookAhead la = new LookAhead(dataSource, dataOffset, dataSize, corePresent);<NEW_LINE>ByteBuffer sample;<NEW_LINE>List<Sample> mySamples = new ArrayList<Sample>();<NEW_LINE>while ((s... | .rewind().remaining(); |
228,951 | /*<NEW_LINE>* Calculates the location where the tooltip will be painted. Returns this<NEW_LINE>* as a Point. Tooltip will be painted directly below the cursor if<NEW_LINE>* possible, otherwise it will be painted directly above cursor.<NEW_LINE>*/<NEW_LINE>private Point computeWindowLocation(IFigure tip, int eventX, int... | .y = eventY - tipSize.height; |
168,029 | private RelNode optimizeByExpandTableLookup(RelNode input, PlannerContext plannerContext) {<NEW_LINE>HepProgramBuilder builder = new HepProgramBuilder();<NEW_LINE>// expand table lookup<NEW_LINE>builder.addGroupBegin();<NEW_LINE>builder.addRuleCollection(RuleToUse.EXPAND_TABLE_LOOKUP);<NEW_LINE>builder.addGroupEnd();<N... | builder.build(), plannerContext); |
1,281,793 | private boolean startDBProcess(String ProcedureName) {<NEW_LINE>// execute on this thread/connection<NEW_LINE>log.fine(ProcedureName + "(" + processInstance.getAD_PInstance_ID() + ")");<NEW_LINE>boolean started = false;<NEW_LINE>if (isServerProcess) {<NEW_LINE>try {<NEW_LINE>Server server = CConnection.get().getServer(... | startDatabaseProcedure(processInstance, ProcedureName, transaction); |
1,305,385 | void appendMessageStruct(final Appendable out, final String structName) throws IOException {<NEW_LINE>indent(out, 1, "#[derive(Debug, Default)]\n");<NEW_LINE>indent(out, 1, "pub struct %s {\n", withLifetime(structName));<NEW_LINE>indent(out, 2, "buf: %s,\n", withLifetime(this.codecType.bufType()));<NEW_LINE>indent(out,... | indent(out, 1, "}\n\n"); |
1,125,015 | private void onJoin(Session session, SessionDetails details) {<NEW_LINE>System.out.println("Joined...");<NEW_LINE>mWasConnected = true;<NEW_LINE>SharedPreferences.Editor editor = mPrefs.edit();<NEW_LINE>editor.putString("xbr_uri", mURI);<NEW_LINE>editor.putString("xbr_realm", mRealm);<NEW_LINE>editor.apply();<NEW_LINE>... | , Util.toXBR(50)); |
947,823 | final SetIpAddressTypeResult executeSetIpAddressType(SetIpAddressTypeRequest setIpAddressTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setIpAddressTypeRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<SetIpAddressTypeRequest> ... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,309,239 | private static void copyResourceTableToTmpDirectory(String sourcePath, String tableName, File baseDir, File dataDir) throws IOException {<NEW_LINE>File schemaFile = new File(baseDir, tableName + "_schema.json");<NEW_LINE>File tableConfigFile = new File(baseDir, tableName + "_offline_table_config.json");<NEW_LINE>File i... | = Quickstart.class.getClassLoader(); |
1,518,947 | public char readChar() throws JMSException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "readChar");<NEW_LINE>try {<NEW_LINE>// Check that we are in read mode<NEW_LINE>checkBodyReadable("readChar");<NEW_LINE>if (requiresInit)<NEW_LINE>lazyInitForReading();<N... | char result = readStream.readChar(); |
400,143 | private void configureHttpsPipeline(NioSocketChannel ctx, Http2Connection connection) throws Exception {<NEW_LINE>JdkSslContext context = new // We should not use the non deprecated version to avoid breaking forward compatibility<NEW_LINE>JdkSslContext(// We should not use the non deprecated version to avoid breaking f... | context, http2Codec, _enableSSLSessionResumption, _sslHandShakeTimeout); |
202,200 | private void updateBufSize() {<NEW_LINE>//<NEW_LINE>// Must be called without any other threads holding the lock to the MulticastSocket!<NEW_LINE>//<NEW_LINE>try {<NEW_LINE>//<NEW_LINE>// Try to set the buffer size. The kernel will silently adjust the size to an acceptable value.<NEW_LINE>// Then read the size back to ... | Ice.UDPEndpointType.value, _newSize); |
1,568,904 | public StockQtyAndUOMQty retrieveQtyNotMatched(@NonNull final I_M_InOutLine iol) {<NEW_LINE>UomId catchUOMId;<NEW_LINE>if (iol.getQtyDeliveredCatch().signum() != 0) {<NEW_LINE>catchUOMId = UomId.ofRepoIdOrNull(iol.getCatch_UOM_ID());<NEW_LINE>} else {<NEW_LINE>catchUOMId = null;<NEW_LINE>}<NEW_LINE>StockQtyAndUOMQty qt... | I_M_InOut inout = iol.getM_InOut(); |
1,602,787 | private Map<String, String> generateTokenRefreshRequest(final String redirectUri, final AuthUserSession session) {<NEW_LINE>Map<String, String> httpBodyParams = new HashMap<String, String>();<NEW_LINE>httpBodyParams.put(ClientConstants.TOKEN_GRANT_TYPE, ClientConstants.HTTP_REQUEST_REFRESH_TOKEN);<NEW_LINE>httpBodyPara... | getRefreshToken().getToken()); |
1,465,224 | private int binarySearch(K key, long hashCode, OEncryption encryption, OBinarySerializer<K> keySerializer) {<NEW_LINE>int low = 0;<NEW_LINE><MASK><NEW_LINE>while (low <= high) {<NEW_LINE>final int mid = (low + high) >>> 1;<NEW_LINE>final long midHashCode = getHashCode(mid);<NEW_LINE>final int cmp;<NEW_LINE>if (lessThan... | int high = size() - 1; |
328,399 | public void exitRe_redistribute_ospf(Re_redistribute_ospfContext ctx) {<NEW_LINE>// In process context<NEW_LINE>if (_currentEigrpProcess == null) {<NEW_LINE>warn(ctx, "No EIGRP process available");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>RoutingProtocol sourceProtocol = RoutingProtocol.OSPF;<NEW_LINE>EigrpRedistributionPo... | procNum = toInteger(ctx.proc); |
923,852 | public synchronized Observable<WebSocketConnectionState> connect() {<NEW_LINE>log("connect()");<NEW_LINE>if (client == null) {<NEW_LINE>String filledUri;<NEW_LINE>if (credentialsProvider.isPresent()) {<NEW_LINE>String identifier = Objects.requireNonNull(credentialsProvider.get().getAci()).toString();<NEW_LINE>if (crede... | requestBuilder.addHeader("X-Signal-Agent", signalAgent); |
1,299,989 | private static EjbJarModel generate90() {<NEW_LINE>org.netbeans.modules.j2ee.weblogic9.dd.ejb90.WeblogicEjbJar webLogicEjbJar = new org.netbeans.modules.j2ee.weblogic9<MASK><NEW_LINE>// NOI18N<NEW_LINE>webLogicEjbJar.createAttribute("xmlns:j2ee", "xmlns:j2ee", AttrProp.CDATA | AttrProp.IMPLIED, null, null);<NEW_LINE>//... | .dd.ejb90.WeblogicEjbJar(); |
1,459,254 | public JsonRpcResponse response(final JsonRpcRequestContext requestContext) {<NEW_LINE>final StringListParameter enodeListParam = requestContext.getRequiredParameter(0, StringListParameter.class);<NEW_LINE>try {<NEW_LINE>if (nodeAllowlistPermissioningController.isPresent()) {<NEW_LINE>try {<NEW_LINE>final List<String> ... | getId(), JsonRpcError.INTERNAL_ERROR); |
157,546 | final ImportVolumeResult executeImportVolume(ImportVolumeRequest importVolumeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importVolumeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
645,777 | public Map<String, Object> toMapData() {<NEW_LINE>Map<String, Object> hashMap = new HashMap<>();<NEW_LINE>TreeNode[] subNodes = this.getSubNodes();<NEW_LINE>for (TreeNode treeNode : subNodes) {<NEW_LINE>String name = treeNode.getName();<NEW_LINE>String[] values = treeNode.getValues();<NEW_LINE>if (values == null || val... | add(treeNode.toMapData()); |
760,906 | public static void manipulateKey(CommandType type, OutputStream outputStream, String outFormat, InputStream inputStream, String inFormat, String masterKeyUri, String credentialPath, int keyId) throws GeneralSecurityException, IOException {<NEW_LINE>KeysetManager manager = KeysetManager.withKeysetHandle(getKeysetHandle(... | outputStream, outFormat, masterKeyUri, credentialPath); |
206,216 | public static void main(String[] args) {<NEW_LINE>if (args == null || args.length != 2) {<NEW_LINE>System.out.println("Usage: ReflectionJsonComparator <reflect-config1.json> <reflect-config2.json>");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>ReflectionDescriptor rd1 = null;<NEW_LINE>try (FileInputStream fis = new Fi... | "> " + cd2.toString()); |
625,934 | private void commonSupportingFiles() {<NEW_LINE>supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));<NEW_LINE>if (getLibrary().equals(MULTIPLATFORM)) {<NEW_LINE>supportingFiles.add(new SupportingFile("build.gradle.kts.mustache", "", "build.gradle.kts"));<NEW_LINE>supportingFiles.add(new Supporti... | ("gradlew.mustache", "", "gradlew")); |
677,512 | public static TimeBatchFlags processKeywords(Object keywords, String errorMessage) throws ViewParameterException {<NEW_LINE>boolean isForceUpdate = false;<NEW_LINE>boolean isStartEager = false;<NEW_LINE>if (!(keywords instanceof String)) {<NEW_LINE>throw new ViewParameterException(errorMessage);<NEW_LINE>}<NEW_LINE>Str... | String keywordRange = FORCE_UPDATE_KEYWORD + "," + START_EAGER_KEYWORD; |
302,871 | private void performWorkload(BaseSubscriber<PojoizedJson> baseSubscriber, long i) throws InterruptedException {<NEW_LINE>Mono<PojoizedJson> result;<NEW_LINE>int clientIndex = (int) (i % clientDocsMap.size());<NEW_LINE>CosmosAsyncClient client = (CosmosAsyncClient) clientDocsMap.keySet().toArray()[clientIndex];<NEW_LINE... | ()).subscribe(latencySubscriber); |
307,678 | private void createMenu(List<MMenuElement> items, int index, CSVConfig config) {<NEW_LINE>MParameter parameter = modelService.createModelElement(MParameter.class);<NEW_LINE>parameter.setName(mParameter.getElementId());<NEW_LINE>Map<String, Object> parameters = new HashMap<>();<NEW_LINE>parameters.put(UIConstants.Parame... | setLabel(config.getLabel()); |
687,707 | protected void init() {<NEW_LINE>setRowHeaderView(foldingSideBar = new FoldingSideBar(textView, this));<NEW_LINE>setViewportView(textView);<NEW_LINE>textView.setEditable(false);<NEW_LINE>textView.addMouseListener(this);<NEW_LINE>textView.addMouseMotionListener(this);<NEW_LINE>textView.addKeyListener(this);<NEW_LINE>tex... | getCaret().addChangeListener(this); |
242,713 | public void run() throws Exception {<NEW_LINE>System.out.println("Loading classification model...");<NEW_LINE>FastTextClassifier classifier = FastTextClassifier.load(model);<NEW_LINE>EvaluationResult result = classifier.evaluate(input, maxPrediction, threshold);<NEW_LINE>System.out.println("Result = " + result.toString... | out.println("Predictions are written to " + predictions); |
1,637,210 | public ListSkillsStoreSkillsByCategoryResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListSkillsStoreSkillsByCategoryResult listSkillsStoreSkillsByCategoryResult = new ListSkillsStoreSkillsByCategoryResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentP... | class).unmarshall(context)); |
1,475,582 | private ParameterizedExecutableType resolveConstructorCall(AnnotatedTypeFactory factory, MethodInvocationTree tree, ParameterizedExecutableType origResult) {<NEW_LINE>debugReflection("Try to resolve reflective constructor call: " + tree);<NEW_LINE>List<JCNewClass> possibleConstructors = resolveReflectiveConstructor(tre... | debugReflection("Resolved annotations: " + origResult.executableType); |
1,089,289 | protected void cleanupConnection(Connection conn, ResultSet rs, PreparedStatement statement) {<NEW_LINE>logger.logp(Level.FINEST, CLASSNAME, "cleanupConnection", "Entering", new Object[] { conn, rs == null ? NULL_TAGGED : rs, statement == null ? NULL_TAGGED : statement });<NEW_LINE>if (statement != null) {<NEW_LINE>try... | FINEST, CLASSNAME, "cleanupConnection", "Exiting"); |
248,171 | public void runSupport() {<NEW_LINE>try {<NEW_LINE>List<String<MASK><NEW_LINE>Set<String> set = new HashSet<>();<NEW_LINE>for (String[] fave : faves) {<NEW_LINE>String net = fave[0];<NEW_LINE>String key = fave[1];<NEW_LINE>set.add(net + ":" + key);<NEW_LINE>ChatInstance chat = peekChatInstance(net, key, false);<NEW_LIN... | []> faves = getFavourites(); |
29,301 | private static void configureProject(Project project, MavenProject mavenProject, MavenSession session) {<NEW_LINE>if (isBlank(project.getName())) {<NEW_LINE>project.setName(mavenProject.getArtifactId());<NEW_LINE>}<NEW_LINE>if (isBlank(project.getVersion())) {<NEW_LINE>project.setVersion(mavenProject.getVersion());<NEW... | getOrganization().getUrl()); |
751,695 | public void fileSessionDataStore() {<NEW_LINE>// tag::filesessiondatastore[]<NEW_LINE>// create a context<NEW_LINE>WebAppContext app1 = new WebAppContext();<NEW_LINE>app1.setContextPath("/app1");<NEW_LINE>// First, we create a DefaultSessionCache<NEW_LINE>DefaultSessionCache cache = new DefaultSessionCache(app1.getSess... | setStoreDir(new File("/tmp/sessions")); |
1,545,451 | public Instance pipe(Instance carrier) {<NEW_LINE>TokenSequence ts = <MASK><NEW_LINE>if (ts.size() > 3 && (ts.get(2).getText().equals("-") || ts.get(3).getText().equals("-")) && ts.get(1).getText().matches("[A-Z]+")) {<NEW_LINE>String header = ts.get(1).getText();<NEW_LINE>if (// Don't bother with "PRESS DIGEST" header... | (TokenSequence) carrier.getData(); |
801,548 | public void evaluate(@NotNull final PlaceholderAPIPlugin plugin, @NotNull final CommandSender sender, @NotNull final String alias, @NotNull @Unmodifiable final List<String> params) {<NEW_LINE>if (params.isEmpty()) {<NEW_LINE>Msg.msg(sender, "&b&lPlaceholderAPI &8- &7eCloud Help Menu &8- ", " ", "&b/papi &fenable/disabl... | String permission = target.getPermission(); |
848,434 | public void attachCtrlMouseWheelZoom() {<NEW_LINE>// get the existing scroll event<NEW_LINE>MouseWheelListener ogListener = scrollPane.getMouseWheelListeners().length > 0 ? scrollPane.getMouseWheelListeners()[0] : null;<NEW_LINE>// remove the existing event<NEW_LINE>if (ogListener != null)<NEW_LINE>scrollPane.removeMou... | getStyle(), ++size)); |
1,021,326 | public TypeBinding checkFieldAccess(BlockScope scope) {<NEW_LINE>FieldBinding fieldBinding = (FieldBinding) this.binding;<NEW_LINE>this.constant = fieldBinding.constant(scope);<NEW_LINE>// clear bits<NEW_LINE>this.bits &= ~ASTNode.RestrictiveFlagMASK;<NEW_LINE>this.bits |= Binding.FIELD;<NEW_LINE>MethodScope methodScop... | forwardReference(this, 0, fieldBinding); |
1,813,274 | // Create shortcut as response for ACTION_CREATE_SHORTCUT intent.<NEW_LINE>private void respondToShortcutRequest(Uri uri) {<NEW_LINE>// This is Intent that will be sent when user execute our shortcut on<NEW_LINE>// homescreen. Set our app as target Context. Set Main activity as<NEW_LINE>// target class. Add any paramet... | this, R.drawable.ic_launcher); |
1,502,846 | private XContentBuilder toXContentInternal(final XContentBuilder builder, final ToXContent.Params params) throws IOException {<NEW_LINE>builder.startObject(SNAPSHOT);<NEW_LINE>builder.field(NAME, snapshotId.getName());<NEW_LINE>builder.field(UUID, snapshotId.getUUID());<NEW_LINE>assert version != null : "version must a... | builder.field(REASON, reason); |
925,117 | // GEN-LAST:event_btnFindOtherActionPerformed<NEW_LINE>private void doFastFlagSearch() {<NEW_LINE>Choice choice = new ChoiceImpl(false);<NEW_LINE>// collect data from country combobox String[name][code]<NEW_LINE>Map<String, String> choiceItems = new LinkedHashMap<>();<NEW_LINE>DefaultComboBoxModel flagModel = (DefaultC... | dlg.showDialog(choice, needSelectValue); |
1,007,306 | public synchronized void onValueSelected(int i, int i1, PointValue pointValue) {<NEW_LINE>String filtered = "";<NEW_LINE>try {<NEW_LINE>PointValueExtended pve = (PointValueExtended) pointValue;<NEW_LINE>if (pve.calculatedFilteredValue != -1) {<NEW_LINE>filtered = " (" + Math.round(pve.calculatedFilteredValue * 10) / 10... | pointValue.getX()) * FUZZER; |
880,771 | public void actionPerformed(ActionEvent arg0) {<NEW_LINE>tableHosts.acceptText();<NEW_LINE><MASK><NEW_LINE>String defaultIP = UnitContext.getDefaultHost();<NEW_LINE>String ip = defaultIP;<NEW_LINE>if (isClusterEditing) {<NEW_LINE>ip = fixedIP;<NEW_LINE>} else {<NEW_LINE>if (r > 0) {<NEW_LINE>ip = (String) tableHosts.da... | int r = tableHosts.getRowCount(); |
1,057,300 | public DescribeActivityResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeActivityResult describeActivityResult = new DescribeActivityResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | class).unmarshall(context)); |
1,368,159 | public String exportRepository(List<String> ids, String format) {<NEW_LINE>StringBuilder result = new StringBuilder("{");<NEW_LINE>ObjectMapper mapper = new ObjectMapper();<NEW_LINE>// First, retrieve service list.<NEW_LINE>List<Service> services = serviceRepository.findByIdIn(ids);<NEW_LINE>try {<NEW_LINE>String jsonA... | jsonArray = mapper.writeValueAsString(requests); |
1,161,909 | private void processImage(ByteBuffer data, final FrameMetadata frameMetadata, final GraphicOverlay graphicOverlay) {<NEW_LINE>long frameStartMs = SystemClock.elapsedRealtime();<NEW_LINE>// If live viewport is on (that is the underneath surface view takes care of the camera preview<NEW_LINE>// drawing), skip the unneces... | getRotation()).build(); |
1,610,664 | public static // then passes the verified Memory to the actual heapify constructor<NEW_LINE>KllDoublesSketch heapify(final Memory mem) {<NEW_LINE>final int preambleInts = <MASK><NEW_LINE>final int serialVersion = mem.getByte(SER_VER_BYTE) & 0xff;<NEW_LINE>final int family = mem.getByte(FAMILY_BYTE) & 0xff;<NEW_LINE>fin... | mem.getByte(PREAMBLE_INTS_BYTE) & 0xff; |
1,715,747 | public void userGetAffiliateStatus(final Response.Listener<Affiliate> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/user/affiliateStatus".replaceAll("\\{format\\}", "json");<NEW_LINE>// query params<NEW... | 0 ? contentTypes[0] : "application/json"; |
335,964 | public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>super.onCreateView(inflater, container, savedInstanceState);<NEW_LINE>setHasOptionsMenu(true);<NEW_LINE>View rootView = inflater.inflate(R.layout.pager_fragment, container, false);<NEW_LINE>viewPager = ... | inflateMenu(R.menu.statistics); |
143,602 | public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup... | Utils.getValueFromIdByName(id, "virtualNetworkPeerings"); |
1,143,426 | public ListAttributeGroupsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListAttributeGroupsResult listAttributeGroupsResult = new ListAttributeGroupsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()... | class).unmarshall(context)); |
37,181 | protected void doAction(Action a, AssemblyParseToken tok, Set<AssemblyParseMachine> results, Deque<AssemblyParseMachine> visited) {<NEW_LINE>try (DbgCtx dc = DBG.start("Action: " + a)) {<NEW_LINE>if (a instanceof ShiftAction) {<NEW_LINE>AssemblyParseMachine m = copy();<NEW_LINE>m.stack.push(((ShiftAction) a).newStateNu... | m.treeStack.push(tok); |
1,474,178 | public static UnaryDenotation arithmeticUnary(UnaryDenotation u1, UnaryDenotation u2, ArithmeticFormula.Mode mode, TypeProcessor processor) {<NEW_LINE>if (LambdaDCSExecutor.opts.arithmeticsFailOnEmptyLists && (u1.size() == 0 || u2.size() == 0))<NEW_LINE>throw new LambdaDCSException(<MASK><NEW_LINE>if (LambdaDCSExecutor... | Type.emptyList, "Cannot call %s on an empty list.", mode); |
66,017 | public void computeRankingAssignment(List<T> solutions, Set<? extends FitnessFunction<T>> uncovered_goals) {<NEW_LINE>if (solutions.isEmpty()) {<NEW_LINE>logger.debug("solution is empty");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.fronts = new ArrayList<>(solutions.size());<NEW_LINE>// first apply the "preference sorti... | int rankedSolutions = zero_front.size(); |
196,629 | public void gen(LexerGrammar g) throws IOException {<NEW_LINE>setGrammar(g);<NEW_LINE>antlrTool.reportProgress("Generating " + <MASK><NEW_LINE>currentOutput = antlrTool.openOutputFile(grammar.getClassName() + ".sgml");<NEW_LINE>tabs = 0;<NEW_LINE>doingLexRules = true;<NEW_LINE>// Generate header common to all TXT outpu... | grammar.getClassName() + ".sgml"); |
882,096 | private static CharSequence escapeOboString(String in, EscapeMode mode) {<NEW_LINE>String replace = in.replace("\\", "\\\\");<NEW_LINE>if (mode == EscapeMode.MOST || mode == EscapeMode.QUOTES) {<NEW_LINE>replace = replace.replace("\"", "\\\"");<NEW_LINE>}<NEW_LINE>replace = replace.replace("\n", "\\n");<NEW_LINE>if (mo... | ).replace("}", "\\}"); |
621,404 | final StartLoggingResult executeStartLogging(StartLoggingRequest startLoggingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startLoggingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | 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.