idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,048,700
public void marshall(GatewayInfo gatewayInfo, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (gatewayInfo == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(gatewayInfo.getGatewayId(), GATEWAYID_BINDING);<NEW...
gatewayInfo.getGatewayARN(), GATEWAYARN_BINDING);
399,543
private static RecordChangeLogEntry retrieveLogEntry(@NonNull final ResultSet rs, @NonNull final AdTableId tableId) throws SQLException {<NEW_LINE>final POInfo poInfo = POInfo.getPOInfo(tableId);<NEW_LINE>final RecordChangeLogEntryValuesResolver valueResolver = adTabled2RecordChangeLogEntryValuesResolver.getOrLoad(tabl...
(rs.getInt("UpdatedBy"));
138,797
public void testDeliveryMultipleMsgsClassicApi(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean testFailed = false;<NEW_LINE>QueueConnection con = jmsQCFBindings.createQueueConnection();<NEW_LINE>con.start();<NEW_LINE>QueueSession sessionSender = con.createQueueSession(false...
TextMessage) rec.receive(30000);
1,344,046
protected boolean changeStatus(PrimaryStorageStatus status) {<NEW_LINE>self = dbf.reload(self);<NEW_LINE>if (status == self.getStatus()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>self.setStatus(status);<NEW_LINE>self = dbf.updateAndRefresh(self);<NEW_LINE>PrimaryStorageStatusChangedData d = new Prima...
PrimaryStorageStatus oldStatus = self.getStatus();
1,772,921
public Result invoke(Invocation invocation) throws RpcException {<NEW_LINE>if (invocation instanceof RpcInvocation) {<NEW_LINE>((RpcInvocation<MASK><NEW_LINE>}<NEW_LINE>String mock = getUrl().getMethodParameter(invocation.getMethodName(), MOCK_KEY);<NEW_LINE>if (StringUtils.isBlank(mock)) {<NEW_LINE>throw new RpcExcept...
) invocation).setInvoker(this);
1,268,013
private void createExpandBar() {<NEW_LINE>Composite createOn;<NEW_LINE>if (parent == null) {<NEW_LINE>createOn = skin.getShell();<NEW_LINE>} else {<NEW_LINE>createOn = <MASK><NEW_LINE>}<NEW_LINE>int style = SWT.NONE;<NEW_LINE>if (properties.getIntValue(sConfigID + ".border", 0) == 1) {<NEW_LINE>style = SWT.BORDER;<NEW_...
(Composite) parent.getControl();
430,630
public static void traverseRelationships(org.docx4j.openpackaging.packages.OpcPackage wordMLPackage, RelationshipsPart rp, StringBuilder sb, String indent) {<NEW_LINE>// TODO: order by rel id<NEW_LINE>for (Relationship r : rp.getRelationships().getRelationship()) {<NEW_LINE>log.info("For Relationship Id=" + r.getId() +...
", Target is " + r.getTarget());
1,327,200
public boolean isAnagram(String s, String t) {<NEW_LINE>String[] sa = s.split("");<NEW_LINE>String[] ta = t.split("");<NEW_LINE>if (sa.length != ta.length) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>HashMap<String, Integer> con = new HashMap<>();<NEW_LINE>for (int i = 0; i < ta.length; i++) {<NEW_LINE>if (con.get(ta[...
.get(sa[i]);
328,537
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_program_buttons);<NEW_LINE>FancyButton facebookLoginBtn = new FancyButton(this);<NEW_LINE>facebookLoginBtn.setText("Login with Facebook");<NEW_LINE>facebookLoginBtn.setBackgroundCo...
foursquareBtn.setIconPosition(FancyButton.POSITION_TOP);
355,189
private Mono<PagedResponse<ApplicationGatewaySslPredefinedPolicyInner>> listAvailableSslPredefinedPoliciesSinglePageAsync() {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
683,392
public void entitySpecificUpdate() throws IOException {<NEW_LINE>Webhook origWebhook = original.getEntity();<NEW_LINE>Webhook updatedWebhook = updated.getEntity();<NEW_LINE>recordChange("enabled", origWebhook.getEnabled(), updatedWebhook.getEnabled());<NEW_LINE>recordChange("status", origWebhook.getStatus(), updatedWeb...
getWebhook().getFailureDetails());
888,878
private static void pointDouble(PointAccum r) {<NEW_LINE>int[] a = F.create();<NEW_LINE>int[<MASK><NEW_LINE>int[] c = F.create();<NEW_LINE>int[] e = r.u;<NEW_LINE>int[] f = F.create();<NEW_LINE>int[] g = F.create();<NEW_LINE>int[] h = r.v;<NEW_LINE>F.sqr(r.x, a);<NEW_LINE>F.sqr(r.y, b);<NEW_LINE>F.sqr(r.z, c);<NEW_LINE...
] b = F.create();
82,584
public ListAliasesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListAliasesResult listAliasesResult = new ListAliasesResult();<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();
1,746,278
public void scrutinize(Statement statement, EntityIdValue entityId, boolean added) {<NEW_LINE>if (!added) {<NEW_LINE>// not scrutinizing removed statements<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Snak mainSnak = statement<MASK><NEW_LINE>PropertyIdValue pid = mainSnak.getPropertyId();<NEW_LINE>List<Statement> statementList...
.getClaim().getMainSnak();
1,189,098
private Sequence checkOptionX(Sequence[] srcSeries, Sequence table, String[] names) {<NEW_LINE>if (option == null || option.indexOf('x') == -1 || table == null) {<NEW_LINE>return table;<NEW_LINE>}<NEW_LINE>ListBase1 mems = table.getMems();<NEW_LINE>int size = mems.size();<NEW_LINE>if (size == 0) {<NEW_LINE>return table...
i, j, list, names);
129,711
public HumanLoopConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>HumanLoopConfig humanLoopConfig = new HumanLoopConfig();<NEW_LINE>reader...
String name = reader.nextName();
1,757,198
final DeleteApplicationResult executeDeleteApplication(DeleteApplicationRequest deleteApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
523,100
// Fold an accessor getter into the method handle of a user accessor property.<NEW_LINE>private MethodHandle insertAccessorsGetter(final UserAccessorProperty uap, final LinkRequest request, final MethodHandle mh) {<NEW_LINE>MethodHandle superGetter = uap.getAccessorsGetter();<NEW_LINE>if (isInherited()) {<NEW_LINE>supe...
addProtoFilter(superGetter, getProtoChainLength());
1,041,096
private Object randomObject(int recursionDepth, int recursionFanOut) {<NEW_LINE>Random random = new Random();<NEW_LINE>if (recursionDepth == 0) {<NEW_LINE>double randomVar = random.nextDouble();<NEW_LINE>if (randomVar < 0.25) {<NEW_LINE>// String<NEW_LINE>return randomString(random, alphaNumeric, 16);<NEW_LINE>} else i...
8) + 4), child);
946,261
private HBox buildHBoxAssemblySyntax() {<NEW_LINE>final RadioButton rbATT = new RadioButton("AT&T syntax");<NEW_LINE>final RadioButton rbIntel = new RadioButton("Intel syntax");<NEW_LINE><MASK><NEW_LINE>boolean intelMode = config.isSandboxIntelMode();<NEW_LINE>rbATT.setToggleGroup(groupAssemblySyntax);<NEW_LINE>rbIntel...
final ToggleGroup groupAssemblySyntax = new ToggleGroup();
1,774,900
private List<ViewHeaderPropertiesGroup> toViewHeaderProperties(final InvoiceCandidatesAmtSelectionSummary summary) {<NEW_LINE>final ImmutableList.Builder<ViewHeaderPropertiesGroup> result = ImmutableList.<ViewHeaderPropertiesGroup>builder().add(ViewHeaderPropertiesGroup.builder().entry(ViewHeaderProperty.builder().capt...
()).build());
868,848
private URL exportRemote(URL url, List<URL> registryURLs) {<NEW_LINE>if (CollectionUtils.isNotEmpty(registryURLs)) {<NEW_LINE>for (URL registryURL : registryURLs) {<NEW_LINE>if (SERVICE_REGISTRY_PROTOCOL.equals(registryURL.getProtocol())) {<NEW_LINE>url = url.addParameterIfAbsent(SERVICE_NAME_MAPPING_KEY, "true");<NEW_...
(EXPORT_KEY, url), true);
476,760
public String refreshStatistics(String entityName) {<NEW_LINE>if (StringUtils.isBlank(entityName))<NEW_LINE>return "Pass an entity name (MetaClass name, e.g. sec$User) or 'all' to refresh statistics for all entities.\n" + "Be careful, it can take very long time.";<NEW_LINE>try {<NEW_LINE>log.info("Refreshing statistics...
getSession().getClass(entityName);
131,598
private void sendResult(int resultCode, @Nullable String socialToken, @Framework.AuthTokenType int type, @Nullable String error, boolean isCancel) {<NEW_LINE>if (mTargetCallback == null || !mTargetCallback.isTargetAdded())<NEW_LINE>return;<NEW_LINE>Intent data = new Intent();<NEW_LINE>data.putExtra(Constants.EXTRA_SOCI...
putExtra(Constants.EXTRA_AUTH_ERROR, error);
498,935
protected void drawRectangle(double zLevel, int left, int top, int right, int bottom, int color) {<NEW_LINE>float a = (color >> 24 & 255) / 255.0F;<NEW_LINE>float r = (color >> 16 & 255) / 255.0F;<NEW_LINE>float g = (color >> 8 & 255) / 255.0F;<NEW_LINE>float b = (color & 255) / 255.0F;<NEW_LINE>GlStateManager.disableT...
b, a).endVertex();
708,786
private static String buildMessage(GuardedByExpression guard, HeldLockSet locks) {<NEW_LINE>int heldLocks = locks.allLocks().size();<NEW_LINE>StringBuilder message = new StringBuilder();<NEW_LINE>Select enclosing = findOuterInstance(guard);<NEW_LINE>if (enclosing != null && !enclosingInstance(guard)) {<NEW_LINE>if (gua...
.format("This access should be guarded by '%s'", guard));
798,859
public void run() {<NEW_LINE>try {<NEW_LINE>acceptConnections();<NEW_LINE>} catch (Throwable e) {<NEW_LINE>logger.log(Level.WARNING, "MockWebServer connection failed", e);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>serverSocket.close();<NEW_LINE>} catch (Throwable e) {<NEW_LINE>logger.log(Level.WARNING, "MockWebServer server s...
Level.WARNING, "MockWebServer requestExecutor shutdown failed", e);
1,241,945
private Query writeQueryEdgeRangeCondition(ConditionQuery cq) {<NEW_LINE>List<Condition> sortValues = cq.syspropConditions(HugeKeys.SORT_VALUES);<NEW_LINE>E.checkArgument(sortValues.size() >= 1 && sortValues.size() <= 2, "Edge range query must be with sort-values range");<NEW_LINE>// Would ignore target vertex<NEW_LINE...
HugeType.EDGE, vertex, start);
513,240
public boolean killTopology() {<NEW_LINE>// Setup Connection<NEW_LINE>String topologyURI = String.format("%s/v2/groups/%s?force=true", this.marathonURI, this.topologyName);<NEW_LINE>HttpURLConnection conn = NetworkUtils.getHttpConnection(topologyURI);<NEW_LINE>// Attach a token if there is one specified<NEW_LINE>if (th...
log(Level.SEVERE, "Failed to send delete request");
119,006
public static Workout readJSON(Reader in) throws JSONException {<NEW_LINE>JSONObject <MASK><NEW_LINE>obj = obj.getJSONObject("com.garmin.connect.workout.json.UserWorkoutJson");<NEW_LINE>Workout w = new Workout();<NEW_LINE>JSONArray steps = obj.getJSONArray("workoutSteps");<NEW_LINE>int stepNo = 0;<NEW_LINE>JSONObject s...
obj = SyncHelper.parse(in);
1,031,925
public Object bulkheadAroundAdvice(ProceedingJoinPoint proceedingJoinPoint, @Nullable Bulkhead bulkheadAnnotation) throws Throwable {<NEW_LINE>Method method = ((MethodSignature) proceedingJoinPoint.getSignature()).getMethod();<NEW_LINE>String methodName = method.getDeclaringClass().getName() + "#" + method.getName();<N...
), bulkheadAnnotation.name());
1,174,764
private static CompletableFuture<Suggestions> suggest(CommandContext<CommandSourceStack> context, SuggestionsBuilder builder) throws CommandSyntaxException {<NEW_LINE>CommandSuggestionEvent event = new CommandSuggestionEvent(ForgeAdapter.adaptPlayer(context.getSource().getPlayerOrException()), builder.getInput());<NEW_...
getEnd()), suggestionText));
203,439
protected void handle(final SyncImageSizeOnBackupStorageMsg msg) {<NEW_LINE>final SyncImageSizeOnBackupStorageReply reply = new SyncImageSizeOnBackupStorageReply();<NEW_LINE>ImageInventory image = msg.getImage();<NEW_LINE>GetImageSizeCmd cmd = new GetImageSizeCmd();<NEW_LINE>cmd.imageUuid = image.getUuid();<NEW_LINE>cm...
getUuid()) ? arg : null;
1,114,833
public static Section createSpaceGrabbingSectionComposite(final Composite parent, final String title, final String description, final FormToolkit toolkit, final int sectionFlags, final IExpansionListener expansionListener) {<NEW_LINE>final Section section = toolkit.createSection(parent, sectionFlags);<NEW_LINE>section....
.grabExcessVerticalSpace = e.getState();
610,175
/* Answer true if the receiver type can be assigned to the argument type (right)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public boolean isCompatibleWith(TypeBinding right, Scope scope) {<NEW_LINE>// easy way out?<NEW_LINE>if (TypeBinding.equalsEquals(this, right))<NEW_LINE>return true;<NEW_LINE>// need to compare two i...
0, required, 0, numRequired);
1,170,924
public boolean inplaceValueSet(TableCell cell, String value, boolean finalEdit) {<NEW_LINE>if (value.equalsIgnoreCase(cell.getText()) || "".equals(value) || "".equals(cell.getText()))<NEW_LINE>return true;<NEW_LINE>final DiskManagerFileInfo fileInfo = <MASK><NEW_LINE>final File target;<NEW_LINE>try {<NEW_LINE>target = ...
(DiskManagerFileInfo) cell.getDataSource();
116,565
default <T1, T2, T3> Tuple3<Iterator<T1>, Iterator<T2>, Iterator<T3>> unzip3(Function<? super T, ? extends T1> unzipper1, Function<? super T, ? extends T2> unzipper2, Function<? super T, ? extends T3> unzipper3) {<NEW_LINE>Objects.requireNonNull(unzipper1, "unzipper1 is null");<NEW_LINE>Objects.requireNonNull(unzipper2...
iterator().map(unzipper1);
904,867
public io.kubernetes.client.proto.V1beta1Rbac.RoleBindingList buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1beta1Rbac.RoleBindingList result = new io.kubernetes.client.proto.V1beta1Rbac.RoleBindingList(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitFiel...
.metadata_ = metadataBuilder_.build();
1,354,736
private void parseSwitch(ColumnTableMetaData table, Context ctx) {<NEW_LINE>int fcount = fkNames.length;<NEW_LINE>ArrayList<IFilter> filterList = new ArrayList<IFilter>();<NEW_LINE>ArrayList<FindFilter> findFilterList = new ArrayList<FindFilter>();<NEW_LINE>if (filters != null) {<NEW_LINE>for (IFilter filter : filters)...
filterList.set(i, and);
991,748
public void actionPerformed(AnActionEvent event) {<NEW_LINE>final OpenProjectFileChooserDescriptor descriptor = new OpenProjectFileChooserDescriptor(true) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean isFileVisible(VirtualFile file, boolean showHiddenFiles) {<NEW_LINE>return super.isFileVisible(file, showHidde...
equals(file.getExtension());
363,362
public <K, V extends SessionEntity> void runTask(KeycloakSession kcSession, RealmModel realm, String cacheName, K key, MergedUpdate<V> task, SessionEntityWrapper<V> sessionWrapper) {<NEW_LINE>RemoteCacheContext <MASK><NEW_LINE>if (context == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>V session = sessionWrapper.getEnt...
context = remoteCaches.get(cacheName);
1,830,452
private boolean validateTarget(String target, CommandTarget[] targets) {<NEW_LINE>List<String> validTarget = new ArrayList<String>();<NEW_LINE>for (CommandTarget commandTarget : targets) {<NEW_LINE>validTarget.add(commandTarget.name());<NEW_LINE>}<NEW_LINE>if (target.equals("domain")) {<NEW_LINE>return validTarget.cont...
CommandTarget.CONFIG.name());
410,775
public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {<NEW_LINE>if (importAborted()) {<NEW_LINE>return super.visitMethod(access, name, desc, signature, exceptions);<NEW_LINE>}<NEW_LINE>LOG.trace("Analyzing method {}.{}:{}", className, name, desc);<NEW_LINE>CodeUn...
(desc).withThrowsClause(throwsDeclarations);
45,680
/*<NEW_LINE>* superGet - get from live cache<NEW_LINE>*/<NEW_LINE>public Object superGet(Object id) {<NEW_LINE>if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {<NEW_LINE>LoggingUtil.SESSION_LOGGER_WAS.entering(methodClassName, methodNames<MASK><NE...
[SUPER_GET], "id = " + id);
376,135
private void tryToUpdateInsertLastCache(InsertRowPlan plan, Long latestFlushedTime) {<NEW_LINE>if (!IoTDBDescriptor.getInstance().getConfig().isLastCacheEnabled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>IMeasurementMNode[<MASK><NEW_LINE>for (int i = 0; i < mNodes.length; i++) {<NEW_LINE>if (plan.getValues()[i] == null)...
] mNodes = plan.getMeasurementMNodes();
1,212,697
private void sendToRuleEngine(TenantId tenantId, DeviceId deviceId, CustomerId customerId, TransportProtos.SessionInfoProto sessionInfo, JsonObject json, TbMsgMetaData metaData, SessionMsgType sessionMsgType, TbQueueCallback callback) {<NEW_LINE>DeviceProfileId deviceProfileId = new DeviceProfileId(new UUID(sessionInfo...
sendToRuleEngine(tenantId, tbMsg, callback);
1,456,056
public void readFrom(MiniDump dump, Builder builder, Object addressSpace, IAbstractAddressSpace memory, boolean is64Bit) throws IOException {<NEW_LINE>// get the thread ID of the failing thread<NEW_LINE>long tid = -1;<NEW_LINE>if (null != dump._j9rasReader) {<NEW_LINE>try {<NEW_LINE>tid = dump._j9rasReader.getThreadID(...
, String.valueOf(priorityClass));
614,228
public static DescribeChangeOrderResponse unmarshall(DescribeChangeOrderResponse describeChangeOrderResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeChangeOrderResponse.setRequestId(_ctx.stringValue("DescribeChangeOrderResponse.RequestId"));<NEW_LINE>describeChangeOrderResponse.setMessage(_ctx.stringValue("Descri...
(_ctx.stringValue("DescribeChangeOrderResponse.Data.CurrentPipelineId"));
656,681
private static void processAttachment(@NonNull Context context, @NonNull AttachmentSecret attachmentSecret, @NonNull SQLiteDatabase db, @NonNull Attachment attachment, BackupRecordInputStream inputStream) throws IOException {<NEW_LINE>File dataFile = AttachmentDatabase.newFile(context);<NEW_LINE>Pair<byte[], OutputStre...
DATA, dataFile.getAbsolutePath());
1,572,983
final UpdateFleetPortSettingsResult executeUpdateFleetPortSettings(UpdateFleetPortSettingsRequest updateFleetPortSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFleetPortSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
625,503
final UpdateStageResult executeUpdateStage(UpdateStageRequest updateStageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateStageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<UpdateStageRequest> reques...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
686,261
public void actionPerformed(AnActionEvent e) {<NEW_LINE>final Project project = e.getData(CommonDataKeys.PROJECT);<NEW_LINE>if (project == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PsiDocumentManager.getInstance(project).commitAllDocuments();<NEW_LINE>UsageTarget[] usageTargets = e.getData(UsageView.USAGE_TARGETS_KE...
e.getData(CommonDataKeys.EDITOR);
1,733,911
private synchronized String[] readAllDocumentNames() throws IOException {<NEW_LINE>if (this.numberOfChunks <= 0)<NEW_LINE>return CharOperation.NO_STRINGS;<NEW_LINE>InputStream stream = this.indexLocation.getInputStream();<NEW_LINE>try {<NEW_LINE>int offset = this.chunkOffsets[0];<NEW_LINE>stream.skip(offset);<NEW_LINE>...
lastIndex * CHUNK_SIZE + this.sizeOfLastChunk];
1,259,127
public boolean eIsSet(int featureID) {<NEW_LINE>switch(featureID) {<NEW_LINE>case IArchimatePackage.ARCHIMATE_CONCEPT__NAME:<NEW_LINE>return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);<NEW_LINE>case IArchimatePackage.ARCHIMATE_CONCEPT__ID:<NEW_LINE>return ID_EDEFAULT == null ? id != null <MASK><...
: !ID_EDEFAULT.equals(id);
782,777
private static String createReportDirectory(ReportModule module) throws IOException {<NEW_LINE>Case currentCase;<NEW_LINE>try {<NEW_LINE>currentCase = Case.getCurrentCaseThrows();<NEW_LINE>} catch (NoCurrentCaseException ex) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// Create the root reports directory path of the form: <C...
throw new IOException("Exception while getting open case.", ex);
580,847
private static void checkShardingTables(final String schemaName, final Collection<AbstractTableRuleSegment> rules, final ShardingRuleConfiguration currentRuleConfig, final boolean isCreate) throws DistSQLException {<NEW_LINE>LinkedList<String> requiredShardingTables = rules.stream().map(AbstractTableRuleSegment::getLog...
different = getDifferent(requiredShardingTables, currentShardingTables);
1,415,385
public ListVPCAssociationAuthorizationsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ListVPCAssociationAuthorizationsResult listVPCAssociationAuthorizationsResult = new ListVPCAssociationAuthorizationsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetD...
().unmarshall(context));
1,800,021
private List<Completer> widgetCompleter(String name) {<NEW_LINE>List<Completer> completers = new ArrayList<>();<NEW_LINE>List<<MASK><NEW_LINE>Candidate aliasOption = new Candidate("-A", "-A", null, null, null, null, true);<NEW_LINE>Iterator<OptDesc> i = optDescs.iterator();<NEW_LINE>while (i.hasNext()) {<NEW_LINE>OptDe...
OptDesc> optDescs = commandOptions(name);
479,337
public boolean update(BaseUpdateParam updateParam) {<NEW_LINE>VariableUpdateParam param = (VariableUpdateParam) updateParam;<NEW_LINE>Variable retrieve = retrieve(updateParam.getId());<NEW_LINE>if (!param.getName().equalsIgnoreCase(retrieve.getName())) {<NEW_LINE>checkUnique(retrieve.getOrgId(), null, param.getName());...
setId(UUIDGenerator.generate());
1,178,716
private void checkSchema(MutableIntObjectMap<MutableIntSet> mandatoryNodeProperties, MutableIntObjectMap<MutableIntSet> mandatoryRelationshipProperties, CursorContext cursorContext, StoreCursors storeCursors) {<NEW_LINE><MASK><NEW_LINE>try (RecordReader<SchemaRecord> schemaReader = new RecordReader<>(schemaStore, true,...
long highId = schemaStore.getHighId();
510,056
protected void registerStatesAndModels() {<NEW_LINE>floodlightModel();<NEW_LINE>createConnector(Connectors.getEnergyConnector(WireType.LV_CATEGORY, false), obj("block/connector/connector_lv", rl("block/connector/connector_lv.obj"), ImmutableMap.of("texture", modLoc("block/connector/connector_lv"))), RenderType.solid())...
), RenderType.cutout());
247,307
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>if (getArguments() != null && getArguments().containsKey(TomahawkFragment.PREFERENCEID)) {<NEW_LINE>String id = getArguments().getString(TomahawkFragment.PREFERENCEID);<NEW_LINE>mScriptResolver = PipeLine.get().getResolver(id);<NEW_LINE>}<NEW_LINE>TextV...
mScriptResolver.loadIconWhite(buttonImage, 0);
424,589
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {<NEW_LINE>HttpServletRequest httpReq = (HttpServletRequest) request;<NEW_LINE>KeycloakSecurityContext session = getSession(httpReq);<NEW_LINE>if (session != null) {<NEW_LINE>HttpSession httpSe...
setAttribute(RequestAttributeKeys.AUTH_KEY, auth);
204,554
protected Job createJob() {<NEW_LINE>final Collection<BootDashElement> selecteds = getSelectedElements();<NEW_LINE>if (!selecteds.isEmpty()) {<NEW_LINE>boolean riskAccepted = ui().confirmWithToggle("ngrok.tunnel.warning.state", "Really Expose local service on public internet?", "The ngrok tunnel uses a third-party serv...
NGROKClient ngrokClient = new NGROKClient(ngrokInstall);
748,842
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>intentTextView = findViewById(R.id.intentView);<NEW_LINE>recordButton = findViewById(R.id.record_button);<NEW_LINE>// on android 11, RecognitionService has to be sp...
= new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
1,350,253
public void updated(Dictionary<String, ?> config) throws ConfigurationException {<NEW_LINE>// Nothing to do if there is no config<NEW_LINE>if (config == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, GC100IRHost> hosts = new HashMap<String, GC100IRHost>();<NEW_LINE>Enumeration<String> keys = config.keys();<NE...
String key = keys.nextElement();
942,586
public void update() {<NEW_LINE>if (!unit.isValid()) {<NEW_LINE>clearUnit();<NEW_LINE>}<NEW_LINE>CoreBuild core;<NEW_LINE>if (!dead()) {<NEW_LINE>set(unit);<NEW_LINE>unit.team(team);<NEW_LINE>deathTimer = 0;<NEW_LINE>// update some basic state to sync things<NEW_LINE>if (unit.type.canBoost) {<NEW_LINE>unit.elevation = ...
core.requestSpawn(self());
1,294,176
private void initData() {<NEW_LINE>String title = getIntent().getStringExtra(GALLERY_TITLE);<NEW_LINE>images = getIntent().getParcelableArrayListExtra(GALLERY_IMAGES);<NEW_LINE>int clickedImage = getIntent().getIntExtra(GALLERY_CLICKED_IMAGE, 0);<NEW_LINE>ArrayList<Uri> <MASK><NEW_LINE>for (Attachment mAttachment : ima...
imageUris = new ArrayList<>();
1,730,910
public double calcRegularizationScore() {<NEW_LINE>Preconditions.checkState(trainingConfig != null, "No training configuration has been set. A training configuration must " + "be set before calculating the L2 loss. Use setTrainingConfig(TrainingConfig)");<NEW_LINE>if (trainingConfig.getRegularization() == null || train...
INDArray arr = sdv.getArr();
72,198
public void write(LogoutRequestType logOutRequest) throws ProcessingException {<NEW_LINE>StaxUtil.writeStartElement(writer, PROTOCOL_PREFIX, JBossSAMLConstants.LOGOUT_REQUEST.get(), PROTOCOL_NSURI.get());<NEW_LINE>StaxUtil.writeNameSpace(writer, PROTOCOL_PREFIX, PROTOCOL_NSURI.get());<NEW_LINE>StaxUtil.writeNameSpace(w...
NameIDType nameID = logOutRequest.getNameID();
459,103
public JPanel buildOverviewPanel(HttpTestRequestStep testStep) {<NEW_LINE>HttpTestRequestInterface<?> request = testStep.getTestRequest();<NEW_LINE>JPropertiesTable<HttpTestRequestInterface<?>> table = new JPropertiesTable<HttpTestRequestInterface<?>>("HTTP TestRequest Properties");<NEW_LINE>// basic properties<NEW_LIN...
addProperty("Username", "username", true);
331,723
public void readValuesSV(int[] docIds, int length, int[] values, ChunkReaderContext context) {<NEW_LINE>if (getValueType().isFixedWidth() && !_isCompressed && isContiguousRange(docIds, length)) {<NEW_LINE>switch(getValueType()) {<NEW_LINE>case INT:<NEW_LINE>{<NEW_LINE>int minOffset = <MASK><NEW_LINE>IntBuffer buffer = ...
docIds[0] * Integer.BYTES;
59,577
private ClientLifecycleEventListener updateAndGetEventListener() {<NEW_LINE>boolean contains = false;<NEW_LINE>ClientLifecycleEventListener eventListener = null;<NEW_LINE>for (final Map.Entry<String, ClientLifecycleEventListener> pluginEventListenerEntry : eventListeners.getPluginEventListenersMap().entrySet()) {<NEW_L...
String id = pluginEventListenerEntry.getKey();
829,622
public void parseSelectFields(JoinInfo joinInfo) {<NEW_LINE>String sideTableName = joinInfo.getSideTableName();<NEW_LINE>String nonSideTableName = joinInfo.getNonSideTable();<NEW_LINE>List<String> fields = Lists.newArrayList();<NEW_LINE>int sideTableFieldIndex;<NEW_LINE>for (int i = 0; i < outFieldInfoList.size(); i++)...
String.join(",", fields);
1,583,517
protected int _getPixelColor(int x, int y) {<NEW_LINE>NativeScreen screen = NativePlatformFactory.getNativePlatform().getScreen();<NEW_LINE>final int byteDepth = screen.getDepth() >>> 3;<NEW_LINE>final int bwidth = screen.getWidth();<NEW_LINE>final int bheight = screen.getHeight();<NEW_LINE>if (x < 0 || x > bwidth || y...
ByteBuffer buffer = screen.getScreenCapture();
368,803
private static void checkClassName(Deobfuscator deobfuscator, ClassNode cls, JadxArgs args) {<NEW_LINE>ClassInfo classInfo = cls.getClassInfo();<NEW_LINE>String clsName = classInfo.getAliasShortName();<NEW_LINE>String newShortName = fixClsShortName(args, clsName);<NEW_LINE>if (newShortName == null) {<NEW_LINE>// rename...
deobfuscator, cls, classInfo, args);
268,913
public void updateDetail(int PP_Period_ID, int PP_ForecastRunDetail_ID) {<NEW_LINE>StringBuffer updateSQL = new StringBuffer();<NEW_LINE>updateSQL.append("UPDATE PP_ForecastRunDetail frd SET");<NEW_LINE>updateSQL.append(" QtyCalculated=(");<NEW_LINE>updateSQL.append(" SELECT SUM(sh.Qty) AS Qty");<NEW_LINE>updateSQL.app...
(" PP_Period_ID=").append(PP_Period_ID);
445,501
private void validateLwm2mServersCredentialOfBootstrapForClient(LwM2MBootstrapServerCredential bootstrapServerConfig) {<NEW_LINE>String server;<NEW_LINE>switch(bootstrapServerConfig.getSecurityMode()) {<NEW_LINE>case NO_SEC:<NEW_LINE>case PSK:<NEW_LINE>break;<NEW_LINE>case RPK:<NEW_LINE>RPKLwM2MBootstrapServerCredentia...
.isBootstrapServerIs() ? "Bootstrap Server" : "LwM2M Server";
183,082
public void initialize(CmdLineOpts configuration) {<NEW_LINE>CommandLine commandLine = configuration.getCommandLine();<NEW_LINE>// --------------------- Setting Input source (Cassandra table or file) -----------------------\\<NEW_LINE>if (commandLine.hasOption("wordcount_input_file") && commandLine.hasOption("wordcount...
(insert_stmt, 6, "ten nine eight seven six"));
1,403,806
ComponentView parse(DslContext context, Tokens tokens) {<NEW_LINE>// component <container identifier> [key] [description] {<NEW_LINE>if (tokens.hasMoreThan(DESCRIPTION_INDEX)) {<NEW_LINE>throw new RuntimeException("Too many tokens, expected: " + GRAMMAR);<NEW_LINE>}<NEW_LINE>if (!tokens.includes(CONTAINER_IDENTIFIER_IN...
key = tokens.get(KEY_INDEX);
98,446
private static void registerIntegralTypes(ConvertUtilsBean cub) {<NEW_LINE>cub.register(new BooleanConverter(), Boolean.TYPE);<NEW_LINE>cub.register(new BooleanConverter(), Boolean.class);<NEW_LINE>cub.register(new ArrayConverter(boolean[].class, new BooleanConverter()), boolean[].class);<NEW_LINE>cub.register(new Byte...
ByteConverter(), Byte.class);
563,116
public void initialize() {<NEW_LINE>this.viewModel = new LinkedFilesTabViewModel(dialogService, preferencesService);<NEW_LINE>mainFileDirectory.textProperty().bindBidirectional(viewModel.mainFileDirectoryProperty());<NEW_LINE>mainFileDirectory.disableProperty().bind(viewModel.useBibLocationAsPrimaryProperty());<NEW_LIN...
(HelpFile.REGEX_SEARCH), autolinkRegexHelp);
1,678,991
public Response fixMissingOriginalSizes(@QueryParam("limit") Integer limit) {<NEW_LINE>JsonObjectBuilder info = Json.createObjectBuilder();<NEW_LINE>List<Long> affectedFileIds = fileService.selectFilesWithMissingOriginalSizes();<NEW_LINE>if (affectedFileIds.isEmpty()) {<NEW_LINE>info.add("message", "All the tabular fil...
String message = "Found " + howmany + " tabular files with missing original sizes. ";
1,675,263
public MappingStore match(Tree src, Tree dst, MappingStore mappings) {<NEW_LINE>for (Tree t : src.postOrder()) {<NEW_LINE>if (t.isRoot()) {<NEW_LINE>mappings.addMapping(t, dst);<NEW_LINE>lastChanceMatch(mappings, t, dst);<NEW_LINE>break;<NEW_LINE>} else if (!(mappings.isSrcMapped(t) || t.isLeaf())) {<NEW_LINE>List<Tree...
diceSimilarity(t, cand, mappings);
1,603,389
public String compact(@CliOption(key = { "parallelism" }, mandatory = true, help = "Parallelism for hoodie compaction") final String parallelism, @CliOption(key = "schemaFilePath", mandatory = true, help = "Path for Avro schema file") final String schemaFilePath, @CliOption(key = "sparkMaster", unspecifiedDefaultValue ...
parallelism, schemaFilePath, retry, propsFilePath);
839,570
/*<NEW_LINE>* Used to create types denoting missing types.<NEW_LINE>* If package is given, then reuse the package; if not then infer a package from compound name.<NEW_LINE>* If the package is existing, then install the missing type in type cache<NEW_LINE>*/<NEW_LINE>public MissingTypeBinding createMissingType(PackageBi...
TypeConstants.JAVA_LANG_OBJECT, javaBaseModule());
625,649
private String encode(String signature) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>tryAppendQueryParameter(sb, StorageConstants.UrlConstants.SAS_SERVICE_VERSION, this.version);<NEW_LINE>tryAppendQueryParameter(sb, StorageConstants.UrlConstants.SAS_SERVICES, this.services);<NEW_LINE>tryAppendQueryParame...
, formatQueryParameterDate(this.expiryTime));
1,491,043
public void listJobs(@Mixin(name = "verbosity") Verbosity verbosity, @Mixin(name = "targets") TargetsMixin targets, @Option(names = { "-a", "--all" }, description = "Lists all jobs including completed and failed ones") boolean listAll) {<NEW_LINE>runWithHazelcast(targets, verbosity, false, hz -> {<NEW_LINE>JetClientIns...
? "N/A" : job.getName();
1,708,536
protected void wakeQueues() {<NEW_LINE>DelayedWorkQueue waked;<NEW_LINE>while ((waked = snoozedClassQueues.poll()) != null) {<NEW_LINE>WorkQueue queue = waked.getWorkQueue(this);<NEW_LINE>synchronized (queue) {<NEW_LINE>queue.setWakeTime(0);<NEW_LINE>queue.makeDirty();<NEW_LINE>}<NEW_LINE>reenqueueQueue(queue);<NEW_LIN...
DelayedWorkQueue dq = iter.next();
83,273
public void initWatchResources(URL[] watchResources, Watcher watcher) {<NEW_LINE>// create classloader to serve resources only from watchResources URL's<NEW_LINE>this.watchResourcesClassLoader = new UrlOnlyClassLoader(watchResources);<NEW_LINE>// register watch resources - on change event each modified resource will be...
warning("Unable to convert watchResources URL '{}' to URI. URL is skipped.", e, resource);
419,207
protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) {<NEW_LINE>if (!_tabPane.isEnabled() || !_tabPane.isEnabledAt(tabIndex)) {<NEW_LINE>// super method paints disabled text twice with different colors<NEW_LINE>// and ...
tabIndex, title, textRect, isSelected);
222,095
public String apply(String key) {<NEW_LINE>if (key.startsWith(QUARKUS_CONFIG_PREFIX)) {<NEW_LINE>// strip "quarkus.rest-client."<NEW_LINE>String remainder = key.substring(QUARKUS_CONFIG_PREFIX.length());<NEW_LINE>String<MASK><NEW_LINE>if (prefixAndProperty[0] != null && CLIENT_PROPERTIES.containsKey(prefixAndProperty[1...
[] prefixAndProperty = extractQuarkusClientPrefixAndProperty(remainder);
1,767,971
public void write(Fields fields, NormsProducer norms) throws IOException {<NEW_LINE>Map<PostingsFormat, FieldsGroup> formatToGroups = buildFieldsGroupMapping(fields);<NEW_LINE>// Write postings<NEW_LINE>boolean success = false;<NEW_LINE>try {<NEW_LINE>for (Map.Entry<PostingsFormat, FieldsGroup> ent : formatToGroups.ent...
PostingsFormat format = ent.getKey();
117,013
public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length < 1)<NEW_LINE>Utils.croak("USAGE: java " + HdfsFetcher.class.getName() + " url [keytab-location kerberos-username hadoop-config-path [destDir]]");<NEW_LINE>String url = args[0];<NEW_LINE>VoldemortConfig config = new VoldemortConfig(-1, "...
.setReadOnlyKerberosUser(args[2]);
162,503
protected void serializeUnion(GenerationContext context, UnionShape shape) {<NEW_LINE>GoWriter writer = context.getWriter().get();<NEW_LINE>SymbolProvider symbolProvider = context.getSymbolProvider();<NEW_LINE>Symbol symbol = symbolProvider.toSymbol(shape);<NEW_LINE>writer.addUseImports(SmithyGoDependency.FMT);<NEW_LIN...
getAllMembers().values());
1,397,925
private void sendListing(ChannelHandlerContext ctx, File dir, String dirPath) {<NEW_LINE>StringBuilder buf = new StringBuilder().append("<!DOCTYPE html>\r\n").append("<html><head><meta charset='utf-8' /><title>").append("Listing of: ").append(dirPath).append("</title></head><body>\r\n").append("<h3>Listing of: ").appen...
true).stream(stream));
1,551,821
public /*@ non_null @*/<NEW_LINE>List<Advice> evaluate(/*@ non_null @*/<NEW_LINE>AnnotatedString s) {<NEW_LINE>List<Advice> out_list = new ArrayList<Advice>();<NEW_LINE>int pos = 0;<NEW_LINE>for (int num_iterations = 0; num_iterations < MAX_ITERATIONS; num_iterations++) {<NEW_LINE>Match match = s.find(m_pattern, pos);<...
).length() - 1);
889,454
public void merge(AggregationBuffer agg, Object partial) throws HiveException {<NEW_LINE>// //LOG.info(" MERGE IS CALLED partial is " + partial + " AGG is " + agg);<NEW_LINE>List partialResultList = internalMergeOI.getList(partial);<NEW_LINE>if (daysArr == null) {<NEW_LINE>daysArr = new Integer[partialResultList.size(...
[idx].addItem(uniqStr);
1,519,497
public BooleanExpr toBooleanExpr(Configuration c, AsaConfiguration cc, Warnings w) {<NEW_LINE>Disjunction d = new Disjunction();<NEW_LINE>List<BooleanExpr> disjuncts = d.getDisjuncts();<NEW_LINE>for (String listName : _listNames) {<NEW_LINE>Object list;<NEW_LINE>Ip6AccessList ipAccessList = null;<NEW_LINE>Route6FilterL...
getIp6AccessLists().get(listName);
160,127
private IMixinService initService() {<NEW_LINE>this.serviceLoader = ServiceLoader.<IMixinService>load(IMixinService.class, this.getClass().getClassLoader());<NEW_LINE>Iterator<IMixinService> iter = this.serviceLoader.iterator();<NEW_LINE>List<String> badServices = new ArrayList<String>();<NEW_LINE>int brokenServiceCoun...
substring(pos + 1)));