idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
716,227
private List<RexNode> gatherOrderExprs(LogicalView logicalView, SqlNodeList orderBy, RexBuilder rexBuilder, SqlSelect ast) {<NEW_LINE>SqlValidatorImpl validator = getValidatorForScope(ast);<NEW_LINE>final List<RexNode> orderByExps = new ArrayList<>();<NEW_LINE>final List<SqlNode> orderExprList = new ArrayList<>();<NEW_...
makeCall(SqlStdOperatorTable.NULLS_LAST, rexNode);
1,176,658
public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.INTEGER);<NEW_LINE>error = validator.validate(values.get("roleId"), convLabel...
ValidatorFactory.getInstance(Validator.MAX_LENGTH);
1,075,945
private void addMainSession(Session session, InetSocketAddress lastReolvedAddr, InetSocketAddressWrapper addrWrapper) {<NEW_LINE>InetSocketAddress remoteSocketAddress = session.getRemoteSocketAddress();<NEW_LINE>log.info("Add a session: " + SystemUtils.getRawAddress(remoteSocketAddress) + ":" + remoteSocketAddress.getP...
Session oldSession = sessions.poll();
1,393,614
public OperatorNode<SequenceOperator> make(OperatorNode<SequenceOperator> target) {<NEW_LINE>ImmutableList.Builder<OperatorNode<ProjectOperator>> lst = ImmutableList.builder();<NEW_LINE>for (Map.Entry<String, OperatorNode<ExpressionOperator>> e : fields.entrySet()) {<NEW_LINE>if (e.getKey().startsWith("*")) {<NEW_LINE>...
).getArgument(0)));
770,502
private static CudaLibrary loadLibrary() {<NEW_LINE>try {<NEW_LINE>if (System.getProperty("os.name").startsWith("Win")) {<NEW_LINE>String path = System.getenv("PATH");<NEW_LINE>if (path == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Pattern p = Pattern.compile("cudart64_\\d+\\.dll");<NEW_LINE>String cudaPath = Sy...
searchPath = path.split(";");
955,356
public Map<String, Object> toFilterMap() {<NEW_LINE>final Map<String, Object> filter = new HashMap<>();<NEW_LINE>filter.put(FIELD_SORT, sortType);<NEW_LINE>filter.put(FIELD_DIRECTION, direction);<NEW_LINE>if (assignee != null) {<NEW_LINE>filter.put(FILTER_ASSIGNEE, assignee.login());<NEW_LINE>}<NEW_LINE>if (milestone !...
FILTER_LABELS, labelsQuery.toString());
627,559
public void selectVisibleNodes(final IMapSelection selection) {<NEW_LINE>Filter filter = selection.getFilter();<NEW_LINE>final NodeModel selectedVisible = selection.getSelected().getVisibleAncestorOrSelf(filter);<NEW_LINE>selection.preserveNodeLocationOnScreen(selectedVisible, 0.5f, 0.5f);<NEW_LINE>final Collection<Nod...
NodeModel selected = selection.getSelected();
123,312
public void paint(Graphics2D g) {<NEW_LINE>if (!isVisible) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int lineWidth = (int) styler<MASK><NEW_LINE>int x1 = 0, x2 = 0, y1 = 0, y2 = 0;<NEW_LINE>if (isVertical) {<NEW_LINE>y1 = getYAxisScreenValueForMax() + lineWidth / 2;<NEW_LINE>y2 = getYAxisScreenValueForMin() - lineWidth / ...
.getAnnotationLineStroke().getLineWidth();
1,789,380
private <A extends AppleNativeTargetDescriptionArg> BuildRule requireUnstrippedBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, ActionGraphBuilder graphBuilder, A args, Optional<Linker.LinkableDepType> linkableDepType, Optional<SourcePath> bundleLoader, Immutab...
bundleLoader, blacklist, extraCxxDeps, transitiveCxxPreprocessorInput);
996,212
public EnumerationValue unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EnumerationValue enumerationValue = new EnumerationValue();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = c...
int originalDepth = context.getCurrentDepth();
1,364,556
private void generateCode(TypeToExtend typeToExtend) throws IOException {<NEW_LINE>String newTypeName = PREFIX + typeToExtend.getSimpleName();<NEW_LINE>TypeSpec.Builder typeBuilder = TypeSpec.interfaceBuilder(newTypeName).addOriginatingElement(typeToExtend.getTypeElement()).addTypeVariables(typeToExtend.getTypeParamete...
).build(), filer);
1,510,539
public void menuShown(MenuEvent arg0) {<NEW_LINE>MenuItem[] items = cat_subs_menu.getItems();<NEW_LINE>for (int i = 0; i < items.length; i++) {<NEW_LINE>items[i].dispose();<NEW_LINE>}<NEW_LINE>final TableItem[] selection = buddy_table.getSelection();<NEW_LINE>List<BuddyPluginBuddy> buddies = new ArrayList<>();<NEW_LINE...
selection[i].getData();
1,735,205
public RequestReplyFuture<K, V, R> sendAndReceive(ProducerRecord<K, V> record, @Nullable Duration replyTimeout) {<NEW_LINE>// NOSONAR (sync)<NEW_LINE>Assert.<MASK><NEW_LINE>Duration timeout = replyTimeout;<NEW_LINE>if (timeout == null) {<NEW_LINE>timeout = this.defaultReplyTimeout;<NEW_LINE>}<NEW_LINE>CorrelationKey co...
state(this.running, "Template has not been start()ed");
1,480,628
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
(super.beforeMarshalling(untagResourceRequest));
355,812
public static ListDevopsScenarioFieldConfigResponse unmarshall(ListDevopsScenarioFieldConfigResponse listDevopsScenarioFieldConfigResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDevopsScenarioFieldConfigResponse.setRequestId(_ctx.stringValue("ListDevopsScenarioFieldConfigResponse.RequestId"));<NEW_LINE>listDevopsSce...
(_ctx.stringValue("ListDevopsScenarioFieldConfigResponse.ErrorCode"));
1,304,244
final ListTargetResourceTypesResult executeListTargetResourceTypes(ListTargetResourceTypesRequest listTargetResourceTypesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTargetResourceTypesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
endClientExecution(awsRequestMetrics, request, response);
385,128
private I_C_RemittanceAdvice buildRemittanceAdviceRecord(@NonNull final CreateRemittanceAdviceRequest createRemittanceAdviceRequest) {<NEW_LINE>final I_C_RemittanceAdvice record = InterfaceWrapperHelper.newInstance(I_C_RemittanceAdvice.class);<NEW_LINE>record.setAD_Org_ID(createRemittanceAdviceRequest.getOrgId().getRep...
getDestinationBPartnerBankAccountId().getRepoId());
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...
] trainingMask = new int[trainingSize];
1,746,908
// internal implementation<NEW_LINE>protected Result[] _search(Query query, int k) throws IOException {<NEW_LINE>// Create an IndexSearch only once. Note that the object is thread safe.<NEW_LINE>if (searcher == null) {<NEW_LINE>searcher = new IndexSearcher(reader);<NEW_LINE>searcher.setSimilarity(similarity);<NEW_LINE>...
? null : field.stringValue();
1,606,454
public List<NativeModule> createNativeModules(ReactApplicationContext reactApplicationContext) {<NEW_LINE>final Iterator<KillableModule> i = killableModules.iterator();<NEW_LINE>while (i.hasNext()) {<NEW_LINE>final <MASK><NEW_LINE>killableModule.destroy();<NEW_LINE>i.remove();<NEW_LINE>}<NEW_LINE>final KeybaseEngine kb...
KillableModule killableModule = i.next();
1,243,869
private OStorageOperationResult<Boolean> doDeleteRecord(final OAtomicOperation atomicOperation, final ORecordId rid, final int version, final OCluster cluster) {<NEW_LINE>Orient.instance().getProfiler().startChrono();<NEW_LINE>try {<NEW_LINE>final OPhysicalPosition ppos = cluster.getPhysicalPosition(new OPhysicalPositi...
recordVersion, version, ORecordOperation.DELETED);
1,631,146
private Collection<CDIArchive> initModuleLibraryArchives() {<NEW_LINE>Map<ContainerInfo, CDIArchive> moduleLibraryArchives = new HashMap<ContainerInfo, CDIArchive>();<NEW_LINE>if (containerInfo instanceof ModuleClassesContainerInfo) {<NEW_LINE>ModuleClassesContainerInfo moduleClassesContainerInfo = (ModuleClassesContai...
moduleLibraryArchives.put(containerInfo, childArchive);
779,412
private void readJSONEncodedItem(String key, SharedPreferences prefs, ReadableArguments options, Promise promise) {<NEW_LINE>String encryptedItemString = prefs.getString(key, null);<NEW_LINE>JSONObject encryptedItem;<NEW_LINE>try {<NEW_LINE>encryptedItem = new JSONObject(encryptedItemString);<NEW_LINE>} catch (JSONExce...
("Stored JSON object is missing a scheme (key = %s, value = %s)", key, encryptedItemString));
1,433,868
public static CreateVmInstanceMsg fromAPINewVmInstanceMsg(NewVmInstanceMessage2 msg) {<NEW_LINE>CreateVmInstanceMsg cmsg = new CreateVmInstanceMsg();<NEW_LINE>APICreateMessage api = (APICreateMessage) msg;<NEW_LINE>if (msg.getZoneUuid() != null) {<NEW_LINE>cmsg.setZoneUuid(msg.getZoneUuid());<NEW_LINE>} else {<NEW_LINE...
setStrategy(msg.getStrategy());
1,505,891
public boolean isCached(RequestAuthenticator authenticator) {<NEW_LINE>Session <MASK><NEW_LINE>if (session == null) {<NEW_LINE>log.debug("session was null, returning null");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>KeycloakUndertowAccount account = (KeycloakUndertowAccount) session.getAttribute(KeycloakUndertowAccoun...
session = Sessions.getSession(exchange);
168,131
public GeoMatchParams unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GeoMatchParams geoMatchParams = new GeoMatchParams();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
JsonToken token = context.getCurrentToken();
479,597
public BLangNode transform(OptionalFieldAccessExpressionNode optionalFieldAccessExpressionNode) {<NEW_LINE>BLangFieldBasedAccess bLFieldBasedAccess;<NEW_LINE>Node fieldName = optionalFieldAccessExpressionNode.fieldName();<NEW_LINE>if (fieldName.kind() == SyntaxKind.QUALIFIED_NAME_REFERENCE) {<NEW_LINE>QualifiedNameRefe...
createIdentifier(qualifiedFieldName.modulePrefix());
1,768,590
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "theString", "intPrimitive" };<NEW_LINE>String statementText = "@name('s0') select distinct theString, intPrimitive from SupportBean#length_batch(3)";<NEW_LINE>env.compileDeploy(statementText).addListener("s0");<NEW_LINE>env.sendEven...
new SupportBean("E1", 1));
780,595
public void run() {<NEW_LINE>User32 user = User32.INSTANCE;<NEW_LINE>HWND hWnd = getHWnd(w);<NEW_LINE>int flags = user.GetWindowLong(hWnd, WinUser.GWL_EXSTYLE);<NEW_LINE>JRootPane root = ((<MASK><NEW_LINE>JLayeredPane lp = root.getLayeredPane();<NEW_LINE>Container content = root.getContentPane();<NEW_LINE>if (content i...
RootPaneContainer) w).getRootPane();
517,902
public static void horizontal(Kernel1D_S32 kernel, GrayS32 input, GrayS32 output) {<NEW_LINE>final int[] dataSrc = input.data;<NEW_LINE>final int[] dataDst = output.data;<NEW_LINE>final int[] dataKer = kernel.data;<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final int offsetL = kernel.getOffset();<NEW_...
.startIndex + i * input.stride;
285,850
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* edu.umd.cs.findbugs.config.CommandLine#handleOptionWithArgument(java<NEW_LINE>* .lang.String, java.lang.String)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void handleOptionWithArgument(String option, String argument) throws IOException {<NEW_LINE>...
println("Date " + argument + " not in MM/dd/yyyy format (e.g., 05/13/2009)");
1,483,806
protected Map<String, String> toMetricTags() {<NEW_LINE>Map<String, String> tags = super.toMetricTags();<NEW_LINE>addTag(tags, CLUSTER, cluster.getClusterName());<NEW_LINE>addTag(tags, SHARD, shard);<NEW_LINE>addTag(tags, ROLE, role);<NEW_LINE><MASK><NEW_LINE>addTag(tags, DB_KEY, String.format("%s-%s-%s", cluster, shar...
addTag(tags, READ_STRATEGY, readStrategy);
1,843,560
private CurrentCost toCurrentCost(final I_M_Cost record) {<NEW_LINE>final I_C_UOM uom = uomsRepo.getById(record.getC_UOM_ID());<NEW_LINE>final CostElementId costElementId = CostElementId.<MASK><NEW_LINE>final CostElement costElement = costElementRepo.getById(costElementId);<NEW_LINE>final AcctSchemaId acctSchemaId = Ac...
ofRepoId(record.getM_CostElement_ID());
1,685,732
protected Object createDOMT(Object data) throws VirtuosoException {<NEW_LINE>Object db = null;<NEW_LINE>Method parse_mtd = null;<NEW_LINE>// calls javax.xml.parsers.DocumentBuilderFactory.newInstance ()<NEW_LINE>try {<NEW_LINE>Class<?> dbfact_cls = Class.forName("javax.xml.parsers.DocumentBuilderFactory");<NEW_LINE>Obj...
db_cls = Class.forName("javax.xml.parsers.DocumentBuilder");
493,939
public static void open(final DiskManagerFileInfo file, final boolean open_containing_folder_mode) {<NEW_LINE>if (file != null) {<NEW_LINE>LaunchManager launch_manager = LaunchManager.getManager();<NEW_LINE>LaunchManager.LaunchTarget target = launch_manager.createTarget(file);<NEW_LINE>launch_manager.launchRequest(targ...
file.getIndex(), true);
723,550
public CreateAnalysisResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateAnalysisResult createAnalysisResult = new CreateAnalysisResult();<NEW_LINE>createAnalysisResult.setStatus(context.getHttpResponse().getStatusCode());<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE...
class).unmarshall(context));
1,144,553
protected Query doToQuery(SearchExecutionContext context) throws IOException {<NEW_LINE>if (termsLookup != null || supplier != null || values == null || values.isEmpty()) {<NEW_LINE>throw new UnsupportedOperationException("query must be rewritten first");<NEW_LINE>}<NEW_LINE>int maxTermsCount = context.getIndexSettings...
fieldType = context.getFieldType(fieldName);
1,342,033
public boolean start(List<ListenerConfig> listenerConfigs) {<NEW_LINE>_httpServer = ListenerConfigUtil.buildHttpServer(this, listenerConfigs);<NEW_LINE>try {<NEW_LINE>_httpServer.start();<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw new RuntimeException("Failed to start http server", e);<NEW_LINE>}<NEW_LINE>PinotC...
getProperties().get(PINOT_CONFIGURATION);
1,578,120
private void init(KeyFilterConfigHolder config) {<NEW_LINE>boolean debugEnabled = LOG.isDebugEnabled();<NEW_LINE>if (PartitionType.NONE == config.getPartitionType()) {<NEW_LINE>filters = new ArrayList<DbusFilter>();<NEW_LINE>return;<NEW_LINE>} else if (config.getPartitionType() == PartitionType.RANGE) {<NEW_LINE>filter...
= new ArrayList<DbusFilter>();
115,546
protected void doTwitter(HttpServletRequest request, HttpServletResponse response, SocialLoginConfig config) throws IOException {<NEW_LINE>TwitterTokenServices ts = getTwitterTokenServices();<NEW_LINE>Map<String, Object> result = ts.getAccessToken(request, response, config);<NEW_LINE>if (result == null) {<NEW_LINE>// S...
getInstance().handleErrorResponse(response);
1,804,398
public void index(BuildContext context, Index index, IProgressMonitor monitor) throws CoreException {<NEW_LINE>if (context == null || index == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SubMonitor sub = SubMonitor.convert(monitor, 100);<NEW_LINE>try {<NEW_LINE>sub.subTask(getIndexingMessage(index, context.getURI()));...
JSTypeUtil.createGlobalType(JSTypeConstants.GLOBAL_TYPE);
414,352
void checkSpecificAccessControl() throws UnauthorizedAccessException {<NEW_LINE>String courseId = getNonNullRequestParamValue(Const.ParamsNames.COURSE_ID);<NEW_LINE>CourseAttributes course = logic.getCourse(courseId);<NEW_LINE>StudentAttributes student;<NEW_LINE>String studentEmail = getRequestParamValue(Const.ParamsNa...
gateKeeper.verifyAccessible(student, course);
961,337
public static String createStatement(TokenRead tokenRead, IndexDescriptor indexDescriptor) throws ProcedureException {<NEW_LINE>try {<NEW_LINE>final String name = indexDescriptor.getName();<NEW_LINE>final String labelsOrRelTypes = labelsOrRelTypesAsStringArray(tokenRead, indexDescriptor.schema());<NEW_LINE>final String...
schema().entityType());
1,065,401
public void appendParamsInfos(MemoryInfo memoryInfo) {<NEW_LINE>if (memoryInfo == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>OpenGLInfo.TYPE resType = memoryInfo.getResType();<NEW_LINE>if (resType == OpenGLInfo.TYPE.TEXTURE) {<NEW_LINE>FaceInfo[] faces = memoryInfo.getFaces();<NEW_LINE>for (FaceInfo faceInfo : faces)...
memoryInfo.getSize() + '}');
1,060,042
final CreateBatchPredictionResult executeCreateBatchPrediction(CreateBatchPredictionRequest createBatchPredictionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createBatchPredictionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateBatchPrediction");
187,158
private void downloadSaneBody(SyncConfig syncConfig, WebDavFolder remoteFolder, BackendFolder backendFolder, WebDavMessage message) throws MessagingException {<NEW_LINE>FetchProfile fp = new FetchProfile();<NEW_LINE>fp.add(FetchProfile.Item.BODY_SANE);<NEW_LINE><MASK><NEW_LINE>remoteFolder.fetch(Collections.singletonLi...
int maxDownloadSize = syncConfig.getMaximumAutoDownloadMessageSize();
849,133
public void startRetrieveLogInternal(JobData jobData) {<NEW_LINE>if (!(jobData instanceof LinkisLogData)) {<NEW_LINE>throw new LinkisClientExecutionException("EXE0034", ErrorLevel.ERROR, CommonErrMsg.ExecutionErr, "JobData is not LinkisLogData");<NEW_LINE>}<NEW_LINE>if (jobData.getUser() == null || jobData.getJobID() =...
getCachedThreadPoolExecutor().execute(logConsumer);
461,159
public static LockRefreshingLockService create(LockService delegate) {<NEW_LINE>final LockRefreshingLockService ret = new LockRefreshingLockService(delegate);<NEW_LINE>ret.task = executor.scheduleWithFixedDelay(() -> {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>try {<NEW_LINE>ret.refreshLocks();<NEW...
= System.currentTimeMillis() - startTime;
275,485
private void switchTileLayer(final MapSource newSource) {<NEW_LINE>final ITileLayer oldLayer = this.tileLayer;<NEW_LINE>ITileLayer newLayer = null;<NEW_LINE>mapSource = newSource;<NEW_LINE>if (this.mapAttribution != null) {<NEW_LINE>this.mapAttribution.setOnClickListener(new MapAttributionDisplayHandler(() -> this.mapS...
this.tileLayer, this.tileCache);
1,500,083
private void commonMapMovements() {<NEW_LINE>// [START maps_android_camera_and_view_common_map_movements]<NEW_LINE>LatLng sydney = new LatLng(-33.88, 151.21);<NEW_LINE>LatLng mountainView = new LatLng(37.4, -122.1);<NEW_LINE>// Move the camera instantly to Sydney with a zoom of 15.<NEW_LINE>map.moveCamera(CameraUpdateF...
animateCamera(CameraUpdateFactory.zoomIn());
1,442,520
private void examineNullValues() throws CFGBuilderException, DataflowAnalysisException {<NEW_LINE>Set<LocationWhereValueBecomesNull> locationWhereValueBecomesNullSet = invDataflow.getAnalysis().getLocationWhereValueBecomesNullSet();<NEW_LINE>if (DEBUG_DEREFS) {<NEW_LINE>System.out.println("----------------------- exami...
Location location = i.next();
1,460,095
private void consumeTimedoutNonPBufRPC(final ChannelBuffer buf, final int rdx, final int rpcid) {<NEW_LINE>final int flags;<NEW_LINE>if (secure_rpc_helper != null) {<NEW_LINE>flags = buf.readInt();<NEW_LINE>} else {<NEW_LINE>flags = buf.readByte();<NEW_LINE>}<NEW_LINE>if ((flags & HBaseRpc.RPC_FRAMED) != 0) {<NEW_LINE>...
msg = HBaseRpc.readHadoopString(buf);
1,115,775
public void save(boolean async) {<NEW_LINE>if (this.closed) {<NEW_LINE>throw new IllegalStateException("Tried to save closed player");<NEW_LINE>}<NEW_LINE>super.saveNBT();<NEW_LINE>if (this.level != null) {<NEW_LINE>this.namedTag.putString("Level", this.level.getFolderName());<NEW_LINE>if (this.spawnPosition != null &&...
int) this.spawnPosition.y);
1,070,341
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabelDesc = new javax.swing.JLabel();<NEW_LINE>jPanelBeanTree = new javax.swing.JPanel();<NEW_LINE>jLabelError = new javax...
new java.awt.GridBagConstraints();
338,734
public static ListCompanyRegOrdersResponse unmarshall(ListCompanyRegOrdersResponse listCompanyRegOrdersResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCompanyRegOrdersResponse.setRequestId(_ctx.stringValue("ListCompanyRegOrdersResponse.RequestId"));<NEW_LINE>listCompanyRegOrdersResponse.setNextPage(_ctx.booleanValue...
(_ctx.integerValue("ListCompanyRegOrdersResponse.CurrentPageNum"));
618,587
public static ClientMessage encodeRequest(java.util.UUID uuid, java.util.UUID memberUUID, boolean interrupt) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>clientMessage.setRetryable(false);<NEW_LINE>clientMessage.setOperationName("ExecutorService.CancelOnMember");<NEW_LINE>ClientMes...
initialFrame.content, REQUEST_UUID_FIELD_OFFSET, uuid);
1,642,747
protected Set<Register> collectBaseRegistersWithKnownValues(TraceThread thread) {<NEW_LINE>// TODO: Other registers may acquire known values.<NEW_LINE>// TODO: How to best alert the user? Just add to view?<NEW_LINE>TraceMemoryRegisterSpace mem = thread.getTrace().getMemoryManager().getMemoryRegisterSpace(thread, false)...
getKey().getRange());
1,010,574
static void fromJson(Iterable<java.util.Map.Entry<String, Object>> json, NetworkOptions obj) {<NEW_LINE>for (java.util.Map.Entry<String, Object> member : json) {<NEW_LINE>switch(member.getKey()) {<NEW_LINE>case "activityLogDataFormat":<NEW_LINE>if (member.getValue() instanceof String) {<NEW_LINE>obj.setActivityLogDataF...
Boolean) member.getValue());
581,119
protected Long handleInternally(DataObject content) {<NEW_LINE>long guildId = content.getUnsignedLong("guild_id");<NEW_LINE>if (getJDA().getGuildSetupController().isLocked(guildId))<NEW_LINE>return guildId;<NEW_LINE>Guild guild = getJDA().getGuildById(guildId);<NEW_LINE>if (guild == null) {<NEW_LINE>EventCache.LOG.debu...
getJDA().getEmoteById(emoteId);
1,078,832
final CreateChannelModeratorResult executeCreateChannelModerator(CreateChannelModeratorRequest createChannelModeratorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createChannelModeratorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateChannelModerator");
1,002,449
public void splitOff_ExceptionNode(IterableSet<AugmentedStmt> newTryBody, AugmentedStmtGraph asg, IterableSet<ExceptionNode> enlist) {<NEW_LINE>IterableSet<AugmentedStmt> oldTryBody = new IterableSet<AugmentedStmt>();<NEW_LINE>oldTryBody.addAll(tryBody);<NEW_LINE>IterableSet<AugmentedStmt> oldBody = new IterableSet<Aug...
newCatchTarget = asg.get_CloneOf(handlerAugmentedStmt);
1,614,300
public FederationMapping fromJSON(final String json) throws JsonUtilsException, IOException {<NEW_LINE>final ObjectMapper mapper = new ObjectMapper();<NEW_LINE>final JsonNode jsonNode = mapper.readTree(json);<NEW_LINE>final String cname = <MASK><NEW_LINE>final int ttl = JsonUtils.getInt(jsonNode, "ttl");<NEW_LINE>final...
JsonUtils.getString(jsonNode, "cname");
142,777
protected void configure() {<NEW_LINE>bind(ConfigurationDocumentation.class).in(Scopes.SINGLETON);<NEW_LINE>bindScope(LazySingleton.class, LazySingletonScope.get());<NEW_LINE>bindScope(FineGrainedLazySingleton.class, FineGrainedLazySingletonScope.get());<NEW_LINE>bootstrapBinder = new BootstrapBinder(binder(), stage, m...
).in(Scopes.SINGLETON);
582,266
public void updateAddedComponents(ComponentContainer metacont) {<NEW_LINE>Container container = null;<NEW_LINE>if (metacont instanceof RADComponent) {<NEW_LINE>Object contClone <MASK><NEW_LINE>if (contClone instanceof Container) {<NEW_LINE>if (metacont instanceof RADVisualContainer) {<NEW_LINE>RADVisualContainer visual...
= getClonedComponent((RADComponent) metacont);
1,677,754
private void loadNode1007() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.Server_GetMonitoredItems_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteg...
(1), 0.0, false);
1,674,358
public void run(ApplicationArguments args) throws Exception {<NEW_LINE>logger.debug("Running 'promote' command");<NEW_LINE>List<String> nonOptionArgs = args.getNonOptionArgs();<NEW_LINE>Assert.state(!<MASK><NEW_LINE>Assert.state(nonOptionArgs.size() == 3, "Release type or build info location not specified");<NEW_LINE>S...
nonOptionArgs.isEmpty(), "No command argument specified");
337,355
public synchronized void createDirectMessage(DirectMessage status, int account) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>long time = status.getCreatedAt().getTime();<NEW_LINE>values.put(DMSQLiteHelper.COLUMN_ACCOUNT, account);<NEW_LINE>values.put(DMSQLiteHelper.COLUMN_TEXT, TweetLinkUtils.getLink...
getSender().getScreenName());
774,864
public void verifyDevice(User user, HttpServletRequest request) throws IOException, GeoIp2Exception {<NEW_LINE>String ip = extractIp(request);<NEW_LINE>String location = getIpLocation(ip);<NEW_LINE>String deviceDetails = getDeviceDetails(request.getHeader("user-agent"));<NEW_LINE>DeviceMetadata existingDevice = findExi...
), request.getLocale());
521,825
private void populatePartitionAndLocalReplicaMaps(Collection<? extends PartitionId> allPartitions, Map<String, SortedMap<Integer, List<PartitionId>>> partitionIdsByClassAndLocalReplicaCount, Map<PartitionId, List<ReplicaId>> partitionIdToLocalReplicas, String localDatacenterName) {<NEW_LINE>for (PartitionId partition :...
()).add(replicaId);
1,573,374
protected boolean visitNode(ASTNode node) {<NEW_LINE>// Get default previous end<NEW_LINE>ASTNode parent = node.getParent();<NEW_LINE>int previousEnd = parent.getStartPosition();<NEW_LINE>// Look for sibling node<NEW_LINE>ASTNode sibling = parent == this.topSiblingParent ? (ASTNode) this.siblings[this.siblingPtr] : nul...
getLength() - 1, previousLineRange);
1,281,404
public void displayValues(ActionRequest request, ActionResponse response) {<NEW_LINE>Partner customer = request.getContext().asType(Partner.class);<NEW_LINE>try {<NEW_LINE>customer = Beans.get(PartnerRepository.class).find(customer.getId());<NEW_LINE>SortedSet<Map<String, Object>> saleDetailsByProduct = new TreeSet<Map...
productList = partnerSaleService.getProductBoughtByCustomer(customer);
1,178,596
public void onConnected(WebSocket websocket, Map<String, List<String>> headers) {<NEW_LINE>// set 10s timeout in-case discord never sends us a HELLO payload<NEW_LINE>prepareClose();<NEW_LINE>api.<MASK><NEW_LINE>if (sessionId == null) {<NEW_LINE>LOG.info("Connected to WebSocket");<NEW_LINE>// Log which intents are used ...
setStatus(JDA.Status.IDENTIFYING_SESSION);
889,382
private String idFragment() {<NEW_LINE>StringBuilder fragment = new StringBuilder();<NEW_LINE>Token idFragment;<NEW_LINE>while ((idFragment = anyOf(Token.Kind.IDENT, Kind.PLUGIN, Kind.PROJECT, Kind.DEPS, Kind.SCM, Kind.SRCS, Kind.MODULES, Kind.ID, Kind.PACKAGING, Kind.PARENT, Kind.OVERRIDES, Kind.REPOSITORIES, Kind.PRO...
(prop).append("}");
1,528,706
public PathBuilder addRebalanceParameters(RebalanceOptions options) {<NEW_LINE>if (options != null) {<NEW_LINE>PathBuilder builder = addParameter(CruiseControlParameters.DRY_RUN, String.valueOf(options.isDryRun())).addParameter(CruiseControlParameters.VERBOSE, String.valueOf(options.isVerbose())).addParameter(CruiseCon...
CONCURRENT_LEADER_MOVEMENTS, options.getConcurrentLeaderMovements());
1,070,373
private static void blowUpUnlessDerby(String msg) throws Exception {<NEW_LINE>// To run with a different DB, fat.test.databases=true must be set<NEW_LINE>String <MASK><NEW_LINE>if (!"true".equals(fat_test_databases)) {<NEW_LINE>Log.info(c, "blowUpUnlessDerby", msg + " This is OK because we are running with Derby.");<NE...
fat_test_databases = System.getProperty("fat.test.databases");
434,300
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndAllElementsNotNull(sources, 3);<NEW_LINE>final List<Map<String, Object>> data = new LinkedList<>();<NEW_LINE>final String url = (String) sources[0];<NEW...
t.getMessage(), sources);
1,614,712
protected Map<String, Object> initializeCommandLineModel(InitializrMetadata metadata, String serviceUrl) {<NEW_LINE>Map<String, Object> model = new LinkedHashMap<>();<NEW_LINE>model.put("logo", LOGO);<NEW_LINE>model.put("serviceUrl", serviceUrl);<NEW_LINE>model.put("dependencies", generateDependencyTable(metadata));<NE...
defaults.put("baseDir", "no base dir");
1,007,903
protected static Row decodeRow(byte[] value, Handle handle, TiTableInfo tableInfo) {<NEW_LINE>if (handle == null && tableInfo.isPkHandle()) {<NEW_LINE>throw new IllegalArgumentException("when pk is handle, handle cannot be null");<NEW_LINE>}<NEW_LINE>int colSize = tableInfo.getColumns().size();<NEW_LINE>HashMap<Long, T...
= new HashMap<>(colSize);
723,005
private void storeTempDir() {<NEW_LINE><MASK><NEW_LINE>if (!UserMachinePreferences.getCustomTempDirectory().equals(tempDirectoryPath)) {<NEW_LINE>try {<NEW_LINE>UserMachinePreferences.setCustomTempDirectory(tempDirectoryPath);<NEW_LINE>} catch (UserMachinePreferencesException ex) {<NEW_LINE>logger.log(Level.WARNING, "T...
String tempDirectoryPath = tempCustomField.getText();
993,135
public void write(org.apache.thrift.protocol.TProtocol prot, multi_remove_request struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (struct.i...
oprot.writeBitSet(optionals, 3);
1,653,419
public String validate() {<NEW_LINE>String retValue = null;<NEW_LINE>getLines(true);<NEW_LINE>if (distributionLines.size() == 0)<NEW_LINE>retValue = "@NoLines@";<NEW_LINE>else if (isPercentage && getPercentTotal().compareTo(Env.ONEHUNDRED) != 0)<NEW_LINE>retValue = "@PercentTotal@ <> 100";<NEW_LINE>else if (isAmount &&...
get(i).getValidFrom();
727,260
public static URL extractArchiveUrl(URL jarUrl) throws MalformedURLException {<NEW_LINE>String urlFile = jarUrl.getFile();<NEW_LINE>int endIndex = urlFile.indexOf(WAR_URL_SEPARATOR);<NEW_LINE>if (endIndex != -1) {<NEW_LINE>// Tomcat's "war:file:...mywar.war*/WEB-INF/lib/myjar.jar!/myentry.txt"<NEW_LINE>String warFile =...
startIndex = warFile.indexOf(WAR_URL_PREFIX);
1,561,163
private void doMediaIdsSelected(ArrayList<Long> mediaIds, @NonNull PhotoPickerMediaSource source) {<NEW_LINE>if (mediaIds != null && mediaIds.size() > 0) {<NEW_LINE>if (mBrowserType == MediaBrowserType.WP_STORIES_MEDIA_PICKER) {<NEW_LINE>// TODO WPSTORIES add TRACKS (see how it's tracked below? maybe do along the same ...
getPickerFragment().mediaIdsSelectedFromWPMediaPicker(mediaIds);
1,032,321
private void okPressed() {<NEW_LINE>if (!jcbDigitalSignature.isSelected() && !jcbNonRepudiation.isSelected() && !jcbKeyEncipherment.isSelected() && !jcbDataEncipherment.isSelected() && !jcbKeyAgreement.isSelected() && !jcbCertificateSigning.isSelected() && !jcbCrlSign.isSelected() && !jcbEncipherOnly.isSelected() && !j...
() ? KeyUsage.keyCertSign : 0;
820,650
public void startJob() {<NEW_LINE>String enteredPath = pathField.getText();<NEW_LINE>AbstractFile currentFolder = mainFrame.getActivePanel().getCurrentFolder();<NEW_LINE>// Resolves destination folder<NEW_LINE>PathUtils.ResolvedDestination resolvedDest = PathUtils.resolveDestination(enteredPath, currentFolder, currentF...
.getValue() : -1);
243,141
public boolean visit(SQLPropertyExpr x) {<NEW_LINE>// a.t<NEW_LINE>String name = x.getName();<NEW_LINE>if (context.isUnderSet()) {<NEW_LINE>if (x.getOwner() instanceof SQLVariantRefExpr) {<NEW_LINE>this.sqlNode = new SqlIdentifier(ImmutableList.of(((SQLVariantRefExpr) x.getOwner()).getName()<MASK><NEW_LINE>return false...
, name), SqlParserPos.ZERO);
376,902
public ResponseEntity<Object> handleReadingBodyException(final Exception e) {<NEW_LINE>final Throwable cause = e.getCause();<NEW_LINE>if (cause instanceof UnrecognizedPropertyException) {<NEW_LINE>return errorHandler.handleUnknownParameterException(new UnknownParameterException(CentralityErrorCodes.UNKNOWN_PARAMETER, (...
0).getFieldName()));
1,340,147
protected void parseJobAcquisition(XMLExtendedStreamReader reader, List<ModelNode> operations, ModelNode parentAddress) throws XMLStreamException {<NEW_LINE>String acquisitionName = null;<NEW_LINE>// Add the 'add' operation for each 'job-acquisition' child<NEW_LINE>ModelNode addJobAcquisitionOp = new ModelNode();<NEW_L...
(OP).set(ADD);
608,330
public void run() {<NEW_LINE>InputStream in = null;<NEW_LINE>try {<NEW_LINE>in = getInputStream(context, uri);<NEW_LINE>BitmapFactory.Options options = ion.getBitmapCache().prepareBitmapOptions(in, resizeWidth, resizeHeight);<NEW_LINE>StreamUtility.closeQuietly(in);<NEW_LINE>Point size = new Point(options.outWidth, opt...
new Exception(e), null);
1,436,446
public J visitUnary(J.Unary unary, P p) {<NEW_LINE>J j = super.visitUnary(unary, p);<NEW_LINE>J.Unary asUnary = (J.Unary) j;<NEW_LINE>if (asUnary.getOperator() == J.Unary.Type.Not) {<NEW_LINE>if (isLiteralTrue(asUnary.getExpression())) {<NEW_LINE>maybeUnwrapParentheses();<NEW_LINE>j = ((J.Literal) asUnary.getExpression...
).putMessage(MAYBE_AUTO_FORMAT_ME, "");
143,830
public void marshall(AudioDescription audioDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (audioDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.m...
audioDescription.getAudioChannelTaggingSettings(), AUDIOCHANNELTAGGINGSETTINGS_BINDING);
53,929
public void acquireTask(DatastreamTaskImpl task, Duration timeout) {<NEW_LINE>_zkclient.ensurePath(KeyBuilder.datastreamTaskLockPrefix(_cluster, task.getConnectorType(), task.getTaskPrefix()));<NEW_LINE>String lockPath = KeyBuilder.datastreamTaskLock(_cluster, task.getConnectorType(), task.getTaskPrefix(), task.getData...
, task.getDependencies()));
961,238
public ASTNode[] parseRecordBodyDeclarations(char[] source, int offset, int length, Map<String, String> settings, boolean recordParsingInformation, boolean enabledStatementRecovery) {<NEW_LINE>if (source == null) {<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>}<NEW_LINE>CompilerOptions compilerOptions = new ...
0, 0, compilerOptions.maxProblemsPerUnit);
923,960
public void storeParametersToDatabase(boolean storeDataTypes, SourceType srctype) {<NEW_LINE>PcodeDataTypeManager dtManage = getDataTypeManager();<NEW_LINE>try {<NEW_LINE>List<Variable> params = new ArrayList<>();<NEW_LINE>for (ParamMeasure pm : inputlist) {<NEW_LINE>Varnode vn = pm.getVarnode();<NEW_LINE>DataType data...
getUndefinedDataType(vn.getSize());
589,054
public void visit(StringBuilder sb, String prefix, @SuppressWarnings("rawtypes") Metric metric) {<NEW_LINE>// title<NEW_LINE>final String fullName = prefix + metric.getName();<NEW_LINE>if (!metricNames.contains(fullName)) {<NEW_LINE>sb.append(HELP).append(fullName).append(" ").append(metric.getDescription()).append("\n...
()).append("\n");
269,725
public Mono<Response<Flux<ByteBuffer>>> revokeAccessWithResponseAsync(String resourceGroupName, String snapshotName) {<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_LINE>if...
)).readOnly()));
1,646,757
private static SizedType parseSpannerType(String spannerType) {<NEW_LINE>if (spannerType.equals("BOOL")) {<NEW_LINE>return t(Type.bool(), null);<NEW_LINE>}<NEW_LINE>if (spannerType.equals("INT64")) {<NEW_LINE>return t(Type.int64(), null);<NEW_LINE>}<NEW_LINE>if (spannerType.equals("FLOAT64")) {<NEW_LINE>return t(Type.f...
1 : Integer.parseInt(sizeStr);
1,788,829
private void addExtremeMarker(SecurityPrice price, PlotSymbolType plotSymbolType, String seriesLabel, Color color) {<NEW_LINE>LocalDate eventDate = price.getDate();<NEW_LINE>String valueFormat = Values.Quote.format(price.getValue());<NEW_LINE>double value = price.getValue() / Values.Quote.divider();<NEW_LINE>if (chartC...
/ 2), y, true);
1,515,405
private static long writeUncompressedLength(Object outputBase, long outputAddress, int uncompressedLength) {<NEW_LINE>if (uncompressedLength < (1 << 7) && uncompressedLength >= 0) {<NEW_LINE>UNSAFE.putByte(outputBase, outputAddress++, (byte) (uncompressedLength));<NEW_LINE>} else if (uncompressedLength < (1 << 14) && u...
byte) (uncompressedLength | HIGH_BIT_MASK));
1,469,432
public List<SandBox> retrieveChildSandBoxesByParentId(Long parentSandBoxId) {<NEW_LINE>CriteriaBuilder builder = sandBoxEntityManager.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<SandBox> criteria = <MASK><NEW_LINE>Root<SandBoxManagementImpl> sandbox = criteria.from(SandBoxManagementImpl.class);<NEW_LINE>criteria.selec...
builder.createQuery(SandBox.class);