idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
667,417 | public Mat run(Mat inputMat, ImageBlob imageBlob) {<NEW_LINE>int origin_w = inputMat.width();<NEW_LINE>int origin_h = inputMat.height();<NEW_LINE>imageBlob.getReshapeInfo().put("resize", new int[] { origin_w, origin_h });<NEW_LINE>int im_size_max = Math.max(origin_w, origin_h);<NEW_LINE>float scale = (float) (long_size... | Math.round(scale * origin_h); |
1,811,279 | public BuiltInScalarFunctionImplementation specialize(BoundVariables boundVariables, int arity, FunctionAndTypeManager functionAndTypeManager) {<NEW_LINE>DistinctType type = (DistinctType) boundVariables.getTypeVariable("T");<NEW_LINE>Type baseType = type.getBaseType();<NEW_LINE>FunctionHandle functionHandle = function... | Optional.empty()))); |
361,508 | private void syncUpstreamsForService(SingularityRequest singularityRequest) {<NEW_LINE>final <MASK><NEW_LINE>LOG.debug("Starting syncing of upstreams for service: {}.", singularityRequestId);<NEW_LINE>if (!singularityRequest.isLoadBalanced()) {<NEW_LINE>LOG.debug("Singularity service {} is not load balanced. Terminatin... | String singularityRequestId = singularityRequest.getId(); |
267,872 | public Request<DescribeVpcClassicLinkRequest> marshall(DescribeVpcClassicLinkRequest describeVpcClassicLinkRequest) {<NEW_LINE>if (describeVpcClassicLinkRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeVpcClassicLinkRequest> req... | request.addParameter("Action", "DescribeVpcClassicLink"); |
1,624,089 | public void loadConfig(Context context) {<NEW_LINE>SharedPreferences s = context.getSharedPreferences(SP_NAME, Context.MODE_PRIVATE);<NEW_LINE>mEnables[POSITION_ADJUST_BITRATE] = s.getBoolean(SP_KEY_ADJUST_BITRATE, mEnables[POSITION_ADJUST_BITRATE]);<NEW_LINE>mEnables[POSITION_EAR_MONITORING_ENABLE] = s.getBoolean(SP_K... | (SP_KEY_WATER_MARK, mEnables[POSITION_WATER_MARK_ENABLE]); |
99,952 | public static IRubyObject compile(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) {<NEW_LINE>// def compile(content = nil, filename = DEFAULT_FILENAME, extra_position_info = false, &block)<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>final RubyString content = args[0].convertToStrin... | compileIR(context, args, block); |
407,789 | public void testNonXAOptionBRollback() throws Exception {<NEW_LINE>prepareTRA();<NEW_LINE>resetData(keyMDBRollback04);<NEW_LINE>String deliveryID = "TX_test2d";<NEW_LINE>// construct a FVTMessage<NEW_LINE>FVTMessage message = new FVTMessage();<NEW_LINE>message.addTestResult("CMTNonJMSRequired");<NEW_LINE>// Add a optio... | results.getNumberOfMessagesDelivered() == 1); |
370,171 | //<NEW_LINE>@Override<NEW_LINE>protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String <MASK><NEW_LINE>PrintWriter out = response.getWriter();<NEW_LINE>out.println("Starting " + test + "<br>");<NEW_LINE>// The injection engine doesn't like th... | test = request.getParameter("test"); |
723,634 | private static Set<ProxyClassLoader> coalesceAppend(ClassLoader root, Set<ProxyClassLoader> existing, ClassLoader[] appended, ClassLoader[] systemCL) throws IllegalArgumentException {<NEW_LINE>int likelySize = existing.size() + appended.length;<NEW_LINE>LinkedHashSet<ClassLoader> uniq = new LinkedHashSet<ClassLoader>(l... | .add((ProxyClassLoader) l); |
718,277 | private void deletePlannedPO() {<NEW_LINE>String sql = "DELETE FROM PP_MRP " + "WHERE EXISTS(SELECT 1 FROM M_Requisition " + " WHERE M_Requisition_ID = PP_MRP.M_Requisition_ID" + " AND DocStatus = 'DR' " + " AND Processed='N' " + " AND AD_Client_ID = ? " + " AND C_DocType_ID = ?)";<NEW_LINE>int noOf... | + " AND DocStatus = 'DR' " + " AND Processed='N' " + " AND AD_Client_ID = ? " + " AND C_DocType_ID = ?)"; |
1,810,654 | public void run() {<NEW_LINE>try (ZContext ctx = new ZContext()) {<NEW_LINE>Socket client = ctx.createSocket(SocketType.DEALER);<NEW_LINE>// Set random identity to make tracing easier<NEW_LINE>String identity = String.format("%04X-%04X", rand.nextInt(), rand.nextInt());<NEW_LINE>client.setIdentity(identity.getBytes(ZMQ... | msg = ZMsg.recvMsg(client); |
722,760 | final EnableDomainTransferLockResult executeEnableDomainTransferLock(EnableDomainTransferLockRequest enableDomainTransferLockRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableDomainTransferLockRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | endClientExecution(awsRequestMetrics, request, response); |
1,165,560 | public void showErrorLog() {<NEW_LINE>// terminate timer<NEW_LINE>if (flashErrorIconTimer != null) {<NEW_LINE>// if timer was running, cancel it<NEW_LINE>flashErrorIconTimer.cancel();<NEW_LINE>// purge it from the task-list<NEW_LINE>flashErrorIconTimer.purge();<NEW_LINE>// free timer-object<NEW_LINE>flashErrorIconTimer... | getFrame(), this, settings); |
1,521,013 | public StructureDefinition snapshot(@IdParam(optional = true) IdType theId, @OperationParam(name = "definition") StructureDefinition theStructureDefinition, @OperationParam(name = "url") StringType theUrl, RequestDetails theRequestDetails) {<NEW_LINE>ValidateUtil.exactlyOneNotNullOrThrowInvalidRequestException(new Obje... | , 1).get(0); |
286,713 | public void paint(GlyphView v, Graphics g, Shape a, int p0, int p1) {<NEW_LINE>sync(v);<NEW_LINE>Segment text;<NEW_LINE>TabExpander expander = v.getTabExpander();<NEW_LINE>Rectangle alloc = (a instanceof Rectangle) ? (Rectangle) a : a.getBounds();<NEW_LINE>// determine the x coordinate to render the glyphs<NEW_LINE>int... | Color fg = g.getColor(); |
1,658,247 | final StartPolicyGenerationResult executeStartPolicyGeneration(StartPolicyGenerationRequest startPolicyGenerationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startPolicyGenerationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
327,387 | public void initialize() throws ContainerInitializationException {<NEW_LINE>Timer.start("SPRINGBOOT2_COLD_START");<NEW_LINE>SpringApplicationBuilder builder = // .REACTIVE, .SERVLET<NEW_LINE>new SpringApplicationBuilder(getEmbeddedContainerClasses()).// .REACTIVE, .SERVLET<NEW_LINE>web(springWebApplicationType);<NEW_LI... | ).setServletContext(getServletContext()); |
1,560,275 | public void generateActionSwitchEntry(ProxyMethodInfo m, CodeWriter writer) {<NEW_LINE>if (m.isProxyClose()) {<NEW_LINE>super.generateActionSwitchEntry(m, writer);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TypeInfo returnType = m.getReturnType();<NEW_LINE>writer.codeln(String.format("case \"%s\": {", m.getName())).indent().... | .indent().indent(); |
1,098,827 | protected static void logHaTask(long timeCost, Map<String, Pair<String, Map<String, StorageNodeHaInfo>>> allDnRoleInfos, Map<String, Pair<Boolean, String>> shouldHaFlags, Throwable haCheckEx) {<NEW_LINE>if (!StorageHaChecker.enablePrintHaCheckTaskLog) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String haStorageInstInfo = ""... | "{dnId=%s,shouldHa=%s,leader=%s}", storageInstId, shouldHa, newLeader); |
1,403,732 | public static FileSystemManager generateVfs() throws FileSystemException {<NEW_LINE>DefaultFileSystemManager vfs = new DefaultFileSystemManager();<NEW_LINE>vfs.addProvider("res", new org.apache.commons.vfs2.provider.res.ResourceFileProvider());<NEW_LINE>vfs.addProvider("zip", new org.apache.commons.vfs2.provider.zip.Zi... | vfs.addMimeTypeMap("application/zip", "zip"); |
559,208 | private static SqlScalarFunction decimalSubtractOperator() {<NEW_LINE>TypeSignature decimalLeftSignature = new TypeSignature("decimal", typeVariable(<MASK><NEW_LINE>TypeSignature decimalRightSignature = new TypeSignature("decimal", typeVariable("b_precision"), typeVariable("b_scale"));<NEW_LINE>TypeSignature decimalRes... | "a_precision"), typeVariable("a_scale")); |
1,620,302 | private TornadoInstalledCode compileTask(SchedulableTask task) {<NEW_LINE>final CompilableTask executable = (CompilableTask) task;<NEW_LINE>final ResolvedJavaMethod resolvedMethod = TornadoCoreRuntime.getTornadoRuntime().resolveMethod(executable.getMethod());<NEW_LINE>final Sketch sketch = TornadoSketcher.lookup(resolv... | maybePrintSource(result.getTargetCode()); |
251,591 | public void applyLayout() {<NEW_LINE>if ((this.getNodes().size() == 0)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int layoutStyle = 0;<NEW_LINE>if (checkStyle(ZestStyles.NODES_NO_LAYOUT_RESIZE)) {<NEW_LINE>layoutStyle = LayoutStyles.NO_LAYOUT_NODE_RESIZING;<NEW_LINE>}<NEW_LINE>if (layoutAlgorithm == null) {<NEW_LINE>layou... | .width = d.width - 10; |
1,335,912 | public void visitUnary(JCTree.JCUnary tree) {<NEW_LINE>super.visitUnary(tree);<NEW_LINE>if (_tp.isGenerate() && !shouldProcessForGeneration()) {<NEW_LINE>// Don't process tree during GENERATE, unless the tree was generated e.g., a bridge method<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Symbol op = IDynamicJdk.<MASK><NEW_LIN... | instance().getOperator(tree); |
1,661,062 | public void update() {<NEW_LINE>int lifeOffset = ParticleChannels.LifePercentOffset, strengthOffset = 0, forceOffset = 0;<NEW_LINE>for (int i = 0, c = controller.particles.size; i < c; ++i, strengthOffset += strengthChannel.strideSize, forceOffset += accelerationChannel.strideSize, lifeOffset += lifeChannel.strideSize)... | ParticleChannels.ZOffset] += TMP_V3.z; |
812,955 | public void detachAllDisks() throws Exception {<NEW_LINE>if (s_logger.isTraceEnabled())<NEW_LINE>s_logger.trace(<MASK><NEW_LINE>VirtualDisk[] disks = getAllDiskDevice();<NEW_LINE>if (disks.length > 0) {<NEW_LINE>VirtualMachineConfigSpec reConfigSpec = new VirtualMachineConfigSpec();<NEW_LINE>VirtualDeviceConfigSpec[] d... | "vCenter API trace - detachAllDisk(). target MOR: " + _mor.getValue()); |
462,819 | public final void pin(Watch watch) throws DataObjectNotFoundException {<NEW_LINE>EditorPin pin = (EditorPin) watch.getPin();<NEW_LINE>DataObject dobj = DataObject.find(pin.getFile());<NEW_LINE>EditorCookie ec = dobj.getLookup().lookup(EditorCookie.class);<NEW_LINE>JEditorPane[<MASK><NEW_LINE>if (openedPanes == null) {<... | ] openedPanes = ec.getOpenedPanes(); |
524,789 | protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {<NEW_LINE>builder.addAutowiredProperty(SOFA_RUNTIME_CONTEXT);<NEW_LINE>builder.addAutowiredProperty(BINDING_CONVERTER_FACTORY);<NEW_LINE>builder.addAutowiredProperty(BINDING_ADAPTER_FACTORY);<NEW_LINE>String id = elemen... | elementAsTypedStringValueList = new ArrayList<>(); |
955,125 | public static DescribeTotalAndRateLineResponse unmarshall(DescribeTotalAndRateLineResponse describeTotalAndRateLineResponse, UnmarshallerContext context) {<NEW_LINE>describeTotalAndRateLineResponse.setRequestId(context.stringValue("DescribeTotalAndRateLineResponse.RequestId"));<NEW_LINE>List<String> categories = new Ar... | ("DescribeTotalAndRateLineResponse.Items[" + i + "].Data")); |
74,461 | public void marshall(BehaviorCriteria behaviorCriteria, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (behaviorCriteria.getComparisonOperator() != null) {<NEW_LINE>String comparisonOperator = behaviorCriteria.getComparisonOperator();<NEW_LINE>jsonWriter.name("comparisonOper... | MetricValue value = behaviorCriteria.getValue(); |
228,612 | public Request<ListDocumentClassifiersRequest> marshall(ListDocumentClassifiersRequest listDocumentClassifiersRequest) {<NEW_LINE>if (listDocumentClassifiersRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListDocumentClassifiersRequest)");<NEW_LINE>}<NEW_LINE>Request<Lis... | jsonWriter = JsonUtils.getJsonWriter(stringWriter); |
366,575 | final ListLaunchPathsResult executeListLaunchPaths(ListLaunchPathsRequest listLaunchPathsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listLaunchPathsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
619,516 | public JsonProcessCompositeResponse processShipmentSchedules(@NonNull final JsonProcessShipmentRequest request) {<NEW_LINE>final ILoggable loggable = Loggables.withLogger(logger, Level.DEBUG);<NEW_LINE>final <MASK><NEW_LINE>loggable.addLog("processShipmentSchedules - start updating shipment schedules");<NEW_LINE>update... | JsonCreateShipmentRequest shipmentRequest = request.getCreateShipmentRequest(); |
1,832,986 | // snippet-start:[opensearch.java2.create_domain.main]<NEW_LINE>public static void createNewDomain(OpenSearchClient searchClient, String domainName) {<NEW_LINE>try {<NEW_LINE>ClusterConfig clusterConfig = ClusterConfig.builder().dedicatedMasterEnabled(true).dedicatedMasterCount(3).dedicatedMasterType("t2.small.search")... | nodeToNodeEncryptionOptions(encryptionOptions).build(); |
378,835 | public static void rgbToHsv_F32(Planar<GrayF32> rgb, Planar<GrayF32> hsv) {<NEW_LINE>GrayF32 <MASK><NEW_LINE>GrayF32 G = rgb.getBand(1);<NEW_LINE>GrayF32 B = rgb.getBand(2);<NEW_LINE>GrayF32 H = hsv.getBand(0);<NEW_LINE>GrayF32 S = hsv.getBand(1);<NEW_LINE>GrayF32 V = hsv.getBand(2);<NEW_LINE>// CONCURRENT_BELOW BoofCo... | R = rgb.getBand(0); |
1,645,915 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see com.aptana.formatter.IScriptFormatter#format(java.lang.String, int, int, int, boolean,<NEW_LINE>* org.eclipse.jface.text.formatter.IFormattingContext, java.lang.String)<NEW_LINE>*/<NEW_LINE>public TextEdit format(String source, int offset, int length, int indentationLevel, bo... | parse(parseState).getRootNode(); |
455,536 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String providerName, String privateEndpointConnectionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new I... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
1,851,615 | public String createSearchString(File file) {<NEW_LINE>scrapedMovieFile = file;<NEW_LINE>// The general approach is search for 'tag' + '5-digit 0-padded number'.<NEW_LINE>// This gets pretty good results, usually a perfect match,<NEW_LINE>// or 2 to 5 results for clashing ids - still good for manual picking.<NEW_LINE>S... | groupOne = matcher.group(1); |
1,407,286 | Iterable<MemoryRelationship> values(final Filter<MemoryRelationship> filter) {<NEW_LINE>if (filter != null) {<NEW_LINE>if (filter instanceof MemoryLabelFilter) {<NEW_LINE>final MemoryLabelFilter<MemoryRelationship> mt = (MemoryLabelFilter<MemoryRelationship>) filter;<NEW_LINE>final Set<MemoryIdentity> cache = new Linke... | set = getCacheForType(label, false); |
1,352,218 | public Pair<Reader, FilePosition> resolve(URI uri, URI base, FilePosition uriPos) throws IOException {<NEW_LINE>if (uri == null) {<NEW_LINE>throw new NullPointerException("uri");<NEW_LINE>}<NEW_LINE>if (!uri.isAbsolute()) {<NEW_LINE>if (base == null) {<NEW_LINE>throw new IllegalArgumentException("Missing base URI to re... | FileNotFoundException(uri.toString()); |
1,804,760 | protected Model readModelWorker(Model model, String filenameOrURI, String baseURI, String syntax) {<NEW_LINE>// Doesn't call open() - we want to make the syntax guess based on the mapped URI.<NEW_LINE>String mappedURI = mapURI(filenameOrURI);<NEW_LINE>if (log.isDebugEnabled() && !mappedURI.equals(filenameOrURI))<NEW_LI... | debug(log, "Failed to locate '%s'", mappedURI); |
1,651,775 | public List<Writable> map(List<Writable> writables) {<NEW_LINE>if (writables.size() != inputSchema.numColumns()) {<NEW_LINE>throw new IllegalStateException("Cannot execute transform: input writables list length (" + writables.size() + ") does not " + "match expected number of elements (schema: " + inputSchema.numColumn... | writables.size() + n); |
496,031 | protected void intro(EntityType model, CodeWriter writer) throws IOException {<NEW_LINE>String simpleName = model.getSimpleName();<NEW_LINE>Type queryType = typeMappings.<MASK><NEW_LINE>// package<NEW_LINE>if (!queryType.getPackageName().isEmpty()) {<NEW_LINE>writer.packageDecl(queryType.getPackageName());<NEW_LINE>}<N... | getPathType(model, model, false); |
240,544 | private static List<Selection<?>> subselectionsForNormalizedField(GraphQLSchema schema, @NotNull String parentOutputType, List<ExecutableNormalizedField> executableNormalizedFields, VariableAccumulator variableAccumulator) {<NEW_LINE>ImmutableList.Builder<Selection<?>> selections = ImmutableList.builder();<NEW_LINE>// ... | )).add(field)); |
1,629,035 | public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {<NEW_LINE>_logger.debug("postHandle");<NEW_LINE>final Apps app = (Apps) WebContext.getAttribute(WebConstants.AUTHORIZE_SIGN_ON_APP);<NEW_LINE>String sessionId = (String) WebConte... | " ,appId : " + app.getId()); |
170,469 | public static void main(String[] args) {<NEW_LINE>// Parse text to separate words<NEW_LINE>String INPUT_TEXT = "Hello World! Hello All! Hi World!";<NEW_LINE>// Create Multiset<NEW_LINE>Bag bag = new TreeBag(Arrays.asList(<MASK><NEW_LINE>// Print count words<NEW_LINE>// print [1:All!,2:Hello,1:Hi,2:World!]- in natural (... | INPUT_TEXT.split(" "))); |
1,672,199 | protected Property buildOfferItemQualifierRuleTypeProperty(Property qualifiersCanBeQualifiers, Property qualifiersCanBeTargets) {<NEW_LINE>String offerItemQualifierRuleType;<NEW_LINE>boolean canBeQualifiers = qualifiersCanBeQualifiers == null ? false : Boolean.parseBoolean(qualifiersCanBeQualifiers.getValue());<NEW_LIN... | = OfferItemRestrictionRuleType.QUALIFIER.getType(); |
1,802,261 | public void service(HttpRequest request, HttpResponse response) throws Exception {<NEW_LINE>var writer = new PrintWriter(response.getWriter());<NEW_LINE>try {<NEW_LINE>DatabaseClient client = getClient();<NEW_LINE>try (ResultSet rs = client.singleUse().executeQuery(Statement.of("SELECT SingerId, AlbumId, AlbumTitle FRO... | STATUS_CODE_SERVER_ERROR, e.getMessage()); |
573,627 | private void configSecondaryVm(ConfigSecondaryVmMsg msg, NoErrorCompletion completion) {<NEW_LINE>checkStatus();<NEW_LINE>ConfigSecondaryVmCmd cmd = new ConfigSecondaryVmCmd();<NEW_LINE>cmd.setVmInstanceUuid(msg.getVmInstanceUuid());<NEW_LINE>cmd.setPrimaryVmHostIp(msg.getPrimaryVmHostIp());<NEW_LINE>cmd.setNbdServerPo... | bus.reply(msg, reply); |
115,829 | final DeleteAccountCustomizationResult executeDeleteAccountCustomization(DeleteAccountCustomizationRequest deleteAccountCustomizationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAccountCustomizationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); |
1,391,186 | private void carregarInformacoesFiltroArvoreTipoSimbolo(String codigoFonte) {<NEW_LINE>SymbolTypeFilter symbolTypeFilter = tree.getFilter().getSymbolTypeFilter();<NEW_LINE>Matcher avaliador = Pattern.compile("@FILTRO-ARVORE-TIPOS-DE-SIMBOLO[ ]*=[ ]*([ ]*(variavel|vetor|matriz|funcao)[ ]*)(,[ ]*(variavel|vetor|matriz|fu... | , "").split(","); |
1,252,102 | public void drawFakeItemStack(int x, int y, @Nonnull ItemStack stack) {<NEW_LINE>FontRenderer font = stack.getItem().getFontRenderer(stack);<NEW_LINE>if (font == null) {<NEW_LINE>font = fontRenderer;<NEW_LINE>}<NEW_LINE>boolean smallText <MASK><NEW_LINE>String str = null;<NEW_LINE>if (stack.getCount() >= 1000) {<NEW_LI... | = InvpanelConfig.inventoryPanelScaleText.get(); |
1,795,195 | private static LocalPermissioningConfiguration loadAccountPermissioning(final LocalPermissioningConfiguration permissioningConfiguration, final boolean localConfigAccountPermissioningEnabled, final String accountPermissioningConfigFilepath) throws Exception {<NEW_LINE>if (localConfigAccountPermissioningEnabled) {<NEW_L... | throw new IllegalArgumentException("Invalid account " + s); |
972,765 | private void createNewPLV(final I_M_PriceList_Version oldCustomerPLV, final I_M_PriceList_Version newBasePLV, final UserId userId) {<NEW_LINE>final I_M_PriceList_Version newCustomerPLV = copy().setSkipCalculatedColumns(true).setFrom(oldCustomerPLV<MASK><NEW_LINE>newCustomerPLV.setValidFrom(newBasePLV.getValidFrom());<N... | ).copyToNew(I_M_PriceList_Version.class); |
271,551 | private synchronized Map<PathObject, Geometry> calculateVoronoiFaces() {<NEW_LINE>if (pathObjects.size() < coordinateMap.size()) {<NEW_LINE>return calculateVoronoiFacesByLocations();<NEW_LINE>}<NEW_LINE>logger.debug("Calculating Voronoi faces for {} objects", getPathObjects().size());<NEW_LINE>@SuppressWarnings("unchec... | = new ArrayList<Geometry>(); |
104,186 | protected void addConstraint(MetaClass metaClass, AccessConstraint constraint) {<NEW_LINE>List<AccessConstraint> constraints = builderConstraints.computeIfAbsent(metaClass.getName(), k <MASK><NEW_LINE>if (constraint.isCustom()) {<NEW_LINE>constraints.add(constraint);<NEW_LINE>} else {<NEW_LINE>AccessConstraint existing... | -> new ArrayList<>()); |
1,476,883 | private PJvmGc convertJvmGc(JvmGcMetricSnapshot jvmGcMetricSnapshot) {<NEW_LINE>final PJvmGc.Builder jvmGcBuilder = PJvmGc.newBuilder();<NEW_LINE>jvmGcBuilder.setJvmMemoryHeapMax(jvmGcMetricSnapshot.getJvmMemoryHeapMax());<NEW_LINE>jvmGcBuilder.setJvmMemoryHeapUsed(jvmGcMetricSnapshot.getJvmMemoryHeapUsed());<NEW_LINE>... | setJvmPoolMetaspaceUsed(jvmGcDetailedMetricSnapshot.getJvmPoolMetaspaceUsed()); |
8,775 | public AggregationAuthorization unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AggregationAuthorization aggregationAuthorization = new AggregationAuthorization();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | class).unmarshall(context)); |
1,827,121 | public static String calcUIMode() {<NEW_LINE>// Can't use Constants.isSafeMode - it's not set by the time we<NEW_LINE>// get here.<NEW_LINE>if ("1".equals(System.getProperty(SystemProperties.SYSPROP_SAFEMODE))) {<NEW_LINE>// If we are in safe-mode, prefer the classic UI - less likely to cause problems.<NEW_LINE>return ... | COConfigurationManager.setParameter("ui", "az3"); |
1,141,591 | public void insert(InsertRowsOfOneDevicePlan insertRowsOfOneDevicePlan) throws WriteProcessException, TriggerExecutionException {<NEW_LINE>writeLock("InsertRowsOfOneDevice");<NEW_LINE>try {<NEW_LINE>boolean isSequence = false;<NEW_LINE>InsertRowPlan[] rowPlans = insertRowsOfOneDevicePlan.getRowPlans();<NEW_LINE>for (in... | fire(TriggerEvent.AFTER_INSERT, plan); |
866,280 | public static boolean verifyIOIOFileBlock(IOIO ioio, IcspMaster icsp, IOIOFileReader file) throws ConnectionLostException, InterruptedException, FormatException {<NEW_LINE>int[<MASK><NEW_LINE>int[] actualBlock = new int[64];<NEW_LINE>parseBlock(file.currentBlock(), fileBlock);<NEW_LINE>Scripts.readBlock(ioio, icsp, fil... | ] fileBlock = new int[64]; |
51,488 | public Docket api() {<NEW_LINE>final List<ResponseMessage> getMessages <MASK><NEW_LINE>getMessages.add(new ResponseMessageBuilder().code(500).message("500 message").responseModel(new ModelRef("Error")).build());<NEW_LINE>getMessages.add(new ResponseMessageBuilder().code(403).message("Forbidden").build());<NEW_LINE>getM... | = new ArrayList<ResponseMessage>(); |
103,632 | private void onEndDialog(String path, ArrayList<HybridFileParcelable> filesToCopy, ArrayList<HybridFileParcelable> conflictingFiles) {<NEW_LINE>if (conflictingFiles != null && counter != conflictingFiles.size() && conflictingFiles.size() > 0) {<NEW_LINE>if (dialogState == UNKNOWN) {<NEW_LINE>showDialog(path, filesToCop... | doNotReplaceFiles(path, filesToCopy, conflictingFiles); |
1,517,158 | public void read(JmeImporter im) throws IOException {<NEW_LINE>InputCapsule ic = im.getCapsule(this);<NEW_LINE>name = ic.readString("name", null);<NEW_LINE>shaderNames.put(Shader.ShaderType.Vertex, ic.readString("vertName", null));<NEW_LINE>shaderNames.put(Shader.ShaderType.Fragment, ic.readString("fragName", null));<N... | ShadowMode.class, ShadowMode.Disable); |
1,670,319 | public ListQueuesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ListQueuesResult listQueuesResult = new ListQueuesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth... | XMLEvent xmlEvent = context.nextEvent(); |
893,540 | public void onClick(View v) {<NEW_LINE>final Context context = v.getContext();<NEW_LINE>if (v == developer) {<NEW_LINE>// open dev settings<NEW_LINE>Intent devIntent = new Intent(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS);<NEW_LINE>devIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);<NEW_LINE>ResolveInfo resolveIn... | + context.getPackageName())); |
36,540 | private void loadNode1211() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionsDiagnosticsSummaryType_ClientName_Placeholder_SessionDiagnostics_LocaleIds, new QualifiedName(0, "LocaleIds"), new LocalizedText("en", "LocaleIds"), LocalizedText.NULL_VALUE, UInteger.va... | .expanded(), true)); |
942,854 | public void readSpanValue(Buffer buffer, SpanBo span, SpanDecodingContext decodingContext) {<NEW_LINE>final byte version = buffer.readByte();<NEW_LINE>span.setVersion(version);<NEW_LINE>final SpanBitFiled bitFiled = new SpanBitFiled(buffer.readByte());<NEW_LINE>final short serviceType = buffer.readShort();<NEW_LINE>spa... | setEndPoint(buffer.readPrefixedString()); |
357,365 | private static void addResourceEntry(int hash, IntObjectHashMap map, Loader loader) {<NEW_LINE>Object <MASK><NEW_LINE>if (o == null)<NEW_LINE>map.put(hash, loader);<NEW_LINE>else if (o instanceof Loader) {<NEW_LINE>if (ClassPath.ourLogTiming)<NEW_LINE>assert loader != o;<NEW_LINE>map.put(hash, new Loader[] { (Loader) o... | o = map.get(hash); |
1,342,448 | protected void notifyListeners() {<NEW_LINE>// TODO could these be done earlier (or just once?)<NEW_LINE>JMeterContext threadContext = getThreadContext();<NEW_LINE>JMeterVariables threadVars = threadContext.getVariables();<NEW_LINE>SamplePackage pack = (SamplePackage) threadVars.getObject(JMeterThread.PACKAGE_OBJECT);<... | getName(), threadVars, true); |
747,892 | public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {<NEW_LINE>ServerHttpRequest request = exchange.getRequest();<NEW_LINE>URI requestUri = request.getURI();<NEW_LINE><MASK><NEW_LINE>// Record only http requests (including https)<NEW_LINE>if ((!"http".equals(scheme) && !"https".equals(scheme)... | String scheme = requestUri.getScheme(); |
1,743,396 | public static double[] deserializeDouble(ByteBuf buf) {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>int length = buf.readInt();<NEW_LINE>int numBits = buf.readInt();<NEW_LINE>double maxAbs = buf.readDouble();<NEW_LINE>int maxPoint = (int) Math.pow(2, numBits - 1) - 1;<NEW_LINE>int itemPerByte = 8 / n... | .currentTimeMillis() - startTime)); |
962,214 | private void initActions(Context context) {<NEW_LINE>playPauseAction = new PlaybackControlsRow.PlayPauseAction(context);<NEW_LINE>rewindAction = new PlaybackControlsRow.RewindAction(context);<NEW_LINE>fastForwardAction = new PlaybackControlsRow.FastForwardAction(context);<NEW_LINE>skipNextAction = new PlaybackControlsR... | PlaybackSpeedAction(context, this, playbackController); |
1,642,427 | public String sendCmd(final String cmd) {<NEW_LINE>try (final Socket clientSocket = new Socket(hostName, port);<NEW_LINE>final BufferedReader in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream(), ICmd.SICS_CMD_CHARSET));<NEW_LINE>final OutputStream out = clientSocket.getOutputStream()) {<NEW_LINE... | e.getLocalizedMessage(), e); |
228,336 | public static int runExternalAndWait(Ruby runtime, IRubyObject[] rawArgs, Map mergeEnv) {<NEW_LINE>OutputStream output = runtime.getOutputStream();<NEW_LINE><MASK><NEW_LINE>InputStream input = runtime.getInputStream();<NEW_LINE>File pwd = new File(runtime.getCurrentDirectory());<NEW_LINE>LaunchConfig cfg = new LaunchCo... | OutputStream error = runtime.getErrorStream(); |
1,764,286 | protected void readDiversifications() {<NEW_LINE>if (suspendDivs()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>storage_mon.enter();<NEW_LINE>Map map = readMapFromFile("diverse");<NEW_LINE>List keys = (List) map.get("local");<NEW_LINE>if (keys != null) {<NEW_LINE>long now = SystemTime.getCurrentTime();<NEW_LI... | ) divs.get(i)); |
1,339,228 | private static String LPS(String input) {<NEW_LINE>if (input == null || input.length() == 0) {<NEW_LINE>return input;<NEW_LINE>}<NEW_LINE>boolean[][] arr = new boolean[input.length()][input.length()];<NEW_LINE><MASK><NEW_LINE>for (int g = 0; g < input.length(); g++) {<NEW_LINE>for (int i = 0, j = g; j < input.length();... | int start = 0, end = 0; |
940,707 | public void onActivityResult(final JavaFileStorage.FileStorageSetupActivity setupAct, int requestCode, int resultCode, Intent data) {<NEW_LINE>logDebug("ActivityResult: " + requestCode + "/" + resultCode);<NEW_LINE>switch(requestCode) {<NEW_LINE>case REQUEST_SIGN_IN:<NEW_LINE>Activity activity = (Activity) setupAct;<NE... | setResult(Activity.RESULT_CANCELED, data); |
1,094,869 | // emulate code that read invalid memory<NEW_LINE>static void test_i386_invalid_mem_read() {<NEW_LINE>// ECX register<NEW_LINE>Long r_ecx = 0x1234L;<NEW_LINE>// EDX register<NEW_LINE>Long r_edx = 0x7890L;<NEW_LINE>System.out.print("===================================\n");<NEW_LINE>System.out.print("Emulate i386 code th... | X86_CODE32_MEM_READ.length, 0, 0); |
1,628,818 | public void marshall(Filter filter, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (filter == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(filter.getAction(), ACTION_BINDING);<NEW_LINE>protocolMarshaller.m... | filter.getCriteria(), CRITERIA_BINDING); |
1,812,158 | private static long handleWeeklyRepeatAfterComplete(RRule rrule, Date original, boolean hasDueTime) {<NEW_LINE>List<WeekdayNum> byDay = rrule.getByDay();<NEW_LINE>long newDate = original.getTime();<NEW_LINE>newDate += DateUtilities.ONE_WEEK * (rrule.getInterval() - 1);<NEW_LINE>Calendar date = Calendar.getInstance();<N... | ) != next.wday.javaDayNum); |
624,790 | private JPanel createTechnologyExtractorTasksPanel() {<NEW_LINE>JPanel jsonPathActionPanel = new JPanel();<NEW_LINE>jsonPathActionPanel.setLayout(new BoxLayout<MASK><NEW_LINE>Border margin = new EmptyBorder(5, 5, 0, 5);<NEW_LINE>jsonPathActionPanel.setBorder(margin);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>expressionField = n... | (jsonPathActionPanel, BoxLayout.X_AXIS)); |
297,821 | public void addMetadata(QuickTimeDirectory directory) {<NEW_LINE>// Get creation/modification times<NEW_LINE>directory.setDate(TAG_CREATION_TIME, DateUtil.get1Jan1904EpochDate(creationTime));<NEW_LINE>directory.setDate(TAG_MODIFICATION_TIME, DateUtil.get1Jan1904EpochDate(modificationTime));<NEW_LINE>// Get duration and... | setDouble(TAG_PREFERRED_RATE, preferredRateInteger + preferredRateFraction); |
1,489,871 | public AccountCreationResponse completeActivation(String code) {<NEW_LINE>ExpiringCode expiringCode = codeStore.retrieveCode(code, identityZoneManager.getCurrentIdentityZoneId());<NEW_LINE>if ((null == expiringCode) || ((null != expiringCode.getIntent()) && !REGISTRATION.name().equals(expiringCode.getIntent()))) {<NEW_... | ), identityZoneManager.getCurrentIdentityZoneId()); |
668,235 | /* Determines offset of node's label from left edge of the table.<NEW_LINE>*/<NEW_LINE>private void determineOffset(Object value, boolean isSelected, int row) {<NEW_LINE>JTree t = getTree();<NEW_LINE>boolean rv = t.isRootVisible();<NEW_LINE>int offsetRow = row;<NEW_LINE>if (!rv && (row > 0)) {<NEW_LINE>offsetRow--;<NEW... | (node), offsetRow, false); |
1,706,346 | public void alterTableAddColumn(DdlWrite writer, String tableName, Column column, boolean onHistoryTable, String defaultValue) {<NEW_LINE>String convertedType = <MASK><NEW_LINE>DdlBuffer buffer = alterTable(writer, tableName).append(addColumn, column.getName());<NEW_LINE>buffer.append(convertedType);<NEW_LINE>// Add de... | convert(column.getType()); |
958,599 | public String reportAllMicrophones() {<NEW_LINE>StringBuffer report = new StringBuffer();<NEW_LINE>report.append("\n############################");<NEW_LINE>report.append("\nMicrophone Report:\n");<NEW_LINE>if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.P) {<NEW_LINE>try {<NEW_LINE>List<Micropho... | > micList = mAudioManager.getMicrophones(); |
304,240 | public // properties are read-only<NEW_LINE>void testJMSProducerSendMessage_NotWriteable_B_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContextQCFBindings = qcfBindings.createContext();<NEW_LINE>emptyQueue(qcfBindings, queue1);<NEW_LINE>StreamMessage msgOut ... | StreamMessage) jmsConsumer.receive(30000); |
287,971 | static String buildMessage(BeanResolutionContext resolutionContext, String message, boolean circular) {<NEW_LINE>BeanResolutionContext.Segment<?> currentSegment = resolutionContext.getPath().peek();<NEW_LINE>if (currentSegment instanceof AbstractBeanResolutionContext.ConstructorSegment) {<NEW_LINE>return buildMessage(r... | getArgument(), message, circular); |
858,467 | public static void printMap(int loglevel, Map m) {<NEW_LINE>if (debug) {<NEW_LINE>String timestr = "";<NEW_LINE>String[] data = getTraceElements();<NEW_LINE>if (debugging(data[0], loglevel)) {<NEW_LINE>if (timing) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>timestr = "{" + (now - last) + "} ";<NEW_LINE>l... | ], timestr, "Map:", lines); |
21,327 | public void marshall(HlsEncryptionSettings hlsEncryptionSettings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (hlsEncryptionSettings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(hlsEncryptionSettings... | hlsEncryptionSettings.getEncryptionMethod(), ENCRYPTIONMETHOD_BINDING); |
623,267 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String factoryName, String datasetName, 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... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
674,889 | public GetDetectorModelAnalysisResultsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetDetectorModelAnalysisResultsResult getDetectorModelAnalysisResultsResult = new GetDetectorModelAnalysisResultsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentP... | JsonToken token = context.getCurrentToken(); |
1,317,933 | /*<NEW_LINE>* A javascript redirect is preferred over a 302 because it will preserve web fragements in the URL,<NEW_LINE>* i.e. foo.com/something#fragment.<NEW_LINE>*/<NEW_LINE>private void doClientSideRedirect(HttpServletResponse response, String loginURL, String state, String domain) throws IOException {<NEW_LINE>res... | response.setDateHeader("Expires", 0); |
1,058,729 | protected void prepare() {<NEW_LINE>for (ProcessInfoParameter para : getParameter()) {<NEW_LINE>String name = para.getParameterName();<NEW_LINE>if (para.getParameter() == null)<NEW_LINE>;<NEW_LINE>else if (name.equals(X_M_Product.COLUMNNAME_M_Product_ID)) {<NEW_LINE>p_M_Product_ID = para.getParameterAsInt();<NEW_LINE>}... | (BigDecimal) para.getParameter(); |
594,191 | public static ExchangeMetaData adaptToExchangeMetaData(ExchangeMetaData exchangeMetaData, List<CryptowatchAssetPair> assetPairs, List<CryptowatchAsset> assets) {<NEW_LINE>Map<CurrencyPair, CurrencyPairMetaData> pairs = new HashMap<>();<NEW_LINE>Map<Currency, CurrencyMetaData> currencies = new HashMap<>();<NEW_LINE>if (... | , newValue) -> newValue))); |
34,842 | public static Map<PartitionKey, LongIndicesView> split(long[] indices, List<PartitionKey> parts, boolean sorted) {<NEW_LINE>if (!sorted) {<NEW_LINE>Arrays.sort(indices);<NEW_LINE>}<NEW_LINE>Map<PartitionKey, LongIndicesView> <MASK><NEW_LINE>int featureIndex = 0;<NEW_LINE>int partIndex = 0;<NEW_LINE>// For each partitio... | ret = new HashMap<>(); |
152,380 | private static void renderBinary(GrayU8 binaryImage, boolean invert, DataBufferInt buffer) {<NEW_LINE>int rasterIndex = 0;<NEW_LINE>int[] data = buffer.getData();<NEW_LINE>int w = binaryImage.getWidth();<NEW_LINE>int h = binaryImage.getHeight();<NEW_LINE>if (invert) {<NEW_LINE>for (int y = 0; y < h; y++) {<NEW_LINE>int... | ++] != 0 ? 0 : 0xFFFFFFFF; |
934,993 | protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {<NEW_LINE>if (in.readableBytes() > 4) {<NEW_LINE>int packetStartIdx = in.readerIndex();<NEW_LINE>int payloadLength = in.readUnsignedMediumLE();<NEW_LINE>int sequenceId = in.readUnsignedByte();<NEW_LINE>if (payloadLength >= ... | (payloadLength), payloadLength, sequenceId); |
788,232 | private // /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>void addBindings() {<NEW_LINE>amountTextField.textProperty().bindBidirectional(model.amount);<NEW_LINE>volumeTextField.textProperty(<MASK><NEW_LINE>totalToPayTextField.textProperty().bind(model.totalToPay);<NEW... | ).bindBidirectional(model.volume); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.