idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
363,365
private void sortIntoLists(Map<String, CtClass> oldClassesMap, Map<String, CtClass> newClassesMap) {<NEW_LINE>for (CtClass oldCtClass : oldClassesMap.values()) {<NEW_LINE>CtClass newCtClass = newClassesMap.get(oldCtClass.getName());<NEW_LINE>if (newCtClass == null) {<NEW_LINE>JApiClassType classType = new JApiClassType...
oldType = ClassHelper.getType(oldCtClass);
273,414
private void prepareForUpdating() {<NEW_LINE>W_deltas = new ArrayList<Matrix>(layersActivation.size());<NEW_LINE>W_updaters = new ArrayList<List<GradientUpdater>>(layersActivation.size());<NEW_LINE>B_deltas = new ArrayList<Vec>(layersActivation.size());<NEW_LINE>B_updaters = new ArrayList<GradientUpdater>(layersActivat...
Matrix[layersActivation.size()];
1,229,266
public String generatePreview(BibEntry originalEntry, BibDatabaseContext databaseContext) {<NEW_LINE>if (error != null) {<NEW_LINE>return error;<NEW_LINE>}<NEW_LINE>// ensure that the entry is of BibTeX format (and do not modify the original entry)<NEW_LINE>BibEntry entry = (BibEntry) originalEntry.clone();<NEW_LINE>ne...
).replaceAll(" +", " ");
1,150,581
public static AssignRolesToUserResponse unmarshall(AssignRolesToUserResponse assignRolesToUserResponse, UnmarshallerContext context) {<NEW_LINE>assignRolesToUserResponse.setRequestId(context.stringValue("AssignRolesToUserResponse.RequestId"));<NEW_LINE>assignRolesToUserResponse.setSuccess(context.booleanValue("AssignRo...
("AssignRolesToUserResponse.User.SkillLevels[" + i + "].Skill.SkillGroupDescription"));
1,203,204
public double configureProcSip(PowerProfile powerProfile, long procJiffies) {<NEW_LINE>if (!powerProfile.isSupported()) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>long jiffySum = 0;<NEW_LINE>for (ListEntry<DigitEntry<Long>> stepJiffies : procCpuCoreStates) {<NEW_LINE>for (DigitEntry<Long> item : stepJiffies.getList()) {<...
double) jiffy / jiffySum) * procJiffies;
779,319
public Float implicitCast(Object value) throws IllegalArgumentException, ClassCastException {<NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>} else if (value instanceof Float) {<NEW_LINE>return (Float) value;<NEW_LINE>} else if (value instanceof String) {<NEW_LINE>return Float.parseFloat((String) value);<...
value + "' to " + getName());
815,274
public static ListAssistHistoryDetailsResponse unmarshall(ListAssistHistoryDetailsResponse listAssistHistoryDetailsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAssistHistoryDetailsResponse.setRequestId(_ctx.stringValue("ListAssistHistoryDetailsResponse.RequestId"));<NEW_LINE>List<ActionsItem> actions = new ArrayL...
("ListAssistHistoryDetailsResponse.Actions[" + i + "].ID"));
894,989
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String publicIpAddressName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
290,483
private Map<String, Action> initActionMap(GCModelLoaderController controller, GCViewerGui gui, Image icon) {<NEW_LINE>Map<String, Action> actions = new TreeMap<String, Action>();<NEW_LINE>actions.put(ActionCommands.EXIT.toString(), new Exit(gui));<NEW_LINE>actions.put(ActionCommands.ABOUT.toString(), new About(gui));<N...
new OpenURL(controller, gui));
1,132,748
private void build(@Nonnull final Iterator<int[]> changedLines) {<NEW_LINE>int[] starts = new int[myCount];<NEW_LINE>int[] ends = new int[myCount];<NEW_LINE>int[] last = new int[myCount];<NEW_LINE>for (int i = 0; i < myCount; i++) {<NEW_LINE>last[i] = Integer.MIN_VALUE;<NEW_LINE>}<NEW_LINE>while (changedLines.hasNext()...
ends[i] = Integer.MAX_VALUE;
1,697,806
public Graph<EntityDescriptor> resolveNativeEntity(EntityDescriptor entityDescriptor) {<NEW_LINE>final MutableGraph<EntityDescriptor> mutableGraph = GraphBuilder<MASK><NEW_LINE>mutableGraph.addNode(entityDescriptor);<NEW_LINE>final ModelId modelId = entityDescriptor.id();<NEW_LINE>try {<NEW_LINE>final GrokPattern grokP...
.directed().build();
1,728,145
final GetEmailIdentityResult executeGetEmailIdentity(GetEmailIdentityRequest getEmailIdentityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEmailIdentityRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetEmailIdentityRequest> ...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
785,304
public okhttp3.Call applicationsApplicationIdKeysKeyTypePutCall(String applicationId, String keyType, ApplicationKeyDTO applicationKeyDTO, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = applicationKeyDTO;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/a...
= new String[] { "OAuth2Security" };
148,883
public ListSecurityProfilesForTargetResult listSecurityProfilesForTarget(ListSecurityProfilesForTargetRequest listSecurityProfilesForTargetRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSecurityProfilesForTargetRequest);<NEW_LINE>A...
awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
1,368,161
public static void main(String[] args) {<NEW_LINE>final ConfigBuilder configBuilder = new ConfigBuilder();<NEW_LINE>if (args.length > 0) {<NEW_LINE>configBuilder.withMasterUrl(args[0]);<NEW_LINE>}<NEW_LINE>try (KubernetesClient client = new KubernetesClientBuilder().withConfig(configBuilder.build()).build()) {<NEW_LINE...
(namespace).get());
1,586,122
public void invokeAsync(String addr, RemotingCommand request, long timeoutMillis, InvokeCallback invokeCallback) throws InterruptedException, RemotingConnectException, RemotingTooMuchRequestException, RemotingTimeoutException, RemotingSendRequestException {<NEW_LINE>long beginStartTime = System.currentTimeMillis();<NEW...
= System.currentTimeMillis() - beginStartTime;
508,895
private static MultiHandlerEnhancerDefinition findDelegates(ClassLoader classLoader) {<NEW_LINE>Iterator<HandlerEnhancerDefinition> iterator = load(HandlerEnhancerDefinition.class, classLoader == null ? Thread.currentThread().getContextClassLoader() : classLoader).iterator();<NEW_LINE>// noinspection WhileLoopReplaceab...
"HandlerEnhancerDefinition instance ignored. It relies on a class that cannot be found: {}", e.getMessage());
842,241
private static void addToBuilder(Zone zone, DateTimeZoneBuilder builder, Map<String, RuleSet> ruleSets) {<NEW_LINE>for (; zone != null; zone = zone.iNext) {<NEW_LINE>builder.setStandardOffset(zone.iOffsetMillis);<NEW_LINE>if (zone.iRules == null) {<NEW_LINE>builder.<MASK><NEW_LINE>} else {<NEW_LINE>try {<NEW_LINE>// Ch...
setFixedSavings(zone.iFormat, 0);
1,205,371
public GetSchemaAsJsonResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetSchemaAsJsonResult getSchemaAsJsonResult = new GetSchemaAsJsonResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
int originalDepth = context.getCurrentDepth();
1,550,549
public static void main(String[] args) throws Exception {<NEW_LINE>for (int i = 0; i < args.length; i++) {<NEW_LINE>AudioInputStream inputAudio = AudioSystem.getAudioInputStream(new <MASK><NEW_LINE>int samplingRate = (int) inputAudio.getFormat().getSampleRate();<NEW_LINE>AudioDoubleDataSource signal = new AudioDoubleDa...
File(args[i]));
600,376
public void benchmarkCglib(Blackhole blackHole) {<NEW_LINE>blackHole.consume(cglibInstance.method(booleanValue));<NEW_LINE>blackHole.consume(cglibInstance.method(byteValue));<NEW_LINE>blackHole.consume(cglibInstance.method(shortValue));<NEW_LINE>blackHole.consume(cglibInstance.method(intValue));<NEW_LINE>blackHole.cons...
(floatValue, floatValue, floatValue));
963,178
public Description matchMethod(MethodTree tree, VisitorState state) {<NEW_LINE>if (!tree.getName().equals(PROCESS_NAME.get(state))) {<NEW_LINE>return NO_MATCH;<NEW_LINE>}<NEW_LINE>MethodSymbol sym = ASTHelpers.getSymbol(tree);<NEW_LINE>if (!ASTHelpers.isSameType(sym.getReturnType(), state.getSymtab().booleanType, state...
super.visitReturn(node, null);
1,073,446
public ImageDataOp build(ImageData<BufferedImage> imageData, PixelCalibration resolution) {<NEW_LINE>if (selectedFeatures == null || selectedSigmas == null)<NEW_LINE>throw new IllegalArgumentException("Features and scales must be selected!");<NEW_LINE>// Extract features, removing any that are incompatible<NEW_LINE>Mul...
ops = new ArrayList<>();
1,012,709
private void drawCardinalDirections(Canvas canvas, QuadPoint center, float radiusLength, RotatedTileBox tileBox, RenderingLineAttributes attrs) {<NEW_LINE>float textMargin = <MASK><NEW_LINE>attrs.paint2.setTextAlign(Paint.Align.CENTER);<NEW_LINE>attrs.paint3.setTextAlign(Paint.Align.CENTER);<NEW_LINE>setAttrsPaintsType...
AndroidUtils.dpToPx(app, 14);
1,487,079
public void load() {<NEW_LINE>ExUtil.asyncRun(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>MapPack out = null;<NEW_LINE>final List<HeapHistoData> datas = new ArrayList<HeapHistoData>();<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW...
= getCanonicalName(tokens[3]);
1,228,168
public void invoke(FunqyServerRequest request, FunqyServerResponse response) {<NEW_LINE>Object[] args = null;<NEW_LINE>if (parameterInjectors != null) {<NEW_LINE>args = new Object[parameterInjectors.size()];<NEW_LINE>int i = 0;<NEW_LINE>for (ValueInjector injector : parameterInjectors) {<NEW_LINE>args[i++] = injector.e...
method.invoke(target, args);
907,332
public static PyObject compile(PyObject source, String filename, CompileMode kind, CompilerFlags cflags, boolean dont_inherit) {<NEW_LINE>cflags = Py.getCompilerFlags(cflags, dont_inherit);<NEW_LINE>mod ast = py2node(source);<NEW_LINE>if (ast == null) {<NEW_LINE>if (!(source instanceof PyString)) {<NEW_LINE>throw Py.Ty...
ast, filename, kind, cflags);
1,141,750
private void convertToDomain(ItemGroup pmItem, List<RequestContainer> requests, List<Folder> folders, Folder curFolder) {<NEW_LINE>if (pmItem.getItem() != null) {<NEW_LINE>// it is a folder<NEW_LINE>Folder folder = new Folder(UUID.randomUUID().toString(), pmItem.getName(), new LinkedList<>(), new LinkedList<>());<NEW_L...
.getFolders(), folder));
565,049
public static GoConfigDao createTestingDao() {<NEW_LINE>SystemEnvironment systemEnvironment = new SystemEnvironment();<NEW_LINE>try {<NEW_LINE>MaintenanceModeService maintenanceModeService = new MaintenanceModeService(new TimeProvider(), systemEnvironment);<NEW_LINE>ServerHealthService serverHealthService = new ServerH...
dataSource, cachedGoPartials, null, maintenanceModeService);
846,668
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {<NEW_LINE>cleanUpInferenceContexts();<NEW_LINE>if (!valueRequired)<NEW_LINE>currentScope.problemReporter().unusedObjectAllocation(this);<NEW_LINE>int pc = codeStream.position;<NEW_LINE>MethodBinding codegenBinding = this.bi...
generateSyntheticOuterArgumentValues(currentScope, allocatedType, this);
535,336
public com.amazonaws.services.glacier.model.InsufficientCapacityException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.glacier.model.InsufficientCapacityException insufficientCapacityException = new com.amazonaws.services.glacier.model.InsufficientCapacityExc...
class).unmarshall(context));
719,632
private void buildMSCPServiceComponents(MonitorDataFrame mdf, Map<String, Object> pi, String appid, Map<String, Set<String>> compServices) {<NEW_LINE>// http comp<NEW_LINE>Map<String, Object> mscpHttp = mdf.getElemInstValues(appid, "cpt", "com.creditease.agent.spi.AbstractBaseHttpServComponent");<NEW_LINE>if (mscpHttp ...
String) handlerInfo.get("path");
1,034,814
private void updateResult() {<NEW_LINE>String cssName = shouldCreateCSS() ? getNewCSSName() : getExistingCSSName();<NEW_LINE>if (cssName == null) {<NEW_LINE>fileTextField.setText(null);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (shouldCreateCSS()) {<NEW_LINE>final Object selectedItem = createdLocationComboBox.getSelected...
g = (SourceGroupSupport.SourceGroupProxy) selectedItem;
1,498,084
private void createUserClass() {<NEW_LINE>schema.createEAttribute(user, "name", ecorePackage.getEString(), Multiplicity.SINGLE);<NEW_LINE>schema.createEAttribute(user, "passwordHash", ecorePackage.getEByteArray(), Multiplicity.SINGLE);<NEW_LINE>schema.createEAttribute(user, "passwordSalt", ecorePackage.<MASK><NEW_LINE>...
getEByteArray(), Multiplicity.SINGLE);
519,933
// Verify that it is not possible to cancel tasks that are done.<NEW_LINE>@Test<NEW_LINE>public void testCancelAfterDone() throws Exception {<NEW_LINE>PolicyExecutor executor = provider.create("testCancelAfterDone");<NEW_LINE>Future<Integer> successfulFuture = executor.submit((Callable<Integer>) new SharedIncrementTask...
>) new SharedIncrementTask(null));
1,627,798
public void shareQR() {<NEW_LINE>logDebug("shareQR");<NEW_LINE>if (myCodeFragment == null) {<NEW_LINE>logWarning("MyCodeFragment is NULL");<NEW_LINE>myCodeFragment = (MyCodeFragment) qrCodePageAdapter.instantiateItem(viewPagerQRCode, 0);<NEW_LINE>}<NEW_LINE>if (myCodeFragment != null && myCodeFragment.isAdded()) {<NEW_...
android.content.Intent.ACTION_SEND);
713,142
public void executeSimulationStep() throws Exception {<NEW_LINE>if (cityDetector == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SumoVehicleData vehData = (SumoVehicleData) conn.do_job_get(Inductionloop.getVehicleData(name));<NEW_LINE>for (SumoVehicleData.VehicleData d : vehData.ll) {<NEW_LINE>DLRLogger.finest(this, St...
.addFlanke((int) entryTime);
1,301,682
public void drawBackground(@Nonnull PoseStack matrix, int mouseX, int mouseY, float partialTicks) {<NEW_LINE>super.drawBackground(matrix, mouseX, mouseY, partialTicks);<NEW_LINE>matrix.pushPose();<NEW_LINE>// TODO: Figure out why we need a translation of 1 to fix the text intersecting for the dictionary but it works ju...
options[i].getIcon();
1,002,893
protected void initView(Bundle savedInstanceState) {<NEW_LINE>super.initView(savedInstanceState);<NEW_LINE>updateEndDrawerContent(R.menu.drawer_menu_issues);<NEW_LINE>setToolbarScrollAble(true);<NEW_LINE>setToolbarBackEnable();<NEW_LINE>if (IssuesFilter.Type.Repo.equals(issuesType)) {<NEW_LINE>setToolbarTitle(getString...
.nav_type_chooser).setVisible(false);
1,044,551
public Mono<Void> disposeLater(Duration quietPeriod, Duration timeout) {<NEW_LINE>return Mono.defer(() -> {<NEW_LINE>long quietPeriodMillis = quietPeriod.toMillis();<NEW_LINE>long timeoutMillis = timeout.toMillis();<NEW_LINE>EventLoopGroup serverLoopsGroup = serverLoops.get();<NEW_LINE><MASK><NEW_LINE>EventLoopGroup se...
EventLoopGroup clientLoopsGroup = clientLoops.get();
1,528,513
public Node visit(final VariableDeclarationExpr n, final A arg) {<NEW_LINE>final List<AnnotationExpr<MASK><NEW_LINE>if (annotations != null) {<NEW_LINE>for (int i = 0; i < annotations.size(); i++) {<NEW_LINE>annotations.set(i, (AnnotationExpr) annotations.get(i).accept(this, arg));<NEW_LINE>}<NEW_LINE>removeNulls(annot...
> annotations = n.getAnnotations();
1,546,131
private void onHandleConnectionRequested(UserConnectionCallback userConnectionCallback, String endpointId, ConnectionInfo connectionInfo) {<NEW_LINE>Log.i(TAG, String.format("onConnectionRequested called: userName=%s userId=%s", connectionInfo.getEndpointName(), endpointId));<NEW_LINE>// check if connection is incoming...
Log.d(TAG, "Not incoming connection");
287,545
public void testSubList_lastIndexOf() {<NEW_LINE>List<E> list = getList();<NEW_LINE>int size = list.size();<NEW_LINE>List<E> copy = list.subList(0, size);<NEW_LINE>List<E> head = list.subList(0, size - 1);<NEW_LINE>List<E> tail = list.subList(1, size);<NEW_LINE>assertEquals(size - 1, copy.lastIndexOf(list.get(size - 1)...
get(size - 2)));
1,028,155
private LookupValue convertRawFieldValueToLookupValue(final Object fieldValue) {<NEW_LINE>if (fieldValue == null) {<NEW_LINE>return null;<NEW_LINE>} else if (fieldValue instanceof LookupValue) {<NEW_LINE>return (LookupValue) fieldValue;<NEW_LINE>} else if (fieldValue instanceof LocalDate) {<NEW_LINE>final LocalDate dat...
, TranslatableStrings.date(date));
653,851
public ResponseEntity<?> listRecordings() {<NEW_LINE>log.info("REST API: GET {}/recordings", RequestMappings.API);<NEW_LINE>if (!this.openviduConfig.isRecordingModuleEnabled()) {<NEW_LINE>// OpenVidu Server configuration property "OPENVIDU_RECORDING" is set to false<NEW_LINE>return new ResponseEntity<>(HttpStatus.NOT_I...
= this.recordingManager.getAllRecordings();
341,559
public static void registerType(final ModelBuilder modelBuilder) {<NEW_LINE>final ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(BpmnShape.class, BPMNDI_ELEMENT_BPMN_SHAPE).namespaceUri(BPMNDI_NS).extendsType(LabeledShape.class).instanceProvider(new ModelTypeInstanceProvider<BpmnShape>() {<NEW_LINE><NEW_...
booleanAttribute(BPMNDI_ATTRIBUTE_IS_MARKER_VISIBLE).build();
1,034,598
public <K, V> Map<K, V> toMap(DataTable dataTable, Type keyType, Type valueType) {<NEW_LINE>requireNonNull(dataTable, "dataTable may not be null");<NEW_LINE>requireNonNull(keyType, "keyType may not be null");<NEW_LINE>requireNonNull(valueType, "valueType may not be null");<NEW_LINE>if (dataTable.isEmpty()) {<NEW_LINE>r...
keyType, keys, valueType, values);
1,126,724
private static void validateBootstrapLabelsAndAnnotations(Set<String> errors, GenericKafkaListener listener) {<NEW_LINE>if (!KafkaListenerType.LOADBALANCER.equals(listener.getType()) && !KafkaListenerType.NODEPORT.equals(listener.getType()) && !KafkaListenerType.ROUTE.equals(listener.getType()) && !KafkaListenerType.IN...
listener.getName() + " cannot configure bootstrap.annotations because it is not LoadBalancer, NodePort, Route, or Ingress based listener");
305,808
public TypeSpec generate(DiffSectionSpecModel specModel, EnumSet<RunMode> runMode) {<NEW_LINE>final TypeSpec.Builder typeSpec = TypeSpec.classBuilder(specModel.getComponentName()).superclass(SectionClassNames.SECTION).addTypeVariables(specModel.getTypeVariables());<NEW_LINE>if (SpecModelUtils.isTypeElement(specModel)) ...
typeSpec.addModifiers(Modifier.FINAL);
1,832,861
final DeregisterRdsDbInstanceResult executeDeregisterRdsDbInstance(DeregisterRdsDbInstanceRequest deregisterRdsDbInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deregisterRdsDbInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
(super.beforeMarshalling(deregisterRdsDbInstanceRequest));
1,425,040
public static void main(String[] args) {<NEW_LINE>Exercise22 exercise22 = new Exercise22();<NEW_LINE>Point2D point2D = exercise22.new Point2D(20, 13);<NEW_LINE>StdOut.println("Point 2D hash code: " + point2D.hashCode());<NEW_LINE>Interval interval = exercise22<MASK><NEW_LINE>StdOut.println("Interval hash code: " + inte...
.new Interval(1, 999);
1,725,049
// OPERATIONS<NEW_LINE>public QueuedMessage[] listQueuedMessages() throws Exception {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "listQueuedMessages");<NEW_LINE>List list = new ArrayList();<NEW_LINE><MASK><NEW_LINE>while (iter != null && iter.hasNext()) {<NEW_LINE...
Iterator iter = _c.getQueuedMessageIterator();
1,826,701
private <T> void writeObjectArrayField(@Nonnull String fieldName, FieldType fieldType, @Nullable T[] values, Writer<ObjectDataOutput, T> writer) throws IOException {<NEW_LINE>setPosition(fieldName, fieldType);<NEW_LINE>final int len = values == null ? NULL_ARRAY_LENGTH : values.length;<NEW_LINE>out.writeInt(len);<NEW_L...
int position = out.position();
1,834,970
static public MPrintFormat createFromTable(Properties ctx, int AD_Table_ID, int AD_PrintFormat_ID) {<NEW_LINE>MClient company = MClient.get(ctx);<NEW_LINE>s_log.info("AD_Table_ID=" + AD_Table_ID + " - AD_Client_ID=" + company.get_ID());<NEW_LINE>MPrintFormat pf = new MPrintFormat(ctx, AD_PrintFormat_ID, null);<NEW_LINE...
TableName = rs.getString(1);
980,254
// http://download.oracle.com/javase/1.3/docs/guide/rmi/spec/rmi-protocol.html<NEW_LINE>public static void main(String[] args) throws Exception {<NEW_LINE>FileOutputStream fos = new FileOutputStream("build/rmipacket");<NEW_LINE>ServerSocket ss = new ServerSocket(11099);<NEW_LINE>Thread t = new Thread(new Runnable() {<N...
DataInputStream(s.getInputStream());
1,760,160
protected Collection<Declarable> processListener(MethodRabbitListenerEndpoint endpoint, RabbitListener rabbitListener, Object bean, Object target, String beanName) {<NEW_LINE>final List<Declarable> declarables = new ArrayList<>();<NEW_LINE>endpoint.setBean(bean);<NEW_LINE>endpoint.setMessageHandlerMethodFactory(this.me...
String group = rabbitListener.group();
1,596,400
private Integer parseLength(String attrValue, CSSName property, Box box, CssContext ctx) {<NEW_LINE>try {<NEW_LINE>return Integer.valueOf(attrValue);<NEW_LINE>} catch (NumberFormatException e) {<NEW_LINE>// Not a plain number, probably has a unit (px, cm, etc), so<NEW_LINE>// try with css parser.<NEW_LINE>CSSParser par...
).getWidth(), ctx);
1,157,292
private void executeInitSql(final String initSql) {<NEW_LINE>if (_logger.isLoggable(Level.FINE)) {<NEW_LINE>_logger.log(Level.FINE, "jdbc.execute_init_sql_start");<NEW_LINE>}<NEW_LINE>java.sql.PreparedStatement stmt = null;<NEW_LINE>if (initSql != null && !initSql.equalsIgnoreCase("null") && !initSql.equals("")) {<NEW_...
"jdbc.exc_init_sql_error_stmt_close", e.getMessage());
749,366
public void syncObjects(Object... objects) {<NEW_LINE>if (vm == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Event[] events = new Event[objects.length];<NEW_LINE>for (int i = 0; i < objects.length; i++) {<NEW_LINE>Object object = objects[i];<NEW_LINE>events<MASK><NEW_LINE>}<NEW_LINE>for (Event e : events) {<NEW_LINE>e....
[i] = syncObjectInner(object);
794,215
public void startElement(final String uri, final String localName, final String qName, final Attributes attributes) throws SAXException {<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("Start Element: {}", qName);<NEW_LINE>}<NEW_LINE>if (tagQueue.isEmpty() && !"eef".equalsIgnoreCase(qName)) {<NEW_LINE>th...
new String[] { "Rguest" });
1,797,317
public boolean canScan(TCredentials credentials, TableId tableId, NamespaceId namespaceId, TRange range, List<TColumn> columns, List<IterInfo> ssiList, Map<String, Map<String, String>> ssio, List<ByteBuffer> authorizations) throws ThriftSecurityException {<NEW_LINE>if (shouldAudit(credentials, tableId)) {<NEW_LINE>Rang...
convertedRange, convertedColumns, ssiList, ssio);
1,364,908
public List<ViewAttribute> collect(DrawerLayout view, AttributeTranslator attributeTranslator) {<NEW_LINE>List<ViewAttribute> attributes = new ArrayList<>();<NEW_LINE>attributes.add(new ViewAttribute<>("DrawerElevation"<MASK><NEW_LINE>attributes.add(new ViewAttribute<>("DrawerTitleStart", view.getDrawerTitle(Gravity.ST...
, view.getDrawerElevation()));
1,542,756
public JSArrayObject execute(VirtualFrame frame) {<NEW_LINE>Object[] primitiveArray = new Object[elements.length];<NEW_LINE>int holeCount = 0;<NEW_LINE>int holesBeforeLastNonEmpty = 0;<NEW_LINE>int arrayOffset = 0;<NEW_LINE>int lastNonEmpty = -1;<NEW_LINE>for (int i = 0; i < elements.length; i++) {<NEW_LINE>if (element...
primitiveArray, usedLength, arrayOffset, holesInUsedLength);
1,786,440
public void skipValue() {<NEW_LINE>switch(peek()) {<NEW_LINE>case ENCODED_BYTE:<NEW_LINE>readByte();<NEW_LINE>break;<NEW_LINE>case ENCODED_SHORT:<NEW_LINE>readShort();<NEW_LINE>break;<NEW_LINE>case ENCODED_CHAR:<NEW_LINE>readChar();<NEW_LINE>break;<NEW_LINE>case ENCODED_INT:<NEW_LINE>readInt();<NEW_LINE>break;<NEW_LINE...
+ Integer.toHexString(type));
1,411,961
public MatchmakingRuleSet unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MatchmakingRuleSet matchmakingRuleSet = new MatchmakingRuleSet();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken t...
int originalDepth = context.getCurrentDepth();
298,196
public void run() {<NEW_LINE>// init remoting server<NEW_LINE>NettyServerConfig serverConfig = new NettyServerConfig();<NEW_LINE>serverConfig.setListenPort(workerConfig.getListenPort());<NEW_LINE>this.nettyRemotingServer = new NettyRemotingServer(serverConfig);<NEW_LINE>this.nettyRemotingServer.registerProcessor(Comman...
= this.workerRegistryClient.getWorkerZkPaths();
1,044,943
public AbstractFile attachDatabase(DataSource dataSource, String dbName, String dbPath, String dbAlias) throws SQLException {<NEW_LINE>try {<NEW_LINE>// find and copy DB files with exact name and path.<NEW_LINE>Collection<AppSQLiteDBFileBundle> dbFileBundles = findAndCopySQLiteDB(dataSource, <MASK><NEW_LINE>if (!dbFile...
dbName, true, dbPath, true);
1,036,226
protected List<Suggestion> requestHint(SourceCodeEditor sender, String text, int senderCursorPosition) {<NEW_LINE>String joinStr = joinField.getValue();<NEW_LINE>String whereStr = whereField.getValue();<NEW_LINE>// CAUTION: the magic entity name! The length is three character to match "{E}" length in query<NEW_LINE>St...
String query = queryBuilder.toString();
108,486
private void registerPrimaryVmHeartbeat(RegisterColoPrimaryCheckMsg msg, NoErrorCompletion completion) {<NEW_LINE>RegisterPrimaryVmHeartbeatCmd cmd = new RegisterPrimaryVmHeartbeatCmd();<NEW_LINE>cmd.<MASK><NEW_LINE>cmd.setVmInstanceUuid(msg.getVmInstanceUuid());<NEW_LINE>cmd.setHeartbeatPort(msg.getHeartbeatPort());<N...
setHostUuid(msg.getHostUuid());
885,370
public final void update(EventBean[] newData, EventBean[] oldData) {<NEW_LINE>agentInstanceContext.getAuditProvider().view(<MASK><NEW_LINE>agentInstanceContext.getInstrumentationProvider().qViewProcessIRStream(lengthFirstFactory, newData, oldData);<NEW_LINE>OneEventCollection newDataToPost = null;<NEW_LINE>OneEventColl...
newData, oldData, agentInstanceContext, lengthFirstFactory);
1,386,163
public void dropPartition(MetastoreContext metastoreContext, String databaseName, String tableName, List<String> parts, boolean deleteData) {<NEW_LINE>Table table = getTableOrElseThrow(metastoreContext, databaseName, tableName);<NEW_LINE>Partition partition = getPartition(metastoreContext, databaseName, tableName, part...
.getStorage().getLocation();
1,813,872
public Result apply(AggregationNode node, Captures captures, Context context) {<NEW_LINE>checkState(node.getSource() != null);<NEW_LINE>boolean changed = false;<NEW_LINE>ImmutableMap.Builder<VariableReferenceExpression, AggregationNode<MASK><NEW_LINE>for (Map.Entry<VariableReferenceExpression, AggregationNode.Aggregati...
.Aggregation> rewrittenAggregation = builder();
930,765
public final JsonmembersContext jsonmembers() throws RecognitionException {<NEW_LINE>JsonmembersContext _localctx = new JsonmembersContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 522, RULE_jsonmembers);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>int _alt;<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LIN...
adaptivePredict(_input, 469, _ctx);
1,235,003
public void encodeTerm(DataOutput out, FieldInfo fieldInfo, BlockTermState _state, boolean absolute) throws IOException {<NEW_LINE>IntBlockTermState state = (IntBlockTermState) _state;<NEW_LINE>if (absolute) {<NEW_LINE>lastState = emptyState;<NEW_LINE>assert lastState.docStartFP == 0;<NEW_LINE>}<NEW_LINE>if (lastState....
out.writeVLong(state.lastPosBlockOffset);
230,132
private RelNode aggregateCorrelatorOutput(Correlate correlate, Project project, Set<Integer> isCount) {<NEW_LINE>final RelNode left = correlate.getLeft();<NEW_LINE>final JoinRelType joinType = correlate.getJoinType();<NEW_LINE>// now create the new project<NEW_LINE>final List<Pair<RexNode, String>> newProjects = new Ar...
.getRowType().getFieldList();
94,749
public void testPurgeMaxSize_3() throws Exception {<NEW_LINE>RemoteFile binaryLogDir = null;<NEW_LINE>RemoteFile binaryTraceDir = null;<NEW_LINE>NumberFormat nf = NumberFormat.getInstance();<NEW_LINE>server.updateServerConfiguration(new File(server.pathToAutoFVTTestFiles, "server-HPELPurgeMaxSizeTest_2.xml"));<NEW_LINE...
200 * 1024 * 1024) / 200;
416,506
public void filterWsdlRequest(SubmitContext context, WsdlRequest wsdlRequest) {<NEW_LINE>HttpRequest postMethod = (HttpRequest) context.getProperty(BaseHttpRequestTransport.HTTP_METHOD);<NEW_LINE>WsdlInterface wsdlInterface = (WsdlInterface) wsdlRequest.getOperation().getInterface();<NEW_LINE>// init content-type and e...
soapActionHeader = soapVersion.getSoapActionHeader(soapAction);
252,757
int forceVariation(int poolSize, int calculatedAdjustment, long intervalCompleted, boolean lowActivity) {<NEW_LINE>// 08/08/2012: Count intervals without change<NEW_LINE>if (calculatedAdjustment == 0 && intervalCompleted != 0) {<NEW_LINE>consecutiveNoAdjustment++;<NEW_LINE>} else {<NEW_LINE>consecutiveNoAdjustment = 0;...
"force variation", (" forced increase: " + forcedAdjustment));
1,634,753
public static ListQualityRulesResponse unmarshall(ListQualityRulesResponse listQualityRulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listQualityRulesResponse.setRequestId(_ctx.stringValue("ListQualityRulesResponse.RequestId"));<NEW_LINE>listQualityRulesResponse.setHttpStatusCode(_ctx.integerValue("ListQualityRules...
("ListQualityRulesResponse.Data.Rules[" + i + "].TableName"));
1,485,694
public void onNewUser(User user) {<NEW_LINE>// New user, direct them to create an account with email/password<NEW_LINE>// if account creation is enabled in SignInIntentBuilder<NEW_LINE>TextInputLayout emailLayout = findViewById(R.id.email_layout);<NEW_LINE>AuthUI.IdpConfig emailConfig = ProviderUtils.getConfigFromIdps(...
(R.string.fui_error_email_does_not_exist));
368,564
public JSDynamicObject round(Object thisObj, Object roundToParam, @Cached("create()") JSToNumberNode toNumber, @Cached TruffleString.EqualNode equalNode) {<NEW_LINE>JSTemporalInstantObject instant = requireTemporalInstant(thisObj);<NEW_LINE>if (roundToParam == Undefined.instance) {<NEW_LINE>throw TemporalErrors.createT...
TemporalUtil.listYMWD, null, equalNode);
1,068,017
public void reportInvalidOptions(EventHandler reporter, BuildOptions buildOptions) {<NEW_LINE>PythonOptions pythonOpts = <MASK><NEW_LINE>Options opts = buildOptions.get(Options.class);<NEW_LINE>if (pythonOpts.incompatibleUsePythonToolchains) {<NEW_LINE>// Forbid deprecated flags.<NEW_LINE>if (opts.python2Path != null) ...
buildOptions.get(PythonOptions.class);
812,749
private JsonDeserializer<Object> _findDelegateDeserializer(DeserializationContext ctxt, JavaType delegateType, AnnotatedWithParams delegateCreator) throws JsonMappingException {<NEW_LINE>// Need to create a temporary property to allow contextual deserializers:<NEW_LINE>BeanProperty.Std property = new BeanProperty.Std(T...
TypeDeserializer td = delegateType.getTypeHandler();
181,379
public ExecutionListener parseExecutionListener(Element executionListenerElement, String ancestorElementId) {<NEW_LINE>ExecutionListener executionListener = null;<NEW_LINE>String className = executionListenerElement.attribute(PROPERTYNAME_CLASS);<NEW_LINE>String expression = executionListenerElement.attribute(PROPERTYN...
executionListenerElement.elementNS(CAMUNDA_BPMN_EXTENSIONS_NS, "script");
1,201,822
public Result process(CvPipeline pipeline) throws Exception {<NEW_LINE>Mat mat = pipeline.getWorkingImage();<NEW_LINE>List<Point> points = new ArrayList<>();<NEW_LINE>byte[] rowData = new byte[mat.cols()];<NEW_LINE>for (int row = 0, rows = mat.rows(); row < rows; row++) {<NEW_LINE>mat.<MASK><NEW_LINE>for (int col = 0, ...
get(row, 0, rowData);
1,086,070
public HollowHashIndexResult findMatches(Object... query) {<NEW_LINE>int hashCode = 0;<NEW_LINE>for (int i = 0; i < query.length; i++) {<NEW_LINE>if (query[i] == null)<NEW_LINE>throw new IllegalArgumentException("querying by null unsupported; i=" + i);<NEW_LINE>hashCode ^= HashCodes.hashInt(keyHashCode(query[i], i));<N...
= hashCode & hashState.getMatchHashMask();
1,613,102
@Produces({ MediaType.APPLICATION_JSON })<NEW_LINE>@Operation(operationId = "deleteServiceConfig", summary = "Deletes a service configuration for given service ID and returns the old configuration.", responses = { @ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation ...
oldConfiguration = configurationService.get(serviceId);
177,763
void drawAverage(Graphics g) {<NEW_LINE>ScopePlot plot = visiblePlots.firstElement();<NEW_LINE>int i;<NEW_LINE>double avg = 0;<NEW_LINE>int ipa = plot.ptr + scopePointCount - rect.width;<NEW_LINE>double[] maxV = plot.maxValues;<NEW_LINE>double[] minV = plot.minValues;<NEW_LINE>double mid = (maxValue + minValue) / 2;<NE...
ipa) & (scopePointCount - 1);
1,666,064
public void filter(String url, byte[] content, DocumentFragment doc, ParseResult parse) {<NEW_LINE>// check whether the metadata already contains a lang value<NEW_LINE>// in which case we normalise its value and use it<NEW_LINE>Metadata m = parse.get(url).getMetadata();<NEW_LINE>String extractedValue = m.getFirstValue(...
text.substring(0, maxTextLength);
1,123,540
private AuthnRequest createAuthnRequest(Saml2AuthenticationRequestContext context) {<NEW_LINE>String issuer = context.getIssuer();<NEW_LINE>String destination = context.getDestination();<NEW_LINE>String assertionConsumerServiceUrl = context.getAssertionConsumerServiceUrl();<NEW_LINE>Saml2MessageBinding protocolBinding ...
this.protocolBindingResolver.convert(context);
1,737,911
private void extractPoiAdditionals(Collection<PoiType> poiAdditionals, Map<String, List<PoiType>> additionalsMap, Set<String> excludedPoiAdditionalCategories, boolean extractAll) {<NEW_LINE>for (PoiType poiType : poiAdditionals) {<NEW_LINE>String category = poiType.getPoiAdditionalCategory();<NEW_LINE>if (category == n...
adds = additionalsMap.get(category);
1,535,749
public IStatus switchBranch(String branchName, IProgressMonitor monitor) {<NEW_LINE>if (branchName == null) {<NEW_LINE>return new Status(IStatus.ERROR, GitPlugin.PLUGIN_ID, Messages.GitRepository_ERR_BranchNotProvided);<NEW_LINE>}<NEW_LINE>SubMonitor sub = SubMonitor.convert(monitor, 4);<NEW_LINE>try {<NEW_LINE>// Befo...
, sub.newChild(1));
414,733
final private static DirContext syntaxDescs2SyntaxDefs(Attribute syntaxDescAttr, LdapSchemaCtx schemaRoot) throws NamingException {<NEW_LINE>NamingEnumeration<?> syntaxDescs;<NEW_LINE>Attributes syntaxDef;<NEW_LINE>LdapSchemaCtx syntaxDefTree;<NEW_LINE>// create the SyntaxDef subtree<NEW_LINE>Attributes attrs = new Bas...
(String) syntaxDescs.next();
583,874
public WordprocessingMLPackage preprocess() throws Docx4JException {<NEW_LINE>Set<ContentAccessor> partList = getParts(wordMLPackage);<NEW_LINE>// Process repeats and conditionals.<NEW_LINE>try {<NEW_LINE>for (ContentAccessor part : partList) {<NEW_LINE>new TraversalUtil(part, shallowTraversor);<NEW_LINE>}<NEW_LINE>} c...
addAll(conditionsMap.values());
580,110
public void process(Version indexCreatedVersion, @Nullable MappingMetadata mappingMd, String concreteIndex) {<NEW_LINE>if (mappingMd != null) {<NEW_LINE>// might as well check for routing here<NEW_LINE>if (mappingMd.routingRequired() && routing == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>if ("".equals(id)...
throw new RoutingMissingException(concreteIndex, id);
1,069,887
final DecreaseStreamRetentionPeriodResult executeDecreaseStreamRetentionPeriod(DecreaseStreamRetentionPeriodRequest decreaseStreamRetentionPeriodRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(decreaseStreamRetentionPeriodRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,779,527
public ListHumanTaskUisResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListHumanTaskUisResult listHumanTaskUisResult = new ListHumanTaskUisResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
JsonToken token = context.getCurrentToken();
1,334,725
public PMarkdownOptions addEmojiExtension(@Arg(type = HintType.ARRAY) @Optional("null") Memory options) {<NEW_LINE>parserExtensions.add(EmojiExtension.create());<NEW_LINE>Memory imageType = options.valueOfIndex("imageType");<NEW_LINE>if (!imageType.isNull()) {<NEW_LINE>this.options.set(EmojiExtension.USE_IMAGE_TYPE, Em...
(shortcutType.toString()));
1,268,845
private TreeItem<Object> findOrCreateTreeItem(final TreeItem<Object> parent, final Object value) {<NEW_LINE>ObservableList<TreeItem<Object><MASK><NEW_LINE>TreeItem<Object> found = null;<NEW_LINE>int placeToInsert = 0;<NEW_LINE>boolean foundInsertPos = false;<NEW_LINE>for (TreeItem<Object> child : children) {<NEW_LINE>i...
> children = parent.getChildren();
84,934
static void compileInternal(ModuleContext moduleContext, CompilerContext compilerContext) {<NEW_LINE>PackageID moduleCompilationId = moduleContext<MASK><NEW_LINE>String bootstrapLangLibName = System.getProperty("BOOTSTRAP_LANG_LIB");<NEW_LINE>if (bootstrapLangLibName != null) {<NEW_LINE>moduleContext.bootstrap.loadLang...
.descriptor().moduleCompilationId();