idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,668,053
public static ListOrdersResponse unmarshall(ListOrdersResponse listOrdersResponse, UnmarshallerContext _ctx) {<NEW_LINE>listOrdersResponse.setRequestId(_ctx.stringValue("ListOrdersResponse.RequestId"));<NEW_LINE>listOrdersResponse.setTotalCount(_ctx.longValue("ListOrdersResponse.TotalCount"));<NEW_LINE>listOrdersRespon...
("ListOrdersResponse.Orders[" + i + "].LastModifyTime"));
519,132
public boolean execute(Object result) throws ContractExeException {<NEW_LINE>TransactionResultCapsule ret = (TransactionResultCapsule) result;<NEW_LINE>if (Objects.isNull(ret)) {<NEW_LINE>throw new RuntimeException(ActuatorConstant.TX_RESULT_NULL);<NEW_LINE>}<NEW_LINE>final SetAccountIdContract setAccountIdContract;<NE...
accountStore.put(ownerAddress, account);
1,530,483
@Timed<NEW_LINE>@ExceptionMetered<NEW_LINE>public CreateJobResponse post(@Valid final Job job, @RequestUser final String username) {<NEW_LINE>final Job.Builder clone = // If the job had a hash coming in, preserve it<NEW_LINE>job.toBuilder().setCreatingUser(username).setCreated(clock.now().getMillis()).setHash(job.getId...
errors = jobValidator.validate(actualJob);
1,667,886
final EnableAddOnResult executeEnableAddOn(EnableAddOnRequest enableAddOnRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableAddOnRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
invoke(request, responseHandler, executionContext);
1,178,817
final EnableVgwRoutePropagationResult executeEnableVgwRoutePropagation(EnableVgwRoutePropagationRequest enableVgwRoutePropagationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableVgwRoutePropagationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
(super.beforeMarshalling(enableVgwRoutePropagationRequest));
1,459,491
public ResponseEntity<String> receivePaymentConfirmation(HttpServletRequest request, @PathVariable("reservationId") String reservationId) {<NEW_LINE>return Optional.ofNullable(StringUtils.trimToNull(request.getParameter("id"))).flatMap(id -> purchaseContextManager.findByReservationId(reservationId).map(purchaseContext ...
new PaymentContext(purchaseContext, reservationId));
1,330,481
public void compute(double[][] seasonMatrix, int sP, int sQ, int season) {<NEW_LINE>int dataLength = TsMethod.seasonMatrix2Array(seasonMatrix).length;<NEW_LINE>// step 1: set residual[i]=0, if i<initPoint; set data[i]=0, if i<initPoint<NEW_LINE>double[] cResidual = new double[seasonMatrix[0].length];<NEW_LINE>// step 2...
+ sP, i + sP));
226,542
// Looks up various UUIDs for a user.<NEW_LINE>private void runUUIDTest(final Server server, final CommandSource sender, final String commandLabel, final String[] args) throws Exception {<NEW_LINE>if (args.length < 2) {<NEW_LINE>throw new Exception("/<command> uuidtest <name>");<NEW_LINE>}<NEW_LINE>final String name = ...
sender.sendMessage("Looking up UUID for " + name);
257,224
public void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>android.util.Log.i(TAG, "onActivityResult");<NEW_LINE>super.onActivityResult(requestCode, resultCode, data);<NEW_LINE>switch(requestCode) {<NEW_LINE>case IMPORT_KEY_REQUEST:<NEW_LINE>if (resultCode == Activity.RESULT_OK) {<NEW_LINE>if...
Log.e(TAG, "Failed to decode key.");
986,171
private void generateRealGetMethod(String name) {<NEW_LINE>String <MASK><NEW_LINE>Label elseLabel = new Label();<NEW_LINE>MethodVisitor mv = getMethodVisitor(name);<NEW_LINE>mv.visitCode();<NEW_LINE>mv.visitVarInsn(Opcodes.ALOAD, 1);<NEW_LINE>mv.visitTypeInsn(Opcodes.INSTANCEOF, accessorInterfaceInternalName);<NEW_LINE...
getterName = getRealGetterName(typeName, fieldTypeName);
1,382,050
private void addRelation(InternalRelationship layoutRelationship) {<NEW_LINE>if (layoutRelationship == null) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>throw new IllegalArgumentException("The arguments can not be null!");<NEW_LINE>} else {<NEW_LINE>double weight = layoutRelationship.getWeight();<NEW_LINE>weight = (weight <= 0 ...
.getSource().toString();
464,003
@RequiresPermissions(SidecarRestPermissions.COLLECTORS_READ)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "List all collectors")<NEW_LINE>public Response listCollectors(@Context HttpHeaders httpHeaders) {<NEW_LINE>String ifNoneMatch = httpHeaders.getHeaderString("If-None-Match");<NEW_LI...
ResponseBuilder builder = Response.noContent();
317,087
final DescribeActivitiesResult executeDescribeActivities(DescribeActivitiesRequest describeActivitiesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeActivitiesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
327,394
private static void testCRUDOperations() {<NEW_LINE>CatalogItem item = new CatalogItem();<NEW_LINE>item.setId(601);<NEW_LINE>item.setTitle("Book 601");<NEW_LINE>item.setISBN("611-1111111111");<NEW_LINE>item.setBookAuthors(new HashSet<String>(Arrays.asList("Author1", "Author2")));<NEW_LINE>// Save the item (book).<NEW_L...
System.out.println(updatedItem);
859,075
public void checkGiteeUpdate(final int appVersionCode) {<NEW_LINE>mCompositeSubscription.add(Update.checkGitee().observeOn(AndroidSchedulers.mainThread()).subscribe(new Action1<String>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void call(String json) {<NEW_LINE>try {<NEW_LINE>String versionName = new JSONObject<M...
(json).getString(APP_VERSIONNAME);
1,518,355
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see com.aptana.editor.common.CommonDocumentProvider#connect(java.lang.Object)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void connect(Object element) throws CoreException {<NEW_LINE>super.connect(element);<NEW_LINE>IDocument document = getDocument(element);<NEW_LINE>if (docum...
document, SVGSourceConfiguration.getDefault());
1,236,397
void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>int operandSize = decoder.state_operandSize;<NEW_LINE>instruction.setCode(codes[operandSize]);<NEW_LINE>if (decoder.state_mod < 3) {<NEW_LINE>decoder.state_zs_flags |= (flags & HandlerFlags.LOCK) << (13 - 3);<NEW_LINE>instruction.setOp0Kind(OpKind.MEMORY)...
instruction.setOp1Kind(OpKind.IMMEDIATE16);
397,720
protected void buttonPressed(int buttonId) {<NEW_LINE>if (buttonId == 0) {<NEW_LINE>response = JsonNodeFactory.instance.objectNode();<NEW_LINE>Iterator<String> iterator = userInput.fieldNames();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE><MASK><NEW_LINE>JsonNode value = userInput.path(fieldName);<NEW_LINE>if (!(val...
String fieldName = iterator.next();
1,701,556
private void initializeSemaphoreTaskFactories() {<NEW_LINE>factories.put(SemaphoreAcquireCodec.REQUEST_MESSAGE_TYPE, (cm, con) -> new AcquirePermitsMessageTask(cm, node, con));<NEW_LINE>factories.put(SemaphoreAvailablePermitsCodec.REQUEST_MESSAGE_TYPE, (cm, con) -> new AvailablePermitsMessageTask(cm, node, con));<NEW_L...
(cm, node, con));
1,610,561
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>final ViewGroup rootView = (ViewGroup) inflater.inflate(R.layout.person_detail_fragment, container, false);<NEW_LINE>Toolbar toolbar = rootView.findViewById(R.id.toolbar_main);<NEW_LINE>((AppCompatActivity) getA...
findViewById(R.id.person_role);
906,361
void ensureChildHelper() {<NEW_LINE>try {<NEW_LINE>if (mInnerChildHelper == null) {<NEW_LINE>mInnerChildHelper = mChildHelperField.get(mLayoutManager);<NEW_LINE>if (mInnerChildHelper == null)<NEW_LINE>return;<NEW_LINE>Class<?> helperClz = mInnerChildHelper.getClass();<NEW_LINE>mHideMethod = helperClz.getDeclaredMethod(...
bucketField = helperClz.getDeclaredField("mBucket");
673,453
public void addRemovalTimeById(String processInstanceId, Date removalTime) {<NEW_LINE>CommandContext commandContext = Context.getCommandContext();<NEW_LINE>commandContext.getHistoricActivityInstanceManager().addRemovalTimeToActivityInstancesByProcessInstanceId(processInstanceId, removalTime);<NEW_LINE>commandContext.ge...
).addRemovalTimeToUserOperationLogByProcessInstanceId(processInstanceId, removalTime);
1,241,728
public final static void YUVJtoRGB(byte y, byte cb, byte cr, byte[] data, int off) {<NEW_LINE>int y_ <MASK><NEW_LINE>int add_r = FIX_1_402 * cr + ONE_HALF;<NEW_LINE>int add_g = _FIX_0_34414 * cb - FIX_0_71414 * cr + ONE_HALF;<NEW_LINE>int add_b = FIX_1_772 * cb + ONE_HALF;<NEW_LINE>int r = (y_ + add_r) >> SCALEBITS;<NE...
= (y + 128) << SCALEBITS;
1,706,384
public void start(BundleContext context) throws Exception {<NEW_LINE>FileProtocolService service = new FileProtocolService() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getSchema() {<NEW_LINE>return "nfs";<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public ProtocolProvider getProtocolProvider() {<NEW_LIN...
FileProtocolService.class, service, null);
1,753,143
public static void init(Context context) throws Exception {<NEW_LINE>mContext = context;<NEW_LINE>try {<NEW_LINE>Logger.debug("initializing System...");<NEW_LINE>mStoragePath = getSettings().getString("PREF_SAVE_PATH", Environment.getExternalStorageDirectory().toString());<NEW_LINE>mSessionName = "csploit-session-" + j...
.getString("PREF_HTTPS_REDIRECTOR_PORT", "8082"));
920,426
private UaDataTypeNode newDataTypeNode(NodeId nodeId, List<DataValue> attributeValues) throws UaException {<NEW_LINE>DataValue nodeIdDataValue = attributeValues.get(0);<NEW_LINE><MASK><NEW_LINE>if (nodeIdStatusCode != null && nodeIdStatusCode.isBad()) {<NEW_LINE>throw new UaException(nodeIdStatusCode);<NEW_LINE>}<NEW_L...
StatusCode nodeIdStatusCode = nodeIdDataValue.getStatusCode();
1,681,130
public void validate(Object obj, Errors errors) {<NEW_LINE>CheckoutForm checkoutForm = (CheckoutForm) obj;<NEW_LINE>ValidationUtils.rejectIfEmptyOrWhitespace(errors, "billingAddress.addressLine1", "addressLine1.required");<NEW_LINE>ValidationUtils.<MASK><NEW_LINE>ValidationUtils.rejectIfEmptyOrWhitespace(errors, "billi...
rejectIfEmptyOrWhitespace(errors, "billingAddress.phonePrimary", "phone.required");
1,168,273
public byte[] decrypt(byte[] tagData) throws Exception {<NEW_LINE>if (!hasFixedKey() || !hasUnFixedKey())<NEW_LINE>throw new Exception(context.getString(R.string.key_not_present));<NEW_LINE>AmiiTool tool = new AmiiTool();<NEW_LINE>if (tool.setKeysFixed(fixedKey, fixedKey.length) == 0)<NEW_LINE>throw new Exception(conte...
(R.string.fail_decrypt));
389,258
/* Build call for throttlingPoliciesSubscriptionPolicyIdDelete */<NEW_LINE>private com.squareup.okhttp.Call throttlingPoliciesSubscriptionPolicyIdDeleteCall(String policyId, String ifMatch, String ifUnmodifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestL...
HashMap<String, Object>();
645,991
public boolean visit(MySqlJSONTableExpr.Column x) {<NEW_LINE>x.getName().accept(this);<NEW_LINE>if (x.isOrdinality()) {<NEW_LINE>print0(ucase ? " FOR ORDINALITY" : " for ordinality");<NEW_LINE>}<NEW_LINE>SQLDataType dataType = x.getDataType();<NEW_LINE>if (dataType != null) {<NEW_LINE>print(' ');<NEW_LINE>dataType.acce...
print0(ucase ? " ON EMPTY" : " on empty");
1,323,767
private static void correctSubjPass(SemanticGraph sg) {<NEW_LINE>if (sg.getRoots().isEmpty())<NEW_LINE>return;<NEW_LINE>SemanticGraph sgCopy = sg.makeSoftCopy();<NEW_LINE>SemgrexMatcher matcher = CORRECT_SUBJPASS_PATTERN.matcher(sgCopy);<NEW_LINE>while (matcher.find()) {<NEW_LINE>IndexedWord <MASK><NEW_LINE>IndexedWord...
gov = matcher.getNode("gov");
1,790,843
private static void applyAnnotationToMethodDecl(EclipseNode typeNode, MethodDeclaration mth, String annType, boolean typeUse) {<NEW_LINE>if (annType == null)<NEW_LINE>return;<NEW_LINE>int partCount = 1;<NEW_LINE>for (int i = 0; i < annType.length(); i++) if (annType.charAt(i) == '.')<NEW_LINE>partCount++;<NEW_LINE>long...
Annotation[a.length + 1];
320,923
ReferenceBinding resolve(LookupEnvironment environment, boolean convertGenericToRawType) {<NEW_LINE>ReferenceBinding targetType;<NEW_LINE>if (this != this.prototype) {<NEW_LINE>// $IDENTITY-COMPARISON$<NEW_LINE>targetType = this.prototype.resolve(environment, convertGenericToRawType);<NEW_LINE>if (convertGenericToRawTy...
this.compoundName.length - 1];
558,719
private IModuleFile loadModuleFile(LibraryDataSource source, String objectName) throws IOException {<NEW_LINE>XCOFFReader xcoff = null;<NEW_LINE>try {<NEW_LINE>switch(source.getType()) {<NEW_LINE>case FILE:<NEW_LINE>xcoff = new XCOFFReader(source.getFile());<NEW_LINE>break;<NEW_LINE>case STREAM:<NEW_LINE>xcoff = new XC...
getType().name());
1,013,780
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String workId, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW_LINE>Work work = null;<NE...
getId(), Attachment.class);
1,766,895
static String[] matchPrefixedField(String prefix, String rawText, char endChar, boolean trim) {<NEW_LINE>Vector matches = null;<NEW_LINE>int i = 0;<NEW_LINE>int max = rawText.length();<NEW_LINE>while (i < max) {<NEW_LINE>i = rawText.indexOf(prefix, i);<NEW_LINE>if (i < 0) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>// Skip p...
.substring(start, i));
292,920
public void putStorageMetaData(Collection<? extends StorageMetaData> collection) {<NEW_LINE>List<StatsStorageEvent> sses = null;<NEW_LINE>try {<NEW_LINE>PreparedStatement ps = connection.prepareStatement(INSERT_META_SQL);<NEW_LINE>for (StorageMetaData storageMetaData : collection) {<NEW_LINE>List<StatsStorageEvent> sse...
sses = new ArrayList<>();
1,632,035
public boolean visit(SQLAlterTableAddPartition x) {<NEW_LINE>boolean printAdd = true;<NEW_LINE>if (x.getParent() instanceof SQLAlterTableStatement) {<NEW_LINE>SQLAlterTableStatement stmt = (SQLAlterTableStatement) x.getParent();<NEW_LINE>int p = stmt.getChildren().indexOf(x);<NEW_LINE>if (p > 0 && stmt.getChildren().ge...
print0(ucase ? "IF NOT EXISTS " : "if not exists ");
818,840
private List<MethodNode> findOverriddenMethods(MethodNode methodNode) {<NEW_LINE>List<MethodNode> overriddenMethods = new ArrayList<>();<NEW_LINE>ClassNode classNode = methodNode.getDeclaringClass();<NEW_LINE>String methodName = methodNode.getName();<NEW_LINE>Map<String, Map<String, ClassNode>> genericsInfo = AstGeneri...
buildAllGenericElementInfo(classNode, createVisitorContext());
604,449
private CompositeFuture reconcileCredentialsQuotasAndAcls(Reconciliation reconciliation, KafkaUserModel user, KafkaUserStatus userStatus) {<NEW_LINE>Set<SimpleAclRule> tlsAcls = null;<NEW_LINE>Set<SimpleAclRule> scramOrNoneAcls = null;<NEW_LINE>KafkaUserQuotas tlsQuotas = null;<NEW_LINE>KafkaUserQuotas scramOrNoneQuota...
(ReconcileResult.noop(null));
346,450
public static void main(String[] args) {<NEW_LINE>Exercise29_SymbolTableWithRandomAccess exercise29_symbolTableWithRandomAccess = new Exercise29_SymbolTableWithRandomAccess();<NEW_LINE>SymbolTableWithRandomAccess<Integer, Integer> symbolTableWithRandomAccess = exercise29_symbolTableWithRandomAccess.new SymbolTableWithR...
symbolTableWithRandomAccess.insert(13, 13);
157,323
private int findPathSum(TreeNode node, int rootToNodeSum, int target, Map<Integer, Integer> prefixSumToTotalPrefixes) {<NEW_LINE>if (node == null) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>rootToNodeSum += node.val;<NEW_LINE>int amountToCompensateFor = rootToNodeSum - target;<NEW_LINE>int totalPathsEndingAtThisNode = pr...
(rootToNodeSum, 0) - 1);
476,678
// Reviewed vs. Native Jan 11, 2011<NEW_LINE>protected void _beforeNewSegment(int resizeBy) {<NEW_LINE>// Called for each new segment being added.<NEW_LINE>if (m_bPathStarted) {<NEW_LINE>// make sure the m_movetoPoint exists and has<NEW_LINE>_initPathStartPoint();<NEW_LINE>// right vertex description<NEW_LINE>// The ne...
m_paths.write(0, 0);
1,094,989
private void buildSets(List<int[]> foldContents) {<NEW_LINE>this.folds.clear();<NEW_LINE>for (int i = 0; i < this.k; i++) {<NEW_LINE>// first calculate the size<NEW_LINE>int trainingSize = 0;<NEW_LINE>int validationSize = 0;<NEW_LINE>for (int j = 0; j < foldContents.size(); j++) {<NEW_LINE>int foldSize = foldContents.g...
MatrixMLDataSet(this.baseDataset, validationMask);
538,990
public static void print(PacketCapture resource) {<NEW_LINE>StringBuilder sb = new StringBuilder().append("Packet Capture: ").append(resource.id()).append("\n\tName: ").append(resource.name()).append("\n\tTarget id: ").append(resource.targetId()).append("\n\tTime limit in seconds: ").append(resource.timeLimitInSeconds(...
append(filter.protocol());
201,449
public SftpConfigurationValidator validate(String host, String port, String user, String identityFile, String knownHostsFile, String initialDirectory, String timeout, String keepAliveInterval) {<NEW_LINE>String <MASK><NEW_LINE>if (err != null) {<NEW_LINE>// NOI18N<NEW_LINE>result.addError(new ValidationResult.Message("...
err = RemoteValidator.validateHost(host);
1,000,918
protected void onActivityResult(final int requestCode, final int resultCode, @Nullable final Intent data) {<NEW_LINE>super.<MASK><NEW_LINE>if (requestCode == REQUEST_CODE_WIZARD_GC) {<NEW_LINE>if (!hasValidGCCredentials()) {<NEW_LINE>Toast.makeText(this, R.string.err_auth_process, Toast.LENGTH_SHORT).show();<NEW_LINE>}...
onActivityResult(requestCode, resultCode, data);
1,216,469
private Serde<GenericKey> createInner(final FormatInfo format, final PersistenceSchema schema, final KsqlConfig ksqlConfig, final Supplier<SchemaRegistryClient> schemaRegistryClientFactory, final String loggerNamePrefix, final ProcessingLogContext processingLogContext, final Optional<TrackedCallback> tracker) {<NEW_LIN...
wrapInLoggingSerde(genericKeySerde, loggerNamePrefix, processingLogContext);
797,683
protected void doImportSelectionAction(Program program, ProgramSelection selection) {<NEW_LINE>if (selection == null || selection.getNumAddressRanges() != 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// should only be 1<NEW_LINE>AddressRange range = selection.getFirstRange();<NEW_LINE>if (range.getLength() >= Integer.MAX_...
loaderMap = LoaderService.getAllSupportedLoadSpecs(bp);
84,595
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>try {<NEW_LINE>response.setContentType("application/json");<NEW_LINE>response.setStatus(HttpServletResponse.SC_OK);<NEW_LINE>response.setCharacterEncoding("UTF-8");<NEW_LINE>response.setHeader(...
getWriter().println("");
1,642,190
public List<Product> readProductsByIds(List<Long> productIds) {<NEW_LINE>if (productIds == null || productIds.size() == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (productIds.size() > 100) {<NEW_LINE>logger.warn("Not recommended to use the readProductsByIds method for long lists of productIds, since " + "Hiberna...
size()]))));
888,442
public void reload(CommandContext args, Actor sender) throws CommandException {<NEW_LINE>// TODO: This is subject to a race condition, but at least other commands are not being processed concurrently<NEW_LINE>List<Task<?>> tasks = WorldGuard.getInstance()<MASK><NEW_LINE>if (!tasks.isEmpty()) {<NEW_LINE>throw new Comman...
.getSupervisor().getTasks();
748,404
public int maximumGeeks(int[] input) {<NEW_LINE>int[] lhs = new int[input.length];<NEW_LINE>int[] rhs = new int[input.length];<NEW_LINE>lhs[0] = 0;<NEW_LINE>for (int i = 1; i < lhs.length; i++) {<NEW_LINE>if (input[lhs[i - 1]] < input[i]) {<NEW_LINE>lhs[i<MASK><NEW_LINE>} else {<NEW_LINE>lhs[i] = i;<NEW_LINE>}<NEW_LINE...
] = lhs[i - 1];
442,357
private void findLabels(char[] label, char[][] choices) {<NEW_LINE>if (choices == null || choices.length == 0)<NEW_LINE>return;<NEW_LINE>int length = label.length;<NEW_LINE>for (int i = 0; i < choices.length; i++) {<NEW_LINE>if (length <= choices[i].length && CharOperation.prefixEquals(label, choices[i], false)) {<NEW_...
relevance += computeRelevanceForRestrictions(IAccessRule.K_ACCESSIBLE);
1,747,111
public JCExpression staticReference(Inliner inliner, CharSequence topLevelClazz, CharSequence fullyQualifiedClazz, CharSequence member) {<NEW_LINE>if (Refaster.class.getName().contentEquals(topLevelClazz)) {<NEW_LINE>// Special handling to ensure that the pretty-printer always recognizes Refaster references<NEW_LINE>re...
String importableName = fullyQualifiedClazz + "." + member;
170,494
private void logXmlTask(CategorizedProblem problem, char[] unitSource) {<NEW_LINE>HashMap<String, Object> parameters = new HashMap<>();<NEW_LINE>parameters.put(Logger.PROBLEM_LINE, Integer.valueOf(problem.getSourceLineNumber()));<NEW_LINE>parameters.put(Logger.PROBLEM_SOURCE_START, Integer.valueOf(problem.getSourceStar...
getProblemOptionKey(problem.getID());
1,453,575
public static DescribeBackupPoliciesResponse unmarshall(DescribeBackupPoliciesResponse describeBackupPoliciesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupPoliciesResponse.setRequestId(_ctx.stringValue("DescribeBackupPoliciesResponse.RequestId"));<NEW_LINE>PageInfo pageInfo = new PageInfo();<NEW_LINE>pag...
(_ctx.integerValue("DescribeBackupPoliciesResponse.PageInfo.Count"));
684,056
public ExecuteTransactionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExecuteTransactionResult executeTransactionResult = new ExecuteTransactionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
JsonToken token = context.getCurrentToken();
737,452
public static GetPatentTimeStatisticsInfoResponse unmarshall(GetPatentTimeStatisticsInfoResponse getPatentTimeStatisticsInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>getPatentTimeStatisticsInfoResponse.setRequestId(_ctx.stringValue("GetPatentTimeStatisticsInfoResponse.RequestId"));<NEW_LINE>getPatentTimeStatistics...
("GetPatentTimeStatisticsInfoResponse.Data[" + i + "].ThreeMonthCount"));
368,524
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String test = request.getParameter("test");<NEW_LINE>String idString = request.getParameter("taskid");<NEW_LINE>PrintWriter out = response.getWriter();<NEW_LINE>try {<NEW_LINE>out.println(getCl...
println(test + " " + SUCCESS_MESSAGE);
1,774,503
public void run(RegressionEnvironment env) {<NEW_LINE>String eplOne = "@name('s0') select * " + "from SupportBean_S0#keepall as s0, SupportBean_S1#keepall as s1 " + "where s0.p00 = s1.p10 and s0.p01 = s1.p11 and s0.p02 > s1.p12";<NEW_LINE>env.compileDeploy(eplOne).addListener("s0");<NEW_LINE>sendS0(env, 10, "a0", "b0",...
{ { 10, 20 } });
1,555,233
protected void addNewHistoryCommit(Directory indexDirectory, Terminal terminal, boolean updateLocalCheckpoint) throws IOException {<NEW_LINE>final String historyUUID = UUIDs.randomBase64UUID();<NEW_LINE>terminal.println("Marking index with the new history uuid : " + historyUUID);<NEW_LINE>// commit the new history id<N...
put(Engine.HISTORY_UUID_KEY, historyUUID);
747,052
public ListRecipesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListRecipesResult listRecipesResult = new ListRecipesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurr...
String currentParentElement = context.getCurrentParentElement();
680,590
protected Round createRoundSwiss() {<NEW_LINE>List<TournamentPlayer> roundPlayers = getActivePlayers();<NEW_LINE>boolean isLastRound = (rounds.size() + 1 == getNumberRounds());<NEW_LINE>Round round = null;<NEW_LINE>if (options.matchOptions.getNumSeats() == 2) {<NEW_LINE>RoundPairings roundPairings;<NEW_LINE>if (roundPl...
playerBye.setState(TournamentPlayerState.FINISHED);
883,286
public void fixSize(int left, int top, int width, int height) {<NEW_LINE>if (mVideoWidth == 0 || mVideoHeight == 0) {<NEW_LINE>mVisibleLeft = left;<NEW_LINE>mVisibleTop = top;<NEW_LINE>mVisibleWidth = width;<NEW_LINE>mVisibleHeight = height;<NEW_LINE>} else if (width != 0 && height != 0) {<NEW_LINE>if (mKeepRatio && !m...
MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT);
1,821,823
public List<Node> querySelectorAll(Node node, String selector) {<NEW_LINE>List<Node> list = Collections.emptyList();<NEW_LINE>JSONObject params = new JSONObject();<NEW_LINE>// NOI18N<NEW_LINE>params.put("nodeId", node.getNodeId());<NEW_LINE>// NOI18N<NEW_LINE>params.put("selector", selector);<NEW_LINE>// NOI18N<NEW_LIN...
n = nodes.get(nodeId);
1,109,119
private static SQLResponse executeAndConvertResult(PreparedStatement preparedStatement) throws SQLException {<NEW_LINE>if (preparedStatement.execute()) {<NEW_LINE>ResultSetMetaData metadata = preparedStatement.getMetaData();<NEW_LINE>ResultSet resultSet = preparedStatement.getResultSet();<NEW_LINE>List<Object[]> rows =...
new DataType[0], updateCount);
1,243,985
public void unparse(SqlWriter writer, int leftPrec, int rightPrec) {<NEW_LINE>writer.startList(SqlWriter.FrameTypeEnum.SELECT);<NEW_LINE>writer.sep(isUpsert() ? "UPSERT" : "INSERT");<NEW_LINE>for (SqlNode keyword : keywords) {<NEW_LINE>keyword.unparse(writer, 0, 0);<NEW_LINE>}<NEW_LINE>writer.sep("INTO");<NEW_LINE>fina...
unparse(writer, opLeft, opRight);
1,764,496
public // the existing shared durable subscription.<NEW_LINE>void testCreateSharedDurableConsumer_Sel_2Subscribers(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>JMSContext jmsContext = tcfBindings.createContext();<NEW_LINE>JMSConsumer jmsConsumer1 = jmsContext.createDurableConsum...
TextMessage) jmsConsumer1.receive(DEFAULT_TIMEOUT);
769,939
private boolean extraDataIsValid(final Collection<Address> expectedValidators, final BlockHeader header) {<NEW_LINE>final CliqueExtraData cliqueExtraData = CliqueExtraData.decode(header);<NEW_LINE>final Address proposer = cliqueExtraData.getProposerAddress();<NEW_LINE>if (!expectedValidators.contains(proposer)) {<NEW_L...
expectedValidators, cliqueExtraData.getValidators());
573,780
public BatchCreateVariableError unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchCreateVariableError batchCreateVariableError = new BatchCreateVariableError();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
int originalDepth = context.getCurrentDepth();
1,075,379
public static final SchemaLocation parseURI(String uri) {<NEW_LINE>try {<NEW_LINE>int hashmarkIdx = uri.indexOf("#");<NEW_LINE>if (hashmarkIdx > -1) {<NEW_LINE>String rootDocumentURI;<NEW_LINE>String rawPointer;<NEW_LINE>if (hashmarkIdx == uri.length() - 1) {<NEW_LINE>rootDocumentURI = uri;<NEW_LINE>rawPointer = "";<NE...
uri.substring(0, hashmarkIdx);
1,533,220
private CompletionStage<KeyEntry> prepareFindKey(SRRset rrset) {<NEW_LINE>FindKeyState state = new FindKeyState();<NEW_LINE>state<MASK><NEW_LINE>state.qclass = rrset.getDClass();<NEW_LINE>if (state.signerName == null) {<NEW_LINE>state.signerName = rrset.getName();<NEW_LINE>}<NEW_LINE>SRRset trustAnchorRRset = this.trus...
.signerName = rrset.getSignerName();
1,713,507
public Document retriveDocument(XMLEventReader xmlEventReader) throws ParserConfigurationException {<NEW_LINE>DocumentBuilderFactory dbfInstance = DocumentBuilderFactory.newInstance();<NEW_LINE>DocumentBuilder documentBuilder = dbfInstance.newDocumentBuilder();<NEW_LINE>Document document = documentBuilder.newDocument()...
ele.getLocation(), null);
999,367
public boolean pullImage(InstallationParam installationParam) {<NEW_LINE>List<Machine> machineList = installationParam.getMachineList();<NEW_LINE><MASK><NEW_LINE>String clusterName = cluster.getClusterName();<NEW_LINE>String image = cluster.getImage();<NEW_LINE>List<Future<Boolean>> resultFutureList = new ArrayList<>(m...
Cluster cluster = installationParam.getCluster();
1,822,980
private Environment createOrUpdateEnvironment(EnvironmentSpec spec, String operation) {<NEW_LINE>EnvironmentEntity entity = new EnvironmentEntity();<NEW_LINE>String environmentId = generateEnvironmentId().toString();<NEW_LINE>entity.setId(environmentId);<NEW_LINE>entity.<MASK><NEW_LINE>entity.setEnvironmentSpec(new Gso...
setEnvironmentName(spec.getName());
408,446
private Map<String, TestClassResult> toResultsMap(Map<String, Map<UniqueId, TestResult>> resultsByClass) {<NEW_LINE>Map<String, TestClassResult> resultMap = new HashMap<>();<NEW_LINE>Set<String> classes = new HashSet<>(resultsByClass.keySet());<NEW_LINE>for (String clazz : classes) {<NEW_LINE>List<TestResult> <MASK><NE...
passing = new ArrayList<>();
1,647,932
public static ListPublishVersionsResponse unmarshall(ListPublishVersionsResponse listPublishVersionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listPublishVersionsResponse.setRequestId(_ctx.stringValue("ListPublishVersionsResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setPageNumber(_ctx.intege...
("ListPublishVersionsResponse.Data.Items[" + i + "].ModifiedTime"));
109,579
private void initPlugins() {<NEW_LINE>List<OsmandPlugin> notFunctionalPlugins = OsmandPlugin.getNotActivePlugins();<NEW_LINE>notFunctionalPlugins.remove(OsmandPlugin.getPlugin(SkiMapsPlugin.class));<NEW_LINE>notFunctionalPlugins.remove(OsmandPlugin.getPlugin(NauticalMapsPlugin.class));<NEW_LINE>Collections.shuffle(notF...
> it = enabledPlugins.iterator();
366,899
public static void finish_time_warp() {<NEW_LINE>long completed_ticks = time_warp_scheduled_ticks - time_bias;<NEW_LINE>double milis_to_complete <MASK><NEW_LINE>if (milis_to_complete == 0.0) {<NEW_LINE>milis_to_complete = 1.0;<NEW_LINE>}<NEW_LINE>milis_to_complete /= 1000000.0;<NEW_LINE>int tps = (int) (1000.0D * compl...
= System.nanoTime() - time_warp_start_time;
1,403,059
public void formAst(String fullPath, List<String> locations, String className) {<NEW_LINE>Program program = SootResolver.v().getProgram();<NEW_LINE>CompilationUnit u = program.getCachedOrLoadCompilationUnit(fullPath);<NEW_LINE>if (u != null && !u.isResolved) {<NEW_LINE>u.isResolved = true;<NEW_LINE>java.util.ArrayList<...
logger.debug("" + p);
1,782,543
private String formatJVMArgs(String jvmargs) {<NEW_LINE>// NOI18N<NEW_LINE>if (jvmargs == null || jvmargs.isEmpty())<NEW_LINE>return NbBundle.getMessage(JFRSnapshotOverviewView.class, "LBL_none");<NEW_LINE>// NOI18N<NEW_LINE>String mangledString = " ".concat(jvmargs).replace(" -", "\n");<NEW_LINE>// NOI18N<NEW_LINE>Str...
equalsSign = arg.indexOf('=');
135,982
private void draw(Coordinate[] points, Canvas canvas, RotatedTileBox tileBox, int tileX, int tileY, int tileZoom) {<NEW_LINE>if (points.length > 1) {<NEW_LINE>int zoomDiff = tileBox.getZoom() - tileZoom;<NEW_LINE>int mult = (int) Math.pow(2.0, zoomDiff);<NEW_LINE>QuadRect tileBounds = tileBox.getTileBounds();<NEW_LINE>...
= (tileY + py) * mult;
1,462,118
public void writeProperty(DataType dataType, Object value) {<NEW_LINE>switch(dataType) {<NEW_LINE>case BOOLEAN:<NEW_LINE>this.writeVInt(((Boolean) value) ? 1 : 0);<NEW_LINE>break;<NEW_LINE>case BYTE:<NEW_LINE>this.writeVInt((Byte) value);<NEW_LINE>break;<NEW_LINE>case INT:<NEW_LINE>this.writeVInt((Integer) value);<NEW_...
writeLong(uuid.getMostSignificantBits());
259,877
// This test case will test the AutoCloseable feature for QueueSender<NEW_LINE>public void testQueueSenderClose(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>expectedExceptionFlag = false;<NEW_LINE>unexpectedExceptionFlag = false;<NEW_LINE>QueueSender sender1 = null;<NEW_LINE>Tex...
QueueConnection con = QCFBindings.createQueueConnection();
1,751,930
private void initializeTerminal() {<NEW_LINE>terminalTabPane.getTabs().addListener(new ListChangeListener<Tab>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onChanged(Change<? extends Tab> c) {<NEW_LINE>while (c.next()) {<NEW_LINE>recordTerminalButton.setDisable(c.getList().isEmpty());<NEW_LINE>}<NEW_LINE>}<NEW...
closeTerminalButton.setOnAction(this::closeTerminal);
1,209,438
public static List<List<Poker>> distributePoker() {<NEW_LINE>Collections.shuffle(basePokers);<NEW_LINE>List<List<Poker>> pokersList = new ArrayList<MASK><NEW_LINE>List<Poker> pokers1 = new ArrayList<>(17);<NEW_LINE>pokers1.addAll(basePokers.subList(0, 17));<NEW_LINE>List<Poker> pokers2 = new ArrayList<>(17);<NEW_LINE>p...
<List<Poker>>();
1,285,044
public boolean isChanged() {<NEW_LINE>ListModel formattersModel = formattersList.getModel();<NEW_LINE>VariablesFormatter[] formatters = new VariablesFormatter[formattersModel.getSize()];<NEW_LINE>for (int i = 0; i < formatters.length; i++) {<NEW_LINE>formatters[i] = (<MASK><NEW_LINE>}<NEW_LINE>VariablesFormatter[] save...
VariablesFormatter) formattersModel.getElementAt(i);
1,638,560
public void swapInspectionEnableState() {<NEW_LINE>LOG.assertTrue(myTreeTable != null);<NEW_LINE>Boolean state = null;<NEW_LINE>final HashSet<HighlightDisplayKey> tools = new HashSet<HighlightDisplayKey>();<NEW_LINE>final List<InspectionConfigTreeNode> nodes = new ArrayList<InspectionConfigTreeNode>();<NEW_LINE>for (Tr...
setToolEnabled(newState, profile, tool);
1,803,601
private Object js_getInt(int bytes, boolean signed, Object[] args) {<NEW_LINE>int pos = determinePos(args);<NEW_LINE>rangeCheck(pos, bytes);<NEW_LINE>boolean littleEndian = isArg(args, 1) && (bytes > 1) && ScriptRuntime.toBoolean(args[1]);<NEW_LINE>switch(bytes) {<NEW_LINE>case 1:<NEW_LINE>if (signed) {<NEW_LINE>return...
buffer, offset + pos, littleEndian);
778,396
private Mono<Response<Flux<ByteBuffer>>> activateWithResponseAsync(String resourceGroupName, String accountName, String livePipelineName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cann...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,629,296
private void lookup(Name current) {<NEW_LINE>SetResponse sr = cache.lookupRecords(current, type, credibility);<NEW_LINE>// extended logging<NEW_LINE>LogManager.i(this, "cache: " + sr.toString());<NEW_LINE>if (sr.isSuccessful()) {<NEW_LINE>LogManager.i(this, "cache: " + Arrays.toString(sr.answers()));<NEW_LINE>}<NEW_LIN...
"catch exception: " + e.toString());
1,134,826
private void updateDocPanel(ContentMimePair content, JEditorPane textEditor, final JScrollPane scroller) {<NEW_LINE><MASK><NEW_LINE>textEditor.setText(content.content);<NEW_LINE>SwingUtilities.invokeLater(() -> {<NEW_LINE>scroller.getViewport().setViewPosition(new Point(0, 0));<NEW_LINE>Document document = readmePane.g...
textEditor.setContentType(content.mimeType);
917,007
public com.amazonaws.services.kms.model.InvalidGrantIdException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kms.model.InvalidGrantIdException invalidGrantIdException = new com.amazonaws.services.kms.model.InvalidGrantIdException(null);<NEW_LINE>int originalD...
JsonToken token = context.getCurrentToken();
780,315
private boolean hasNestedNulls(Type type, Object value) {<NEW_LINE>if (type instanceof RowType) {<NEW_LINE>Block container = (Block) value;<NEW_LINE>RowType rowType = (RowType) type;<NEW_LINE>for (int i = 0; i < rowType.getFields().size(); i++) {<NEW_LINE>Type elementType = rowType.getFields().get(i).getType();<NEW_LIN...
Type elementType = arrayType.getElementType();
922,545
public void doIndelRefConfCalc(final int ploidy, final byte[] ref, final ReadPileup pileup, final int refOffset, final ReferenceConfidenceResult refResult) {<NEW_LINE>final RefVsAnyResult homRefCalc = (RefVsAnyResult) refResult;<NEW_LINE>// genotype likelihood calculation<NEW_LINE>final GenotypeLikelihoods snpGLs = Gen...
indelGLs = getIndelPLs(ploidy, nIndelInformativeReads);
1,167,059
public static int romanToArabic(String input) {<NEW_LINE><MASK><NEW_LINE>int result = 0;<NEW_LINE>List<RomanNumeral> romanNumerals = RomanNumeral.getReverseSortedValues();<NEW_LINE>int i = 0;<NEW_LINE>while ((romanNumeral.length() > 0) && (i < romanNumerals.size())) {<NEW_LINE>RomanNumeral symbol = romanNumerals.get(i)...
String romanNumeral = input.toUpperCase();
1,578,426
public void remoteFlush(RemoteFlushRequest request, StreamObserver<RemoteFlushResponse> responseObserver) {<NEW_LINE>long flushSnapshotId = request.getSnapshotId();<NEW_LINE>long waitTimeMs = request.getWaitTimeMs();<NEW_LINE>logger.info("flush snapshot id [" + flushSnapshotId + "] with timeout [" + waitTimeMs + "]ms")...
graphWriter.flushSnapshot(flushSnapshotId, waitTimeMs);
1,361,910
private void generateJavaComment(@NonNull final StringBuilder result, @NonNull final ColumnInfo columnInfo, @NonNull final String startOfComment, @Nullable final String deprecated) {<NEW_LINE>final String propertyName = columnInfo.getName();<NEW_LINE>result.append("\n").append("\t/**").append("\n\t * ").append(startOfC...
append(description.trim());
1,204,614
public void decode(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersion version) {<NEW_LINE>this.locale = <MASK><NEW_LINE>this.viewDistance = buf.readByte();<NEW_LINE>this.chatVisibility = ProtocolUtils.readVarInt(buf);<NEW_LINE>this.chatColors = buf.readBoolean();<NEW_LINE>if (version.compareTo(ProtocolVers...
ProtocolUtils.readString(buf, 16);