idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
844,039
public static String bindValueToString(String[] bindValueArray, int limit) {<NEW_LINE>if (bindValueArray == null) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>final <MASK><NEW_LINE>final int length = bindValueArray.length;<NEW_LINE>final int end = length - 1;<NEW_LINE>for (int i = 0; i < length; i++) {<NEW_LINE>if (sb.len...
StringBuilder sb = new StringBuilder(32);
1,492,426
public static IpRangeInventory fromMessage(APIAddIpv6RangeByNetworkCidrMsg msg) {<NEW_LINE>IpRangeInventory ipr = new IpRangeInventory();<NEW_LINE>ipr.setNetworkCidr(IPv6NetworkUtils.getFormalCidrOfNetworkCidr(msg.getNetworkCidr()));<NEW_LINE>ipr.setName(msg.getName());<NEW_LINE>ipr.setDescription(msg.getDescription())...
setAddressMode(msg.getAddressMode());
1,514,526
private void updateImpl(Context context) {<NEW_LINE><MASK><NEW_LINE>String md5 = md5File(latestImplApk);<NEW_LINE>if (mLogger.isInfoEnabled()) {<NEW_LINE>mLogger.info("TextUtils.equals(mCurrentImplMd5, md5) : " + (TextUtils.equals(mCurrentImplMd5, md5)));<NEW_LINE>}<NEW_LINE>if (!TextUtils.equals(mCurrentImplMd5, md5))...
File latestImplApk = mUpdater.getLatest();
1,100,584
public static void extendRecursive(Map<String, Object> map, Map<String, Object> additions, BiFunction<List<Object>, Collection<Object>, List<Object>> mergeLists) {<NEW_LINE>for (Map.Entry<String, Object> additionEntry : additions.entrySet()) {<NEW_LINE>String key = additionEntry.getKey();<NEW_LINE>Object addition = add...
sourceValue = map.get(key);
327,208
private <K, V> OffHeapStore<K, V> createStoreInternal(Configuration<K, V> storeConfig, StoreEventDispatcher<K, V> eventDispatcher, ServiceConfiguration<?, ?>... serviceConfigs) {<NEW_LINE>if (getServiceProvider() == null) {<NEW_LINE>throw new NullPointerException("ServiceProvider is null in OffHeapStore.Provider.");<NE...
TimeSourceService.class).getTimeSource();
1,793,346
public static ClientMessage encodeRequest(java.lang.String mapName, java.lang.String cacheName, com.hazelcast.internal.serialization.Data predicate, int batchSize, int bufferSize, long delaySeconds, boolean populate, boolean coalesce) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>cl...
new byte[REQUEST_INITIAL_FRAME_SIZE], UNFRAGMENTED_MESSAGE);
189,414
public static void main(String[] args) throws Exception {<NEW_LINE>// This solution is nearly TLE without using BufferedReader and PrintWriter<NEW_LINE>BufferedReader br = new BufferedReader(new InputStreamReader(System.in));<NEW_LINE>PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out...
String line = br.readLine();
26,174
public static X509Certificate loadX509Certificate(Reader reader) throws CryptoException {<NEW_LINE>try (PEMParser pemParser = new PEMParser(reader)) {<NEW_LINE>Object pemObj = pemParser.readObject();<NEW_LINE>// /CLOVER:OFF<NEW_LINE>if (pemObj instanceof X509Certificate) {<NEW_LINE>return (X509Certificate) pemObj;<NEW_...
.getCertificate((X509CertificateHolder) pemObj);
1,414,387
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>PrintWriterTreeLogger logger = new PrintWriterTreeLogger(new PrintWriter(System.err, true));<NEW_LINE><MASK><NEW_LINE>CompilerContext.Builder compilerContextBuilder = new CompilerContext.Builder();<NEW_LINE>CompilerContext compilerContext = compilerContex...
logger.setMaxDetail(TreeLogger.WARN);
1,143,170
public static void vertical(Kernel1D_S32 kernel, GrayS16 src, GrayI16 dst) {<NEW_LINE>final short[] dataSrc = src.data;<NEW_LINE>final <MASK><NEW_LINE>final int[] dataKer = kernel.data;<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final int imgWidth = dst....
short[] dataDst = dst.data;
1,594,906
final StopBuildBatchResult executeStopBuildBatch(StopBuildBatchRequest stopBuildBatchRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopBuildBatchRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopBuildBatch");
1,799,542
private URI calculateNewRequestURI(URI newBaseURI, URI requestURI, boolean proxy) {<NEW_LINE>String baseURIPath = newBaseURI.getRawPath();<NEW_LINE><MASK><NEW_LINE>UriBuilder builder = new UriBuilderImpl().uri(newBaseURI);<NEW_LINE>String basePath = reqURIPath.startsWith(baseURIPath) ? baseURIPath : getBaseURI().getRaw...
String reqURIPath = requestURI.getRawPath();
883,476
private void runSavePointJob(List<JobInfo> jobInfos, ClusterClient<String> clusterClient, String savePoint) throws Exception {<NEW_LINE>for (JobInfo jobInfo : jobInfos) {<NEW_LINE>if (ActionType.CANCEL == config.getFlinkConfig().getAction()) {<NEW_LINE>clusterClient.cancel(JobID.fromHexString(jobInfo.getJobId()));<NEW_...
setSavePoint(triggerFuture.get());
22,309
protected byte[] makePacket(boolean write, int start, int length, byte[] data) {<NEW_LINE>byte[] outPacket;<NEW_LINE>if (write == false) {<NEW_LINE>outPacket = new byte[10];<NEW_LINE>} else {<NEW_LINE>outPacket = new byte[10 + length];<NEW_LINE>}<NEW_LINE>outPacket[0] = address;<NEW_LINE>if (write) {<NEW_LINE>outPacket...
start >> 8) & 0xff);
110,101
public ExpressionScriptProvided resolve(String name, int numParameters) {<NEW_LINE>NameAndParamNum key = new NameAndParamNum(name, numParameters);<NEW_LINE>// try self-originated protected types first<NEW_LINE>ExpressionScriptProvided localExpr = locals.getScripts().get(key);<NEW_LINE>if (localExpr != null) {<NEW_LINE>...
key, expression.getSecond());
109,052
private void inlineAnonymousConstructor(ICodeWriter code, ClassNode cls, ConstructorInsn insn) throws CodegenException {<NEW_LINE>if (this.mth.getParentClass() == cls) {<NEW_LINE>cls.remove(AType.ANONYMOUS_CLASS);<NEW_LINE><MASK><NEW_LINE>mth.getParentClass().getTopParentClass().add(AFlag.RESTART_CODEGEN);<NEW_LINE>thr...
cls.remove(AFlag.DONT_GENERATE);
1,698,388
public static void detach(List<String> cmd) {<NEW_LINE>if (cmd.size() > 0) {<NEW_LINE>String line = "";<NEW_LINE>boolean shouldPrint = false;<NEW_LINE>for (String item : cmd) {<NEW_LINE>line += " " + item.trim();<NEW_LINE>if ("-v".equals(item.trim())) {<NEW_LINE>shouldPrint = true;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (sh...
> processEnv = app.environment();
309,873
private Map<String, Object> createInsightsMap(ServerUUID serverUUID) {<NEW_LINE>Database db = dbSystem.getDatabase();<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>long monthAgo = now - TimeUnit.DAYS.toMillis(30L);<NEW_LINE>List<TPS> tpsData = db.query(TPSQueries.fetchTPSDataOfServer(monthAgo, now, serverUUI...
capitalizeFully).orElse("Not Known"));
830,976
public void marshall(CreateLaunchProfileRequest createLaunchProfileRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createLaunchProfileRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(create...
createLaunchProfileRequest.getLaunchProfileProtocolVersions(), LAUNCHPROFILEPROTOCOLVERSIONS_BINDING);
1,142,759
public static void vertical(Kernel1D_S32 kernel, GrayU8 src, GrayI16 dst) {<NEW_LINE>final byte[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int[] dataKer = kernel.data;<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final ...
+ imgWidth, (short) 0);
1,794,349
protected void parseIdentityProviderDefinitions() {<NEW_LINE>if (getLegacyIdpMetaData() != null) {<NEW_LINE>SamlIdentityProviderDefinition def = new SamlIdentityProviderDefinition();<NEW_LINE>def.setMetaDataLocation(getLegacyIdpMetaData());<NEW_LINE>def.setMetadataTrustCheck(isLegacyMetadataTrustCheck());<NEW_LINE>def....
throw new IllegalStateException("Duplicate IDP alias found:" + alias);
185,483
private Challenge dnsChallenge(final Authorization auth, final Integer wait) throws FrameworkException {<NEW_LINE>final Dns01Challenge challenge = auth.findChallenge(Dns01Challenge.TYPE);<NEW_LINE>if (challenge == null) {<NEW_LINE>error("No " + Dns01Challenge.TYPE + " challenge found, aborting.");<NEW_LINE>}<NEW_LINE>f...
info("{} IN TXT {}", hostname, digest);
952,613
protected void encode(ChannelHandlerContext ctx, BaseModelRequest msg, ByteBuf out) {<NEW_LINE>if (msg instanceof ModelLoadModelRequest) {<NEW_LINE>out.writeByte('L');<NEW_LINE>ModelLoadModelRequest request = (ModelLoadModelRequest) msg;<NEW_LINE>byte[] buf = msg.getModelName().getBytes(StandardCharsets.UTF_8);<NEW_LIN...
writeInt(request.getGpuId());
675,580
public static boolean hasSameContentItem(final Object iCurrent, ODatabaseDocumentInternal iMyDb, final Object iOther, final ODatabaseDocumentInternal iOtherDb, RIDMapper ridMapper) {<NEW_LINE>if (iCurrent instanceof ODocument) {<NEW_LINE>final ODocument current = (ODocument) iCurrent;<NEW_LINE>if (iOther instanceof ORI...
.load((ORID) iOther);
864,402
public static void main(String[] args) {<NEW_LINE>var factory = new HeroFactoryImpl(new ElfMage("cooking"), new ElfWarlord("cleaning"), new ElfBeast("protecting"));<NEW_LINE>var mage = factory.createMage();<NEW_LINE><MASK><NEW_LINE>var beast = factory.createBeast();<NEW_LINE>LOGGER.info(mage.toString());<NEW_LINE>LOGGE...
var warlord = factory.createWarlord();
477,727
public BLangNode transform(TableTypeDescriptorNode tableTypeDescriptorNode) {<NEW_LINE>BLangBuiltInRefTypeNode refType = (BLangBuiltInRefTypeNode) TreeBuilder.createBuiltInReferenceTypeNode();<NEW_LINE>refType.typeKind = TreeUtils.stringToTypeKind(tableTypeDescriptorNode.tableKeywordToken().text());<NEW_LINE>refType.po...
tableTypeNode.isTypeInlineDefined = checkIfAnonymous(tableTypeDescriptorNode);
1,129,376
public void run() {<NEW_LINE>if (marker == null && file == null && javaElement == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (javaElement != null) {<NEW_LINE>IEditorPart editor = JavaUI.openInEditor(javaElement, true, true);<NEW_LINE>// if we have both java element AND line info, go to the<NEW_LINE>...
logException(e, "Cannot open editor for java element: " + javaElement);
264,936
// The tested deployment exceptions cause FFDC so we have to allow for this.<NEW_LINE>@AllowedFFDC<NEW_LINE>public void launchTck() throws Exception {<NEW_LINE>String protocol = "http";<NEW_LINE>String host = server.getHostname();<NEW_LINE>String port = Integer.toString(server.getHttpDefaultPort());<NEW_LINE>Map<String...
resultInfo = MvnUtils.getResultInfo(server);
803,246
public // keep this javadoc in sync with SelectionModel.Single.select<NEW_LINE>boolean select(Object itemId) throws IllegalArgumentException, IllegalStateException {<NEW_LINE>if (selectionModel instanceof SelectionModel.Single) {<NEW_LINE>return ((SelectionModel.Single<MASK><NEW_LINE>} else if (selectionModel instanceo...
) selectionModel).select(itemId);
262,792
public okhttp3.Call readNamespacedResourceQuotaCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}".re...
= new ArrayList<Pair>();
1,036,797
final ListResourcesAssociatedToCustomLineItemResult executeListResourcesAssociatedToCustomLineItem(ListResourcesAssociatedToCustomLineItemRequest listResourcesAssociatedToCustomLineItemRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResourcesAssociatedToCustomLineItemRequest);<NEW_LIN...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
370,279
protected void doHandle(final String[] args, final RedisClient redisClient) throws Exception {<NEW_LINE>// in non-psync executor<NEW_LINE>final RedisKeeperServer redisKeeperServer = redisClient.getRedisKeeperServer();<NEW_LINE>if (redisKeeperServer.rdbDumper() == null && redisKeeperServer.getReplicationStore().isFresh(...
innerDoHandle(args, redisSlave, redisKeeperServer);
1,558,432
public boolean isCustomized() {<NEW_LINE>if (m_customizationLevel == null) {<NEW_LINE>// just for initializing m_elementID<NEW_LINE>getElementID();<NEW_LINE>// default is not customized<NEW_LINE>m_customizationLevel = new Integer(s_parameters.CUSTOMNONE);<NEW_LINE>// first check whether the column name starts with a cu...
getSchema(), m_table, m_name);
1,674,442
final GetEntitlementsResult executeGetEntitlements(GetEntitlementsRequest getEntitlementsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEntitlementsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,005,258
final UpdateTableResult executeUpdateTable(UpdateTableRequest updateTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateTableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Timestream Write");
1,549,317
public DataAccessException translateExceptionIfPossible(RuntimeException ex) {<NEW_LINE>if (isSeqNoConflict(ex)) {<NEW_LINE>return new OptimisticLockingFailureException("Cannot index a document due to seq_no+primary_term conflict", ex);<NEW_LINE>}<NEW_LINE>if (ex instanceof ElasticsearchException) {<NEW_LINE>Elasticsea...
getMetadata("es.index")), ex);
1,710,039
public List<Hypothesis> specialisations(List<LogicalExample> examplesSoFar) {<NEW_LINE>List<Hypothesis> <MASK><NEW_LINE>LogicalExample lastExample = examplesSoFar.get(examplesSoFar.size() - 1);<NEW_LINE>for (String key : lastExample.getAttributes().keySet()) {<NEW_LINE>List<HashMap<String, String>> satisfiedDisjuncts =...
result = new ArrayList<>();
820,685
private static void buildConversionMap() {<NEW_LINE>// Values in the map below may be always changed<NEW_LINE>ArrayMap<String, String> keyValueMap = new ArrayMap<>(10);<NEW_LINE>keyValueMap.put("top", "0");<NEW_LINE>keyValueMap.put("left", "0");<NEW_LINE>keyValueMap.put("right", "DUMMY_RIGHT");<NEW_LINE>keyValueMap.put...
.toString(LauncherPreferences.PREF_BUTTONSIZE));
810,739
public FormatWalkResult format(String type, long address, PrintStream out, Context context, List<IFieldFormatter> fieldFormatters, String[] extraArgs) {<NEW_LINE>setFieldFormatters(fieldFormatters);<NEW_LINE>List<StructureDescriptor> inheritanceStack = new LinkedList<StructureDescriptor>();<NEW_LINE>String current = ty...
getOffset(), out, context);
109,247
public boolean createCreateNodeTasks(Universe universe, Set<NodeDetails> nodesToBeCreated, boolean ignoreNodeStatus) {<NEW_LINE>// Determine the starting state of the nodes and invoke the callback if<NEW_LINE>// ignoreNodeStatus is not set.<NEW_LINE>boolean isNextFallThrough = applyOnNodesWithStatus(universe, nodesToBe...
).setSubTaskGroupType(SubTaskGroupType.Provisioning);
1,604,213
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>jScrollPane1 = new javax.swing.JScrollPane();<NEW_LINE>jList1 = new javax.swing.JList();<NEW_LINE>jScrollPane2 = new javax.swing.JScrollPane();<NEW_LINE>jTextArea1 = <MASK><NEW_LIN...
new javax.swing.JTextArea();
559,296
public static void register() {<NEW_LINE>IRecipeTransferRegistry recipeTransferRegistry = MachinesPlugin.iModRegistry.getRecipeTransferRegistry();<NEW_LINE>recipeTransferRegistry.addRecipeTransferHandler(new CrafterRecipeTransferHandler.Simple(), VanillaRecipeCategoryUid.CRAFTING);<NEW_LINE>recipeTransferRegistry.addRe...
()), VanillaRecipeCategoryUid.CRAFTING);
278,997
public static void vertical(Kernel1D_S32 kernel, InterleavedU8 input, InterleavedI8 output) {<NEW_LINE>final <MASK><NEW_LINE>final int width = input.getWidth();<NEW_LINE>final int height = input.getHeight();<NEW_LINE>final int numBands = input.getNumBands();<NEW_LINE>final int[] pixel = new int[numBands];<NEW_LINE>fina...
int offset = kernel.getOffset();
1,196,235
private void drawPlaceholder(Canvas canvas) {<NEW_LINE>if (!isInEditMode())<NEW_LINE>return;<NEW_LINE>canvas.getClipBounds(rect);<NEW_LINE>int width = rect.width();<NEW_LINE>int verticalBlockNumber = 7;<NEW_LINE>int horizontalBlockNumber = getHorizontalBlockNumber(lastWeeks * 7, verticalBlockNumber);<NEW_LINE><MASK><NE...
float marginBlock = (1.0F - 0.1F);
1,476,536
public void deserialize(ByteBuffer byteBuffer) throws IOException {<NEW_LINE><MASK><NEW_LINE>ArrayList<Container[]> containersArray = new ArrayList<>(firstLevelSize);<NEW_LINE>for (int i = 0; i < firstLevelSize; i++) {<NEW_LINE>// TODO:deserialize the trimmed related data<NEW_LINE>byte trimTag = byteBuffer.get();<NEW_L...
int firstLevelSize = byteBuffer.getInt();
597,722
public void onPutAssignees(@NonNull ArrayList<User> users, boolean isAssignees) {<NEW_LINE>AssigneesRequestModel assigneesRequestModel = new AssigneesRequestModel();<NEW_LINE>ArrayList<String> assignees = Stream.of(users).map(User::getLogin).collect(Collectors<MASK><NEW_LINE>if (isAssignees) {<NEW_LINE>assigneesRequest...
.toCollection(ArrayList::new));
898,553
public static GetDownloadUrlsResponse unmarshall(GetDownloadUrlsResponse getDownloadUrlsResponse, UnmarshallerContext context) {<NEW_LINE>getDownloadUrlsResponse.setRequestId(context.stringValue("GetDownloadUrlsResponse.RequestId"));<NEW_LINE>getDownloadUrlsResponse.setCode<MASK><NEW_LINE>getDownloadUrlsResponse.setMes...
(context.stringValue("GetDownloadUrlsResponse.Code"));
748,960
private void createCombinedContext(final Image loadedImage, final int major, final int minor, final ImageAddressSpace space, final ImageProcess proc, final JavaRuntime rt, String coreFilePath) {<NEW_LINE>// take the DTFJ context and attempt to combine it with a DDR interactive one<NEW_LINE>Object obj = ctx.getPropertie...
).get(SessionProperties.SESSION_PROPERTY);
198,661
private SMessage processFinishedState(Message request, SMessage response) {<NEW_LINE>// If the response message validated, set the AD bit.<NEW_LINE>SecurityStatus status = response.getStatus();<NEW_LINE>String reason = response.getBogusReason();<NEW_LINE>int edeReason = response.getEdeReason();<NEW_LINE>switch(status) ...
setStatus(status, edeReason, reason);
1,167,571
final UpdateUserHierarchyResult executeUpdateUserHierarchy(UpdateUserHierarchyRequest updateUserHierarchyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateUserHierarchyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
397,516
public void bind(final ShaderProgram shader, final int[] locations) {<NEW_LINE>final GL20 gl = Gdx.gl20;<NEW_LINE>gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, bufferHandle);<NEW_LINE>if (isDirty) {<NEW_LINE>((Buffer) byteBuffer).limit(buffer.limit() * 4);<NEW_LINE>gl.glBufferData(GL20.GL_ARRAY_BUFFER, byteBuffer.limit(), byte...
attributes.vertexSize, attribute.offset);
1,015,091
private void findTokensToWrap(InfixExpression node, int depth) {<NEW_LINE>Expression left = node.getLeftOperand();<NEW_LINE>if (left instanceof InfixExpression && samePrecedence(node, (InfixExpression) left)) {<NEW_LINE>findTokensToWrap((InfixExpression) left, depth + 1);<NEW_LINE>} else if (// always add first operand...
> extended = node.extendedOperands();
1,806,628
public void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>tileFileSystemMaxQueueSize.setText(Configuration.getInstance().getTileFileSystemMaxQueueSize() + "");<NEW_LINE>tileFileSystemThreads.setText(Configuration.getInstance().getTileFileSystemThreads() + "");<NEW_LINE>tileDownloadMaxQueueSize.setText(Configuration....
).getTileFileSystemCacheTrimBytes() + "");
492,013
protected Alarm toAlarm() {<NEW_LINE>Alarm alarm = new Alarm(new AlarmId(id));<NEW_LINE>alarm.setCreatedTime(createdTime);<NEW_LINE>if (tenantId != null) {<NEW_LINE>alarm.setTenantId(TenantId.fromUUID(tenantId));<NEW_LINE>}<NEW_LINE>if (customerId != null) {<NEW_LINE>alarm.<MASK><NEW_LINE>}<NEW_LINE>alarm.setOriginator...
setCustomerId(new CustomerId(customerId));
731,360
/* Sample generated code:<NEW_LINE>*<NEW_LINE>* @com.ibm.j9ddr.GeneratedFieldAccessor(offsetFieldName="_refOffset_", declaredType="fj9object_t")<NEW_LINE>* public J9ObjectPointer ref() throws CorruptDataException {<NEW_LINE>* return getObjectReferenceAtOffset(Example._refOffset_);<NEW_LINE>* }<NEW_LINE>*/<NEW_LINE>...
getMethodDescriptor(objectType, Type.LONG_TYPE);
357,798
public RunnerAndConfigurationSettings findExisting() {<NEW_LINE>if (myExistingConfiguration != null)<NEW_LINE>return myExistingConfiguration.get();<NEW_LINE>myExistingConfiguration = new Ref<>();<NEW_LINE>if (myLocation == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final PsiElement psiElement = myLocation.getPsi...
producer.findExistingConfiguration(myLocation, this);
1,114,520
public Example build() {<NEW_LINE>this.exampleCriterias = new ArrayList<Criteria>();<NEW_LINE>for (Sqls.Criteria criteria : sqlsCriteria) {<NEW_LINE>Example.Criteria exampleCriteria = new Example.Criteria(this.propertyMap, <MASK><NEW_LINE>exampleCriteria.setAndOr(criteria.getAndOr());<NEW_LINE>for (Sqls.Criterion crite...
this.exists, this.notNull);
942,164
public void marshall(ListReservationsRequest listReservationsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listReservationsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(listReservation...
listReservationsRequest.getCodec(), CODEC_BINDING);
1,852,971
public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>final List<Long> timeList = new ArrayList<Long>();<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE><MASK><NEW_LINE>long from = DateUtil.yyyymmdd(date);<NEW_LINE>param.put("from", from);<NEW_LINE>param.put("to", from + D...
param.put("objName", objName);
1,337,523
public static int createTypeMember(final Connection connection, final int containingTypeId, final Optional<Integer> offset, final String name, final int baseTypeId, final Optional<Integer> numberOfElements, final INaviModule module) throws CouldntSaveDataException {<NEW_LINE>try {<NEW_LINE>final String query = String.f...
statement.setInt(4, containingTypeId);
822,059
public AuthenticationProfile unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>AuthenticationProfile authenticationProfile = new AuthenticationProfile();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<...
().unmarshall(context));
1,788,071
private static Map<Class<? extends Annotation>, Annotation> buildAnnotations(NamespaceConfig namespace) {<NEW_LINE>Map<Class<? extends Annotation>, Annotation> <MASK><NEW_LINE>annotations.put(ReadPermission.class, new ReadPermission() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Class<? extends Annotation> annotation...
annotations = new HashMap<>();
953,151
private BindableValue bindableValueFor(JsonToken token) {<NEW_LINE>if (!JsonTokenType.STRING.equals(token.getType()) && !JsonTokenType.UNQUOTED_STRING.equals(token.getType()) && !JsonTokenType.REGULAR_EXPRESSION.equals(token.getType())) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>boolean isRegularExpression = token.get...
(index).toString());
107,131
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("attach" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>String tableName = param.getLeafExpression().getIdentifierName();<NEW_L...
p0 = sub.getSub(0);
746,268
public final AltererResult<G, C> alter(final Seq<Phenotype<G, C>> population, final long generation) {<NEW_LINE><MASK><NEW_LINE>if (population.size() >= 2) {<NEW_LINE>final var random = RandomRegistry.random();<NEW_LINE>final int order = Math.min(_order, population.size());<NEW_LINE>final MSeq<Phenotype<G, C>> pop = MS...
final AltererResult<G, C> result;
1,237,677
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create context MyContext initiated by SupportBean_S0 as s0 terminated by SupportBean_S1(id=s0.id)", path);<NEW_LINE>String eplOnInit = "@name('s0') context MyContext select context.s0 as...
assertEqualsNew("s0", "ctxs0", s0B);
290,047
private void findSubMemberTypes(char[] typeName, ReferenceBinding receiverType, Scope scope, SourceTypeBinding typeInvocation, boolean staticOnly, boolean staticFieldsAndMethodOnly, boolean fromStaticImport, ObjectVector typesFound) {<NEW_LINE>ReferenceBinding currentType = receiverType;<NEW_LINE>if (typeName == null)<...
] memberTypes = receiverType.memberTypes();
942,252
public static boolean canTune(TunerChannel channel, TunerController tunerController, SortedSet<TunerChannel> channels) {<NEW_LINE>// Make sure we're within the tunable frequency range of this tuner<NEW_LINE>if (tunerController.getMinFrequency() < channel.getMinFrequency() && tunerController.getMaxFrequency() > channel....
getCenterFrequency(tunerController, allChannels) != INVALID_FREQUENCY;
1,772,086
private void createActions() {<NEW_LINE>tool.setMenuGroup(new String[] { "Convert" }, GROUP_NAME);<NEW_LINE>tool.addAction(new ConvertToUnsignedHexAction(this));<NEW_LINE>tool.addAction(new ConvertToUnsignedDecimalAction(this));<NEW_LINE>tool.addAction(new ConvertToOctalAction(this));<NEW_LINE>tool.addAction(new Conver...
(RENAME_MENUPATH, null, GROUP_NAME));
1,057,840
public org.python.Object __mul__(org.python.Object other) {<NEW_LINE>if (other instanceof org.python.types.Bool) {<NEW_LINE>boolean other_bool = ((org.python.types.Bool) other).value;<NEW_LINE>if (other_bool) {<NEW_LINE>return this;<NEW_LINE>} else {<NEW_LINE>return new Bytes(new byte[0]);<NEW_LINE>}<NEW_LINE>}<NEW_LIN...
= new byte[other_value * len];
1,681,717
public MJournal reverseIt(boolean isAccrual) {<NEW_LINE>Timestamp currentDate = new Timestamp(System.currentTimeMillis());<NEW_LINE>Optional<Timestamp> loginDateOptional = Optional.of(Env.getContextAsDate(getCtx(), "#Date"));<NEW_LINE>Timestamp reversalDate = isAccrual ? loginDateOptional.orElseGet(() -> currentDate) :...
log.info(toString());
26,928
public String execute(SampleResult previousResult, Sampler currentSampler) throws InvalidVariableException {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String str = "";<NEW_LINE>CompoundVariable var = (CompoundVariable) values[0];<NEW_LINE>String exp = var.execute();<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String varName = "";<NEW_LINE...
JMeterContext jmctx = JMeterContextService.getContext();
1,795,538
protected String handlePost(RedirectAttributes redirectAttributes, HttpServletRequest request) {<NEW_LINE>Map<String, Object> map = new HashMap<String, Object>();<NEW_LINE>try {<NEW_LINE>if (ServletFileUpload.isMultipartContent(request)) {<NEW_LINE>FileItemFactory factory = new DiskFileItemFactory();<NEW_LINE>ServletFi...
items = upload.parseRequest(request);
1,444,213
final ListAppImageConfigsResult executeListAppImageConfigs(ListAppImageConfigsRequest listAppImageConfigsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAppImageConfigsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
158,492
// jacobian indirect, merging groups<NEW_LINE>private static DoubleMatrix jacobianIndirect(DoubleMatrix res, DoubleMatrix pDmCurrentMatrix, int nbTrades, int totalParamsGroup, int totalParamsPrevious, ImmutableList<CurveParameterSize> orderPrevious, ImmutableMap<CurveName, JacobianCalibrationMatrix> jacobiansPrevious) ...
get(i).getParameterCount();
524,050
public static File[] find(@NonNull URL root, boolean javadoc) {<NEW_LINE>String k = root.toString();<NEW_LINE>Preferences n = node(javadoc);<NEW_LINE>String v = n.get(k, null);<NEW_LINE>if (v == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String[] split = StringUtils.split(v, "||");<NEW_LINE>List<File> toRet = ne...
f = FileUtilities.convertStringToFile(vv);
546,562
public Response addLineage(AddLineage addLineage, IsExistsPredicate isExistsPredicate) throws ModelDBException {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE>validate(addLineage.getInputList(), addLineage.getOutputList());<NEW_LINE>validateExistence(addLineage.getInputL...
getOutputList(), isExistsPredicate, session);
974,553
public static void main(String[] args) throws IOException, ParseException {<NEW_LINE>Config conf = new Config();<NEW_LINE>// loads the default configuration file<NEW_LINE>Map<String, Object> defaultSCConfig = Utils.findAndReadConfigFile("crawler-default.yaml", false);<NEW_LINE>conf.putAll(ConfUtils.extractConfigElement...
cmd.getArgs()[0];
289,833
public CodegenExpression codegen(EnumForgeCodegenParams premade, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenExpressionField typeMember = codegenClassScope.addFieldUnshared(true, ObjectArrayEventType.EPTYPE, cast(ObjectArrayEventType.EPTYPE, EventTypeUtility.resolveType...
.blockReturn(ref("value"));
1,763,841
protected void onLayout(boolean changed, int l, int t, int r, int b) {<NEW_LINE>final int count = getChildCount();<NEW_LINE>final int left = l + getPaddingLeft();<NEW_LINE>final int right = r - getPaddingRight();<NEW_LINE>int currentTop = t + getPaddingTop();<NEW_LINE>final int actionsTop = t + getPaddingTop();<NEW_LIN...
actionsTop + child.getMeasuredHeight());
856,842
public void startGPXMonitoring(final Activity map, final boolean showTrackSelection) {<NEW_LINE>final ValueHolder<Integer> vs = new ValueHolder<>();<NEW_LINE>final ValueHolder<Boolean> <MASK><NEW_LINE>vs.value = settings.SAVE_GLOBAL_TRACK_INTERVAL.get();<NEW_LINE>choice.value = settings.SAVE_GLOBAL_TRACK_REMEMBER.get()...
choice = new ValueHolder<>();
1,148,778
public static void vertical(Kernel1D_S32 kernel, GrayU16 src, GrayI8 dst, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>workspaces = BoofMiscOps.checkDeclare(workspaces, DogArray_I32::new);<NEW_LINE>// CONCURRENT_REMOVE_LINE<NEW_LINE>final DogArray_I32 work = workspaces.grow();<NEW_LINE>final sh...
int[] dataKer = kernel.data;
582,169
protected void prepare() {<NEW_LINE>ProcessInfoParameter[] para = getParameter();<NEW_LINE>for (int i = 0; i < para.length; i++) {<NEW_LINE>log.fine<MASK><NEW_LINE>String name = para[i].getParameterName();<NEW_LINE>if (para[i].getParameter() == null)<NEW_LINE>;<NEW_LINE>else if (name.equals("C_BP_Group_ID"))<NEW_LINE>p...
("prepare - " + para[i]);
1,359,994
private ProviderAuthenticationResult createResult(HttpServletRequest req, HttpServletResponse res, OAuthResult oResult, OAuth20Provider provider) {<NEW_LINE>Subject subject = new Subject();<NEW_LINE>WSOAuth20Token token = WSOAuth20TokenHelper.createToken(req, res, oResult, provider.getID());<NEW_LINE>if (tc.isDebugEnab...
put(AttributeNameConstants.WSCREDENTIAL_GROUPS, groups);
564,630
final AttachVolumeResult executeAttachVolume(AttachVolumeRequest attachVolumeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(attachVolumeRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<AttachVolumeRequest> request = null;<NEW_LINE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,697,611
public long read(ByteBuffer[] dsts, int offset, int length) throws IOException {<NEW_LINE>readLock.lock();<NEW_LINE>try {<NEW_LINE>boolean blocking = isBlocking();<NEW_LINE>long n = 0;<NEW_LINE>try {<NEW_LINE>beginRead(blocking);<NEW_LINE>// check if input is shutdown<NEW_LINE>if (isInputClosed)<NEW_LINE>return IOStatu...
endRead(blocking, n > 0);
1,235,368
public MaryData process(MaryData input) {<NEW_LINE>Document document = input.getDocument();<NEW_LINE>NodeIterator tokenIterator = MaryDomUtils.createNodeIterator(document, MaryXML.TOKEN);<NEW_LINE>Element token;<NEW_LINE>while ((token = (Element) tokenIterator.nextNode()) != null) {<NEW_LINE>String text = token.getText...
), input.getLocale());
1,577,746
private TreePath addSubResults(DefaultMutableTreeNode currNode, SampleResult res, List<TreeNode> path, Object selectedObject, Set<Object> oldExpandedObjects, Set<TreePath> newExpandedPaths) {<NEW_LINE>SampleResult[] subResults = res.getSubResults();<NEW_LINE>int leafIndex = 0;<NEW_LINE>TreePath result = null;<NEW_LINE>...
newPath, selectedObject, oldExpandedObjects, newExpandedPaths);
755,945
public void updateFromFormalParameterAssignment(LocalVariableNode lhs, Node rhs, VariableElement paramElt) {<NEW_LINE>// Don't infer types for code that isn't presented as source.<NEW_LINE>if (!ElementUtils.isElementFromSourceCode(lhs.getElement())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Tree rhsTree = rhs.getTree();<N...
i, paramATM, paramElt, atypeFactory);
1,424,196
// https://stackoverflow.com/a/48448901<NEW_LINE>@Override<NEW_LINE>protected void configure(HttpSecurity http) throws Exception {<NEW_LINE>APIKeyAuthFilter filter = new APIKeyAuthFilter();<NEW_LINE>filter.setAuthenticationManager(authentication -> {<NEW_LINE>//<NEW_LINE>String apiKey = (String) authentication.getPrinc...
throw new WrongAccountTypeException("Wrong account type for username " + apiKey);
1,715,895
public void importFiles(FileObject[] fileObjects) {<NEW_LINE>MostRecentFiles mostRecentFiles = Lookup.getDefault().lookup(MostRecentFiles.class);<NEW_LINE>fileObjects = Arrays.copyOf(fileObjects, fileObjects.length);<NEW_LINE>// Extract files if they are zipped:<NEW_LINE>for (int i = 0; i < fileObjects.length; i++) {<N...
File tempDir = TempDirUtils.createTempDirectory();
1,125,398
public void parse() {<NEW_LINE>if (isImplicitCollection()) {<NEW_LINE>field.setAccessible(true);<NEW_LINE>Object val = GoConfigClassLoader.classParser(e, field.getType(), configCache, new GoCipher(), registry, configReferenceElements).parseImplicitCollection();<NEW_LINE>setValue(val);<NEW_LINE>} else if (isSubtag(field...
field.getAnnotation(ConfigReferenceElement.class);
627,765
// Delete Statement<NEW_LINE>@Override<NEW_LINE>public Operator visitDeleteStatement(IoTDBSqlParser.DeleteStatementContext ctx) {<NEW_LINE>DeleteDataOperator deleteDataOp <MASK><NEW_LINE>List<IoTDBSqlParser.PrefixPathContext> prefixPaths = ctx.prefixPath();<NEW_LINE>for (IoTDBSqlParser.PrefixPathContext prefixPath : pr...
= new DeleteDataOperator(SQLConstant.TOK_DELETE);
301,781
private VName defineTypeParameters(TreeContext ownerContext, VName owner, List<JCTypeParameter> params, List<VName> wildcards, MarkedSource markedSource) {<NEW_LINE>if (params.isEmpty() && wildcards.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<VName> typeParams = new ArrayList<>();<NEW_LINE>for (JCTypePa...
owner, EdgeKind.TPARAM, typeParams);
305,132
public void drawSolidCircle(Vec2 center, float radius, Vec2 axis, Color3f color) {<NEW_LINE>GraphicsContext g = getGraphics();<NEW_LINE>Color f = cpool.getColor(color.x, color.y, color.z, .4f);<NEW_LINE>Color s = cpool.getColor(color.x, color.y, color.z, 1f);<NEW_LINE>saveState(g);<NEW_LINE>double scaling = transformGr...
), circle.getHeight());
198,579
public static void validateRelationship(Relationship relationship) throws SubjectAreaFVTCheckedException {<NEW_LINE>if (relationship == null) {<NEW_LINE>// error<NEW_LINE>throw new SubjectAreaFVTCheckedException("ERROR: Expected relationship to exist, ");<NEW_LINE>}<NEW_LINE>if (relationship.getName() == null) {<NEW_L...
relationship.getName() + " end2 guid to have a value");
422,637
private void captureJavadoc(TypeElement elem) {<NEW_LINE>List<String> imports = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>List<? extends ImportTree> importLines = Trees.instance(env).getPath(elem).getCompilationUnit().getImports();<NEW_LINE>for (ImportTree importLine : importLines) {<NEW_LINE>imports.add(importLine.ge...
docMd = elementUtils.getDocComment(methodElement);
513,367
public static QueryAliyunCorpNumberResponse unmarshall(QueryAliyunCorpNumberResponse queryAliyunCorpNumberResponse, UnmarshallerContext context) {<NEW_LINE>queryAliyunCorpNumberResponse.setRequestId(context.stringValue("QueryAliyunCorpNumberResponse.RequestId"));<NEW_LINE>queryAliyunCorpNumberResponse.setSuccess(contex...
("QueryAliyunCorpNumberResponse.Numbers[" + i + "].RamId"));
1,210,566
private Menu createMenu() {<NEW_LINE>if (!isMenuEnabled()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Menu menu = new Menu(shell, SWT.POP_UP);<NEW_LINE>cTable.addListener(SWT.MenuDetect, new Listener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void handleEvent(Event event) {<NEW_LINE>Composite cHeaderArea =...
menu.setData(MENUKEY_IN_BLANK_AREA, false);
1,686,912
public void aroundProcess(final Request request, final Response response, final InterceptorChain chain) throws RpcException {<NEW_LINE>final HmilyTransactionContext context = HmilyContextHolder.get();<NEW_LINE>if (Objects.isNull(context)) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Method method = request.ge...
chain.intercept(request, response);