idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
714,668 | private static MethodSpec varArgBuilder(SpecModel specModel, PropModel prop, int requiredIndex, AnnotationSpec... extraAnnotations) {<NEW_LINE>ParameterizedTypeName parameterizedTypeName = (ParameterizedTypeName) prop.getTypeName();<NEW_LINE>TypeName singleParameterType = parameterizedTypeName.typeArguments.get(0);<NEW... | ), varArgName).build(); |
233,402 | public void showProgress(VirtualFileSyncPair item) {<NEW_LINE>final ISyncResource resource = fRoot.find(item);<NEW_LINE>if (resource == null || resource.getSyncState() == SyncState.ClientItemDeleted || resource.getSyncState() == SyncState.ServerItemDeleted) {<NEW_LINE>// resource no longer exists<NEW_LINE>return;<NEW_L... | bounds = treeItem.getBounds(0); |
1,290,181 | MessagePostProcessor[] appendTracingMessagePostProcessor(Object obj, Field field) {<NEW_LINE>// Skip out if we can't read the field for the existing post processors<NEW_LINE>if (field == null)<NEW_LINE>return null;<NEW_LINE>MessagePostProcessor[] processors;<NEW_LINE>try {<NEW_LINE>// don't use "field.get(obj) instance... | >) field.get(obj); |
1,811,670 | public static void checkTagSharing(boolean start_of_day) {<NEW_LINE>UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();<NEW_LINE>if (uiFunctions != null) {<NEW_LINE>TagManager tm = TagManagerFactory.getTagManager();<NEW_LINE>if (start_of_day) {<NEW_LINE>if (COConfigurationManager.getBooleanParameter("tag.sha... | = prompter.waitUntilClosed() == 0; |
1,658,014 | public void write(org.apache.thrift.protocol.TProtocol prot, getTabletStats_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (struct.... | struct.sec.write(oprot); |
1,103,914 | public static void main(String[] args) throws IOException {<NEW_LINE>checkArgument(args.length == 2, "Expected arguments: <input_dir> <output_dir>");<NEW_LINE>Path inputPath = Paths.get(args[0]);<NEW_LINE>Path outputPath = Paths.get(args[1]);<NEW_LINE>// Bazel: resolve relative to current working directory. No-op if pa... | preprocess(inputPath, outputPath, settings); |
995,759 | Pair<ListMastersResponse, Object> deserialize(CallResponse callResponse, String masterUUID) throws Exception {<NEW_LINE>final MasterClusterOuterClass.ListMastersResponsePB.Builder respBuilder = MasterClusterOuterClass.ListMastersResponsePB.newBuilder();<NEW_LINE>readProtobuf(callResponse.getPBMessage(), respBuilder);<N... | boolean hasErr = respBuilder.hasError(); |
414,587 | final DBCluster executeFailoverDBCluster(FailoverDBClusterRequest failoverDBClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(failoverDBClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field... | endClientExecution(awsRequestMetrics, request, response); |
1,238,274 | private AsmMetric findMetric(String streamId, String name, MetricType metricType, boolean mergeTopology) {<NEW_LINE>// String key = new StringBuilder(30).append(taskId).append(streamId).append(name).toString();<NEW_LINE>String key = streamId + name;<NEW_LINE>AsmMetric existingMetric = metricCache.get(key);<NEW_LINE>if ... | existingMetric = JStormMetrics.getStreamMetric(fullName); |
1,608,876 | public static ListFlowJobResponse unmarshall(ListFlowJobResponse listFlowJobResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFlowJobResponse.setRequestId(_ctx.stringValue("ListFlowJobResponse.RequestId"));<NEW_LINE>listFlowJobResponse.setPageNumber(_ctx.integerValue("ListFlowJobResponse.PageNumber"));<NEW_LINE>listFl... | = new ArrayList<Resource>(); |
179,322 | public UpdateAppInstanceResult updateAppInstance(UpdateAppInstanceRequest updateAppInstanceRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAppInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAws... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,738,458 | public void marshall(UpdateClusterRequest updateClusterRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateClusterRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateClusterRequest.get... | updateClusterRequest.getParameterGroupName(), PARAMETERGROUPNAME_BINDING); |
1,161,155 | public Observable<VectorSchemaRoot> execute(RootContext rootContext) {<NEW_LINE>OutputLinq4jPhysicalPlan leftObjectPlan = OutputLinq4jPhysicalPlan.create(left);<NEW_LINE>Observable<Object[]> leftObservable = leftObjectPlan.executeToObject(rootContext);<NEW_LINE>@NonNull<NEW_LINE>Iterable<Record> leftObjects = MycatRxJa... | inner = Linq4j.asEnumerable(rightObjects); |
1,071,768 | public List<ExternalDataObject> searchExternalDataObjects(String query, int start, int limit) {<NEW_LINE>if (limit > 100) {<NEW_LINE>throw new IllegalArgumentException("The maximum number of results to retrieve cannot exceed 100.");<NEW_LINE>}<NEW_LINE>if (start > MAX_INDEX) {<NEW_LINE>throw new IllegalArgumentExceptio... | + "&start=" + start + "&rows=" + limit; |
907,280 | public static void main(String[] args) throws ParseException {<NEW_LINE>String date;<NEW_LINE>long time;<NEW_LINE>SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd HH:mm:ss.S");<NEW_LINE>long cpu = SysJMX.getCurrentThreadCPUnano();<NEW_LINE>for (int i = 0; i < 10000; i++) {<NEW_LINE>date = sdf.format(new Date(Syste... | System.currentTimeMillis() + i); |
1,305,656 | public static boolean performLikeActionLocal(final ReaderPost post, final boolean isAskingToLike, final long wpComUserId) {<NEW_LINE>// do nothing if post's like state is same as passed<NEW_LINE>boolean isCurrentlyLiked = ReaderPostTable.isPostLikedByCurrentUser(post);<NEW_LINE>if (isCurrentlyLiked == isAskingToLike) {... | w(T.READER, "post like unchanged"); |
260,790 | // enable timeout<NEW_LINE>@SuppressWarnings("java:S2274")<NEW_LINE>private ByteBuffer fetchResultAsync(long[] timestamps, int length) throws IOException {<NEW_LINE>// convert long[] to List<Long>, which is used for thrift<NEW_LINE>List<Long> timestampList = new ArrayList<>(length);<NEW_LINE>for (int i = 0; i < length;... | .currentThread().interrupt(); |
575,472 | private static ObjectNode fromConfig(ConfigObject config) {<NEW_LINE>ObjectNode.Builder builder = ObjectNode.builder();<NEW_LINE>config.forEach((unescapedKey, value) -> {<NEW_LINE>String key = io.helidon.config.Config.Key.escapeName(unescapedKey);<NEW_LINE>if (value instanceof ConfigList) {<NEW_LINE>builder.addList(key... | builder.addValue(key, ""); |
839,109 | private List<NameValueCountPair> listCompletedPair(Business business, Predicate p) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(ReadCompleted.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Boolean> cq = cb.createQuery(Boolean.class);<NEW_LIN... | o.setValue(Boolean.FALSE); |
618,490 | public void initScene() {<NEW_LINE>DirectionalLight light = new DirectionalLight();<NEW_LINE>light.setLookAt(0, 0, -1);<NEW_LINE>light.enableLookAt();<NEW_LINE>getCurrentScene().addLight(light);<NEW_LINE>//<NEW_LINE>// -- Create a material for all cubes<NEW_LINE>//<NEW_LINE>Material material = new Material();<NEW_LINE>... | getCurrentScene().registerAnimation(anim); |
997,579 | public long payTax(long duration, long limit) {<NEW_LINE>long storageTax = calculateTax(duration, limit);<NEW_LINE>long tax = exchange(storageTax, false);<NEW_LINE>logger.info("tax: " + tax);<NEW_LINE>long newTotalTax = dynamicPropertiesStore.getTotalStorageTax() + tax;<NEW_LINE>long newTotalPool = dynamicPropertiesSto... | "reserved: " + dynamicPropertiesStore.getTotalStorageReserved()); |
1,403,940 | public static Map<String, Port> combinePorts(List<KubernetesPortBuildItem> ports, PlatformConfiguration config) {<NEW_LINE>Map<String, Port> allPorts = new HashMap<>();<NEW_LINE>allPorts.putAll(verifyPorts(ports).entrySet().stream().map(e -> new PortBuilder().withName(e.getKey()).withContainerPort(e.getValue()).build()... | getPath()).build(); |
1,316,257 | private Object variables(TokenStream ts, boolean inForInit) throws IOException, JavaScriptException {<NEW_LINE>Object pn = nf.createVariables(ts.getLineno());<NEW_LINE>boolean first = true;<NEW_LINE>sourceAdd((char) ts.VAR);<NEW_LINE>for (; ; ) {<NEW_LINE>Object name;<NEW_LINE>Object init;<NEW_LINE>mustMatchToken(ts, t... | sourceAddString(ts.NAME, s); |
97,732 | public void run() {<NEW_LINE>JThemePreferenceStore store = getStore();<NEW_LINE>IJTPresetManager presetManager = JThemesCore.getDefault().getPresetManager();<NEW_LINE>Properties properties = PropertiesUtil.merge(presetManager.getDefaultPreset().getProperties(), preset.getProperties());<NEW_LINE>for (Object keyObj : pro... | LAST_CHOOSED_PRESET, preset.getId()); |
1,535,307 | protected static String calculateCodeCommitPassword(URIish uri, String awsSecretKey) {<NEW_LINE>String[] split = uri.getHost().split("\\.");<NEW_LINE>if (split.length < 4) {<NEW_LINE>throw new CredentialException("Cannot detect AWS region from URI", null);<NEW_LINE>}<NEW_LINE>String region = split[1];<NEW_LINE>Date now... | region, stringToSign.toString()); |
711,591 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player opponent = game.getPlayer(getTargetPointer().getFirst(game, source));<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null && opponent != null) {<NEW_LINE>for (Permanent permanent : game.getBattlefield().... | FilterCard("card named \"" + name + '"'); |
522,392 | public boolean accept(WorkflowContext context) {<NEW_LINE>ProcessForm processForm = context.getProcessForm();<NEW_LINE><MASK><NEW_LINE>if (processForm instanceof GroupResourceProcessForm) {<NEW_LINE>GroupResourceProcessForm groupResourceForm = (GroupResourceProcessForm) processForm;<NEW_LINE>InlongGroupInfo groupInfo =... | String groupId = processForm.getInlongGroupId(); |
636,410 | private void registerHotkeys() {<NEW_LINE>final ActionMap actionMap = ((JTextField) getEditor().getEditorComponent()).getActionMap();<NEW_LINE>final InputMap imap = ((JTextField) getEditor().getEditorComponent()).getInputMap();<NEW_LINE>setActionMap(actionMap);<NEW_LINE>setInputMap(JComponent.WHEN_FOCUSED, imap);<NEW_L... | GRAPH_SEARCH_PREVIOUS_KEY.getKeyStroke(), "PREVIOUS"); |
1,823,167 | protected void doExecute(Task task, Request request, ActionListener<Response> listener) {<NEW_LINE>if (MachineLearningField.ML_API_FEATURE.check(licenseState) == false) {<NEW_LINE>listener.onFailure(LicenseUtils.newComplianceException(XPackField.MACHINE_LEARNING));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (XPackSettings... | request.getConfig(), listener); |
872,808 | public RefactoringStatus checkInitialConditions(IProgressMonitor monitor) throws CoreException {<NEW_LINE>try {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>monitor.beginTask("", 5);<NEW_LINE>RefactoringStatus result = Checks.checkIfCuBroken(fMethod);<NEW_LINE>if (result.hasFatalError()) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LI... | result.merge(createExceptionInfoList()); |
582,224 | public void createMenuItems(final Bundle savedInstanceState) {<NEW_LINE>Bundle args = getArguments();<NEW_LINE>if (args != null) {<NEW_LINE>pointType = PointType.valueOf(args.getString(POINT_TYPE_KEY));<NEW_LINE>}<NEW_LINE>if (savedInstanceState != null && savedInstanceState.getBoolean(IS_SORTED)) {<NEW_LINE>sortByDist... | ] title = new BottomSheetItemTitleWithDescrAndButton[1]; |
1,563,997 | final UpdateTestGridProjectResult executeUpdateTestGridProject(UpdateTestGridProjectRequest updateTestGridProjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateTestGridProjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
540,390 | // SIB0137.comms.3 start<NEW_LINE>private void processDestinationListenerCallback(CommsByteBuffer buffer, Conversation conversation) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "processDestinationListenerCallback", new Object[] { buffer, conversation });<NE... | short destinationListenerId = buffer.getShort(); |
1,058,927 | public static Collection<WasmCase> collectFileCases(String type, String resource) throws IOException {<NEW_LINE>Collection<WasmCase> collectedCases = new ArrayList<>();<NEW_LINE>if (resource == null) {<NEW_LINE>return collectedCases;<NEW_LINE>}<NEW_LINE>// Open the wasm_test_index file of the bundle. The wasm_test_inde... | BufferedReader(new InputStreamReader(index)); |
1,377,709 | public <R1, R2, R3, R4> Kleisli<W, T, R4> forEach4(Function<? super R, Function<? super T, ? extends Higher<W, ? extends R1>>> value2, BiFunction<? super R, ? super R1, Function<? super T, ? extends Higher<W, ? extends R2>>> value3, Function3<? super R, ? super R1, ? super R2, Function<? super T, ? extends Higher<W, ? ... | .apply(in, ina)); |
195,605 | public static void outputDetailMetricsFile(final VariantContext.Type variantType, final MetricsFile<GenotypeConcordanceDetailMetrics, ?> genotypeConcordanceDetailMetricsFile, final GenotypeConcordanceCounts counter, final String truthSampleName, final String callSampleName, final boolean missingSitesHomRef, final boole... | final GenotypeConcordanceSchemeFactory schemeFactory = new GenotypeConcordanceSchemeFactory(); |
1,702,440 | public Void process(ContainerRequestContext requestContext, ContainerResponseContext responseContext) {<NEW_LINE>int responseCode = responseContext.getStatus();<NEW_LINE>String method = requestContext.getMethod();<NEW_LINE>if (responseContext.getEntity() != null) {<NEW_LINE>String path = requestContext.getUriInfo().get... | method, e.getMessage()); |
625,590 | protected boolean validateRecaptcha(ValidationContext context, boolean success, String captcha, String secret) {<NEW_LINE>CloseableHttpClient httpClient = context.getSession().getProvider(HttpClientProvider.class).getHttpClient();<NEW_LINE>HttpPost post = new HttpPost("https://www." + getRecaptchaDomain(context.getAuth... | val = json.get("success"); |
1,616,949 | public CopyCommand unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CopyCommand copyCommand = new CopyCommand();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if ... | String currentParentElement = context.getCurrentParentElement(); |
752,389 | public static EnableOrderResponse unmarshall(EnableOrderResponse enableOrderResponse, UnmarshallerContext _ctx) {<NEW_LINE>enableOrderResponse.setRequestId(_ctx.stringValue("EnableOrderResponse.RequestId"));<NEW_LINE>enableOrderResponse.setCode(_ctx.stringValue("EnableOrderResponse.Code"));<NEW_LINE>enableOrderResponse... | (_ctx.stringValue("EnableOrderResponse.Message")); |
599,616 | private void createNFAInitialStates() {<NEW_LINE>if (nfaAnchoredInitialStates != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>hardPrefixNodes = StateSet.create(this);<NEW_LINE><MASK><NEW_LINE>int nextID = 1;<NEW_LINE>MatchFound mf = new MatchFound();<NEW_LINE>initNodeId(mf, nextID++);<NEW_LINE>mf.setNext(getEntryAfterP... | nfaAnchoredInitialStates = StateSet.create(this); |
1,567,524 | public void vcvtpd2udq(AsmRegisterXMM dst, AsmMemoryOperand src) {<NEW_LINE>int code;<NEW_LINE>if (src.isBroadcast()) {<NEW_LINE>code = Code.EVEX_VCVTPD2UDQ_XMM_K1Z_YMMM256B64;<NEW_LINE>} else if (src.size == MemoryOperandSize.YWORD) {<NEW_LINE>code = Code.EVEX_VCVTPD2UDQ_XMM_K1Z_YMMM256B64;<NEW_LINE>} else if (src.siz... | dst.flags | src.flags); |
1,043,925 | public static Map createMap(CairoConfiguration configuration, @Transient @NotNull ColumnTypes keyTypes, @Transient @NotNull ColumnTypes valueTypes) {<NEW_LINE><MASK><NEW_LINE>if (Chars.equalsLowerCaseAscii(mapType, "fast")) {<NEW_LINE>return new FastMap(configuration.getSqlMapPageSize(), keyTypes, valueTypes, configura... | CharSequence mapType = configuration.getDefaultMapType(); |
1,071,461 | public app.freerouting.geometry.planar.Shape transform_to_board(CoordinateTransform p_coordinate_transform) {<NEW_LINE>FloatPoint[] corner_arr = new FloatPoint[this.coordinate_arr.length / 2];<NEW_LINE>double[] curr_point = new double[2];<NEW_LINE>for (int i = 0; i < corner_arr.length; ++i) {<NEW_LINE>curr_point[0] = t... | corner_arr[i].round(); |
1,353,677 | protected Set<String> hydrate(Map<String, Object> attributesMap, boolean fireAfterLoad) {<NEW_LINE>Set<String> <MASK><NEW_LINE>Set<String> attributeNames = metaModelLocal.getAttributeNames();<NEW_LINE>for (Map.Entry<String, Object> entry : attributesMap.entrySet()) {<NEW_LINE>if (attributeNames.contains(entry.getKey())... | changedAttributeNames = new HashSet<>(); |
966,631 | public void marshall(CreateEndpointGroupRequest createEndpointGroupRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createEndpointGroupRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(create... | e.getMessage(), e); |
252,631 | public void registerMap() {<NEW_LINE>// Entity ID<NEW_LINE>map(Type.INT);<NEW_LINE>// Gamemode<NEW_LINE>map(Type.UNSIGNED_BYTE);<NEW_LINE>handler(wrapper -> {<NEW_LINE>// Previous gamemode, set to none<NEW_LINE>wrapper.write(Type.<MASK><NEW_LINE>// World list - only used for command completion<NEW_LINE>wrapper.write(Ty... | BYTE, (byte) -1); |
1,725,739 | public LockEntity postLocksPath(String path, LocksPathBody body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'path' is set<NEW_LINE>if (path == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'path' when calling postLocksPath");<N... | String[] localVarAccepts = { "application/json" }; |
362,601 | public static void vertical7(Kernel1D_S32 kernel, GrayU8 src, GrayI16 dst) {<NEW_LINE>final byte[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.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.data[3]... | .startIndex + y * dst.stride; |
1,581,043 | public static GetWorkflowInstanceResponse unmarshall(GetWorkflowInstanceResponse getWorkflowInstanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>getWorkflowInstanceResponse.setRequestId(_ctx.stringValue("GetWorkflowInstanceResponse.RequestId"));<NEW_LINE>getWorkflowInstanceResponse.setSuccess(_ctx.stringValue("GetWor... | (_ctx.stringValue("GetWorkflowInstanceResponse.WorkflowInstanceDetail.FailedNodeInstance.JobName")); |
1,083,027 | private void printHorizontalBorder(AutoTypeImage input, AutoTypeImage output) {<NEW_LINE>String kernelType = input.getKernelType();<NEW_LINE>String inputType = input.getSingleBandName();<NEW_LINE>String outputType = output.getSingleBandName();<NEW_LINE>String borderType = input.getBorderNameSB();<NEW_LINE><MASK><NEW_LI... | String sumType = input.getSumType(); |
998,307 | public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) {<NEW_LINE>super.initialize(subject, callbackHandler, sharedState, options);<NEW_LINE>_hostname = (String) options.get("hostname");<NEW_LINE>_port = Integer.parseInt((String) options.get("port"))... | String) options.get("bindDn"); |
763,071 | private void resolveHttpParams(HttpParams params) {<NEW_LINE>if (params != null) {<NEW_LINE>clientBuilder.setDefaultRequestConfig(RequestConfig.custom().setConnectTimeout(params.getConnectTimeout()).setConnectionRequestTimeout(params.getReadTimeout()).build());<NEW_LINE>if (params.getProxy() != null) {<NEW_LINE>InetSoc... | .getProxy().address(); |
1,286,324 | private Matcher meta(Matcher matcher) {<NEW_LINE>int start = current - 1;<NEW_LINE>advance(c -> META.contains((char) c));<NEW_LINE>--current;<NEW_LINE>String quantifier = tokens.subSequence(start, current).toString();<NEW_LINE>switch(quantifier) {<NEW_LINE>case "?":<NEW_LINE>// Makes repeat reluctant<NEW_LINE>if (match... | ZeroOrMoreMatcher(matcher, term()); |
1,306,079 | public void endVisit(ExplicitConstructorCall x, BlockScope scope) {<NEW_LINE>try {<NEW_LINE>SourceInfo info = makeSourceInfo(x);<NEW_LINE>JConstructor ctor = (JConstructor) typeMap.get(x.binding);<NEW_LINE>JExpression trueQualifier = makeThisRef(info);<NEW_LINE>JMethodCall call = new JMethodCall(info, trueQualifier, ct... | call, qualifier, x.qualification); |
1,049,308 | public List<AnalysisResult> run() throws Exception {<NEW_LINE>Stopwatch sw = Stopwatch.createStarted();<NEW_LINE>DataIngester ingester = conf.constructIngester();<NEW_LINE>List<Datum> data = ingester.getStream().drain();<NEW_LINE>if (conf.isSet(MacroBaseConf.LOW_METRIC_TRANSFORM)) {<NEW_LINE>LowMetricTransform lmt = ne... | long summarizeMs = result.getCreationTimeMs(); |
1,629,544 | private void inferActiveTurnLanesFromTurn(TurnType tt, int type) {<NEW_LINE>boolean found = false;<NEW_LINE>if (tt.getValue() == type && tt.getLanes() != null) {<NEW_LINE>for (int it = 0; it < tt.getLanes().length; it++) {<NEW_LINE>int turn = tt.getLanes()[it];<NEW_LINE>if (TurnType.getPrimaryTurn(turn) == type || Turn... | tt.getLanes()[it]; |
1,804,161 | protected void paintIcon(Graphics2D g2) {<NEW_LINE>final int state = 0;<NEW_LINE>final var wh = scale(12);<NEW_LINE>var x = scale(state);<NEW_LINE>var y = scale(11) + scale(state);<NEW_LINE>final int[] xpos = { x, x + wh, scale(14), scale(3) };<NEW_LINE>final int[] ypos = { y, y, scale(14), scale(14) };<NEW_LINE>g2.set... | scale(state) + wh / 2; |
84,108 | @MethodHook(type = HookType.AFTER, targetClassName = "java.util.regex.Pattern", targetMethod = "CIRangeU", targetMethodDescriptor = "(II)Ljava/util/regex/Pattern$CharPredicate;", additionalClassesToHook = { "java.util.regex.Pattern" })<NEW_LINE>// Java 8 uses anonymous classes extending CharProperty instead of lambdas ... | (int) args[0]); |
1,324,331 | public final void regex() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST regex_AST = null;<NEW_LINE>switch(LA(1)) {<NEW_LINE>case REGEX:<NEW_LINE>{<NEW_LINE>AST tmp284_AST = null;<NEW_LINE>tmp284_AST = astFactory.create(LT(1));<NE... | regex_AST = (AST) currentAST.root; |
1,607,265 | public ConnectionHeaderParameter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ConnectionHeaderParameter connectionHeaderParameter = new ConnectionHeaderParameter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()... | class).unmarshall(context)); |
1,537,397 | public static void startNewCall(Activity activity, SnackbarShower snackbarShower, MegaUser user, PasscodeManagement passcodeManagement) {<NEW_LINE>if (user == null)<NEW_LINE>return;<NEW_LINE>MegaChatApiAndroid megaChatApi = MegaApplication.getInstance().getMegaChatApi();<NEW_LINE>MegaChatRoom chat = megaChatApi.getChat... | chats = new ArrayList<>(); |
1,155,740 | private static void plainValidationInternal(ValidationContext vCxt, Graph data, Node node, Shape shape) {<NEW_LINE>Collection<Node> focusNodes;<NEW_LINE>if (node != null) {<NEW_LINE>if (!VLib.isFocusNode(shape, node, data))<NEW_LINE>return;<NEW_LINE>focusNodes = Collections.singleton(node);<NEW_LINE>} else {<NEW_LINE>f... | out.println("F: " + focusNode); |
639,789 | public ApiResponse handleApiAction(String name, JSONObject params) throws ApiException {<NEW_LINE>RuleConfig rc;<NEW_LINE>switch(name) {<NEW_LINE>case ACTION_SET_RULE_CONFIG_VALUE:<NEW_LINE>rc = extension.getRuleConfig(params.getString(PARAM_KEY));<NEW_LINE>if (rc != null) {<NEW_LINE>if (params.containsKey(PARAM_VALUE)... | ApiException.Type.DOES_NOT_EXIST, PARAM_KEY); |
369,333 | public void init(IActionBars actionBars) {<NEW_LINE>super.init(actionBars);<NEW_LINE>customedit = menuFactory.createEditSelected();<NEW_LINE>customedit.setEnabled(false);<NEW_LINE>undoActionGlobal = menuFactory.createUndo();<NEW_LINE>redoActionGlobal = menuFactory.createRedo();<NEW_LINE>printActionGlobal = menuFactory.... | Pane.PROPERTY, ActionName.CUT); |
997,283 | public int compare(T o1, T o2) {<NEW_LINE>Matcher m1 = parts.matcher(converter.apply(o1));<NEW_LINE>Matcher m2 = parts.matcher(converter.apply(o2));<NEW_LINE>while (m1.find() && m2.find()) {<NEW_LINE>int compareCharGroup = m1.group(ALPHA_PART).compareTo(m2.group(ALPHA_PART));<NEW_LINE>if (compareCharGroup != 0) {<NEW_L... | numberPart2 = m2.group(NUM_PART); |
359,009 | public AuditLogPart combine(AuditLogPart other) {<NEW_LINE>if (other.guildId != this.guildId) {<NEW_LINE>throw new IllegalArgumentException("Cannot combine audit log parts from two different guilds.");<NEW_LINE>}<NEW_LINE>Set<Webhook> combinedWebhooks = new HashSet<>(this.webhooks.size() + <MASK><NEW_LINE>combinedWebho... | other.webhooks.size()); |
1,767,820 | private Optional<JsonResponseUpsert> persistForBPartnerWithinTrx(@Nullable final String orgCode, @NonNull final ExternalIdentifier bpartnerIdentifier, @NonNull final JsonRequestLocationUpsert jsonRequestLocationUpsert, @NonNull final SyncAdvise parentSyncAdvise) {<NEW_LINE>final OrgId orgId = retrieveOrgIdOrDefault(org... | extractLocationByHandle(requestItem.getLocationIdentifier()); |
1,395,357 | public void run() {<NEW_LINE>try {<NEW_LINE>log.info("Running {}", getName());<NEW_LINE>// Create the update lambda.<NEW_LINE>UniverseUpdater updater = new UniverseUpdater() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(Universe universe) {<NEW_LINE>// If this universe is not being edited, fail the request.<N... | UniverseDefinitionTaskParams universeDetails = universe.getUniverseDetails(); |
1,294,772 | public void addContainerScaleJob(String namespace, String taskId, String jobDesc, int instances, String timeZone, String cron) throws SaturnJobConsoleException {<NEW_LINE>CuratorRepository.CuratorFrameworkOp curatorFrameworkOp = registryCenterService.getCuratorFrameworkOp(namespace);<NEW_LINE>String jobName = SaturnCon... | (containerToken, taskId, instances)); |
1,573,880 | private boolean didReadTradeCurrenciesField(JsonReader in, PaymentAccount account, String fieldName) {<NEW_LINE>if (!fieldName.equals("tradeCurrencies"))<NEW_LINE>return false;<NEW_LINE>// The PaymentAccount.tradeCurrencies field is a special case because it has<NEW_LINE>// no setter, so we add currencies to the List h... | currencyCodes = commaDelimitedCodesToList.apply(fieldValue); |
13,803 | public boolean configured(AttachSettings settings) {<NEW_LINE>// no settings provided<NEW_LINE>if (settings == null)<NEW_LINE>return false;<NEW_LINE>if (settings.isRemote()) {<NEW_LINE>String host = settings.getHost();<NEW_LINE>// remote settings valid if host provided<NEW_LINE>return host != null && !host.trim().isEmp... | int pid = settings.getPid(); |
1,480,924 | public void run(final FlowTrigger trigger, final Map data) {<NEW_LINE>taskProgress("create cdRoms");<NEW_LINE>final VmInstanceSpec spec = (VmInstanceSpec) data.get(VmInstanceConstant.Params.VmInstanceSpec.toString());<NEW_LINE>List<CdRomSpec> cdRomSpecs = spec.getCdRomSpecs();<NEW_LINE>if (cdRomSpecs.isEmpty()) {<NEW_L... | collect(Collectors.toList()); |
30,240 | protected void triggerNow(GCCompletion completion) {<NEW_LINE>if (!dbf.isExist(primaryStorageUuid, PrimaryStorageVO.class)) {<NEW_LINE>completion.cancel();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!dbf.isExist(hostUuid, HostVO.class)) {<NEW_LINE>completion.cancel();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LocalStorageKvmB... | "operation error, because:%s", rsp.getError()); |
74,697 | public SecurityProfileTargetMapping unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SecurityProfileTargetMapping securityProfileTargetMapping = new SecurityProfileTargetMapping();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =... | int originalDepth = context.getCurrentDepth(); |
1,050,018 | public void checkDB() {<NEW_LINE>Log.info("Checking DB");<NEW_LINE>File rootDir = repoStore.getRootDirectory();<NEW_LINE>for (File f : rootDir.listFiles()) {<NEW_LINE>if (f.getName().equals(".wlgb")) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>try (LockGuard __ = lock.lockGuard(projName)) {<NEW_LINE>File d... | String projName = f.getName(); |
1,037,706 | public void benchmarkJavassist(Blackhole blackHole) {<NEW_LINE>blackHole.consume(javassistInstance.method(booleanValue));<NEW_LINE>blackHole.consume(javassistInstance.method(byteValue));<NEW_LINE>blackHole.consume(javassistInstance.method(shortValue));<NEW_LINE>blackHole.consume(javassistInstance.method(intValue));<NEW... | (javassistInstance.method(doubleValue)); |
1,001,663 | public ManifestIdentifier identify(Config config) {<NEW_LINE>final String manifestPath = config.manifest();<NEW_LINE>if (manifestPath.equals(Config.NONE)) {<NEW_LINE>return new ManifestIdentifier((String) null, null, null, null, null);<NEW_LINE>}<NEW_LINE>// Try to locate the manifest file as a classpath resource; fall... | Path baseDir = manifestFile.getParent(); |
333,007 | public void actionPerformed(ActionEvent e) {<NEW_LINE>deletePattern.setEnabled(true);<NEW_LINE>GuiUtils.stopTableEditing(stringTable);<NEW_LINE>int rowCount = stringTable.getRowCount();<NEW_LINE>try {<NEW_LINE>String clipboardContent = GuiUtils.getPastedText();<NEW_LINE>if (clipboardContent == null) {<NEW_LINE>return;<... | { clipboardLine.trim() }); |
121,722 | public void run() {<NEW_LINE>WsdlRunTestCaseTestStep testStep = getModelItem();<NEW_LINE>InternalTestRunListener testRunListener = new InternalTestRunListener();<NEW_LINE>testStep.addTestRunListener(testRunListener);<NEW_LINE>try {<NEW_LINE>testRunLog.clear();<NEW_LINE>MockTestRunner mockTestRunner = new MockTestRunner... | ), SoapUI.ensureGroovyLog()); |
778,936 | protected static void recursivelyConvertMapToGraphObjectMap(final GraphObjectMap destination, final Map<String, Object> source, final int depth) {<NEW_LINE>if (depth > 20) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (final Map.Entry entry : source.entrySet()) {<NEW_LINE>final ConfigurationProvider provider = StructrApp.... | final GraphObjectMap obj = new GraphObjectMap(); |
373,274 | protected void updatePolyBuffers(boolean lit, boolean tex, boolean needNormals, boolean needTexCoords) {<NEW_LINE>createPolyBuffers(PGL.bufferUsageImmediate);<NEW_LINE>pgl.bindBuffer(PGL.ARRAY_BUFFER, bufPolyVertex.glId);<NEW_LINE>tessGeo.copyPolyVertices(PGL.bufferUsageImmediate);<NEW_LINE>pgl.bindBuffer(PGL.ARRAY_BUF... | PGL.ARRAY_BUFFER, bufPolySpecular.glId); |
669,429 | public static BRefType<?> execListGetOperation(BNewArray array, long index) {<NEW_LINE>if (array.getType().getTag() != TypeTags.ARRAY_TAG) {<NEW_LINE>BValueArray bRefValueArray = (BValueArray) array;<NEW_LINE>return bRefValueArray.getRefValue(index);<NEW_LINE>}<NEW_LINE>switch(((BArrayType) array.getType()).getElementT... | index).stringValue())); |
1,120,208 | public void resizeImagesTmpDirToResolution(String packName, File sourceFolder, ResolutionEntryVO resolution, File targetFolder) {<NEW_LINE>ProjectManager projectManager = facade.retrieveProxy(ProjectManager.NAME);<NEW_LINE>float ratio = ResolutionManager.getResolutionRatio(resolution, projectManager.getCurrentProjectIn... | maxWidth = getMinSquareNum(resolution.height); |
1,440,995 | public Void visitLong(Property<Long> property, UpgradeVisitorContainer<?> data) {<NEW_LINE>long value = data.cursor.getLong(data.columnIndex);<NEW_LINE>// special handling for due date<NEW_LINE>if (property == Task.DUE_DATE) {<NEW_LINE>long preferredDueDate = data.cursor.getLong(data.cursor.getColumnIndex(LegacyTaskMod... | , new Date(preferredDueDate))); |
1,090,519 | public AndroidElement findElement(By by) {<NEW_LINE>if (by instanceof ById) {<NEW_LINE>return <MASK><NEW_LINE>} else if (by instanceof ByTagName) {<NEW_LINE>return findElementByTagName(by.getElementLocator());<NEW_LINE>} else if (by instanceof ByLinkText) {<NEW_LINE>return findElementByText(by.getElementLocator());<NEW... | findElementById(by.getElementLocator()); |
1,434,303 | Saml2ResponseValidatorResult redirect(HttpServletRequest request, String objectParameterName) {<NEW_LINE>RedirectSignature signature = new RedirectSignature(request, objectParameterName);<NEW_LINE>if (signature.getAlgorithm() == null) {<NEW_LINE>return Saml2ResponseValidatorResult.failure(new Saml2Error(Saml2ErrorCodes... | String algorithmUri = signature.getAlgorithm(); |
819,923 | public void visitToken(DetailAST ast) {<NEW_LINE>final DetailAST typeAST = ast.getParent();<NEW_LINE>final DetailAST identAst = typeAST.getNextSibling();<NEW_LINE>// If identAst is null, we have a 'LITERAL_NEW' expression, i.e. 'new int[2][2]'<NEW_LINE>if (identAst != null) {<NEW_LINE>final boolean isMethod = typeAST.g... | final boolean isMethodViolation = isMethod && !isJavaStyle; |
991,223 | final CreateDataRepositoryTaskResult executeCreateDataRepositoryTask(CreateDataRepositoryTaskRequest createDataRepositoryTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDataRepositoryTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | endClientExecution(awsRequestMetrics, request, response); |
155,266 | final DeleteVpcLinkResult executeDeleteVpcLink(DeleteVpcLinkRequest deleteVpcLinkRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVpcLinkRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
201,145 | public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) {<NEW_LINE>descriptor = root;<NEW_LINE>internal_static_io_netty_example_worldclock_Location_descriptor = getDescriptor().getMessageTypes().get(0);<NEW_LINE>internal_static_io_netty_example_worldclock_Loca... | getMessageTypes().get(3); |
1,152,290 | public String statsAsString() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>String f = SparkTrainingStats.DEFAULT_PRINT_FORMAT;<NEW_LINE>sb.append(String.format(f, WORKER_FLAT_MAP_TOTAL_TIME_MS));<NEW_LINE>if (workerFlatMapTotalTimeMs == null)<NEW_LINE>sb.append("-\n");<NEW_LINE>else<NEW_LINE>sb.append(St... | ()).append("\n"); |
455,547 | public static void main(String[] args) throws Exception {<NEW_LINE>try (ZContext ctx = new ZContext()) {<NEW_LINE>Socket worker = ctx.createSocket(SocketType.REQ);<NEW_LINE>// Set random identity to make tracing easier<NEW_LINE>Random rand = new Random(System.nanoTime());<NEW_LINE>String identity = String.format("%04X-... | out.printf("I: (%s) simulating a crash\n", identity); |
1,707,021 | public Request<StopUserImportJobRequest> marshall(StopUserImportJobRequest stopUserImportJobRequest) {<NEW_LINE>if (stopUserImportJobRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(StopUserImportJobRequest)");<NEW_LINE>}<NEW_LINE>Request<StopUserImportJobRequest> request... | String snippet = stringWriter.toString(); |
1,594,189 | final ListPipelinesResult executeListPipelines(ListPipelinesRequest listPipelinesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPipelinesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListPipelines"); |
1,503,871 | ActionResult<List<NameValueCountPair>> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<NameValueCountPair>> result = new ActionResult<>();<NEW_LINE>List<NameValueCountPair> wraps = new ... | setName(en.getKey()); |
1,844,816 | public void run(FlowTrigger trigger, Map data) {<NEW_LINE>vo.setUuid(Platform.getUuid());<NEW_LINE>vo.setName(vol.getName());<NEW_LINE>vo.setDescription(vol.getDescription());<NEW_LINE>vo.setVolumeUuid(vol.getUuid());<NEW_LINE>vo.setFormat(vol.getFormat());<NEW_LINE>vo.setVolumeType(vol.getType());<NEW_LINE>if (vo.getT... | DebugUtils.Assert(false, "should not be here"); |
346,879 | /*<NEW_LINE>* Recurses though each level of a directory structure<NEW_LINE>* in a depth-first manner<NEW_LINE>* and creates each directory also marking them in the binary<NEW_LINE>*/<NEW_LINE>private void createDirectories(BinaryReader reader, Program program, List<ISO9660Directory> directoryList, long blockSize) throw... | program, dir.getVolumeIndex()); |
434,700 | public void removeLines(ActionRequest request, ActionResponse response) {<NEW_LINE>User user = AuthUtils.getUser();<NEW_LINE>try {<NEW_LINE>if (user == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Expense expense = Beans.get(ExpenseRepository.class).all().filter("self.statusSelect = ?1 AND self.user.id = ?2", ExpenseRe... | response.setValue("expenseLineList", expenseLineList); |
847,240 | public Object handleException(RequestDetails theRequestDetails, BaseServerResponseException theException) throws ServletException, IOException {<NEW_LINE>IRestfulResponse response = theRequestDetails.getResponse();<NEW_LINE>FhirContext ctx = theRequestDetails.getServer().getFhirContext();<NEW_LINE><MASK><NEW_LINE>if (o... | IBaseOperationOutcome oo = theException.getOperationOutcome(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.