idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
235,981
public static DescribeLiveDomainStreamTranscodeDataResponse unmarshall(DescribeLiveDomainStreamTranscodeDataResponse describeLiveDomainStreamTranscodeDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLiveDomainStreamTranscodeDataResponse.setRequestId<MASK><NEW_LINE>List<TranscodeData> transcodeDataList = new A...
(_ctx.stringValue("DescribeLiveDomainStreamTranscodeDataResponse.RequestId"));
1,303,952
private void convertContextIDBeforeInvoke(ContextID contextID, int index) throws CSErrorException {<NEW_LINE>if (null == contextID) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (StringUtils.isNumeric(contextID.getContextId())) {<NEW_LINE>if (HAContextID.class.isInstance(contextID)) {<NEW_LINE>logger.error("ContextId of HA...
.convertProxyHAID((HAContextID) contextID);
1,319,972
public ShardingRuleConfiguration swapToObject(final YamlShardingRuleConfiguration yamlConfig) {<NEW_LINE>ShardingRuleConfiguration result = new ShardingRuleConfiguration();<NEW_LINE>for (Entry<String, YamlTableRuleConfiguration> entry : yamlConfig.getTables().entrySet()) {<NEW_LINE>YamlTableRuleConfiguration tableRuleC...
setDefaultShardingColumn(yamlConfig.getDefaultShardingColumn());
502,791
public CampaignPropertiesDto toDto() {<NEW_LINE>var dto = CampaignPropertiesDto.newBuilder();<NEW_LINE>tokenTypeMap.forEach((k, v) -> dto.putTokenTypes(k, TokenPropertyListDto.newBuilder().addAllProperties(v.stream().map(TokenProperty::toDto).collect(Collectors.toList()<MASK><NEW_LINE>dto.setDefaultSightType(defaultSig...
)).build()));
744,697
private Object readMark3(int b) throws IOException {<NEW_LINE>switch(b) {<NEW_LINE>case ObjectWriter.DATE16:<NEW_LINE>return DateCache.getDate(readUInt16());<NEW_LINE>// return new java.sql.Date(ObjectWriter.BASEDATE + readUInt16() * 86400000L);<NEW_LINE>case ObjectWriter.DATE32:<NEW_LINE>return new java.sql.Date(Objec...
BASETIME + readUInt16() * 1000);
610,417
private boolean probe(JPDADebugger debugger, Session session) {<NEW_LINE>String key = getKey();<NEW_LINE>if (key == null) {<NEW_LINE>// NOI18N<NEW_LINE>LOG.<MASK><NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if ("".equals(key)) {<NEW_LINE>// NOI18N<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// NOI18N<NEW_LINE>LOG.log(Leve...
log(Level.FINE, "NB Java Shell Agent did not execute far enough; queueing until the agent connects back");
89,233
public ResponseData<Integer> addTransaction(TransactionArgs transactionArgs) {<NEW_LINE>if (StringUtils.isEmpty(transactionArgs.getRequestId())) {<NEW_LINE>logger.error("[redis->add] the id of the data is empty.");<NEW_LINE>return new ResponseData<Integer>(FAILED_STATUS, KEY_INVALID);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE...
execute(client, datakey, datas);
1,351,616
private void processTagLibrary(ServletContext sc, DocumentInfo info, Element documentElement, String namespace, Compiler compiler) {<NEW_LINE><MASK><NEW_LINE>if (children != null && children.getLength() > 0) {<NEW_LINE>String taglibNamespace = null;<NEW_LINE>String compositeLibraryName = null;<NEW_LINE>for (int i = 0, ...
NodeList children = documentElement.getChildNodes();
1,662,847
public static Info create(Frame frame, boolean modal, int windowNo, String tableName, String keyColumn, int record_id, String value, boolean multiSelection, boolean saveResult, String whereClause) {<NEW_LINE>Info info = null;<NEW_LINE>if (tableName.equals("C_BPartner"))<NEW_LINE>info = new InfoBPartner(frame, modal, wi...
false, multiSelection, saveResult, whereClause);
616,747
ImmutableList<Change<GitRevision>> run(String refExpression) throws RepoException, ValidationException {<NEW_LINE>LogCmd logCmd = repository.log(refExpression).firstParent(firstParent);<NEW_LINE>if (limit != -1) {<NEW_LINE>logCmd = logCmd.withLimit(limit);<NEW_LINE>}<NEW_LINE>if (skip > 0) {<NEW_LINE>logCmd = logCmd.wi...
(true).run());
1,237,709
public void onCreate(final Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_error);<NEW_LINE>final Toolbar toolbar = findViewById(R.id.toolbar);<NEW_LINE>setSupportActionBar(toolbar);<NEW_LINE>final Intent intent = getIntent();<NEW_LINE>final ActionBar ...
setTitle(R.string.error_report_title);
1,063,136
public void write(org.apache.thrift.protocol.TProtocol prot, TIntStringStringValue 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 = <MASK><NEW_LINE>if (struct.isSetIntValue()) ...
new java.util.BitSet();
623,511
public static <K> LongBinding longValueAt(final ObservableMap<K, ? extends Number> op, final K key) {<NEW_LINE>if (op == null) {<NEW_LINE>throw new NullPointerException("Map cannot be null.");<NEW_LINE>}<NEW_LINE>return new LongBinding() {<NEW_LINE><NEW_LINE>{<NEW_LINE>super.bind(op);<NEW_LINE>}<NEW_LINE><NEW_LINE>@Ove...
value = op.get(key);
1,511,598
protected void executeSynchronous(FlowNode flowNode) {<NEW_LINE>CommandContextUtil.getActivityInstanceEntityManager(commandContext).recordActivityStart(execution);<NEW_LINE>// Execution listener<NEW_LINE>if (CollectionUtil.isNotEmpty(flowNode.getExecutionListeners())) {<NEW_LINE>executeExecutionListeners(flowNode, Exec...
(ActivityBehavior) flowNode.getBehavior();
1,011,782
public void afterTestClass() {<NEW_LINE>// Cleanup before assertion.<NEW_LINE>assert TestAgentListenerAccess.getInstrumentationErrorCount() == 0 : TestAgentListenerAccess.getInstrumentationErrorCount() + " Instrumentation errors during test";<NEW_LINE>int muzzleFailureCount = TestAgentListenerAccess.getAndResetMuzzleFa...
: "Transformed classes match global libraries ignore matcher: " + TestAgentListenerAccess.getIgnoredButTransformedClassNames();
105,158
void read(WizardDescriptor settings) {<NEW_LINE>// NOI18N<NEW_LINE>File projectLocation = (File) settings.getProperty("projdir");<NEW_LINE>if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {<NEW_LINE>// honor the contract in issue 58987<NEW_LINE>Fi...
setText(projectLocation.getAbsolutePath());
1,383,834
private ClientRegistration buildClientRegistration(Map.Entry<String, AuthorizationClientProperties> client) {<NEW_LINE>AuthorizationGrantType authGrantType = Optional.ofNullable(client.getValue().getAuthorizationGrantType()).map(AadAuthorizationGrantType::getValue).map(AuthorizationGrantType<MASK><NEW_LINE>if (!Authori...
::new).orElse(null);
661,290
public CharSequence handleTable(Theme theme, PostParser.Callback callback, Post.Builder builder, CharSequence text, Element table) {<NEW_LINE>List<CharSequence> parts = new ArrayList<>();<NEW_LINE>Elements <MASK><NEW_LINE>for (int i = 0; i < tableRows.size(); i++) {<NEW_LINE>Element tableRow = tableRows.get(i);<NEW_LIN...
tableRows = table.getElementsByTag("tr");
147,448
public AtlasData load(ResourceUrn urn, List<AssetDataFile> inputs) throws IOException {<NEW_LINE>try (Reader reader = new InputStreamReader(inputs.get(0).openStream(), Charsets.UTF_8)) {<NEW_LINE>AtlasDefinition def = gson.fromJson(reader, AtlasDefinition.class);<NEW_LINE>Optional<? extends Texture> texture = assetMana...
get(), size, result);
1,533,114
protected ControlRequestFlush createControlRequestFlush(SIBUuid8 target, long ID, SIBUuid12 stream) throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE><MASK><NEW_LINE>ControlRequestFlush rflushMsg;<NEW_LINE>// Create new message and send it<NEW_LINE>try {<NEW...
SibTr.entry(tc, "createControlRequestFlush");
77,174
/* (non-Javadoc)<NEW_LINE>* @see com.kkalice.adempiere.migrate.DBObjectInterface#loadHeaders(java.util.HashMap, com.kkalice.adempiere.migrate.MigrateLogger, com.kkalice.adempiere.migrate.MigrateDBEngine, com.kkalice.adempiere.migrate.DBConnection, java.lang.String)<NEW_LINE>*/<NEW_LINE>public void loadHeaders(HashMap<I...
parent.getResultSetString(rs, "FTABLE_NAME");
190,149
private void addItemsInRange(AssetInfo asset, List<FeeItem> feeItems, FeeItemsAlgorithm algorithm, int txSize, int scale) {<NEW_LINE>for (int i = algorithm.getMinPosition(); i < algorithm.getMaxPosition(); i++) {<NEW_LINE>FeeItem currFeeItem = createFeeItem(asset, txSize, algorithm.computeValue(i), scale);<NEW_LINE>Fee...
size() - 1) : null;
1,519,077
public static <T extends ServiceDefinition> void build(T sd, final Class<?> interfaceClass) {<NEW_LINE>sd.setCanonicalName(interfaceClass.getCanonicalName());<NEW_LINE>sd.setCodeSource(ClassUtils.getCodeSource(interfaceClass));<NEW_LINE>Annotation[] classAnnotations = interfaceClass.getAnnotations();<NEW_LINE>sd.setAnn...
= new String[paramTypes.length];
1,109,856
private boolean runInServlet(String test) throws IOException {<NEW_LINE>boolean result = false;<NEW_LINE>URL url = new URL("http://" + HOST + ":" + PORT + "/DurableUnshared?test=" + test);<NEW_LINE>System.out.println("The Servlet URL is : " + url.toString());<NEW_LINE>HttpURLConnection con = <MASK><NEW_LINE>try {<NEW_L...
(HttpURLConnection) url.openConnection();
1,036,114
private void initDatabasesTab() {<NEW_LINE>new ViewModelListCellFactory<StudyDatabaseItem>().withText(StudyDatabaseItem::getName).install(databaseSelector);<NEW_LINE>databaseSelector.<MASK><NEW_LINE>setupCommonPropertiesForTables(databaseSelector, this::addDatabase, databaseColumn, databaseActionColumn);<NEW_LINE>datab...
setItems(viewModel.getNonSelectedDatabases());
245,923
protected CompletableFuture<Long> submitAssignment(SegmentInfo segmentInfo, boolean pin, Duration timeout) {<NEW_LINE>SegmentProperties properties = segmentInfo.getProperties();<NEW_LINE>if (properties.isDeleted()) {<NEW_LINE>// Stream does not exist. Fail the request with the appropriate exception.<NEW_LINE>failAssign...
getName(), pin, timeout);
550,484
private void sendVerifyShardBlockRequest(final IndexShardRoutingTable shardRoutingTable, final ClusterBlock block, final ActionListener<ReplicationResponse> listener) {<NEW_LINE>final ShardId shardId = shardRoutingTable.shardId();<NEW_LINE>if (shardRoutingTable.primaryShard().unassigned()) {<NEW_LINE>logger.debug("prim...
timeout(request.ackTimeout());
90,079
public void onAction(CrdtInfoReplicationContext context) {<NEW_LINE>try {<NEW_LINE>RedisInstanceInfo info = context.instance().getCheckInfo();<NEW_LINE>if (info.isMaster()) {<NEW_LINE>CRDTInfoResultExtractor extractor = (CRDTInfoResultExtractor) context.getResult();<NEW_LINE>long recvTimeMilli = context.getRecvTimeMill...
dc = metaCache.getDc(peer);
91,107
public <T extends DatabaseCommunicationEngine> T newBinaryProtocolInstance(final SQLStatementContext<?> sqlStatementContext, final String sql, final List<Object> parameters, final BackendConnection<?> backendConnection) {<NEW_LINE>ShardingSphereMetaData metaData = ProxyContext.getInstance().getMetaData(backendConnectio...
PREPARED_STATEMENT, metaData, logicSQL, jdbcBackendConnection);
1,428,036
public static void writeCSVRows(XYSeries series, String path2Dir) {<NEW_LINE>File newFile = new File(path2Dir + series.getName() + ".csv");<NEW_LINE>Writer out = null;<NEW_LINE>try {<NEW_LINE>out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), "UTF8"));<NEW_LINE>String csv = join(series.getXD...
) + System.getProperty("line.separator");
151,614
private static List<Property> projectProperties(TypeDef typeDef) {<NEW_LINE>final <MASK><NEW_LINE>return Stream.concat(typeDef.getProperties().stream().filter(p -> {<NEW_LINE>// enums have self-referential static properties for each enum case so we cannot ignore them<NEW_LINE>if (typeDef.isEnum()) {<NEW_LINE>final Type...
String fqn = typeDef.getFullyQualifiedName();
170,935
protected void validateSortingPath(Path path, Set<String> allFields) {<NEW_LINE>List<Path.PathElement> pathElements = path.getPathElements();<NEW_LINE>if (pathElements.size() > 1) {<NEW_LINE>throw new InvalidOperationException("Relationship traversal not supported for analytic queries.");<NEW_LINE>}<NEW_LINE>Path.PathE...
> currentClass = currentElement.getType();
346,865
public void propagate(InstanceState state) {<NEW_LINE>Object triggerType = state.getAttributeValue(StdAttr.EDGE_TRIGGER);<NEW_LINE>final var <MASK><NEW_LINE>ShiftRegisterData data = getData(state);<NEW_LINE>final var len = data.getLength();<NEW_LINE>final var triggered = data.updateClock(state.getPortValue(CK), trigger...
parallel = state.getAttributeValue(ATTR_LOAD);
1,579,250
public float calculateAverageSlope(float originalSlope, float checkingOffset) {<NEW_LINE>Vector3f contactPoint = this.getHitPointWorld();<NEW_LINE>float slope = 1f;<NEW_LINE>boolean foundSlope = false;<NEW_LINE>Vector3f fromWorld = new Vector3f(contactPoint);<NEW_LINE>fromWorld.y += 0.2f;<NEW_LINE>Vector3f toWorld = ne...
(0, 1, 0));
323,607
final UpdateMatchmakingConfigurationResult executeUpdateMatchmakingConfiguration(UpdateMatchmakingConfigurationRequest updateMatchmakingConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateMatchmakingConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
(super.beforeMarshalling(updateMatchmakingConfigurationRequest));
823,340
protected static <A, B> double[] computeBivariateRanks(NumberArrayAdapter<?, A> adapter1, A data1, NumberArrayAdapter<?, B> adapter2, B data2, int len) {<NEW_LINE>double[] ret = new double[len];<NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>for (int j = i + 1; j < len; j++) {<NEW_LINE>double xi = adapter1.getDouble...
yj == yi) ? .5 : 0;
547,976
private DataStream<Row> dataStreamFirstNPartitionRebalance(DataStream<Row> input, final int numWorkers, final int numPSs) {<NEW_LINE>return input.flatMap(new RichFlatMapFunction<Row, Tuple2<Integer, Row>>() {<NEW_LINE><NEW_LINE>private static final long serialVersionUID = 5072779969295321676L;<NEW_LINE><NEW_LINE>@Overr...
(numWorkers + i, value));
1,275,042
private static void emitTryCatchBlocks(final InstructionAdapter mv, final Class<?>[] declaredExceptions, final List<TryBlock> tryBlocks) {<NEW_LINE>if (isThrowableDeclared(declaredExceptions)) {<NEW_LINE>// Method declares Throwable, no need for a try-catch<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// If Throwable is not de...
tryBlock.end, throwableHandler, THROWABLE_TYPE_NAME);
1,378,743
private void updateHelpImage() {<NEW_LINE>if (Build.VERSION.SDK_INT >= 18) {<NEW_LINE>OsmandSettings settings = getSettings();<NEW_LINE>int count = settings.DISPLAYED_MARKERS_WIDGETS_COUNT.get();<NEW_LINE>LinkedList<Drawable> imgList = new LinkedList<>();<NEW_LINE>imgList.add(getDeviceImg());<NEW_LINE>if (settings.SHOW...
).setVisibility(View.GONE);
908,126
public void postIteration() {<NEW_LINE>if (this.ready) {<NEW_LINE>final double currentError = this.mainTrain.getError();<NEW_LINE>this.lastImprovement = (currentError - <MASK><NEW_LINE>EncogLogging.log(EncogLogging.LEVEL_DEBUG, "Last improvement: " + this.lastImprovement);<NEW_LINE>if ((this.lastImprovement > 0) || (Ma...
this.lastError) / this.lastError;
1,422,317
public boolean initDesktop(int ad_Desktop_ID) {<NEW_LINE>AD_Desktop_ID = ad_Desktop_ID;<NEW_LINE>// Get WB info<NEW_LINE>String sql = null;<NEW_LINE>if (Env.isBaseLanguage(m_ctx, "AD_Desktop"))<NEW_LINE>// 1..3<NEW_LINE>sql = // 4..7<NEW_LINE>"SELECT Name,Description,Help," + " AD_Column_ID,AD_Image_ID,AD_Color_ID,PA_G...
Name = rs.getString(1);
283,704
final AllocatePublicVirtualInterfaceResult executeAllocatePublicVirtualInterface(AllocatePublicVirtualInterfaceRequest allocatePublicVirtualInterfaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(allocatePublicVirtualInterfaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
394,547
private void viewChanged(AddressSetView p1AddressSet) {<NEW_LINE>if (primaryProgram != null && !showingSecondProgram) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>p1ViewAddrSet = p1AddressSet;<NEW_LINE>if (showingSecondProgram) {<NEW_LINE>ProgramSelection previousP1Selection = currentSelection;<NEW_LINE>ProgramSelection prev...
FieldPanel fp = diffListingPanel.getFieldPanel();
1,326,612
private boolean copyColumn(Domain domain, Column targetColumn) {<NEW_LINE>Table targetTable = targetColumn.getTable();<NEW_LINE>if (dropAction == ConstraintActionType.RESTRICT) {<NEW_LINE>throw DbException.get(ErrorCode.CANNOT_DROP_2, domainName, targetTable.getCreateSQL());<NEW_LINE>}<NEW_LINE>String columnName = targ...
), CommandInterface.ALTER_TABLE_ADD_CONSTRAINT_CHECK, false);
1,826,024
public void putInfo(@Nonnull Map<String, String> info) {<NEW_LINE>StringBuilder result = new StringBuilder();<NEW_LINE>for (int i = 0; i < myList.size(); i++) {<NEW_LINE>NavBarItem each = myList.get(i);<NEW_LINE>if (each.isSelected()) {<NEW_LINE>result.append("[").append(each.getText()).append("]");<NEW_LINE>} else {<N...
append(each.getText());
925,112
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>super.onCreateView(inflater, container, savedInstanceState);<NEW_LINE>logDebug("Parent Handle: " + managerActivity.getParentHandleIncoming());<NEW_LINE>if (megaApi.getRootNode() == null) {<NEW_LINE>return null;<...
INCOMING_SHARES_ADAPTER, MegaNodeAdapter.ITEM_VIEW_TYPE_LIST, sortByHeaderViewModel);
699,534
public ApiResponse<List<File>> filesGetRandomPhotosWithHttpInfo(String id, Integer numberOfPhotos) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// create path and map variables<NEW_LINE...
throw new ApiException(400, "Missing the required parameter 'id' when calling filesGetRandomPhotos");
810,009
public void marshall(BusinessReportSchedule businessReportSchedule, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (businessReportSchedule == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(businessReportSche...
businessReportSchedule.getScheduleName(), SCHEDULENAME_BINDING);
580,555
protected SnapshotPolicyVO persistSnapshotPolicy(VolumeVO volume, String schedule, String timezone, IntervalType intervalType, int maxSnaps, boolean display, boolean active, Map<String, String> tags) {<NEW_LINE>long volumeId = volume.getId();<NEW_LINE><MASK><NEW_LINE>GlobalLock createSnapshotPolicyLock = GlobalLock.get...
String volumeDescription = volume.getVolumeDescription();
1,617,892
synchronized public byte put(byte b, int index) {<NEW_LINE>if (index >= 0) {<NEW_LINE>throw new IndexOutOfBoundsException("Value must be negative: " + index);<NEW_LINE>} else if (index < -guardBytes) {<NEW_LINE>throw new IndexOutOfBoundsException("Insufficient guard bytes to insert at index: " + index);<NEW_LINE>}<NEW_...
.offset + slice.length - distance;
1,150,569
public static ListAppGroupsResponse unmarshall(ListAppGroupsResponse listAppGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAppGroupsResponse.setRequestId(_ctx.stringValue("ListAppGroupsResponse.requestId"));<NEW_LINE>listAppGroupsResponse.setTotalCount(_ctx.integerValue("ListAppGroupsResponse.totalCount"));<N...
("ListAppGroupsResponse.result[" + i + "].description"));
852,760
private Release doDeployStream(StreamDefinition streamDefinition, Map<String, String> deploymentProperties) {<NEW_LINE>// Extract skipper properties<NEW_LINE>Map<String, String> skipperDeploymentProperties = getSkipperProperties(deploymentProperties);<NEW_LINE>if (!skipperDeploymentProperties.containsKey(SkipperStream....
this.skipperStreamDeployer.deployStream(streamDeploymentRequest);
600,891
public static List<List<Writable>> executeJoin(Join join, List<List<Writable>> left, List<List<Writable>> right) {<NEW_LINE>String[] leftColumnNames = join.getJoinColumnsLeft();<NEW_LINE>int[] leftColumnIndexes = new int[leftColumnNames.length];<NEW_LINE>for (int i = 0; i < leftColumnNames.length; i++) {<NEW_LINE>leftC...
ExtractKeysFunction extractKeysFunction1 = new ExtractKeysFunction(leftColumnIndexes);
619,474
public void handleLineComment(int commentIndex) {<NEW_LINE>Token commentToken = this.tm.get(commentIndex);<NEW_LINE>boolean isOnFirstColumn = handleWhitespaceAround(commentIndex);<NEW_LINE>if (handleFormatOnOffTags(commentToken))<NEW_LINE>return;<NEW_LINE>if (isOnFirstColumn) {<NEW_LINE>if (this.options.comment_format_...
= this.lastLineComment.getInternalStructure();
470,707
public DescribeEnvironmentRevisionResponse describeEnvironmentRevision(@NonNull final DescribeEnvironmentRevisionRequest describeEnvironmentRevisionRequest) throws ResourceNotFoundException, InternalServiceException {<NEW_LINE>final com.amazonaws.blox.dataservicemodel.v1.model.EnvironmentId environmentIdFromRequest = d...
e.getMessage(), e);
950,301
Object doIt(Object clazz, String name, PTuple mroTuple, @Cached("createClassProfile()") ValueProfile profile) {<NEW_LINE>CyclicAssumption nativeClassStableAssumption = getContext().getNativeClassStableAssumption((PythonNativeClass) clazz, false);<NEW_LINE>if (nativeClassStableAssumption != null) {<NEW_LINE>nativeClassS...
MroSequenceStorage) sequenceStorage).lookupChanged();
1,262,012
public OResultSet execute(ODatabaseDocumentInternal database, String script, Map params) {<NEW_LINE>preExecute(database, script, params);<NEW_LINE>final OScriptManager scriptManager = database.getSharedContext()<MASK><NEW_LINE>final Set<String> allowedPackaged = scriptManager.getAllowedPackages();<NEW_LINE>try (Context...
.getOrientDB().getScriptManager();
1,560,615
public void upgrade() throws Exception {<NEW_LINE>checkNotNull(initialSchemaVersion);<NEW_LINE>if (initialSchemaVersion == CURR_SCHEMA_VERSION) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (initialSchemaVersion > CURR_SCHEMA_VERSION) {<NEW_LINE>startupLogger.warn("running an older version of glowroot on a newer glowroot s...
" (expecting glowroot schema version <= {} but found version {}), this could" + " be problematic", CURR_SCHEMA_VERSION, initialSchemaVersion);
163,529
private void checkIndex(RuntimeEnvironment env) {<NEW_LINE>if (env.isProjectsEnabled()) {<NEW_LINE>Map<String, Project> projects = env.getProjects();<NEW_LINE>File indexRoot = new File(env.getDataRootPath(), IndexDatabase.INDEX_DIR);<NEW_LINE>if (indexRoot.exists()) {<NEW_LINE>LOGGER.log(Level.FINE, "Checking indexes f...
log(Level.FINE, "Checking index");
314,776
public static ListPolicyAttachmentsResponse unmarshall(ListPolicyAttachmentsResponse listPolicyAttachmentsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listPolicyAttachmentsResponse.setRequestId(_ctx.stringValue("ListPolicyAttachmentsResponse.RequestId"));<NEW_LINE>listPolicyAttachmentsResponse.setTotalCount(_ctx.inte...
("ListPolicyAttachmentsResponse.PolicyAttachments[" + i + "].PrincipalType"));
377,823
public void run() {<NEW_LINE>if (!myProject.isInitialized() || myProject.isDisposed())<NEW_LINE>return;<NEW_LINE>final List<VcsDirectoryMapping> copy = myNewMappings.getDirectoryMappings();<NEW_LINE>final List<<MASK><NEW_LINE>added.removeAll(myDirectoryMappingWatches.keySet());<NEW_LINE>final List<VcsDirectoryMapping> ...
VcsDirectoryMapping> added = newLinkedList(copy);
521,713
private static void populateMatrix4fArray(Matrix4f[] array, LittleEndien stream, int count, int byteOffset, int byteStride, int numComponents, VertexBuffer.Format format) throws IOException {<NEW_LINE><MASK><NEW_LINE>int index = byteOffset;<NEW_LINE>int dataLength = componentSize * numComponents;<NEW_LINE>int stride = ...
int componentSize = format.getComponentSize();
647,536
private void updateActionsButtons() {<NEW_LINE>View header = view.findViewById(R.id.header);<NEW_LINE>View content = view.findViewById(R.id.content);<NEW_LINE>AppCompatImageView upDownButton = view.findViewById(R.id.up_down_button);<NEW_LINE>header.setOnClickListener(v -> {<NEW_LINE>boolean expanded = content.getVisibi...
.updateVisibility(content, !expanded);
19,343
// for ALTER ROUTINE LOAD<NEW_LINE>protected void modifyCommonJobProperties(Map<String, String> jobProperties) {<NEW_LINE>if (jobProperties.containsKey(CreateRoutineLoadStmt.DESIRED_CONCURRENT_NUMBER_PROPERTY)) {<NEW_LINE>this.desireTaskConcurrentNum = Integer.valueOf(jobProperties.remove(CreateRoutineLoadStmt.DESIRED_...
.remove(CreateRoutineLoadStmt.MAX_BATCH_INTERVAL_SEC_PROPERTY));
22,490
public static void main(String[] args) {<NEW_LINE>NGrinderAgentStarter starter = new NGrinderAgentStarter();<NEW_LINE>final NGrinderAgentStarterParam param = new NGrinderAgentStarterParam();<NEW_LINE><MASK><NEW_LINE>commander.setProgramName("ngrinder-agent");<NEW_LINE>commander.setAcceptUnknownOptions(true);<NEW_LINE>t...
JCommander commander = new JCommander(param);
1,002,961
public static GetGameCcuResponse unmarshall(GetGameCcuResponse getGameCcuResponse, UnmarshallerContext _ctx) {<NEW_LINE>getGameCcuResponse.setRequestId(_ctx.stringValue("GetGameCcuResponse.RequestId"));<NEW_LINE>List<DataListItem> dataList <MASK><NEW_LINE>for (int i = 0; i < _ctx.lengthValue("GetGameCcuResponse.DataLis...
= new ArrayList<DataListItem>();
1,492,127
public final Fetch_path_pathContext fetch_path_path() throws RecognitionException {<NEW_LINE>Fetch_path_pathContext _localctx = new Fetch_path_pathContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 30, RULE_fetch_path_path);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LIN...
_errHandler.recover(this, re);
423,405
public LinearEquationSystem transform(LinearEquationSystem linearEquationSystem) {<NEW_LINE>double[][] coeff = linearEquationSystem.getCoefficents();<NEW_LINE>double[] rhs = linearEquationSystem.getRHS();<NEW_LINE>int[] row = linearEquationSystem.getRowPermutations();<NEW_LINE>int[] col = linearEquationSystem.getColumn...
= coeff[row[r]];
243,190
public static DescribeApisByTrafficControlResponse unmarshall(DescribeApisByTrafficControlResponse describeApisByTrafficControlResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeApisByTrafficControlResponse.setRequestId(_ctx.stringValue("DescribeApisByTrafficControlResponse.RequestId"));<NEW_LINE>describeApisByTraf...
("DescribeApisByTrafficControlResponse.ApiInfos[" + i + "].StageName"));
1,261,677
public ListStreamProcessorsResult listStreamProcessors(ListStreamProcessorsRequest listStreamProcessorsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listStreamProcessorsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executio...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
236,764
private static ResultCursor handleExplainWithStage(ExecutionContext executionContext, ExecutionPlan executionPlan) {<NEW_LINE>final Function<RexNode, Object> evalFunc = RexUtils.getEvalFunc(executionContext);<NEW_LINE>CalcitePlanOptimizerTrace.getOptimizerTracer().get().addSnapshot("End", executionPlan.getPlan(), Plann...
.get().clean();
22,047
public void addPlainMenuItems(String typeStr, PointDescription pointDescription, final LatLon latLon) {<NEW_LINE>MapActivity mapActivity = getMapActivity();<NEW_LINE>if (mapActivity != null) {<NEW_LINE>MapPoiTypes poiTypes = mapActivity.getMyApplication().getPoiTypes();<NEW_LINE>for (Map.Entry<String, String> entry : r...
link, true, true, null);
1,207,610
public Client testClientModel(Client body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel");<NEW_LINE>}<NEW_LINE>/...
HashMap<String, String>();
248,442
private void sizeToScreen() {<NEW_LINE>Rectangle rect = this.getBounds();<NEW_LINE>if (rect.height < 720) {<NEW_LINE>if (!smallMode) {<NEW_LINE>smallMode = true;<NEW_LINE>Dimension bbDimension = new Dimension(128, 184);<NEW_LINE>bigCard.setMaximumSize(bbDimension);<NEW_LINE>bigCard.setMinimumSize(bbDimension);<NEW_LINE...
).setScreenHeight(rect.height);
765,014
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "theString" };<NEW_LINE>String epl = "@name('s0') create window NW#expr(true) as SupportBean;\n" + "insert into NW select * from SupportBean;\n" + "on SupportBean_A delete from NW where theString = id;\n";<NEW_LINE>env.compileDeploy(...
"E1" }, { "E3" } });
230,523
public static GetProjectInfoResponse unmarshall(GetProjectInfoResponse getProjectInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>getProjectInfoResponse.setRequestId(_ctx.stringValue("GetProjectInfoResponse.RequestId"));<NEW_LINE>getProjectInfoResponse.setCode(_ctx.integerValue("GetProjectInfoResponse.Code"));<NEW_LI...
(_ctx.stringValue("GetProjectInfoResponse.Data.Description"));
1,597,964
public void parentExplotion(int PP_Product_BOM_ID) throws Exception {<NEW_LINE>PreparedStatement stmt = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>String sql = "SELECT PP_Product_BOMLine_ID, M_Product_ID FROM PP_Product_BOMLine boml " + "WHERE IsActive = 'Y' AND PP_Product_BOM_ID = ? ORDER BY Line ";<NEW_LINE>try {<N...
getLocalizedMessage() + sql, e);
1,760,434
static void parseGeoPoints(XContentParser parser, List<GeoPoint> geoPoints) throws IOException {<NEW_LINE>while (!parser.nextToken().equals(XContentParser.Token.END_ARRAY)) {<NEW_LINE>if (parser.currentToken() == XContentParser.Token.VALUE_NUMBER) {<NEW_LINE>// we might get here if the geo point is " number, number] " ...
double lon = parser.doubleValue();
200,887
protected void addCompletions(@Nullable CompletionParameters completionParameters, ProcessingContext processingContext, @Nullable CompletionResultSet completionResultSet) {<NEW_LINE>if (completionResultSet == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (completionParameters == null) {<NEW_LINE>return;<NEW_LINE>}<NE...
> implementedEventHandlers = parentModel.getEventMethods();
57,616
public InputSource unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InputSource inputSource = new InputSource();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
class).unmarshall(context));
1,627,928
public AirbyteConnectionStatus check(final JsonNode config) {<NEW_LINE>try {<NEW_LINE>final String projectId = config.get(CONFIG_PROJECT_ID).asText();<NEW_LINE>final String topicId = config.get(CONFIG_TOPIC_ID).asText();<NEW_LINE>final String credentialsString = config.get(CONFIG_CREDS).isObject() ? Jsons.serialize(con...
(requiredPermissions).build());
1,176,660
private ActivityStubs concreteActivityStubs(Business business, String processId) throws Exception {<NEW_LINE>List<ActivityStub> list = new ArrayList<>();<NEW_LINE>list.addAll(this.listActivity(business, Agent.class, processId));<NEW_LINE>list.addAll(this.listActivity(business, Begin.class, processId));<NEW_LINE>list.ad...
, Service.class, processId));
433,710
private static Artifact createSingleOptimizationAction(String runtypeSuffix, RuleContext ruleContext, String mnemonic, int optimizationPassNum, FilesToRunProvider executable, Artifact programJar, ImmutableList<Artifact> proguardSpecs, @Nullable Artifact proguardMapping, @Nullable Artifact proguardDictionary, NestedSet<...
optimizationAction = new SpawnAction.Builder();
1,296,495
public void send(String queueName, Command command, int deliveryMode, int priority, long timeToLive, long deliveryTime) {<NEW_LINE>checkStarted();<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>try (Session session = senderSessionPool.getSession()) {<NEW_LINE>checkInRange(deliveryMode, 1, 2, "delivery mode");...
throw new AsyncException("Failed to send message", e);
1,449,296
private int index(Rope source, Rope other, int byteOffset, Encoding enc, NormalizeIndexNode normalizeIndexNode, ByteIndexFromCharIndexNode byteIndexFromCharIndexNode) {<NEW_LINE>// Taken from org.jruby.util.StringSupport.index.<NEW_LINE>assert byteOffset >= 0;<NEW_LINE><MASK><NEW_LINE>int otherLen = other.characterLeng...
int sourceLen = source.characterLength();
578,549
public void start(List<FlinkBatchSource> sources, List<FlinkBatchTransform> transforms, List<FlinkBatchSink> sinks) throws Exception {<NEW_LINE>List<DataSet<Row>> data = new ArrayList<>();<NEW_LINE>for (FlinkBatchSource source : sources) {<NEW_LINE>DataSet<Row> dataSet = source.getData(flinkEnvironment);<NEW_LINE>data....
transform.getConfig(), input);
106,741
private void loadNode724() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ProgramDiagnosticType_CreateClientName, new QualifiedName(0, "CreateClientName"), new LocalizedText("en", "CreateClientName"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Va...
.expanded(), true));
55,544
private List<Wo> list(Wi wi) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>List<Unit> unitList = emc.listIn(Unit.class, Unit.levelName_FIELDNAME, wi.getUnitList());<NEW_LINE>unitList = business....
wos = new ArrayList<>();
1,146,291
public void write(HttpServletRequest request, HttpServletResponse response, AuraContext context) throws IOException {<NEW_LINE>try {<NEW_LINE>// For appcached apps, inline is not expected to return a CSRF token<NEW_LINE>if (!manifestUtil.isManifestEnabled()) {<NEW_LINE>String <MASK><NEW_LINE>if (!configAdapter.validate...
token = request.getParameter("jwt");
153,839
public static <T> void assertEqualBinaryTrees(TreeLike<T, ?> expected, TreeLike<T, ?> result) throws TestFailure {<NEW_LINE>Stack<TwoNodesAndPath<T>> s = new Stack<>();<NEW_LINE>s.push(new TwoNodesAndPath<>(expected, result, new TreePath()));<NEW_LINE>while (!s.empty()) {<NEW_LINE>TwoNodesAndPath<T> nodes = s.pop();<NE...
.path.withLeft()));
1,573,534
final ListUserProfilesResult executeListUserProfiles(ListUserProfilesRequest listUserProfilesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listUserProfilesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,249,094
public void alterSession(DBCSession session, OracleServerSession sessionType, Map<String, Object> options) throws DBException {<NEW_LINE>final boolean toKill = Boolean.TRUE.equals(options.get(PROP_KILL_SESSION));<NEW_LINE>final boolean immediate = Boolean.TRUE.equals(options.get(PROP_IMMEDIATE));<NEW_LINE>try {<NEW_LIN...
append(sessionType.getInstId());
1,630,908
public void execute() {<NEW_LINE>validateRoleParameters();<NEW_LINE>Role role = null;<NEW_LINE>if (getRoleId() != null) {<NEW_LINE>Role existingRole = roleService.findRole(getRoleId());<NEW_LINE>if (existingRole == null) {<NEW_LINE>throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Invalid role id provided");<NEW_...
getRoleType(), getRoleDescription());
1,164,084
private List<LocalStatisticsJsonStringObject> filterOncePerProvinceStatistics(List<LocalStatisticsJsonStringObject> jsonStringObjects) {<NEW_LINE>List<LocalStatisticsJsonStringObject> onePerProvinceStatistics = new ArrayList<>();<NEW_LINE>Map<String, List<LocalStatisticsJsonStringObject>> groupedByProvince = jsonString...
sameProvinceStatistics = groupedByProvince.get(key);
1,133,377
public void insert(Object key, CacheObject value) {<NEW_LINE>boolean forceInMemory = false;<NEW_LINE>// for (Object cred : value.getSubject().getPrivateCredentials()) {<NEW_LINE>// if ("ClassNameHere".equals(cred.getClass().getSimpleName())) {<NEW_LINE>// forceInMemory = true;<NEW_LINE>// break;<NEW_LINE>// }<NEW_LINE>...
inMemoryCache.insert(key, value);
234,365
protected void buildAreas() {<NEW_LINE><MASK><NEW_LINE>String mapProperty = properties.get(Image.PN_MAP, String.class);<NEW_LINE>if (StringUtils.isNotEmpty(mapProperty)) {<NEW_LINE>// Parse the image map areas as defined at {@code Image.PN_MAP}<NEW_LINE>String[] mapAreas = StringUtils.split(mapProperty, "][");<NEW_LINE...
areas = new ArrayList<>();
652,558
private Category checkUniqueKey(Category category, User user) throws DotDataException, DotSecurityException {<NEW_LINE>// If the category is new or if the category doesn't have any key: Let's generate a potential<NEW_LINE>// key and test until we have a unique one.<NEW_LINE>if (!InodeUtils.isSet(category.getInode()) ||...
getUniqueKey(potentialKey, user, 1);
996,902
public static void applyOptions(boolean holdConsole, boolean isReport) {<NEW_LINE>int style = Font.PLAIN;<NEW_LINE>if (ConfigOptions.bBold.booleanValue()) {<NEW_LINE>style += Font.BOLD;<NEW_LINE>}<NEW_LINE>if (ConfigOptions.bItalic.booleanValue()) {<NEW_LINE>style += Font.ITALIC;<NEW_LINE>}<NEW_LINE>GC.font = new Font(...
setParallelNum(iParallelNum.intValue());
963,672
public final int sendToAddress(long memoryAddress, int pos, int limit, InetAddress addr, int port, boolean fastOpen) throws IOException {<NEW_LINE>// just duplicate the toNativeInetAddress code here to minimize object creation as this method is expected<NEW_LINE>// to be called frequently<NEW_LINE>byte[] address;<NEW_L...
Inet6Address) addr).getScopeId();
374,658
private void decodeConnectionChange(FacesContext context, Diagram diagram) {<NEW_LINE>DiagramModel model = (DiagramModel) diagram.getValue();<NEW_LINE>if (model != null) {<NEW_LINE>Map<String, String> params = context.getExternalContext().getRequestParameterMap();<NEW_LINE>String clientId = diagram.getClientId(context)...
new Connection(newSourceEndPoint, newTargetEndPoint));