idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,479,900
private static RemoteScreenshot[] takeCurrent(JPDADebugger debugger, DebuggerEngine engine) throws RetrievalException {<NEW_LINE>List<JPDAThread> allThreads = debugger.getThreadsCollector().getAllThreads();<NEW_LINE>if (logger.isLoggable(Level.FINE)) {<NEW_LINE>logger.log(Level.FINE, "Threads = {0}", allThreads);<NEW_L...
rs.length + rst.length];
665,753
protected FileMetadataAccessor createFileMetadataAccessor(OperatingSystem operatingSystem) {<NEW_LINE>// Based on the benchmark found in org.gradle.internal.nativeintegration.filesystem.FileMetadataAccessorBenchmark<NEW_LINE>// and the results in the PR https://github.com/gradle/gradle/pull/12966<NEW_LINE>// we're usin...
.get(Files.class));
688,534
List<SentinelGroupModel> sentinelGroupInfoList(String dcName, List<SentinelGroupTbl> sentinelGroups) {<NEW_LINE>List<SentinelTbl> dcSentinels = sentinelService.findAllByDcName(dcName);<NEW_LINE>Map<Long, SentinelGroupTbl> sentinelGroupMap = toMap(sentinelGroups);<NEW_LINE>Map<Long, SentinelGroupModel> sentinelGroupInfo...
long sentinelGroupId = sentinelTbl.getSentinelGroupId();
1,786,308
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>// NOI18N<NEW_LINE>setName(org.openide.util.NbBundle.getMessage(MergeBranchPanel.class, "CTL_MergeSincePanel_Message"));<NEW_LINE>mergeEndRepositoryFolderLabel.setLabelFor(mergeEnd...
DEFAULT_SIZE, Short.MAX_VALUE)));
815,614
public final // JPA2.g:518:1: parameter_name : WORD ( '.' WORD )* ;<NEW_LINE>JPA2Parser.parameter_name_return parameter_name() throws RecognitionException {<NEW_LINE>JPA2Parser.parameter_name_return retval = new JPA2Parser.parameter_name_return();<NEW_LINE>retval.start = input.LT(1);<NEW_LINE>Object root_0 = null;<NEW_...
(Object) adaptor.nil();
520,030
void generateConfigSources(List<RunTimeConfigurationSourceBuildItem> runTimeSources, final BuildProducer<GeneratedClassBuildItem> generatedClass, LiveReloadBuildItem liveReloadBuildItem) {<NEW_LINE>if (liveReloadBuildItem.isLiveReload()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ClassOutput classOutput = new GeneratedClas...
OptionalInt priority = runTimeSource.getPriority();
799,073
private static Pair<List<Geocache>, Boolean> parseCaches(final ObjectNode response) {<NEW_LINE>try {<NEW_LINE>final JsonNode moreNode = response.path("more");<NEW_LINE>final boolean more = moreNode != null && moreNode.isBoolean() && moreNode.asBoolean();<NEW_LINE>// Check for empty result<NEW_LINE>final JsonNode result...
Collections.emptyList(), false);
52,541
private void writePrincipals(List<Principal> principals) throws JsonGenerationException, IOException {<NEW_LINE>if (principals.size() == 1 && principals.get(0).equals(Principal.All)) {<NEW_LINE>writeJsonKeyValue(JsonDocumentFields.PRINCIPAL, Principal.All.getId());<NEW_LINE>} else {<NEW_LINE>writeJsonObjectStart(JsonDo...
get(entry.getKey());
923,998
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>this.getDialog().setCanceledOnTouchOutside(false);<NEW_LINE>View rootView = inflater.inflate(R.layout.fragment_diary, container);<NEW_LINE>ScrollView_diary_content = (ScrollView) rootView.findViewById(R.id.Scrol...
findViewById(R.id.IV_diary_photo);
1,592,054
public List<InvoiceLine> createInvoiceLine(Invoice invoice, ProjectTask projectTask, int priority) throws AxelorException {<NEW_LINE>InvoiceLineGenerator invoiceLineGenerator = new InvoiceLineGenerator(invoice, projectTask.getProduct(), projectTask.getName(), projectTask.getUnitPrice(), BigDecimal.ZERO, projectTask.get...
setSaleOrderLine(projectTask.getSaleOrderLine());
624,332
public void beforeMethod(final AdviceTargetObject target, final Method method, final Object[] args, final MethodInvocationResult result) {<NEW_LINE>Span root = (Span) ((Map<String, Object>) args[2]).get("ot_root_span_");<NEW_LINE>Tracer.SpanBuilder builder = GlobalTracer.get().buildSpan(OPERATION_NAME);<NEW_LINE>if ((b...
ExecutionUnit unit = executionUnit.getExecutionUnit();
935,512
private static void merge(final ITranslationEnvironment environment, final long offset, final int shiftDelta, final String[] results, final String targetRegister, final int size, final List<ReilInstruction> instructions) {<NEW_LINE>assert (results.length == 2) || (results.length == 4);<NEW_LINE>long baseOffset = offset...
0x0L), dw, tempResult));
372,760
private Object executeGetter(ObjectTemplate template, Object holder, Object[] arguments) {<NEW_LINE>Object result = null;<NEW_LINE>Object key = arguments[3];<NEW_LINE>PropertyHandler indexedHandler = template.getIndexedPropertyHandler();<NEW_LINE>PropertyHandler namedHandler = template.getNamedPropertyHandler();<NEW_LI...
key = JSRuntime.toString(key);
451,954
public ScopedRemoteObject evaluateExpression(CallFrame frame, String expression, boolean doCacheResults) {<NEW_LINE>if (doCacheResults) {<NEW_LINE>synchronized (expressionsCache) {<NEW_LINE>ScopedRemoteObject var = expressionsCache.get(getKey(frame, expression));<NEW_LINE>// System.err.println("WatchesModel.evaluateExp...
debugger, pc.getProject());
789,060
public Instance pipe(Instance carrier) {<NEW_LINE>CharSequence c = (CharSequence) carrier.getData();<NEW_LINE>String[] pairs = c.toString().trim().split("\\s+");<NEW_LINE>int[] keys = new int[pairs.length];<NEW_LINE>double[] values = new double[pairs.length];<NEW_LINE>for (int i = 0; i < pairs.length; i++) {<NEW_LINE>i...
(pairs[i], true);
259,142
protected void process(int local_port, TransportHelperFilter filter) {<NEW_LINE>SocketChannel channel = ((TCPTransportHelper) filter.getHelper()).getSocketChannel();<NEW_LINE>Socket socket = channel.socket();<NEW_LINE>// set advanced socket options<NEW_LINE>try {<NEW_LINE>int so_sndbuf_size = COConfigurationManager.get...
(ip_tos).intValue());
1,182,653
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(getTargetPointer()<MASK><NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cards cards = new CardsImpl(player.getLibrary().getTopCards(game, 3));<NEW_LINE>player.lookAtCards(source, null, cards, game);<NEW_...
.getFirst(game, source));
1,240,597
private Path createArea(FileSystem fs, String root, String directory) {<NEW_LINE>Path path = new Path(new File(root, directory).toURI().getPath());<NEW_LINE>String fullPath = path.toUri().getPath();<NEW_LINE>try {<NEW_LINE>fs.mkdirs(path);<NEW_LINE>Preconditions.checkState(fs.exists(path), "Area [%s] must exist", fullP...
FsPermission permission = fileStatus.getPermission();
928,723
protected void undeployLeftoverJobs() {<NEW_LINE>try {<NEW_LINE>// See if there are jobs running on any helios agent. If we are using TemporaryJobs,<NEW_LINE>// that class should've undeployed them at this point.<NEW_LINE>// Any jobs still running at this point have only been partially cleaned up.<NEW_LINE>// We look f...
"Undeploy response for job {} was not OK. This could mean that something " + "beat the helios-solo master in telling the helios-solo agent to " + "undeploy.", jobId);
666,974
protected void generateEmbeddablePojoGetter(EmbeddableDefinition embeddable, @SuppressWarnings("unused") int index, JavaWriter out) {<NEW_LINE>final String columnTypeFull = getStrategy().getFullJavaClassName(embeddable, Mode.POJO);<NEW_LINE>final String columnType = out.ref(columnTypeFull);<NEW_LINE>final String column...
(columnGetter), columnType, columnType);
948,072
public QueryRunner<SegmentAnalysis> mergeResults(final QueryRunner<SegmentAnalysis> runner) {<NEW_LINE>return new BySegmentSkippingQueryRunner<SegmentAnalysis>(runner) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Sequence<SegmentAnalysis> doRun(QueryRunner<SegmentAnalysis> baseRunner, QueryPlus<SegmentAnalysis> query...
SegmentMetadataQueryQueryToolChest.this.createResultComparator(query);
542,205
// -------------------------------------------------------------------------<NEW_LINE>@ImmutableValidator<NEW_LINE>private void validate() {<NEW_LINE>// startDate < endDate<NEW_LINE>ArgChecker.inOrderNotEqual(startDate, endDate, "startDate", "endDate");<NEW_LINE>if (overrideStartDate != null) {<NEW_LINE>ArgChecker.inOr...
), firstRegularStartDate, "overrideStartDate", "firstRegularStartDate");
647,679
public static KeyValuePart[] split(MatrixMeta matrixMeta, int rowId, long[] keys, long[] values) {<NEW_LINE>PartitionKey[] matrixParts = matrixMeta.getPartitionKeys();<NEW_LINE>int matrixPartNumMinus1 = matrixParts.length - 1;<NEW_LINE>KeyValuePart[] keyValueParts <MASK><NEW_LINE>int avgPartElemNum = keys.length / matr...
= new KeyValuePart[matrixParts.length];
366,610
public ZabbixRequest deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {<NEW_LINE>String requestTypeString = json.getAsJsonObject().get("request").getAsString();<NEW_LINE>// Check has support request type<NEW_LINE>ZabbixProtocolType requestType = ZabbixProtocolTyp...
("host").getAsString());
152,322
public void visitToken(DetailAST ast) {<NEW_LINE>if (!ast.hasChildren()) {<NEW_LINE>// empty for iterator. test pad after semi.<NEW_LINE>final DetailAST semi = ast.getPreviousSibling();<NEW_LINE>final int[] line = getLineCodePoints(semi.getLineNo() - 1);<NEW_LINE>final int after <MASK><NEW_LINE>// don't check if at end...
= semi.getColumnNo() + 1;
75,003
private static void handleCategoryDeclaration(final MethodCallExpression call, final VariableScope scope) {<NEW_LINE>if ("use".equals(call.getMethodAsString()) && call.getArguments() instanceof TupleExpression && org.apache.groovy.ast.tools.ExpressionUtils.isThisExpression(call.getObjectExpression())) {<NEW_LINE>final ...
first = args.get(0);
695,070
private void removeRemainingSlashes() {<NEW_LINE>ArrayList<String> tmp = new ArrayList<String>();<NEW_LINE>boolean foundEOLSlash = false;<NEW_LINE>for (Iterator<String> iter = _queries.iterator(); iter.hasNext(); ) {<NEW_LINE>String next = iter.next();<NEW_LINE>if (slashPattern.matcher(next).matches()) {<NEW_LINE>found...
lastIndex = part.lastIndexOf("/");
1,279,986
public RedisEnterpriseManagementClientImpl buildClient() {<NEW_LINE>if (pipeline == null) {<NEW_LINE>this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();<NEW_LINE>}<NEW_LINE>if (endpoint == null) {<NEW_LINE>this.endpoint = "https://management.azure.com";<NEW_LINE>}<NEW_L...
defaultPollInterval = Duration.ofSeconds(30);
46,451
public void announcementGet(String columns, final Response.Listener<List<Announcement>> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/announcement".replaceAll("\\{format\\}", "json");<NEW_LINE>// query ...
MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create();
836,543
private void runAssertionIndexChoicesJoinUniqueVirtualDW(RegressionEnvironment env) {<NEW_LINE>// test no where clause with unique on multiple props, exact specification of where-clause<NEW_LINE>IndexAssertionEventSend assertSendEvents = new IndexAssertionEventSend() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>St...
fields = "vdw.theString,vdw.intPrimitive,ssb1.i1".split(",");
1,539,108
public void initialize() {<NEW_LINE>ChromecastConfig <MASK><NEW_LINE>final String ipAddress = config.ipAddress;<NEW_LINE>if (ipAddress == null || ipAddress.isBlank()) {<NEW_LINE>updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.OFFLINE.CONFIGURATION_ERROR, "Cannot connect to Chromecast. IP address is not valid or mis...
config = getConfigAs(ChromecastConfig.class);
953,685
private static void updateColumnFromState(CustomGridColumn column, GridColumnState state) {<NEW_LINE>column.setWidth(state.width);<NEW_LINE>column.setMinimumWidth(state.minWidth);<NEW_LINE>column.setMaximumWidth(state.maxWidth);<NEW_LINE>column.setExpandRatio(state.expandRatio);<NEW_LINE>assert state.rendererConnector ...
column.setResizable(state.resizable);
777,598
void scan() {<NEW_LINE>int p = 0;<NEW_LINE>char c;<NEW_LINE>while ((c = get(p)) != '\0') {<NEW_LINE>if (c == '/' && get(p + 1) == '/') {<NEW_LINE>int end = slashSlashComment(p + 2);<NEW_LINE>terms.add(new Other(get(p, p = end)));<NEW_LINE>} else if (c == '/' && get(p + 1) == '*') {<NEW_LINE>int end = slashStarComment(p...
p, p = end)));
1,275,950
protected void addModulesToJetty(ContextHandlerCollection handlers) throws Exception {<NEW_LINE>ServletContextHandler gatewayApiServer = new ServletContextHandler(ServletContextHandler.SESSIONS);<NEW_LINE>addSecurityHandler(gatewayApiServer);<NEW_LINE>gatewayApiServer.setContextPath("/api");<NEW_LINE>gatewayApiServer.a...
GatewayMicroServiceApplication.class.getName());
130,218
public static int clang_indexSourceFileFullArgv(@NativeType("CXIndexAction") long action, @NativeType("CXClientData") long client_data, @NativeType("IndexerCallbacks *") IndexerCallbacks index_callbacks, @NativeType("unsigned") int index_callbacks_size, @NativeType("unsigned") int index_options, @NativeType("char const...
, memAddressSafe(out_TU), TU_options);
1,121,024
// assignment path is bounded to class so we use different http method :-)<NEW_LINE>@ResponseBody<NEW_LINE>public AttackResult registerNewUser(@RequestParam String username_reg, @RequestParam String email_reg, @RequestParam String password_reg) throws Exception {<NEW_LINE>AttackResult attackResult = checkArguments(user...
preparedStatement.setString(3, password_reg);
1,650,021
final DescribeAppInstanceResult executeDescribeAppInstance(DescribeAppInstanceRequest describeAppInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAppInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
(super.beforeMarshalling(describeAppInstanceRequest));
1,629,412
private List<Event> prepareEvents(Map<File, GitFileInfo> files) {<NEW_LINE>final List<Event> logEvents = new ArrayList<Event>(files.size());<NEW_LINE>Set<File> renamedFilesOriginals = new HashSet<File>(files.size());<NEW_LINE>for (Map.Entry<File, GitFileInfo> e : files.entrySet()) {<NEW_LINE>if (e.getValue().getStatus(...
getValue().getOriginalFile());
1,621,584
public void OpenShift_StubbedTests_blankUserApiToken() throws Exception {<NEW_LINE>// send a flag to the stubbed an OpenShift tokenReviews response<NEW_LINE>String access_token = "badServiceAccountToken";<NEW_LINE>WebClient webClient = getAndSaveWebClient();<NEW_LINE>SocialTestSettings updatedSocialTestSettings = socia...
(cttools.buildBearerTokenCred(access_token));
987,169
public void run(final boolean timeout) throws InterruptedException {<NEW_LINE>final List<String> allHosts = masterModel.listHosts();<NEW_LINE>final Map<String, Map<String, String>> hostsToLabels = Maps.newHashMap();<NEW_LINE>// determine all hosts and their labels<NEW_LINE>for (final String host : allHosts) {<NEW_LINE>...
matchingHosts = hostMatcher.getMatchingHosts(dg);
217,743
public void marshall(AutoScalingConfiguration autoScalingConfiguration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (autoScalingConfiguration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(autoScalingC...
autoScalingConfiguration.getDeletedAt(), DELETEDAT_BINDING);
895,773
public static void horizontal(Kernel1D_F64 kernel, InterleavedF64 src, InterleavedF64 dst) {<NEW_LINE>final double[] dataSrc = src.data;<NEW_LINE>final double[] dataDst = dst.data;<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final int offsetL = kernel.getOffset();<NEW_LINE>final int offsetR = kernelWid...
int numBands = src.getNumBands();
936,208
public static void convolve3(Kernel2D_S32 kernel, GrayS32 src, GrayS32 dest, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>workspaces = BoofMiscOps.<MASK><NEW_LINE>// CONCURRENT_REMOVE_LINE<NEW_LINE>final DogArray_I32 work = workspaces.grow();<NEW_LINE>final int[] dataSrc = src.data;<NEW_LINE>fi...
checkDeclare(workspaces, DogArray_I32::new);
1,002,410
public List<FinishedSession> processResults(ResultSet set) throws SQLException {<NEW_LINE>List<FinishedSession> sessions = new ArrayList<>();<NEW_LINE>while (set.next()) {<NEW_LINE>UUID uuid = UUID.fromString(set.getString(SessionsTable.USER_UUID));<NEW_LINE>long start = set.getLong(SessionsTable.SESSION_START);<NEW_LI...
new FinishedSession.Id(id));
355,808
@IntoMap<NEW_LINE>@ListenerModuleKey(LiveDataDetailViewWithVideoBackgroundFragment.class)<NEW_LINE>public OnItemViewClickedListener provideOnItemViewClickListenerForLiveDataDetailFragment(final Activity currentActivity) {<NEW_LINE>return new OnItemViewClickedListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public voi...
putExtra(LiveDataDetailActivity.VIDEO_ID, videoItemId);
260,908
public static Name rrsetWildcard(RRset rrset) {<NEW_LINE>List<RRSIGRecord> sigs = rrset.sigs();<NEW_LINE>RRSIGRecord firstSig = sigs.get(0);<NEW_LINE>// check rest of signatures have identical label count<NEW_LINE>for (int i = 1; i < sigs.size(); i++) {<NEW_LINE>if (sigs.get(i).getLabels() != firstSig.getLabels()) {<NE...
= new Name(wn, 1);
337,363
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("cgroups" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>IParam sub0;<NEW_LINE>IParam sub1 = null;<NEW_LINE>IParam sub2 = null;<NEW_LINE>Expression w = nu...
sub0 = param.getSub(0);
1,365,528
public OperationResult execute(final MessageFrame frame, final EVM evm) {<NEW_LINE>final long memOffset = clampedToLong(frame.popStackItem());<NEW_LINE>final long sourceOffset = <MASK><NEW_LINE>final long numBytes = clampedToLong(frame.popStackItem());<NEW_LINE>final Bytes returnData = frame.getReturnData();<NEW_LINE>f...
clampedToLong(frame.popStackItem());
1,179,168
public Void visitTopNRanking(TopNRankingNode node, Void context) {<NEW_LINE>List<String> partitionBy = node.getPartitionBy().stream().map(Object::toString<MASK><NEW_LINE>List<String> orderBy = node.getOrderingScheme().getOrderBy().stream().map(input -> input + " " + node.getOrderingScheme().getOrdering(input)).collect(...
).collect(toImmutableList());
778,695
public static void invokeDiscovery(WebConversation wc, TestSettings settings, String action, List<validationData> expectations) throws Exception {<NEW_LINE>WebRequest request = null;<NEW_LINE>WebResponse response = null;<NEW_LINE>String thisMethod = "invokeDiscovery";<NEW_LINE>msgUtils.printMethodName(thisMethod);<NEW_...
"Exception message: " + e.getMessage());
1,574,460
public static IndexInfo indexInfoOf(Document sourceDocument) {<NEW_LINE>Document keyDbObject = (Document) sourceDocument.get("key");<NEW_LINE>int numberOfElements = keyDbObject.keySet().size();<NEW_LINE>List<IndexField> indexFields = new ArrayList<IndexField>(numberOfElements);<NEW_LINE>for (String key : keyDbObject.ke...
(IndexField.geo(key));
581,925
public static JibContainerBuilder toJibContainerBuilder(Path projectRoot, Path buildFilePath, Build buildCommandOptions, CommonCliOptions commonCliOptions, ConsoleLogger logger) throws InvalidImageReferenceException, IOException {<NEW_LINE>BuildFileSpec buildFile = toBuildFileSpec(buildFilePath, buildCommandOptions.get...
).ifPresent(containerBuilder::setEntrypoint);
622,142
private void waitForServer(String testName, List<String> startMessages) throws Exception {<NEW_LINE>String thisMethod = "waitForServer";<NEW_LINE>try {<NEW_LINE>// Check that the server detected the update; go on in either case - msgs will be logged either way<NEW_LINE>if (server.waitForStringInLogUsingMark("CWWKG0016I...
ex.printStackTrace(System.out);
1,033,907
void keyCallback(long window, int key, int scancode, int action, int mods) {<NEW_LINE>switch(action) {<NEW_LINE>case GLFW.GLFW_PRESS:<NEW_LINE>key = getGdxKeyCode(key);<NEW_LINE>eventQueue.keyDown(key, System.nanoTime());<NEW_LINE>pressedKeyCount++;<NEW_LINE>keyJustPressed = true;<NEW_LINE>pressedKeys[key] = true;<NEW_...
key, System.nanoTime());
350,674
public static boolean checkEntries(INDArray expected, INDArray actual, double maxRelativeDifference, double minAbsDifference) {<NEW_LINE>long[] outShape = expected.shape();<NEW_LINE>for (int i = 0; i < outShape[0]; i++) {<NEW_LINE>for (int j = 0; j < outShape[1]; j++) {<NEW_LINE>double expOut = expected.getDouble(i, j)...
actual.getDouble(i, j);
726,445
public void showConsoleOutput(JsArray<JsArrayEx> output) {<NEW_LINE>initializeOutput(RmdChunkOutputUnit.TYPE_TEXT);<NEW_LINE>// track number of newlines in output<NEW_LINE>int newlineCount = 0;<NEW_LINE>int maxCount = Satellite.isCurrentWindowSatellite() ? 10000 : 2000;<NEW_LINE>for (int i = 0; i < output.length(); i++...
(i).getInt(0);
1,189,163
public static RestActionReporter runCommand(String commandName, ParameterMap parameters, Subject subject, boolean managedJob) {<NEW_LINE>AsadminRecorderService asadminRecorderService = Globals.get(AsadminRecorderService.class);<NEW_LINE>if (asadminRecorderService != null && asadminRecorderService.isEnabled()) {<NEW_LIN...
addCommandLog(ar, commandName, parameters);
1,181,033
public ConnectResponse<Map<String, Map<String, List<String>>>> topics(final String connector) {<NEW_LINE>try {<NEW_LINE>LOG.<MASK><NEW_LINE>final ConnectResponse<Map<String, Map<String, List<String>>>> connectResponse = withRetries(() -> Request.get(resolveUri(CONNECTORS + "/" + connector + TOPICS)).setHeaders(requestH...
debug("Issuing request to Kafka Connect at URI {} to get active topics for {}", connectUri, connector);
75,642
public static CodegenExpression codegen(ExprDotNodeForgePropertyExpr forge, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenMethod methodNode = codegenMethodScope.makeChild(forge.getEvaluationType(), ExprDotNodeForgePropertyExprEvalIndexed...
refEPS = exprSymbol.getAddEPS(methodNode);
765,776
public Future<Result> resolve() {<NEW_LINE>FutureTask<Result> task = new FutureTask<Result>(new Callable<Result>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Result call() throws Exception {<NEW_LINE>final Result[] res = new Result[1];<NEW_LINE>try {<NEW_LINE>SwingUtilities.invokeAndWait(new Runnable() {<NEW_LINE><...
(Collections.singleton(codenamebase));
1,298,773
public boolean shouldOverrideUrlLoading(WebView view, String url) {<NEW_LINE>boolean isWebPage = url.startsWith(PAGE_PREFIX_HTTP) || url.startsWith(PAGE_PREFIX_HTTPS);<NEW_LINE>if (url.contains(WIKIVOYAGE_DOMAIN) && isWebPage) {<NEW_LINE>WikivoyageUtils.processWikivoyageDomain(activity, url, isNightMode());<NEW_LINE>fr...
(Uri.parse(url));
509,988
private void updateDisplayName() {<NEW_LINE>long tagsCount = 0;<NEW_LINE>try {<NEW_LINE>if (UserPreferences.showOnlyCurrentUserTags()) {<NEW_LINE>String <MASK><NEW_LINE>tagsCount = (filteringDSObjId > 0) ? Case.getCurrentCaseThrows().getServices().getTagsManager().getContentTagsCountByTagNameForUser(tagName, filteringD...
userName = System.getProperty(USER_NAME_PROPERTY);
1,174,265
private Concrete.Pattern visitPattern(Concrete.Pattern pattern, Concrete.Pattern widePattern) {<NEW_LINE>Concrete.Pattern newPattern;<NEW_LINE>if (pattern instanceof Concrete.NamePattern) {<NEW_LINE>Concrete.NamePattern namePattern = (Concrete.NamePattern) pattern;<NEW_LINE>newPattern = new Concrete.NamePattern(pattern...
).getReferable(), null);
803,543
MeasureValue[] insertMeasureValues(Bucket[] bucketValues, boolean createValues, int offset) {<NEW_LINE>int i = offset;<NEW_LINE>Object levelObj = this;<NEW_LINE>BucketListMap map = null;<NEW_LINE>while (i < allBuckets.length) {<NEW_LINE>map = (BucketListMap) levelObj;<NEW_LINE>int size = map.entries.size();<NEW_LINE>if...
(bucketValues[i], nextMap);
1,013,170
protected Void execute(CommandContext commandContext, TaskEntity task) {<NEW_LINE>boolean assignedToNoOne = false;<NEW_LINE>if (IdentityLinkType.ASSIGNEE.equals(identityType)) {<NEW_LINE>commandContext.getTaskEntityManager().changeTaskAssignee(task, identityId);<NEW_LINE>assignedToNoOne = identityId == null;<NEW_LINE>}...
taskId, identityId, identityType, true);
375,771
private void createBrowser(Composite parent) {<NEW_LINE>GridData data <MASK><NEW_LINE>data.grabExcessHorizontalSpace = true;<NEW_LINE>data.grabExcessVerticalSpace = true;<NEW_LINE>try {<NEW_LINE>browser = new Browser(parent, SWT.NO_BACKGROUND);<NEW_LINE>browser.setLayoutData(data);<NEW_LINE>browser.setBackground(parent...
= new GridData(GridData.FILL_BOTH);
1,319,898
private void encodeUserInfo(AAssociateRQAC rqac) {<NEW_LINE>encodeItemHeader(ItemType.USER_INFO, rqac.userInfoLength());<NEW_LINE>encodeMaxPDULength(rqac.getMaxPDULength());<NEW_LINE>encodeStringItem(ItemType.IMPL_CLASS_UID, rqac.getImplClassUID());<NEW_LINE>if (rqac.isAsyncOps())<NEW_LINE>encodeAsyncOpsWindow(rqac);<N...
getExtendedNegotiations()) encode(extNeg);
652,157
protected ResponseEntity<?> handleCachingSearch(NewznabParameters params, NewznabResponse.SearchType searchType, int searchRequestId) {<NEW_LINE>// Remove old entries<NEW_LINE>cache.entrySet().removeIf(x -> x.getValue().getLastUpdate().isBefore(clock.instant().minus(<MASK><NEW_LINE>CacheEntryValue cacheEntryValue;<NEW_...
MAX_CACHE_AGE_HOURS, ChronoUnit.HOURS)));
1,665,213
protected void merge() {<NEW_LINE>RajLog.d("[" + this.getClass().getName() + "] Merge nodes called on node: " + this);<NEW_LINE>if (mParent != null && mParent.canMerge()) {<NEW_LINE>RajLog.d("[" + this.getClass().getName() + "] Parent can merge...passing call up.");<NEW_LINE>mParent.merge();<NEW_LINE>} else {<NEW_LINE>...
(members.get(j));
186,385
public GoConfigValidity saveXml(String xmlPartial, String expectedMd5) {<NEW_LINE>GoConfigValidity hasValidRequest = checkValidity();<NEW_LINE>if (!hasValidRequest.isValid()) {<NEW_LINE>return hasValidRequest;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>return GoConfigValidity.valid(updatePartial(xmlPartial, expectedMd5));<NEW_...
, jsonException.getMessage()));
1,503,692
public Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String virtualNetworkGatewayName) {<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 IllegalArgumentException("Parame...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
322,208
public void unlock(Object lockName, Locker locker) {<NEW_LINE>synchronized (lockTable) {<NEW_LINE>Object o = lockTable.remove(lockName);<NEW_LINE>if (o == null || o == locker) {<NEW_LINE>// ----------------------------------------------------------<NEW_LINE>// Fastpath: no conflicts, the given locker was only holder,<N...
lockTable.put(lockName, theLock);
966,458
public final void initDesktop() {<NEW_LINE>_adapter = new DesktopAdapter(this);<NEW_LINE>setAdapter(_adapter);<NEW_LINE>setCurrentItem(Setup.appSettings().getDesktopPageCurrent());<NEW_LINE>if (Setup.appSettings().getDesktopShowIndicator() && _pageIndicator != null) {<NEW_LINE>_pageIndicator.setViewPager(this);<NEW_LIN...
.appSettings().getDesktopColumnCount();
790,104
public Void visitNewClass(NewClassTree node, Void p) {<NEW_LINE>if (checker.shouldSkipUses(TreeUtils.constructor(node))) {<NEW_LINE>return super.visitNewClass(node, p);<NEW_LINE>}<NEW_LINE>ParameterizedExecutableType fromUse = atypeFactory.constructorFromUse(node);<NEW_LINE>AnnotatedExecutableType constructorType = fro...
constructorName, constructor.getParameters());
83,664
private void annotateArrayAsArray(AnnotatedArrayType result, NewArrayTree node, AnnotatedTypeFactory f) {<NEW_LINE>// Copy annotations from the type.<NEW_LINE>AnnotatedTypeMirror treeElem = f.fromTypeTree(node.getType());<NEW_LINE>boolean hasInit = node.getInitializers() != null;<NEW_LINE>AnnotatedTypeMirror typeElem =...
addAnnotations(treeElem.getAnnotations());
1,437,980
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(targetPointer.getFirst(game, source));<NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>if (player != null && sourceObject != null) {<NEW_LINE>Card card = player.getHand().getRandom(game);<NEW_LINE>if (car...
Cards cards = new CardsImpl(card);
1,171,761
public void calculateSelection() {<NEW_LINE>m_noSelected = 0;<NEW_LINE>BigDecimal selectedAmt = new BigDecimal(0.0);<NEW_LINE>if (miniTable.getKeyColumnIndex() == -1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int[] rows = miniTable.getSelectedIndices();<NEW_LINE>for (int row = 0; row < rows.length; row++) {<NEW_LINE>BigDe...
(rows[row], amtColIndex);
41,142
private void createJournal(MJournalBatch journalBatch, int conversionTypeId, int calendarId, int budgetId) {<NEW_LINE>int noPeriods = 0;<NEW_LINE>if (getNoOfPeriods() == 0 || getNoOfPeriods() > 12)<NEW_LINE>noPeriods = 12;<NEW_LINE>else<NEW_LINE>noPeriods = getNoOfPeriods();<NEW_LINE>definePeriods(calendarId);<NEW_LINE...
setGL_JournalBatch_ID(journalBatch.getGL_JournalBatch_ID());
171,923
public static IFilledList<TraceList> loadTraces(final AbstractSQLProvider provider, final String tableName, final String columnName, final int containerId, final List<? extends INaviModule> modules) throws CouldntLoadDataException {<NEW_LINE>Preconditions.checkNotNull(provider, "IE00590: Provider argument can not be nu...
= new FilledList<TraceList>();
746,709
final GetContextKeysForPrincipalPolicyResult executeGetContextKeysForPrincipalPolicy(GetContextKeysForPrincipalPolicyRequest getContextKeysForPrincipalPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getContextKeysForPrincipalPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
905,618
public static void convolve3(Kernel2D_S32 kernel, GrayS16 input, GrayI16 output, int skip, int divisor) {<NEW_LINE>final short[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int radius = kernel.getRadius();<NEW_LINE>final int widthEnd = UtilDownConvolve.computeMaxSide(input.width, ...
UtilDownConvolve.computeOffset(skip, radius);
1,693,462
protected boolean innerExtract(CrawlURI curi) {<NEW_LINE>int links = 0;<NEW_LINE>InputStream contentStream = null;<NEW_LINE>ReplayInputStream documentStream = null;<NEW_LINE>SeekReader docReader = null;<NEW_LINE>// Get the doc as a repositionable reader<NEW_LINE>try {<NEW_LINE>contentStream = curi<MASK><NEW_LINE>if (co...
.getRecorder().getContentReplayInputStream();
1,034,497
public void init() throws StoreInitializationException {<NEW_LINE>if (initialized.get()) {<NEW_LINE>throw new StoreInitializationException("Illegal state while initializing store. Store was already initialized");<NEW_LINE>}<NEW_LINE>localStore.init();<NEW_LINE>createOrVerifySchemaTopic();<NEW_LINE>// set the producer p...
throw new StoreInitializationException("Illegal state while initializing store. Store " + "was already initialized");
334,735
public String generateToolTip(XYDataset dataset, int series, int item) {<NEW_LINE>if (!(dataset instanceof OHLCDataset)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>OHLCDataset d = (OHLCDataset) dataset;<NEW_LINE>Number high = d.getHigh(series, item);<NEW_LINE>Number low...
(close.doubleValue()));
1,224,041
private static Pair<FileObject, Pair<Boolean, Boolean>> findJDKRoot(FileObject projectDirectory) {<NEW_LINE>if (BuildUtils.getFileObject(projectDirectory, "../../../open/src/java.base/share/classes/module-info.java") != null && BuildUtils.getFileObject(projectDirectory, "../../../open/src/java.base/share/classes/module...
.of(true, true));
558,497
EncodedParameter encodeParameterValue(Object value, @Nullable PostgresTypeIdentifier dataType, @Nullable Object parameterValue) {<NEW_LINE>if (dataType == null) {<NEW_LINE>if (parameterValue == null) {<NEW_LINE>throw new IllegalArgumentException(String.format("Cannot encode null value %s using type inference", value));...
dataType.getObjectId(), NULL_VALUE);
138,156
public void enterIcl_standard(Icl_standardContext ctx) {<NEW_LINE>Long explicitSeq;<NEW_LINE>if (ctx.seq != null) {<NEW_LINE>Optional<Long> seqOpt = toLong(ctx, ctx.seq);<NEW_LINE>if (!seqOpt.isPresent()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>explicitSeq = seqOpt.get();<NEW_LINE>} else {<NEW_LINE>explicitSeq = null;<N...
("Cannot define standard community-list '%s' because another community-list with that" + " name but a different type already exists.", name));
44,495
private void translateStreamingImpulse(String id, RunnerApi.Pipeline pipeline, StreamingTranslationContext context) {<NEW_LINE>RunnerApi.PTransform pTransform = pipeline.getComponents().getTransformsOrThrow(id);<NEW_LINE>TypeInformation<WindowedValue<byte[]>> typeInfo = new CoderTypeInformation<>(WindowedValue.getFullC...
.values()), source);
310,710
public static void main(String[] args) {<NEW_LINE>final UserService userService = new UserServiceMapImpl();<NEW_LINE>post("/users", (request, response) -> {<NEW_LINE>response.type("application/json");<NEW_LINE>User user = new Gson().fromJson(request.body(), User.class);<NEW_LINE>userService.addUser(user);<NEW_LINE>retu...
).toJsonTree(editedUser)));
1,032,273
final CreateInstancesFromSnapshotResult executeCreateInstancesFromSnapshot(CreateInstancesFromSnapshotRequest createInstancesFromSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createInstancesFromSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
invoke(request, responseHandler, executionContext);
409,837
public static void main(String[] args) {<NEW_LINE>int n = 10, m = 18, i = 0;<NEW_LINE>Edge[] g = new Edge[m];<NEW_LINE>// Edges are treated as undirected<NEW_LINE>g[i++] = new Edge(0, 1, 5);<NEW_LINE>g[i++] = new Edge(0, 3, 4);<NEW_LINE>g[i++] = new Edge(0, 4, 1);<NEW_LINE>g[i++] = new Edge(1, 2, 4);<NEW_LINE>g[i++] = ...
Edge(3, 6, 11);
1,671,482
void reportViewDuration() {<NEW_LINE>L.d("[ModuleViews] View [" + lastView + "] is getting closed, reporting duration: [" + (UtilsTime.currentTimestampSeconds() - lastViewStart) + "] ms, current timestamp: [" + UtilsTime.currentTimestampSeconds() + "], last views start: [" + lastViewStart + "]");<NEW_LINE>if (lastView ...
segments = new HashMap<>();
407,478
public static DescribeEntitiesResponse unmarshall(DescribeEntitiesResponse describeEntitiesResponse, UnmarshallerContext context) {<NEW_LINE>describeEntitiesResponse.setRequestId(context.stringValue("DescribeEntitiesResponse.RequestId"));<NEW_LINE>describeEntitiesResponse.setEntityId(context.longValue("DescribeEntities...
(context.stringValue("DescribeEntitiesResponse.EntityType"));
177,439
public PhoneNumberValidateResult phoneNumberValidate(PhoneNumberValidateRequest phoneNumberValidateRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(phoneNumberValidateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionCont...
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
410,441
public Resource export(Graph graph) {<NEW_LINE>Resource implNode = super.export(graph);<NEW_LINE>ValueFactory vf = graph.getValueFactory();<NEW_LINE>if (hostlist != null) {<NEW_LINE>// -- graph.add(implNode, HOSTLIST, graph.getValueFactory().createLiteral(hostlist), new Resource[0]);<NEW_LINE>graph.add(implNode, HOST...
, vf.createLiteral(hostlist));
63,885
public static Map<String, String> createOptionMap(AuditEntryInfoData options) {<NEW_LINE>HashMap<String, String> map = new HashMap<>();<NEW_LINE>options.deleteMemberDays().toOptional().ifPresent(it -> map.put(OptionKey.DELETE_MEMBER_DAYS.getField(), it));<NEW_LINE>options.membersRemoved().toOptional().ifPresent(it -> m...
, it.asString()));
222,124
// getC_BPartner_ID<NEW_LINE>@Override<NEW_LINE>protected boolean beforeSave(boolean newRecord) {<NEW_LINE>MPayment payment = new MPayment(getCtx(), <MASK><NEW_LINE>if ((newRecord || is_ValueChanged("C_Invoice_ID")) && (payment.getC_Charge_ID() != 0 || payment.getC_Invoice_ID() != 0 || payment.getC_Order_ID() != 0)) {<...
getC_Payment_ID(), get_TrxName());
962,837
final DescribeDBClusterSnapshotsResult executeDescribeDBClusterSnapshots(DescribeDBClusterSnapshotsRequest describeDBClusterSnapshotsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDBClusterSnapshotsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
601,526
private List<String> rotateCommandCoordinates(String command, GcodeState state) throws GcodeParserException {<NEW_LINE>List<GcodeParser.GcodeMeta> gcodeMetas = GcodeParserUtils.processCommand(command, 0, state);<NEW_LINE>if (!isMovement(gcodeMetas)) {<NEW_LINE>return Collections.singletonList(command);<NEW_LINE>}<NEW_L...
gcodeMeta.state.inAbsoluteMode, null);
24,681
public static DescribeAntChainTransactionReceiptResponse unmarshall(DescribeAntChainTransactionReceiptResponse describeAntChainTransactionReceiptResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAntChainTransactionReceiptResponse.setRequestId(_ctx.stringValue("DescribeAntChainTransactionReceiptResponse.RequestId")...
= new ArrayList<String>();