idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
320,176
public static void onCrashEmail(Context c, String msg, String title) {<NEW_LINE>final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);<NEW_LINE>String string = c.getResources().getString(R.string.my_email).replace("<u>", "").replace("</u>", "");<NEW_LINE>final String[] aEmailList = { string };<NEW_L...
.createChooser(emailIntent, title));
1,151,065
private static void takeSnapShot(Scene scene, String filenamePrefix) {<NEW_LINE>WritableImage imageSnap = new WritableImage((int) scene.getWidth(), (int) scene.getHeight());<NEW_LINE>scene.snapshot(imageSnap);<NEW_LINE>SimpleDateFormat sfd = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss");<NEW_LINE>try {<NEW_LINE>String sn...
classImageIO = Class.forName("javax.imageio.ImageIO");
469,352
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {<NEW_LINE>CombatInvocationsNotify notif = CombatInvocationsNotify.parseFrom(payload);<NEW_LINE>for (CombatInvokeEntry entry : notif.getInvokeListList()) {<NEW_LINE>switch(entry.getArgumentType()) {<NEW_LINE>case CombatEvtBeingHit:<...
entry.getForwardType(), entry);
912,319
public Map<String, ContainerRegistryConfiguration> convert(String dockerconfigjson) {<NEW_LINE>if (StringUtils.hasText(dockerconfigjson)) {<NEW_LINE>try {<NEW_LINE>Map authsMap = (Map) new ObjectMapper().readValue(dockerconfigjson, Map.class).get("auths");<NEW_LINE>Map<String, ContainerRegistryConfiguration> registryCo...
rc.getRegistryHost(), rc);
1,629,100
public void init(final SortedKeyValueIterator<Key, Value> source, final Map<String, String> options, final IteratorEnvironment env) throws IOException {<NEW_LINE>super.init(source, options, env);<NEW_LINE>try {<NEW_LINE>schema = Schema.fromJson(options.get(AccumuloStoreConstants.SCHEMA).getBytes(CommonConstants.UTF_8))...
.getBytes(CommonConstants.UTF_8));
88,264
private static void tryAssertionNamedWindowDelete(RegressionEnvironment env, String[] fields, AtomicInteger milestone) {<NEW_LINE>env.sendEventBean(new SupportBean("A", 100));<NEW_LINE>env.assertPropsNew("s0", fields, new Object[] { "A", 100 });<NEW_LINE>env.milestoneInc(milestone);<NEW_LINE>env.sendEventBean(new Suppo...
new SupportBean("B", 21));
598,321
public void configure(ConfigurableProvider provider) {<NEW_LINE>provider.addAlgorithm("KeyFactory.SPHINCSPLUS", PREFIX + "SPHINCSPlusKeyFactorySpi");<NEW_LINE>provider.addAlgorithm("KeyPairGenerator.SPHINCSPLUS", PREFIX + "SPHINCSPlusKeyPairGeneratorSpi");<NEW_LINE>provider.addAlgorithm("Alg.Alias.KeyFactory.SPHINCS+",...
PREFIX + "SignatureSpi$Direct", BCObjectIdentifiers.sphincsPlus);
7,670
final DeleteImportResult executeDeleteImport(DeleteImportRequest deleteImportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteImportRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteImportRequest> request = null;<NEW_LINE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,295,750
protected void removeDataBefore(Job job, float requestsPerSec, long latestTimeMs, long cutoffEpochMs, ActionListener<Boolean> listener) {<NEW_LINE>// TODO: delete this test if we ever allow users to revert a job to no model snapshot, e.g. to recover from data loss<NEW_LINE>if (job.getModelSnapshotId() == null) {<NEW_LI...
.getId(), cutoffEpochMs));
980,411
private static Chunk readChunkHeader(ByteBuffer buff, long start) {<NEW_LINE>int pos = buff.position();<NEW_LINE>byte[] data = new byte[Math.min(buff<MASK><NEW_LINE>buff.get(data);<NEW_LINE>try {<NEW_LINE>for (int i = 0; i < data.length; i++) {<NEW_LINE>if (data[i] == '\n') {<NEW_LINE>// set the position to the start o...
.remaining(), MAX_HEADER_LENGTH)];
1,618,295
public String dohandler(SQLStatement statement, SQLSelect sqlselect, SQLObject parent, List param) {<NEW_LINE>if (parent.getParent() instanceof SQLBinaryOpExpr) {<NEW_LINE>SQLExprImpl inlistExpr = null;<NEW_LINE>if (null == param || param.isEmpty()) {<NEW_LINE>inlistExpr = new SQLNullExpr();<NEW_LINE>SQLBinaryOpExpr xp...
SQLValuableExpr) param.get(i);
904,368
// static jint NativeGetResourceArray(JNIEnv* env, jclass /*clazz*/, jlong ptr, jint resid,<NEW_LINE>// jintArray out_data) {<NEW_LINE>@Implementation(minSdk = P)<NEW_LINE>protected static int nativeGetResourceArray(long ptr, @ArrayRes int resid, @NonNull int[] out_data) {<NEW_LINE>CppAssetManager2 assetmanager = Asset...
(int) (bag.entry_count);
609,376
private static //<NEW_LINE>Command parseSqlCommand(String str) {<NEW_LINE>String opt = null;<NEW_LINE>String db = null;<NEW_LINE>String sql;<NEW_LINE>String param = null;<NEW_LINE>int len = str.length();<NEW_LINE>int sqlStart = 1;<NEW_LINE>while (sqlStart < len) {<NEW_LINE>char c = str.charAt(sqlStart);<NEW_LINE>if (c ...
str.substring(sqlStart, len);
1,546,235
public boolean eIsSet(int featureID) {<NEW_LINE>switch(featureID) {<NEW_LINE>case ModelPackage.MBAROMETER_TEMPERATURE__SENSOR_VALUE:<NEW_LINE>return sensorValue != null;<NEW_LINE>case ModelPackage.MBAROMETER_TEMPERATURE__LOGGER:<NEW_LINE>return LOGGER_EDEFAULT == null ? logger != null : !LOGGER_EDEFAULT.equals(logger);...
: !UID_EDEFAULT.equals(uid);
854,594
public static Tensor<?> toTFTensor(com.alibaba.alink.common.linalg.tensor.Tensor<?> tensor) {<NEW_LINE>switch(tensor.getType()) {<NEW_LINE>case FLOAT:<NEW_LINE>return TFloat32.tensorOf(TensorInternalUtils.getTensorData((FloatTensor) tensor));<NEW_LINE>case DOUBLE:<NEW_LINE>return TFloat64.tensorOf(TensorInternalUtils.g...
getTensorData((BoolTensor) tensor));
513,228
public void changeToSlave(int brokerId) {<NEW_LINE>log.info("Begin to change to slave brokerName={} brokerId={}", brokerConfig.getBrokerName(), brokerId);<NEW_LINE>// change the role<NEW_LINE>// TO DO check<NEW_LINE>brokerConfig.setBrokerId(brokerId == 0 ? 1 : brokerId);<NEW_LINE>messageStoreConfig.setBrokerRole(Broker...
messageStore.handleScheduleMessageService(BrokerRole.SLAVE);
319,805
public void fill() throws JRException {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>// Preparing parameters<NEW_LINE>Image image = Toolkit.getDefaultToolkit().createImage(JRLoader.loadBytesFromResource("dukesign.jpg"));<NEW_LINE>MediaTracker traker = new MediaTracker(new Panel());<NEW_LINE>traker.addImag...
parameters.put("SummaryImage", image);
1,462,821
private void restoreAlignments(MultiMap<Alignment, LeafBlockWrapper> blocks) {<NEW_LINE>for (Alignment alignment : blocks.keySet()) {<NEW_LINE>AlignmentImpl alignmentImpl = (AlignmentImpl) alignment;<NEW_LINE>if (!alignmentImpl.isAllowBackwardShift())<NEW_LINE>continue;<NEW_LINE>Set<LeafBlockWrapper> toRealign = alignm...
getLineNumber(rightMostBlock.getStartOffset());
590,297
protected void startCapture() {<NEW_LINE>TUIChatLog.i(TAG, "startCapture");<NEW_LINE>requestPermission(CAPTURE, new PermissionUtils.SimpleCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onGranted() {<NEW_LINE>Intent captureIntent = new Intent(getContext(), CameraActivity.class);<NEW_LINE>captureIntent.pu...
TUIChatConstants.CAMERA_TYPE, JCameraView.BUTTON_STATE_ONLY_CAPTURE);
852,033
private boolean authenticateUser(String principal, PasswordToken pt, byte[] zkData) {<NEW_LINE>if (zkData == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// if the hash does not match the outdated format use Crypt to verify it<NEW_LINE>if (!ZKSecurityTool.isOutdatedPass(zkData)) {<NEW_LINE>return ZKSecurityTool.c...
pt.getPassword(), zkData);
1,573,489
Mono<Response<PathInfo>> flushWithResponse(long position, boolean retainUncommittedData, boolean close, PathHttpHeaders httpHeaders, DataLakeRequestConditions requestConditions, Context context) {<NEW_LINE>httpHeaders = httpHeaders == null ? new PathHttpHeaders() : httpHeaders;<NEW_LINE>requestConditions = requestCondi...
null ? new DataLakeRequestConditions() : requestConditions;
1,812,801
private static Map<String, Object> prepareMap(Index index, ParsedDocument doc, long tookInNanos, boolean reformat, int maxSourceCharsToLog) {<NEW_LINE>Map<String, Object> map = new HashMap<>();<NEW_LINE>map.put("message", index);<NEW_LINE>map.put("took", TimeValue.timeValueNanos(tookInNanos));<NEW_LINE>map.put("took_mi...
source, maxSourceCharsToLog).trim();
566,070
private JsonRequestBPartnerLocationAndContact addMunicipalityInvoiceRecipient(@NonNull final BodyType body, @NonNull final HighLevelContext context) {<NEW_LINE>// the guarantor is the municipality who gets the invoice<NEW_LINE>final GuarantorAddressType guarantor = getGuarantor(body);<NEW_LINE>final NameAndPostal guara...
guarantorExternalId.getValue() + "_GUARANTOR");
124,676
static CosmosChangeFeedRequestOptions createForProcessingFromContinuation(ChangeFeedState changeFeedState) {<NEW_LINE>FeedRangeInternal feedRange = changeFeedState.getFeedRange();<NEW_LINE>FeedRangeContinuation continuation = changeFeedState.getContinuation();<NEW_LINE>ChangeFeedMode mode = changeFeedState.getMode();<N...
createFromBeginning(), mode, changeFeedState);
137,972
public static ListMcubeNebulaAppsResponse unmarshall(ListMcubeNebulaAppsResponse listMcubeNebulaAppsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMcubeNebulaAppsResponse.setRequestId(_ctx.stringValue("ListMcubeNebulaAppsResponse.RequestId"));<NEW_LINE>listMcubeNebulaAppsResponse.setResultMessage<MASK><NEW_LINE>lis...
(_ctx.stringValue("ListMcubeNebulaAppsResponse.ResultMessage"));
756,353
protected void onCreateNewClick(Button.ClickEvent event) {<NEW_LINE>QueryParser parser = QueryTransformerFactory.createParser(query);<NEW_LINE>String entityAlias = parser.getEntityAlias(entityType);<NEW_LINE>String filterXml = UserSetHelper.generateSetFilter(ids, entityClass, componentId, entityAlias);<NEW_LINE>SearchF...
(e -> close(COMMIT_ACTION_ID));
964,248
public static void loadImage(final String url, final ImageDownloaderListener l) {<NEW_LINE>// System.out.println("download " + url);<NEW_LINE>mon_map.enter();<NEW_LINE>try {<NEW_LINE>List<ImageDownloaderListener> list = map.get(url);<NEW_LINE>if (list != null) {<NEW_LINE>list.add(l);<NEW_LINE>return;<NEW_LINE>}<NEW_LIN...
getSingleton().create(u);
968,417
public void marshall(TopicsDetectionJobFilter topicsDetectionJobFilter, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (topicsDetectionJobFilter.getJobName() != null) {<NEW_LINE><MASK><NEW_LINE>jsonWriter.name("JobName");<NEW_LINE>jsonWriter.value(jobName);<NEW_LINE>}<NEW_LI...
String jobName = topicsDetectionJobFilter.getJobName();
1,398,326
protected void populateComponents() {<NEW_LINE>JPanel workPanel = new JPanel(new BorderLayout());<NEW_LINE>{<NEW_LINE>Box hbox = Box.createHorizontalBox();<NEW_LINE>hbox.setBorder<MASK><NEW_LINE>hbox.add(new JLabel("Expression: "));<NEW_LINE>scheduleText = new JTextField();<NEW_LINE>hbox.add(scheduleText);<NEW_LINE>hbo...
(BorderFactory.createTitledBorder("Schedule"));
873,417
public static void startFileLogging(String logFilePath) {<NEW_LINE>Logger rootLogger = (Logger) <MASK><NEW_LINE>LoggerContext loggerContext = rootLogger.getLoggerContext();<NEW_LINE>RollingFileAppender<ILoggingEvent> rfAppender = new RollingFileAppender<>();<NEW_LINE>rfAppender.setContext(loggerContext);<NEW_LINE>rfApp...
LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
152,943
/* (non-Javadoc)<NEW_LINE>* @see org.evosuite.testcase.ExecutionObserver#statement(int, org.evosuite.testcase.Scope, org.evosuite.testcase.VariableReference)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void afterStatement(Statement statement, Scope scope, Throwable exception) {<NEW_LINE>// if (!ContractChecker.valid...
info(e.toString());
1,280,243
private void scanForInvalidGetters(Set<String> getters, Set<String> allowableGetters, CaseTree caseTree, ImmutableList<Symbol> receiverSymbolChain, VisitorState state) {<NEW_LINE>new SuppressibleTreePathScanner<Void, Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void visitMethodInvocation(MethodInvocationTree ...
super.visitMethodInvocation(methodInvocationTree, null);
355,802
protected void updateExecutions(CommandContext commandContext, ProcessDefinitionEntity processDefinitionEntity, ExecutionEntity processInstance, List<ExecutionEntity> childExecutions) {<NEW_LINE>ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration(commandContext);...
getFlowElement(executionAtTask.getCurrentActivityId());
990,483
private void writeInitPacket(final BluetoothGattCharacteristic characteristic, final byte[] buffer, final int size) throws DeviceDisconnectedException, DfuException, UploadAbortedException {<NEW_LINE>if (mAborted)<NEW_LINE>throw new UploadAbortedException();<NEW_LINE>byte[] locBuffer = buffer;<NEW_LINE>if (buffer.lengt...
0, locBuffer, 0, size);
1,744,451
private void handleComplexDynamics() {<NEW_LINE>// All dynamics in system<NEW_LINE>final List<Inter> dynamics = sig.inters(DynamicsInter.class);<NEW_LINE>// Complex dynamics in system, sorted by decreasing length<NEW_LINE>final List<DynamicsInter> complexes = new ArrayList<>();<NEW_LINE>for (Inter inter : dynamics) {<N...
().length()));
51,865
public List<PropertyDeclaration> buildDeclarations(CSSName cssName, List<PropertyValue> values, int origin, boolean important, boolean inheritAllowed) {<NEW_LINE>checkValueCount(cssName, <MASK><NEW_LINE>PropertyValue value = values.get(0);<NEW_LINE>checkInheritAllowed(value, inheritAllowed);<NEW_LINE>if (value.getCssVa...
1, values.size());
286,892
public void registerBeans(@Observes AfterBeanDiscovery abd, BeanManager beanManager) {<NEW_LINE>Collection<Binding> bindings = this.bindings.getBindings();<NEW_LINE>List<InjectionResolver> injectionResolvers = bindings.stream().filter(binding -> InjectionResolverBinding.class.isAssignableFrom(binding.getClass())).map(I...
-> injectionTarget.setInjectionResolvers(injectionResolvers));
1,445,736
public static void main(String[] args) {<NEW_LINE>Main main = new Main();<NEW_LINE>JCommander jc = new JCommander(main);<NEW_LINE>main.jc = jc;<NEW_LINE>jc.setProgramName("smali");<NEW_LINE>List<JCommander<MASK><NEW_LINE>ExtendedCommands.addExtendedCommand(jc, new AssembleCommand(commandHierarchy));<NEW_LINE>ExtendedCo...
> commandHierarchy = main.getCommandHierarchy();
1,054,316
public static DescribeDomainReqHitRateDataResponse unmarshall(DescribeDomainReqHitRateDataResponse describeDomainReqHitRateDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainReqHitRateDataResponse.setRequestId(_ctx.stringValue("DescribeDomainReqHitRateDataResponse.RequestId"));<NEW_LINE>describeDomainReqH...
(_ctx.stringValue("DescribeDomainReqHitRateDataResponse.DomainName"));
951,295
/*<NEW_LINE>* When unit result is about to be accepted, removed back pointers<NEW_LINE>* to compiler structures.<NEW_LINE>*/<NEW_LINE>public void cleanUp() {<NEW_LINE>if (this.types != null) {<NEW_LINE>for (int i = 0, max = this.types.length; i < max; i++) {<NEW_LINE>cleanUp(this.types[i]);<NEW_LINE>}<NEW_LINE>for (int...
functionalExpressions[i].cleanUp();
441,862
private Node createNode(@Nonnull BaseStartedNodeEvent startedNodeEvent, boolean suite) {<NEW_LINE>Node parentNode = findValidParentNode(startedNodeEvent);<NEW_LINE>if (parentNode == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String nodeId = validateAndGetNodeId(startedNodeEvent);<NEW_LINE>if (nodeId == null) {<N...
NODE_ID, startedNodeEvent.getId());
761,628
private void buildPerformanceTestTab(Tab tab, boolean customCell) {<NEW_LINE>GridPane grid = new GridPane();<NEW_LINE>grid.setPadding(new Insets(5, 5, 5, 5));<NEW_LINE>grid.setHgap(5);<NEW_LINE>grid.setVgap(5);<NEW_LINE>final ObservableList<List<Double>> bigData = FXCollections.observableArrayList();<NEW_LINE>TableView...
<List<Double>>();
1,520,655
public int compareTo(@Nonnull Role r) {<NEW_LINE>if (this == r)<NEW_LINE>return 0;<NEW_LINE>if (!(r instanceof RoleImpl))<NEW_LINE>throw new IllegalArgumentException("Cannot compare different role implementations");<NEW_LINE>RoleImpl impl = (RoleImpl) r;<NEW_LINE>if (this.guild.getIdLong() != impl.guild.getIdLong())<NE...
OffsetDateTime thisTime = this.getTimeCreated();
572,306
private TaskDOExample convert(TaskQueryCondition condition) {<NEW_LINE>TaskDOExample example = new TaskDOExample();<NEW_LINE>Criteria criteria = example.createCriteria();<NEW_LINE>if (!StringUtils.isEmpty(condition.getTaskUuid())) {<NEW_LINE>criteria.andTaskUuidEqualTo(condition.getTaskUuid());<NEW_LINE>}<NEW_LINE>if (...
getTaskStatus().getValue());
943,005
protected Map<String, DiscoveredMethod> retrieveAllAnnotatedBeanMethods(Class<?> clazz) throws IntrospectionException, ClassNotFoundException {<NEW_LINE>Map<String, DiscoveredMethod> mapDiscoveredMethods = new HashMap<>();<NEW_LINE>for (Method m : getAllMethods(clazz)) {<NEW_LINE>boolean isQuery = m.getAnnotation(Query...
String name = discoveredMethod.name();
1,397,751
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_flexiblespacewithimagelistview);<NEW_LINE>mFlexibleSpaceImageHeight = getResources().<MASK><NEW_LINE>mFlexibleSpaceShowFabOffset = getResources().getDimensionPixelSize(R.dimen.flex...
getDimensionPixelSize(R.dimen.flexible_space_image_height);
549,693
private void repositoryClassMarker(PsiElement psiElement, Collection<? super RelatedItemLineMarkerInfo<?>> result) {<NEW_LINE><MASK><NEW_LINE>if (!(phpClassContext instanceof PhpClass)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Collection<PsiFile> psiFiles = new ArrayList<>();<NEW_LINE>for (VirtualFile virtualFile : Doctr...
PsiElement phpClassContext = psiElement.getContext();
794,854
protected void doExecute(Task task, MultiSearchRequest request, ActionListener<MultiSearchResponse> listener) {<NEW_LINE>final long relativeStartTime = relativeTimeProvider.getAsLong();<NEW_LINE>ClusterState clusterState = clusterService.state();<NEW_LINE>clusterState.blocks().globalBlockedRaiseException(ClusterBlockLe...
), task.getId());
69,158
private void init() {<NEW_LINE>exceptionUnmarshallers.add(new SubscriptionLimitExceededExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new InvalidParameterExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new BatchEntryIdsNotDistinctExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add...
.add(new InternalErrorExceptionUnmarshaller());
198,939
public void marshall(DataSourceConfiguration dataSourceConfiguration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (dataSourceConfiguration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(dataSourceConfi...
dataSourceConfiguration.getGoogleDriveConfiguration(), GOOGLEDRIVECONFIGURATION_BINDING);
591,333
private void emitOrDecimateSTR(final int seqNumber, final String seqId, final BestPeriodRepeat best, final STRDecimationTable decimationTable, final STRTableFileBuilder output) {<NEW_LINE>final int effectiveRepeats = Math.min(maxRepeat, best.repeats);<NEW_LINE>final int mask = nextMasks[seqNumber][best.period][effectiv...
best.period, best.repeats);
1,438,282
public void start(Stage stage) {<NEW_LINE>Scene scene = new Scene(new Group(), 400.0f, 300.0f);<NEW_LINE>scene.setCamera(new PerspectiveCamera());<NEW_LINE>Group group = new Group();<NEW_LINE>Group group2 = new Group();<NEW_LINE>group2.setRotate(60.0F);<NEW_LINE>group2.setRotationAxis(Rotate.Y_AXIS);<NEW_LINE>Ellipse e...
getChildren().addAll(group2);
930,151
/* (non-Javadoc)<NEW_LINE>* @see net.sf.jasperreports.engine.util.JRQueryExecuter#createDatasource()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public JRDataSource createDatasource() throws JRException {<NEW_LINE>JRResultSetDataSource dataSource = null;<NEW_LINE>createStatement();<NEW_LINE>if (statement != null) {<NEW_LIN...
.getName() }, e);
1,810,587
public ASTNode visitInsert(final InsertContext ctx) {<NEW_LINE>// TODO :FIXME, since there is no segment for insertValuesClause, InsertStatement is created by sub rule.<NEW_LINE>MySQLInsertStatement result;<NEW_LINE>if (null != ctx.insertValuesClause()) {<NEW_LINE>result = (MySQLInsertStatement) visit(ctx.insertValuesC...
(ctx.onDuplicateKeyClause()));
1,829,182
private static void consumeOutput(final String bootstrapServers) {<NEW_LINE>final Properties consumerProps = new Properties();<NEW_LINE>consumerProps.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapServers);<NEW_LINE>consumerProps.put(ConsumerConfig.GROUP_ID_CONFIG, "session-windows-consumer");<NEW_LINE>consumerP...
= new KafkaConsumer<>(consumerProps);
997,659
public HttpServletRequest readRequest(AwsProxyRequest request, SecurityContext securityContext, Context lambdaContext, ContainerConfig config) throws InvalidRequestEventException {<NEW_LINE>// Expect the HTTP method and context to be populated. If they are not, we are handling an<NEW_LINE>// unsupported event type.<NEW...
.getPath(), config));
624,004
public void onIceCandidate(final IceCandidate candidate) {<NEW_LINE>Log.d(TAG, "onIceCandidate");<NEW_LINE>WritableMap params = Arguments.createMap();<NEW_LINE>params.putInt("id", id);<NEW_LINE>WritableMap candidateParams = Arguments.createMap();<NEW_LINE>candidateParams.putInt("sdpMLineIndex", candidate.sdpMLineIndex)...
newSdp.type.canonicalForm());
401,712
public static void addSymbols(IProcess process, long j9RasAddress, StructureReader structureReader) {<NEW_LINE>long vmAddress = 0;<NEW_LINE>try {<NEW_LINE>vmAddress = followPointerFromStructure("J9RAS", j9RasAddress, "vm", structureReader, process);<NEW_LINE>} catch (MemoryFault e) {<NEW_LINE>Logger logger = Logger.get...
Logger.getLogger(LoggerNames.LOGGER_STRUCTURE_READER);
888,149
final GetWorkGroupResult executeGetWorkGroup(GetWorkGroupRequest getWorkGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getWorkGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
600,340
public void transformJson(HistoryJobEntity job, ObjectNode historicalData, CommandContext commandContext) {<NEW_LINE>HistoricVariableInstanceEntity historicVariable = processEngineConfiguration.getVariableServiceConfiguration().getHistoricVariableService().getHistoricVariableInstance(getStringFromJson(historicalData, H...
getStringFromJson(historicalData, HistoryJsonConstants.VARIABLE_BYTES_VALUE);
1,814,336
private SslPolicy createSslPolicy(SslPolicyConfig policyConfig) {<NEW_LINE>Path baseDirectory = config.get(policyConfig.base_directory);<NEW_LINE>Path revokedCertificatesDir = config.get(policyConfig.revoked_dir);<NEW_LINE>if (Files.notExists(baseDirectory)) {<NEW_LINE>throw new IllegalArgumentException(format("Base di...
config.get(policyConfig.ciphers);
290,364
private static void byteRepr(StringBuilder sb, byte b, boolean isSingleQuote) {<NEW_LINE>if (b == '\t') {<NEW_LINE>PythonUtils.append(sb, "\\t");<NEW_LINE>} else if (b == '\n') {<NEW_LINE>PythonUtils.append(sb, "\\n");<NEW_LINE>} else if (b == '\r') {<NEW_LINE>PythonUtils.append(sb, "\\r");<NEW_LINE>} else if (b == '\'...
sb, isSingleQuote ? "\\'" : "'");
1,513,452
public static ListDataServiceAuthorizedApisResponse unmarshall(ListDataServiceAuthorizedApisResponse listDataServiceAuthorizedApisResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDataServiceAuthorizedApisResponse.setRequestId(_ctx.stringValue("ListDataServiceAuthorizedApisResponse.RequestId"));<NEW_LINE>listDataServi...
(_ctx.stringValue("ListDataServiceAuthorizedApisResponse.ErrorCode"));
1,489,792
private I_MSV3_VerfuegbarkeitsanfrageEinzelne_Artikel createVerfuegbarkeitsanfrageEinzelne_Artikel(@NonNull final StockAvailabilityQueryItem singleArticle, @NonNull final ImmutableMap<StockAvailabilityQueryItem, MSV3ArtikelContextInfo> immutableMap) {<NEW_LINE>final I_MSV3_VerfuegbarkeitsanfrageEinzelne_Artikel article...
availabilityRequestItem = immutableMap.get(singleArticle);
390,754
public static void main(String[] args) throws InterruptedException {<NEW_LINE>if (args.length == 0) {<NEW_LINE>System.out.println("Usage: podName [namespace]");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>String namespace = "default";<NEW_LINE>if (args.length > 1) {<NEW_LINE>namespace = args[1];<NEW_LINE>}<NEW...
final String podName = args[0];
1,373,928
public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) {<NEW_LINE>if (opcode == Opcodes.INVOKESPECIAL && "<init>".equals(name)) {<NEW_LINE>int argumentSize = (Type.getArgumentsAndReturnSizes(desc) >> 2);<NEW_LINE>InferredType receiverType = getOperandFromTop(argumentSize - 1).type(...
create('L' + owner + ';');
646,205
private void scriptToBeInvoked(ObjectVariable mh) {<NEW_LINE>ObjectVariable member = (ObjectVariable) mh.getField("member");<NEW_LINE>if (!(member instanceof ObjectVariable)) {<NEW_LINE>logger.info(<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ObjectVariable clazz = (ObjectVariable) member.getField("clazz");<NEW_LINE>if ...
"Variable " + mh + " does not have member field: " + member);
192,720
public void processHeader(final ParserContext context) {<NEW_LINE>Options options = getAsciiDocOptionsAndAttributes(context);<NEW_LINE>final Asciidoctor asciidoctor = getEngine(options);<NEW_LINE>DocumentHeader header = asciidoctor.readDocumentHeader(context.getFile());<NEW_LINE>DocumentModel documentModel = context.ge...
("Wrong value of 'jbake-tags'. Expected a String got '{}'", getValueClassName(value));
957,984
private static Map<String, Field> findPropertyFields(Object delegate) {<NEW_LINE>HashMap<String, Field> propertyMap = null;<NEW_LINE>// Go through declared field annotations<NEW_LINE>for (final Field field : getAllFields(delegate)) {<NEW_LINE>AccessController.doPrivileged(new PrivilegedAction<Object>() {<NEW_LINE><NEW_...
throw new IllegalBatchPropertyException("There is already a batch property with this name: " + batchPropName);
1,848,335
private void validate(APIGetCpuMemoryCapacityMsg msg) {<NEW_LINE>boolean pass = false;<NEW_LINE>if ((msg.getZoneUuids() != null && !msg.getZoneUuids().isEmpty())) {<NEW_LINE>pass = true;<NEW_LINE>}<NEW_LINE>if ((msg.getClusterUuids() != null && !msg.getClusterUuids().isEmpty())) {<NEW_LINE>pass = true;<NEW_LINE>}<NEW_L...
> zuuids = q.listValue();
1,300,134
public static String injectParameters(String jsExpression, Object... params) {<NEW_LINE>int i = 0;<NEW_LINE>for (Object param : params) {<NEW_LINE>String pattern = "${" + i + "}";<NEW_LINE>if (param == null) {<NEW_LINE>jsExpression = StringUtil.<MASK><NEW_LINE>} else if (param instanceof String) {<NEW_LINE>jsExpression...
replaceAll(jsExpression, pattern, "null");
341,972
public static DescribeRegionsResponse unmarshall(DescribeRegionsResponse describeRegionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRegionsResponse.setRequestId(_ctx.stringValue("DescribeRegionsResponse.RequestId"));<NEW_LINE>List<Region> regions = new ArrayList<Region>();<NEW_LINE>for (int i = 0; i < _ctx.l...
= new ArrayList<Zone>();
1,627,109
@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@Operation(description = "Register the provider service in the tenant's domain.")<NEW_LINE>public void putTenancy(@Parameter(description = "name of the tenant domain", required = true) @PathParam("domain") String domain, @Para...
code, e, ResourceError.class);
171,901
public List<List<List<RelNode>>> markGroup() {<NEW_LINE>List<List<List<RelNode>>> result = new ArrayList<>();<NEW_LINE>int groupId = 0;<NEW_LINE>for (Vertex vertex : vertexMap.values()) {<NEW_LINE>Double minCount = Double.MAX_VALUE;<NEW_LINE>for (RelNode relNode : vertex.v) {<NEW_LINE>Double rowCount = relMetadataQuery...
originalList.indexOf(v2.v);
415,974
private RequestBody convertFormDataToRequestBody(List<io.swagger.models.parameters.Parameter> formParams, List<String> consumes) {<NEW_LINE>RequestBody body = new RequestBody();<NEW_LINE>Schema formSchema = new Schema();<NEW_LINE>for (io.swagger.models.parameters.Parameter param : formParams) {<NEW_LINE>SerializablePar...
SerializableParameter) globalV2Parameters.get(simpleRef);
1,830,743
private void renderSingleViolation(RuleViolation rv, String suppressionType, String userMsg) throws IOException {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>jsonWriter.name("beginline").value(rv.getBeginLine());<NEW_LINE>jsonWriter.name("begincolumn").value(rv.getBeginColumn());<NEW_LINE>jsonWriter.name("endline").val...
getPriority().getPriority());
1,614,276
public static IconLoadResult fetchIcon(Launcher l, View v, ItemInfo info, boolean isOpening) {<NEW_LINE>RectF position = new RectF();<NEW_LINE>getLocationBoundsForView(l, v, isOpening, position);<NEW_LINE>final FastBitmapDrawable btvIcon;<NEW_LINE>if (v instanceof BubbleTextView) {<NEW_LINE>BubbleTextView btv = (Bubble...
, position, btvIcon, result));
306,753
protected List<String> generateCommandLineList() throws IOException {<NEW_LINE>List<String> fullArgs = new ArrayList<>();<NEW_LINE>String classpath = ctx.resolveClassPath(ss);<NEW_LINE>List<String> optionalArgs = new ArrayList<>();<NEW_LINE>String requestedJavaVersion = ctx.getJavaVersion() != null ? ctx.getJavaVersion...
exitFile.toPath(), "/exit");
1,346,023
public /*<NEW_LINE>* public int search(String str){<NEW_LINE>* return search(str, true);<NEW_LINE>* }<NEW_LINE>*/<NEW_LINE>int search(String str, int pos, boolean forward) {<NEW_LINE>boolean isCaseSensitive = true;<NEW_LINE>String toSearch = str;<NEW_LINE>if (str.startsWith("!")) {<NEW_LINE>str = str.substring(1).toUpp...
search(toSearch, 0, forward);
678,731
public void writeTo(StreamOutput out) throws IOException {<NEW_LINE>out.writeVInt(this.leastAvailableSpaceUsage.size());<NEW_LINE>for (ObjectObjectCursor<String, DiskUsage> c : this.leastAvailableSpaceUsage) {<NEW_LINE>out.writeString(c.key);<NEW_LINE>c.value.writeTo(out);<NEW_LINE>}<NEW_LINE>out.writeVInt(this.mostAva...
out.writeString(c.key);
1,846,159
public void onActivate(final ProgressIndicator indicator) {<NEW_LINE>if (waitingForAuth_.getValue() || result_ == null)<NEW_LINE>return;<NEW_LINE>// save reference to parent wizard's progress indicator for retries<NEW_LINE>wizardIndicator_ = indicator;<NEW_LINE>indicator.onProgress(constants_.checkingServerConnection()...
, info.getMessage()));
888,766
private Text appendAntiSpam(Text text, int index) {<NEW_LINE>List<ChatHudLine<OrderedText>> visibleMessages = ((ChatHudAccessor) mc.inGameHud.getChatHud()).getVisibleMessages();<NEW_LINE>if (visibleMessages.isEmpty() || index < 0 || index > visibleMessages.size() - 1)<NEW_LINE>return null;<NEW_LINE>ChatHudLine<OrderedT...
).size() - 1);
821,380
final ListClustersResult executeListClusters(ListClustersRequest listClustersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listClustersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
828,401
final GetCampaignsResult executeGetCampaigns(GetCampaignsRequest getCampaignsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCampaignsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
409,285
protected static final <T extends AbstractAuditMessage> ConstructingObjectParser<T, Void> createParser(String name, AbstractAuditMessageFactory<T> messageFactory, ParseField resourceField) {<NEW_LINE>ConstructingObjectParser<T, Void> PARSER = new ConstructingObjectParser<>(name, true, a -> messageFactory.newMessage((St...
TIMESTAMP, ObjectParser.ValueType.VALUE);
1,849,617
public GetBuiltinIntentResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetBuiltinIntentResult getBuiltinIntentResult = new GetBuiltinIntentResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
JsonToken token = context.getCurrentToken();
1,606,267
public static ListProjectsResponse unmarshall(ListProjectsResponse listProjectsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listProjectsResponse.setRequestId(_ctx.stringValue("ListProjectsResponse.RequestId"));<NEW_LINE>listProjectsResponse.setCount(_ctx.integerValue("ListProjectsResponse.Count"));<NEW_LINE>listProje...
("ListProjectsResponse.DataList[" + i + "].ProjectName"));
1,330,394
public void read(org.apache.thrift.protocol.TProtocol prot, startUpdate_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache<MASK><NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(3);<NEW_LINE>if (incoming.get(0)) {<NEW_LINE>struct.tinfo = new or...
.thrift.protocol.TTupleProtocol) prot;
312,063
private void handleDeletion(final CascadeAction action, final Completion completion) {<NEW_LINE>final List<InstanceOfferingInventory> ioinvs = instanceOfferingFromAction(action);<NEW_LINE>if (ioinvs == null || ioinvs.isEmpty()) {<NEW_LINE>completion.success();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<InstanceOfferingD...
fail(r.getError());
330,337
protected void handleUnknownRole(RedisHealthCheckInstance instance) {<NEW_LINE>RedisInstanceInfo info = instance.getCheckInfo();<NEW_LINE>String dcId = info.getDcId();<NEW_LINE><MASK><NEW_LINE>String shardId = info.getShardId();<NEW_LINE>if (!info.isMaster()) {<NEW_LINE>logger.info("[handleUnknownRole][{}] redis role u...
String clusterId = info.getClusterId();
538,063
final DBCluster executeStartDBCluster(StartDBClusterRequest startDBClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startDBClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecu...
invoke(request, responseHandler, executionContext);
1,821,306
private synchronized XTS createXTS() throws IOException {<NEW_LINE>XTS xts = this.xts;<NEW_LINE>if (xts != null) {<NEW_LINE>return xts;<NEW_LINE>}<NEW_LINE>this.size <MASK><NEW_LINE>boolean newFile = size < 0;<NEW_LINE>byte[] salt;<NEW_LINE>if (newFile) {<NEW_LINE>byte[] header = Arrays.copyOf(HEADER, BLOCK_SIZE);<NEW_...
= base.size() - HEADER_LENGTH;
533,845
private void computeDominance(TaskMonitor monitor) throws CancelledException {<NEW_LINE>List<V> list = navigator.getVerticesInPostOrder(mutableGraph);<NEW_LINE>Map<V, Integer> map = new HashMap<>();<NEW_LINE>for (int i = 0; i < list.size(); i++) {<NEW_LINE>map.put(list.get(i), i);<NEW_LINE>}<NEW_LINE>boolean changed = ...
dominatorMap.put(b, newIdom);
839,765
public LowLevelHttpResponse execute() throws IOException {<NEW_LINE>String content = this.getContentAsString();<NEW_LINE>Map<String, String> query = TestUtils.parseQuery(content);<NEW_LINE>String accessToken = null;<NEW_LINE>String foundId = query.get("client_id");<NEW_LINE>if (foundId != null) {<NEW_LINE>if (!clients....
foundRefresh = query.get("refresh_token");
3,805
private static List<EBPFProfilingStack> generateStacks(int totalStackCount, int perStackMinDepth, int perStackMaxDepth, double[] stackSymbolDuplicateRate, double stackDuplicateRate) {<NEW_LINE>int uniqStackCount = (int) (100 / stackDuplicateRate);<NEW_LINE>final List<EBPFProfilingStack> stacks <MASK><NEW_LINE>final Sta...
= new ArrayList<>(totalStackCount);
1,138,902
private void computeMasses(StockMove stockMove) throws AxelorException {<NEW_LINE>StockConfig stockConfig = stockMove.getCompany().getStockConfig();<NEW_LINE>Unit endUnit = stockConfig != null ? stockConfig.getCustomsMassUnit() : null;<NEW_LINE>boolean massesRequiredForStockMove = false;<NEW_LINE>List<StockMoveLine> st...
Unit startUnit = product.getMassUnit();
274,925
public void doWithPersistentProperty(RedisPersistentProperty persistentProperty) {<NEW_LINE>String currentPath = !path.isEmpty() ? path + "." + persistentProperty.getName() : persistentProperty.getName();<NEW_LINE>Object propertyValue = accessor.getProperty(persistentProperty);<NEW_LINE>if (propertyValue == null) {<NEW...
iterable = CollectionUtils.arrayToList(propertyValue);
799,819
static public Property<?> fromNode2Property(Node nodeProperty) {<NEW_LINE>Map<String, Object> nodeProperties = nodeProperty.getAllProperties();<NEW_LINE>if (!nodeProperties.containsKey(NODEPROPERTY_ATT_NAME)) {<NEW_LINE>throw new IllegalArgumentException(NODEPROPERTY_ATT_NAME + " is a required property");<NEW_LINE>}<NE...
String) nodeProperty.getProperty(NODEPROPERTY_ATT_NAME);
439,813
private static // a Frequentist confidence interval based on the tails of the Binomial distribution.<NEW_LINE>double computeApproxBinoUB(final long numSamplesI, final double theta, final int numSDev) {<NEW_LINE>if (theta == 1.0) {<NEW_LINE>return (numSamplesI);<NEW_LINE>} else if (numSamplesI == 0) {<NEW_LINE>final dou...
, EquivTables.getUB(index));
954,855
final DescribePortalResult executeDescribePortal(DescribePortalRequest describePortalRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePortalRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.startEvent(Field.RequestMarshallTime);