idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,642,062
public void compute() {<NEW_LINE>currentContext.setPhase(TraverserContext.Phase.ENTER);<NEW_LINE>currentContext.setVar(List.class, myZippers);<NEW_LINE>TraversalControl traversalControl = visitor.enter(currentContext);<NEW_LINE>assertNotNull(traversalControl, () -> "result of enter must not be null");<NEW_LINE>assertTr...
children.size() - 1);
1,003,126
private void serializeTimer(MetaData.Builder metaData, Timer metric) {<NEW_LINE>final Snapshot snapshot = metric.getSnapshot();<NEW_LINE>writeValue(metaData, COUNT, (double) metric.getCount());<NEW_LINE>writeDuration(metaData, MAX, (double) snapshot.getMax());<NEW_LINE>writeDuration(metaData, MEAN, snapshot.getMean());...
P99, snapshot.get99thPercentile());
22,475
public void run() {<NEW_LINE>try {<NEW_LINE>for (final File file : files) {<NEW_LINE>final <MASK><NEW_LINE>System.out.println("Opening..." + file.getAbsolutePath());<NEW_LINE>// check if file exists<NEW_LINE>if (!file.exists()) {<NEW_LINE>BytecodeViewer.showMessage("The file " + file.getAbsolutePath() + " could not be ...
String fn = file.getName();
1,367,386
public IAcsClient instance() {<NEW_LINE>if (client != null)<NEW_LINE>return client;<NEW_LINE>String accessKeyId = (String) systemConfigService.selectAllConfig().get("sms_access_key_id");<NEW_LINE>String secret = (String) systemConfigService.selectAllConfig().get("sms_secret");<NEW_LINE>signName = (String) systemConfigS...
selectAllConfig().get("sms_region_id");
776,997
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String path0, String path1, String path2, String path3, String path4, String path5, String path6) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>String executorSeed = null;<NEW_LINE>try ...
get(300, TimeUnit.SECONDS);
540,798
private BlockAppearance createAppearance(BlockShape shape, Map<BlockPart, BlockTile> tiles, Rotation rot) {<NEW_LINE>Map<BlockPart, BlockMeshPart> meshParts = Maps.newEnumMap(BlockPart.class);<NEW_LINE>Map<BlockPart, Vector2f> textureAtlasPositions = Maps.newEnumMap(BlockPart.class);<NEW_LINE>for (BlockPart part : Bloc...
targetPart = part.rotate(rot);
1,484,308
protected Object createNode(JSContext context, JSBuiltin builtin, boolean construct, boolean newTarget, NumberPrototype builtinEnum) {<NEW_LINE>switch(builtinEnum) {<NEW_LINE>case toExponential:<NEW_LINE>return JSNumberToExponentialNodeGen.create(context, builtin, args().withThis().fixedArgs(<MASK><NEW_LINE>case toFixe...
1).createArgumentNodes(context));
1,598,344
GeneratedTestClass build() {<NEW_LINE>// picks a matching class meta data<NEW_LINE>ClassMetaData classMetaData = this.metaData.stream().filter(Acceptor::accept).findFirst().orElseThrow((<MASK><NEW_LINE>// package com.example<NEW_LINE>classMetaData.setupLineEnding().setupLabelPrefix().packageDefinition();<NEW_LINE>// \n...
) -> new IllegalStateException("There is no matching class meta data"));
1,202,722
private static boolean validateArtifacts(ActionCache.Entry entry, Action action, NestedSet<Artifact> actionInputs, MetadataHandler metadataHandler, boolean checkOutput, @Nullable CachedOutputMetadata cachedOutputMetadata) {<NEW_LINE>Map<String, FileArtifactValue> mdMap = new HashMap<>();<NEW_LINE>if (checkOutput) {<NEW...
), entry.getFileDigest());
944,544
protected void readBinaryChildren(ClassFile classFile, HashMap newElements, IBinaryType typeInfo) {<NEW_LINE>ArrayList childrenHandles = new ArrayList();<NEW_LINE>BinaryType type = (BinaryType) classFile.getType();<NEW_LINE>ArrayList typeParameterHandles = new ArrayList();<NEW_LINE>if (typeInfo != null) {<NEW_LINE>// m...
typeInfo, newElements, childrenHandles, typeParameterHandles);
699,832
public void authorizeWillPublish(@NotNull final ChannelHandlerContext ctx, @NotNull final CONNECT connect) {<NEW_LINE>final String clientId = ctx.channel().attr(ChannelAttributes.CLIENT_CONNECTION).get().getClientId();<NEW_LINE>if (clientId == null || !ctx.channel().isActive()) {<NEW_LINE>// no more processing needed, ...
ctx.channel(), clientId);
578,068
private void moveData(int src, int dst, int len) {<NEW_LINE>if (DEBUG_TRACE) {<NEW_LINE>debugLog("moveData: " + src + "-" + src + len + " -> " + dst + "-" + dst + len);<NEW_LINE>if (DEBUG_DUMP) {<NEW_LINE>debugLog(debugPrint(values));<NEW_LINE>}<NEW_LINE>}<NEW_LINE>System.arraycopy(values, src, values, dst, len);<NEW_L...
len) ? dst : src + len;
359,667
static public MPrintFormat createFromTable(Properties ctx, int AD_Table_ID, int AD_PrintFormat_ID) {<NEW_LINE>int AD_Client_ID = Env.getAD_Client_ID(ctx);<NEW_LINE>s_log.info("AD_Table_ID=" + AD_Table_ID + " - AD_Client_ID=" + AD_Client_ID);<NEW_LINE>MPrintFormat pf = new MPrintFormat(ctx, AD_PrintFormat_ID, null);<NEW...
TableName = rs.getString(1);
1,622,821
protected void onBindDialogView(View view) {<NEW_LINE>value = settings.getAuthMethod();<NEW_LINE>credentialsSelection = view.findViewById(R.id.credentialSelection);<NEW_LINE>ArrayAdapter<String> adapter = new ArrayAdapter<>(getContext(), android.R.layout.simple_list_item_single_choice, entries);<NEW_LINE>credentialsSel...
passwordLayout.setImportantForAutofill(View.IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS);
291,884
List<String> findNearestNodesTo(String original, String target, List<String> targetedNodes, List<String> topoSortNodes, int k) {<NEW_LINE>int idx = topoSortNodes.indexOf(target);<NEW_LINE>Counter<String> <MASK><NEW_LINE>for (int i = 0; i < targetedNodes.size(); i++) {<NEW_LINE>int currIdx = topoSortNodes.indexOf(target...
rankByDistance = new Counter<>();
983,551
private Mono<PagedResponse<P2SVpnGatewayInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentE...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
211,695
private Mono<Response<Void>> runTriggeredWebJobSlotWithResponseAsync(String resourceGroupName, String name, String webJobName, String slot, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and ca...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
655,821
public PhysicalDbInstance select(Boolean master, boolean isForUpdate, boolean write) throws IOException {<NEW_LINE>if (rwSplitMode == RW_SPLIT_OFF && (master != null && !master)) {<NEW_LINE>LOGGER.warn("force slave,but the dbGroup[{}] doesn't contains active slave dbInstance", groupName);<NEW_LINE>throw new IOException...
selectInstance = loadBalancer.select(instances);
328,540
protected void rawResponseHandler(String response) {<NEW_LINE>Optional<Integer> axes = getAxisCount(response);<NEW_LINE>if (axes.isPresent()) {<NEW_LINE>logger.info("Axis Count: " + axes.get());<NEW_LINE>this.capabilities.removeCapability(X_AXIS);<NEW_LINE>this.capabilities.removeCapability(Y_AXIS);<NEW_LINE>this.capab...
this.capabilities.addCapability(B_AXIS);
250,636
private void handleContentCrashIntent(@NonNull final Intent intent) {<NEW_LINE>Log.e(LOGTAG, "Got content crashed intent");<NEW_LINE>final String dumpFile = intent.getStringExtra(GeckoRuntime.EXTRA_MINIDUMP_PATH);<NEW_LINE>final String extraFile = intent.getStringExtra(GeckoRuntime.EXTRA_EXTRAS_PATH);<NEW_LINE>Log.d(LO...
(GeckoRuntime.EXTRA_CRASH_FATAL, false));
784,951
private void deAllocate() {<NEW_LINE>if (getC_Order_ID() != 0) {<NEW_LINE>setC_Order_ID(0);<NEW_LINE>}<NEW_LINE>// if (getC_Invoice_ID() == 0)<NEW_LINE>// return;<NEW_LINE>// De-Allocate all<NEW_LINE>final MAllocationHdr[] allocations = MAllocationHdr.getOfPayment(getCtx(), getC_Payment_ID(), get_TrxName());<NEW_LINE>f...
() + " AND C_Payment_ID=" + getC_Payment_ID();
104,920
public void rightMouse(MouseEvent e) {<NEW_LINE>System.out.println("popup");<NEW_LINE>JPopupMenu menu = new JPopupMenu();<NEW_LINE>menu.add("Selected");<NEW_LINE>for (String wId : overWidgets) {<NEW_LINE>if (wId == "root") {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>JMenu sub = new JMenu(wId);<NEW_LINE>menu.add(sub);<NEW_...
main.addConstraint(wId, "centerHorizontally: 'parent'");
934,272
public boolean test() {<NEW_LINE>final Request request = prepareRequest(client, 12);<NEW_LINE>try {<NEW_LINE>request.addMessageObserver(new EndpointContextTracer() {<NEW_LINE><NEW_LINE>private final AtomicBoolean ready = new AtomicBoolean();<NEW_LINE><NEW_LINE>private final AtomicInteger counter = new AtomicInteger();<...
response = client.advanced(request);
997,729
public GlassFish newGlassFish(GlassFishProperties glassfishProperties) throws GlassFishException {<NEW_LINE>System.setProperty("com.sun.aas.installRoot", System.getProperty("com.sun.aas.instanceRoot"));<NEW_LINE>System.setProperty("com.sun.aas.installRootURI", System.getProperty("com.sun.aas.instanceRootURI"));<NEW_LIN...
DynamicConfiguration config = dcs.createDynamicConfiguration();
1,407,924
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('var') create constant variable string MYVAR = '.*abc.*';\n" + "@name('s0') select * from SupportBean(theString regexp MYVAR);\n" + "" + "@name('ctx') create context MyContext start SupportBean_S0 as s0;\n" + "@name('s1') context MyContext select...
), sn.getOptionalValue());
17,283
// The actual uncaught exceptions handing logic<NEW_LINE>private void handleException(Thread thread, Throwable exception) {<NEW_LINE>// We would fail fast when errors occur to avoid unexpected bad situations<NEW_LINE>if (exception instanceof Error) {<NEW_LINE>try {<NEW_LINE>LOG.log(Level.SEVERE, "Error caught in thread...
getRuntime().halt(1);
153,881
private int writeResultSet(ResultSet rs) throws SQLException {<NEW_LINE>try {<NEW_LINE>int rows = 0;<NEW_LINE>ResultSetMetaData meta = rs.getMetaData();<NEW_LINE>int columnCount = meta.getColumnCount();<NEW_LINE>String[] row = new String[columnCount];<NEW_LINE>for (int i = 0; i < columnCount; i++) {<NEW_LINE>row[i] = m...
DbException.convertIOException(e, null);
1,035,992
protected boolean createCloudStackSecret(String[] keys) {<NEW_LINE>File pkFile = getManagementServerSshPublicKeyFile();<NEW_LINE>Pair<String, Integer> publicIpSshPort = getKubernetesClusterServerIpSshPort(null);<NEW_LINE>List<MASK><NEW_LINE>publicIpAddress = publicIpSshPort.first();<NEW_LINE>sshPort = publicIpSshPort.s...
<KubernetesClusterVmMapVO> vmMapVOList = getKubernetesClusterVMMaps();
343,202
protected void doIterationPaths(SparkDl4jMultiLayer network, SparkComputationGraph graph, JavaRDD<String> split, int splitNum, int numSplits, int dataSetObjectNumExamples, DataSetLoader dsLoader, MultiDataSetLoader mdsLoader) {<NEW_LINE>log.info("Starting training of split {} of {}. workerMiniBatchSize={}, averagingFre...
, BroadcastHadoopConfigHolder.get(sc));
324,251
public JavaScriptNode enterForNode(ForNode forNode) {<NEW_LINE>// if init is destructuring, wait with transformation<NEW_LINE>JavaScriptNode init = forNode.getInit() != null && !forNode.isForInOrOf() ? tagStatement(transform(forNode.getInit()), forNode.getInit()) : factory.createEmpty();<NEW_LINE>JavaScriptNode test = ...
desugarForAwaitOf(forNode, modify, target);
1,451,228
public Collection<HmDevice> parse(Object[] message) throws IOException {<NEW_LINE>message = (Object[]) message[0];<NEW_LINE>Map<String, HmDevice> devices = new HashMap<>();<NEW_LINE>for (int i = 0; i < message.length; i++) {<NEW_LINE>Map<String, ?> data = (Map<String, ?>) message[i];<NEW_LINE>if (MiscUtils.isDevice(toS...
new HmChannel(type, number));
8,953
private static void fillDocumentsTableArrays() {<NEW_LINE>if (documentsTableID == null) {<NEW_LINE>String sql = "SELECT t.AD_Table_ID, t.TableName " + "FROM AD_Table t, AD_Column c " <MASK><NEW_LINE>ArrayList<Integer> tableIDs = new ArrayList<Integer>();<NEW_LINE>ArrayList<String> tableNames = new ArrayList<String>();<...
+ "WHERE t.AD_Table_ID=c.AD_Table_ID AND " + "c.ColumnName='Posted' AND " + "IsView='N' " + "ORDER BY t.AD_Table_ID";
1,407,349
private void process(PackageDoc packageDoc) {<NEW_LINE>beginln("package");<NEW_LINE>emitIdentity(packageDoc.name(<MASK><NEW_LINE>emitLocation(packageDoc);<NEW_LINE>emitDescription(null, packageDoc, packageDoc.firstSentenceTags(), packageDoc.inlineTags());<NEW_LINE>emitOutOfLineTags(packageDoc.tags());<NEW_LINE>// Top-l...
), packageDoc.name());
841,586
protected void saveContext(SecurityContext context) {<NEW_LINE>if (isTransient(context)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Authentication authentication = context.getAuthentication();<NEW_LINE>if (isTransient(authentication)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HttpSession httpSession = this.request.getSe...
String springSecurityContextKey = HttpSessionSecurityContextRepository.this.springSecurityContextKey;
1,239,356
final UpdateStageResult executeUpdateStage(UpdateStageRequest updateStageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateStageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
(super.beforeMarshalling(updateStageRequest));
49,667
private AbstractObjectReader buildUnion(UnionVector vector, VectorAccessor unionAccessor, VectorDescrip descrip) {<NEW_LINE>final MetadataProvider provider = descrip.childProvider();<NEW_LINE>final AbstractObjectReader[] variants = new AbstractObjectReader[<MASK><NEW_LINE>int i = 0;<NEW_LINE>for (final MinorType type :...
MinorType.values().length];
1,570,143
private void checkStyleConflicts(ValueType type, Protoclass protoclass) {<NEW_LINE>if (protoclass.features().singleton() && !protoclass.constitution().generics().isEmpty()) {<NEW_LINE>protoclass.report().annotationNamed(ImmutableMirror.simpleName()).warning(About.INCOMPAT, "'singleton' feature contains potentially unsa...
warning(About.INCOMPAT, "'prehash' feature is automatically disabled when 'privateNoargConstructor' style is turned on");
936,561
public Message decode(@Nonnull RawMessage rawMessage) {<NEW_LINE>final String s = new String(rawMessage.getPayload(), StandardCharsets.UTF_8);<NEW_LINE>final Matcher matcher = SYSLOG_PREFIX.matcher(s);<NEW_LINE>if (matcher.find()) {<NEW_LINE>final String priString = matcher.group("pri");<NEW_LINE>final Integer pri = In...
msg = matcher.group("msg");
30,722
public void rollbackAndCloseActiveTrx(final String trxName) {<NEW_LINE>final ITrxManager trxManager = getTrxManager();<NEW_LINE>if (trxManager.isNull(trxName)) {<NEW_LINE>throw new IllegalArgumentException("Only not null transactions are allowed: " + trxName);<NEW_LINE>}<NEW_LINE>final ITrx <MASK><NEW_LINE>if (trxManag...
trx = trxManager.getTrx(trxName);
70,096
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select distinct intOne from SupportEventWithManyArray#keepall;\n" + "@name('s1') select distinct intOne, intTwo from SupportEventWithManyArray#keepall;\n";<NEW_LINE>env.compileDeploy(epl);<NEW_LINE>sendManyArray(env, new int[] { 1, 2 }, new...
{ 3, 4 } } });
334,174
// Baksmali<NEW_LINE>@Override<NEW_LINE>public void open(TaskMonitor monitor) throws IOException, CryptoException, CancelledException {<NEW_LINE>monitor.setMessage("Converting DEX to SMALI...");<NEW_LINE><MASK><NEW_LINE>boolean isFixRegisters = false;<NEW_LINE>boolean isNoParameterRegisters = false;<NEW_LINE>boolean is...
File dexFileFile = provider.getFile();
971,100
private void drawCompassCircle(Canvas canvas, RotatedTileBox tileBox, int circleNumber, QuadPoint center, RenderingLineAttributes attrs) {<NEW_LINE>if (!tileBox.isZoomAnimated()) {<NEW_LINE>float radiusLength = radius * circleNumber;<NEW_LINE>float innerRadiusLength = radiusLength - attrs.paint.getStrokeWidth() / 2;<NE...
attrs.paint.getStrokeWidth());
299,658
private PropertyEditor createPropertyEditor(Class editorClass, Class propertyType, FormProperty property) throws InstantiationException, IllegalAccessException {<NEW_LINE>PropertyEditor ed = null;<NEW_LINE>if (editorClass.equals(RADConnectionPropertyEditor.class)) {<NEW_LINE>ed = new RADConnectionPropertyEditor(propert...
).initPropertyEditor(ed, property);
732,746
private static void registerEdgesPlugins(InvocationPlugins plugins) {<NEW_LINE>Registration r = new Registration(plugins, Edges.class);<NEW_LINE>for (Class<?> c : new Class<?>[] { Node.class, NodeList.class }) {<NEW_LINE>r.register(new InvocationPlugin("get" + c.getSimpleName() + "Unsafe", Node.class, long.class) {<NEW...
, LocationIdentity.any()));
1,585,922
public void open(NodeInputSplit split) throws IOException {<NEW_LINE>ResourcesUtils.parseGpuInfo(getRuntimeContext(), mlConfig);<NEW_LINE>mlContext = new MLContext(mode, mlConfig, role.name(), split.getSplitNumber(), mlConfig.getEnvPath(), ColumnInfos.dummy().getNameToTypeMap());<NEW_LINE>if (role.getClass().equals(AMR...
> hookList = mlContext.getHookClassNames();
622,555
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("push" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object obj = param.getLeafExpression().calculate(ctx);<NEW_LINE>if (!(obj...
setCurrentCell(cs.getCurrent());
1,789,202
public void test1XSFEnvEntry_Long_InvalidValue() throws Exception {<NEW_LINE>try {<NEW_LINE>// The test case looks for a environment variable named "envLongInvalid".<NEW_LINE>Long tempLong = fejb1.getLongEnvVar("envLongBlankValue");<NEW_LINE>fail("Get environment invalid long object should have failed, instead got " + ...
tempLong = fejb1.getLongEnvVar("envLongGT64bit");
282,822
private HttpResponse addSecretStore(String tenantName, String name, HttpRequest request) {<NEW_LINE>if (controller.tenants().require(TenantName.from(tenantName)).type() != Tenant.Type.cloud)<NEW_LINE>throw new IllegalArgumentException("Tenant '" + tenantName + "' is not a cloud tenant");<NEW_LINE>var data = toSlime(req...
tenants().store(lockedTenant);
1,015,250
public void deleteById(String id) {<NEW_LINE>String vaultName = Utils.getValueFromIdByName(id, "backupVaults");<NEW_LINE>if (vaultName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'backupVaults'.", id)));<NEW_LIN...
Utils.getValueFromIdByName(id, "backupPolicies");
676,703
public static DescribeGatewayBucketCachesResponse unmarshall(DescribeGatewayBucketCachesResponse describeGatewayBucketCachesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeGatewayBucketCachesResponse.setRequestId(_ctx.stringValue("DescribeGatewayBucketCachesResponse.RequestId"));<NEW_LINE>describeGatewayBucketCa...
(_ctx.stringValue("DescribeGatewayBucketCachesResponse.Message"));
1,552,936
final ListUsersResult executeListUsers(ListUsersRequest listUsersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listUsersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
(super.beforeMarshalling(listUsersRequest));
817,069
protected STARTUPINFOEX prepareStartupInfo() {<NEW_LINE>STARTUPINFOEX si = new STARTUPINFOEX();<NEW_LINE>si.StartupInfo.cb = new DWORD(si.size());<NEW_LINE>si.StartupInfo.hStdOutput = new HANDLE();<NEW_LINE>si.StartupInfo.hStdError = new HANDLE();<NEW_LINE>si.StartupInfo.hStdInput = new HANDLE();<NEW_LINE>si<MASK><NEW_...
.StartupInfo.dwFlags = WinBase.STARTF_USESTDHANDLES;
1,092,708
public void performCredentialsUpdate(Account account, Context context) {<NEW_LINE>try {<NEW_LINE>// / step 1 - invalidate credentials of current account<NEW_LINE>OwnCloudAccount ocAccount <MASK><NEW_LINE>OwnCloudClient client = OwnCloudClientManagerFactory.getDefaultSingleton().removeClientFor(ocAccount);<NEW_LINE>if (...
= new OwnCloudAccount(account, context);
1,640,680
public void store(Item item, String alias) {<NEW_LINE>// Don't log undefined/uninitialised data<NEW_LINE>if (item.getState() instanceof UnDefType) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// If we've not initialised the bundle, then return<NEW_LINE>if (initialized == false) {<NEW_LINE>logger.warn("MongoDB not initialized...
obj.put(FIELD_VALUE, value);
1,127,662
private static void generateInstrumentedProcessView(ResultSetProcessorFactoryForge forge, CodegenClassScope classScope, CodegenMethod method, CodegenInstanceAux instance) {<NEW_LINE>if (!classScope.isInstrumented()) {<NEW_LINE>forge.<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CodegenMethod instrumented = method.makeChi...
processViewResultCodegen(classScope, method, instance);
1,683,353
private AndroidCompletedTransfer extractAndroidCompletedTransfer(Cursor cursor) {<NEW_LINE>long id = Integer.parseInt(cursor.getString(0));<NEW_LINE>String filename = decrypt(cursor.getString(1));<NEW_LINE>String type = decrypt(cursor.getString(2));<NEW_LINE>int <MASK><NEW_LINE>String state = decrypt(cursor.getString(3...
typeInt = Integer.parseInt(type);
1,687,075
public DoubleColumnStatisticsData unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DoubleColumnStatisticsData doubleColumnStatisticsData = new DoubleColumnStatisticsData();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme...
class).unmarshall(context));
1,518,010
public static QueryTrademarkPriceResponse unmarshall(QueryTrademarkPriceResponse queryTrademarkPriceResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryTrademarkPriceResponse.setRequestId(_ctx.stringValue("QueryTrademarkPriceResponse.RequestId"));<NEW_LINE>queryTrademarkPriceResponse.setDiscountPrice(_ctx.floatValue("Q...
("QueryTrademarkPriceResponse.Prices[" + i + "].ClassificationCode"));
942,082
public Packet nextFrame() throws IOException {<NEW_LINE>try {<NEW_LINE>Future<DashMP4DemuxerTrack> curFrag = fragments.get(curFragNo);<NEW_LINE>MP4Packet nextFrame = null;<NEW_LINE>if (curFrag != null) {<NEW_LINE>nextFrame = getCurFrag(curFrag).nextFrame();<NEW_LINE>if (nextFrame == null) {<NEW_LINE>getCurFrag(curFrag)...
; i++) scheduleFragment(curFragNo);
203,898
protected void processClassLevelAnnotations(ConstPool constantPool, ClassPool pool, Object object) throws NotFoundException {<NEW_LINE>if (AnnotationsAttribute.class.isAssignableFrom(object.getClass())) {<NEW_LINE>AnnotationsAttribute attr = (AnnotationsAttribute) object;<NEW_LINE>Annotation[] items = attr.getAnnotatio...
namedQueriesAnnotation.addMemberValue("value", namedQueryArray);
114,851
public static AnAction[] createActionOrGroup(@Nonnull String text, @Nonnull BaseLibrariesConfigurable librariesConfigurable, @Nonnull final Project project) {<NEW_LINE>final List<LibraryType<?>> extensions = LibraryType.EP_NAME.getExtensionList();<NEW_LINE>List<LibraryType<?>> suitableTypes = new ArrayList<>();<NEW_LIN...
actions = new ArrayList<>();
131,200
protected void run(StructuredGraph graph) {<NEW_LINE>EconomicMap<LoopBeginNode, EconomicSet<LocationIdentity>> modifiedInLoops = null;<NEW_LINE>if (graph.hasLoops()) {<NEW_LINE>modifiedInLoops = EconomicMap.create(Equivalence.IDENTITY);<NEW_LINE>ControlFlowGraph cfg = ControlFlowGraph.compute(graph, true, true, false, ...
.of(NODE_ADDED, ZERO_USAGES));
1,780,550
public User createUser(final UserCreateDto userCreateDto) {<NEW_LINE>log.info("Create new user with userCreateDto: {}", userCreateDto);<NEW_LINE>val isMailServerEnabled = Boolean.valueOf(env.getProperty("spring.mail.enable"));<NEW_LINE>validateUserCreateDto(userCreateDto);<NEW_LINE>val isAccountEnabled = isNotTrue(isMa...
globalRole(USER).build();
1,042,769
// /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>// PROTO BUFFER<NEW_LINE>// /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>@Override<NEW_LINE>public protobuf.ProcessModel toProtoMessage() {<NEW_LINE>protobuf.Proces...
ByteString.copyFrom(myMultiSigPubKey)));
969,770
public final ComboViewer bindCalendarCombo(Composite editArea, String label, String property) {<NEW_LINE>Label l = new Label(editArea, SWT.NONE);<NEW_LINE>l.setText(label);<NEW_LINE>ComboViewer combo = new ComboViewer(editArea, SWT.READ_ONLY);<NEW_LINE>combo.setContentProvider(ArrayContentProvider.getInstance());<NEW_L...
modelToTarget = new UpdateValueStrategy<>();
942,309
public HealthCheckResponse call() {<NEW_LINE>long diskFreeInBytes;<NEW_LINE>long totalInBytes;<NEW_LINE>try {<NEW_LINE>diskFreeInBytes = fileStore.getUsableSpace();<NEW_LINE>totalInBytes = fileStore.getTotalSpace();<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw new HealthCheckException("Failed to obtain disk space ...
= new Formatter(Locale.US);
236,438
protected void createTupleDescs(Analyzer analyzer) {<NEW_LINE>// Create the intermediate tuple desc first, so that the tuple ids are increasing<NEW_LINE>// from bottom to top in the plan tree.<NEW_LINE>intermediateTupleDesc = createTupleDesc(analyzer, false);<NEW_LINE>if (requiresIntermediateTuple(aggregateExprs, group...
> intermediateSlots = intermediateTupleDesc.getSlots();
1,674,353
final SyncResourceResult executeSyncResource(SyncResourceRequest syncResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(syncResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
822,492
public TableConstructorExpressionNode transform(TableConstructorExpressionNode tableConstructorExpressionNode) {<NEW_LINE>Token tableKeyword = formatToken(tableConstructorExpressionNode.tableKeyword(), 1, 0);<NEW_LINE>KeySpecifierNode keySpecifier = formatNode(tableConstructorExpressionNode.keySpecifier().orElse<MASK><...
(null), 1, 0);
1,129,982
public void installBatchSpanProcessorForOtlp(OtlpExporterConfig.OtlpExporterRuntimeConfig runtimeConfig, LaunchMode launchMode) {<NEW_LINE>if (launchMode == LaunchMode.DEVELOPMENT && !runtimeConfig.endpoint.isPresent()) {<NEW_LINE>// Default the endpoint for development only<NEW_LINE>runtimeConfig.endpoint = Optional.o...
OtlpGrpcSpanExporter otlpSpanExporter = otlpGrpcSpanExporterBuilder.build();
1,665,121
private void executeMultiResultSet(PlanNode node) {<NEW_LINE>ManagerHandlerBuilder builder = new ManagerHandlerBuilder(node, this);<NEW_LINE>try {<NEW_LINE>builder.build();<NEW_LINE>} catch (SQLSyntaxErrorException e) {<NEW_LINE>LOGGER.info(<MASK><NEW_LINE>managerService.writeErrMessage(ErrorCode.ER_YES, "optimizer bui...
managerService + " execute plan is : " + node, e);
1,182,117
public static void main(String[] args) {<NEW_LINE>String fileName = UtilIO.pathExample("background/street_intersection.mp4");<NEW_LINE>// String fileName = UtilIO.pathExample("background/rubixfire.mp4"); // dynamic background<NEW_LINE>// String fileName = UtilIO.pathExample("background/horse_jitter.mp4"); // degraded p...
(35, 0.005f), imageType);
770,666
protected void initComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {<NEW_LINE><MASK><NEW_LINE>if (element instanceof GroupingElement) {<NEW_LINE>setFont(getFont().deriveFont(Font.BOLD));<NEW_LINE>}<NEW_LINE>String prefix = calcPrefix(element);<NEW_LINE>if...
final ErrorTreeElement element = getElement(value);
1,356,863
static void testGrams(Path root, Path test, String labelTarget, String name) throws IOException {<NEW_LINE>Path modelPath = root.resolve(name + ".model");<NEW_LINE>Path predictions = root.resolve(name + ".predictions");<NEW_LINE>FastTextClassifier <MASK><NEW_LINE>try (PrintWriter pw = new PrintWriter(predictions.toFile...
classifier = FastTextClassifier.load(modelPath);
906,494
public void processUnknownTypeProperty(CodegenModel model, CodegenProperty property) {<NEW_LINE>Map<String, Object> vendorExtensions = property.getVendorExtensions();<NEW_LINE>Map<String, Object> mysqlSchema = new HashMap<>();<NEW_LINE>Map<String, Object> columnDefinition = new HashMap<>();<NEW_LINE>String baseName = p...
Boolean required = property.getRequired();
212,869
private boolean showCategoryEditNotification(Context context, Media media, boolean result) {<NEW_LINE>String message;<NEW_LINE>String title = context.getString(R.string.category_edit_helper_show_edit_title);<NEW_LINE>if (result) {<NEW_LINE>title += ": " + context.getString(R.string.category_edit_helper_show_edit_title_...
getString(R.string.category_edit_helper_show_edit_title);
674,240
private void createRecorder() {<NEW_LINE>@SuppressWarnings("rawtypes")<NEW_LINE>Class recorderClass = loadClientClass("simianarmy.client.recorder.class");<NEW_LINE>if (recorderClass != null && recorderClass.equals(RDSRecorder.class)) {<NEW_LINE>String dbDriver = configuration().getStr("simianarmy.recorder.db.driver");<...
(MonkeyRecorder) factory(recorderClass));
1,175,908
public void checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine engine) throws CertificateException {<NEW_LINE>Tr.entry(tc, "checkClientTrusted", new Object[] { chain, authType, engine });<NEW_LINE>try {<NEW_LINE>for (int i = 0; i < tm.length; i++) {<NEW_LINE>if (tm[i] != null && tm[i] instanceof X50...
"Certificate Exception from configured trustmanager occurred: " + e.getMessage());
1,548,371
private void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>jScrollPane1 = new javax.swing.JScrollPane();<NEW_LINE>jMainClassList = new javax.swing.JList();<NEW_LINE>setLayout(new java.awt.GridBagLayout());<NEW_LINE>setPreferredSize(new ...
0, 12, 0, 12);
175,210
protected void consumeCaseLabel() {<NEW_LINE>// // SwitchLabel ::= 'case' ConstantExpression ':'<NEW_LINE>// this.expressionLengthPtr--;<NEW_LINE>// Expression expression = this.expressionStack[this.expressionPtr--];<NEW_LINE>// CaseStatement caseStatement = new CaseStatement(expression, expression.sourceEnd, this.intS...
intStack[this.intPtr--]);
26,484
private List<NonTerminalNode> convertImports(List<NonTerminalNode> declarationList) {<NEW_LINE>return declarationList.stream().map(nonTerminalNode -> {<NEW_LINE>if (nonTerminalNode.kind() != SyntaxKind.IMPORT_DECLARATION) {<NEW_LINE>return nonTerminalNode;<NEW_LINE>}<NEW_LINE>ImportDeclarationNode importDeclarationNode...
newModuleName = NodeFactory.createSeparatedNodeList(moduleParts);
1,259,631
protected Object createFieldReference(Object receiver) throws InvalidInputException {<NEW_LINE>try {<NEW_LINE>MemberRef fieldRef = this.ast.newMemberRef();<NEW_LINE>SimpleName fieldName = new SimpleName(this.ast);<NEW_LINE>fieldName.internalSetIdentifier(new String(this.identifierStack[0]));<NEW_LINE>fieldRef.setName(f...
start, end - start + 1);
1,311,550
final PutAlternateContactResult executePutAlternateContact(PutAlternateContactRequest putAlternateContactRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putAlternateContactRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,020,617
public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {<NEW_LINE>if (FlipperUtils.shouldEnableFlipper(context)) {<NEW_LINE>final FlipperClient client = AndroidFlipperClient.getInstance(context);<NEW_LINE>client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.wi...
.addPlugin(new ReactFlipperPlugin());
503,597
private static boolean compareSequence(String schemaName, String seqName, SequenceBean sequenceBean) {<NEW_LINE>SystemTableRecord existingSequenceRecord;<NEW_LINE>SequencesAccessor sequencesAccessor = new SequencesAccessor();<NEW_LINE>try (Connection metaDbConn = MetaDbUtil.getConnection()) {<NEW_LINE>sequencesAccessor...
e, e.getMessage());
1,335,155
private ControlNack createControlNackMessage(int priority, Reliability reliability, SIBUuid12 stream) throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "createControlNackMessage");<NEW_LINE>ControlNack nackMsg;<NEW_LINE>// Create new AckMessa...
e, "com.ibm.ws.sib.processor.impl.PubSubOutputHandler.createControlNackMessage", "1:1204:1.164.1.5", this);
183,984
public JettyServletWebServerFactory jettyServletWebServerFactory(@Value("${server.port:8080}") final String port, @Value("${jetty.threadPool.maxThreads:200}") final String maxThreads, @Value("${jetty.threadPool.minThreads:8}") final String minThreads, @Value("${jetty.threadPool.idleTimeout:60000}") final String idleTim...
HttpMethod.POST.asString());
1,246,069
public ApiResponse<ModelApiResponse> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'petId' is set<NEW_LINE>if (petId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required ...
localVarContentType, localVarAuthNames, localVarReturnType, false);
1,835,500
public Connection run() throws Exception {<NEW_LINE>boolean buildConnection = cri.ivShardingKey != null || cri.ivSuperShardingKey != null;<NEW_LINE>if (!buildConnection && dataSourceOrDriver instanceof XADataSource) {<NEW_LINE>// TODO this code path is very suspect, and so we are not continuing it for connection builde...
user, pwd).getConnection();
1,160,426
public static byte[] compress(byte[] content, int modificationCount) throws IOException {<NEW_LINE>byte[] compressedData = null;<NEW_LINE>switch(ourVersion) {<NEW_LINE>// case V1_SNAPPY: {<NEW_LINE>// UnsyncByteArrayOutputStream compressStream = new UnsyncByteArrayOutputStream(content.length);<NEW_LINE>// try (SnappyOu...
outputStream.writeShort(compressedData.length);
769,246
private void validate(APIGetPortForwardingAttachableVmNicsMsg msg) {<NEW_LINE>SimpleQuery<PortForwardingRuleVO> q = dbf.createQuery(PortForwardingRuleVO.class);<NEW_LINE>q.select(PortForwardingRuleVO_.state, PortForwardingRuleVO_.vmNicUuid);<NEW_LINE>q.add(PortForwardingRuleVO_.uuid, Op.<MASK><NEW_LINE>Tuple t = q.find...
EQ, msg.getRuleUuid());
556,695
protected byte[] serializeRecords(List<IndexedRecord> records) throws IOException {<NEW_LINE>HFileContext context = new HFileContextBuilder().withBlockSize(DEFAULT_BLOCK_SIZE).withCompression(compressionAlgorithm.get()).withCellComparator(new HoodieHBaseKVComparator()).build();<NEW_LINE>Configuration conf = new Configu...
IndexedRecord record = itr.next();
1,241,633
private SpawnResult runSpawn(Spawn originalSpawn, SandboxedSpawn sandbox, SpawnExecutionContext context) throws IOException, ForbiddenActionInputException, InterruptedException {<NEW_LINE>try {<NEW_LINE>try (SilentCloseable c = Profiler.instance().profile("sandbox.createFileSystem")) {<NEW_LINE>sandbox.createFileSystem...
context.getTimeout(), outErr);
1,438,794
public static ListTagResourcesResponse unmarshall(ListTagResourcesResponse listTagResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTagResourcesResponse.setRequestId(_ctx.stringValue("ListTagResourcesResponse.RequestId"));<NEW_LINE>listTagResourcesResponse.setNextToken(_ctx.stringValue("ListTagResourcesRespon...
= new ArrayList<TagResourcesItem>();
631,376
private Row[] generateRows(List<Object[]> batchCache, int size) {<NEW_LINE>Row[] rows = new Row[size];<NEW_LINE>Map<String, Object[]> inNameToObjs = new HashMap<>(inRowFieldNames.length);<NEW_LINE>for (int i = 0; i < inRowFieldNames.length; i++) {<NEW_LINE>inNameToObjs.put(inRowFieldNames[i], extractCols(batchCache, i,...
size() + outputTensorNames.length);
1,275,782
private List<Attribute> processAssertion(Assertion assertion, boolean requireSignature, Collection<String> allowedSamlRequestIds) {<NEW_LINE>if (logger.isTraceEnabled()) {<NEW_LINE>logger.trace("(Possibly decrypted) Assertion: {}", SamlUtils.getXmlContent(assertion, true));<NEW_LINE>logger.trace<MASK><NEW_LINE>}<NEW_LI...
(SamlUtils.describeSamlObject(assertion));
643,245
public static Writable convert(final Object columnValue, final int columnType) {<NEW_LINE>if (columnValue == null)<NEW_LINE>return new NullWritable();<NEW_LINE>switch(columnType) {<NEW_LINE>case Types.BOOLEAN:<NEW_LINE>return new BooleanWritable((boolean) columnValue);<NEW_LINE>case Types.DATE:<NEW_LINE>case Types.TIME...
new IntWritable((int) columnValue);
1,815,817
public double g(double[] w, double[] g) {<NEW_LINE>double f = IntStream.range(0, partitions).parallel().mapToDouble(r -> {<NEW_LINE>double[] gradient = gradients[r];<NEW_LINE>Arrays.fill(gradient, 0.0);<NEW_LINE>int begin = r * partitionSize;<NEW_LINE>int end = (r + 1) * partitionSize;<NEW_LINE>if (end > x.size())<NEW_...
[i] += gradient[i];
1,434,465
private void preserveExistingLineBreaks() {<NEW_LINE>// normally n empty lines = n+1 line breaks, but not at the file start and end<NEW_LINE>Token first = this.tm.get(0);<NEW_LINE>int startingBreaks = first.getLineBreaksBefore();<NEW_LINE>first.clearLineBreaksBefore();<NEW_LINE>first.putLineBreaksBefore(startingBreaks ...
endingBreaks = getLineBreaksToPreserve(last, null);
1,805,008
void emailSpec11Reports(LocalDate date, SoyTemplateInfo soyTemplateInfo, String subject, ImmutableSet<RegistrarThreatMatches> registrarThreatMatchesSet) {<NEW_LINE>ImmutableMap.Builder<RegistrarThreatMatches, Throwable> failedMatchesBuilder = ImmutableMap.builder();<NEW_LINE>for (RegistrarThreatMatches registrarThreatM...
> failedMatches = failedMatchesBuilder.build();