idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
480,573
public PTrailer loadTrailer(long position) {<NEW_LINE>PTrailer trailer = null;<NEW_LINE>try {<NEW_LINE>if (seekableInput != null) {<NEW_LINE>seekableInput.beginThreadAccess();<NEW_LINE><MASK><NEW_LINE>seekableInput.seekAbsolute(position);<NEW_LINE>Parser parser = new Parser(seekableInput);<NEW_LINE>Object obj = parser....
long savedPosition = seekableInput.getAbsolutePosition();
1,066,379
public final Object invoke(MethodInvocation invocation) throws Throwable {<NEW_LINE>Object result = invocation.proceed();<NEW_LINE>Method method = invocation.getMethod();<NEW_LINE>Object invocationThis = invocation.getThis();<NEW_LINE>Object[<MASK><NEW_LINE>boolean isReactiveMethod = method.getName().equals("handleRequ...
] arguments = invocation.getArguments();
968,618
private RolloverResult rolloverDataStream(ClusterState currentState, IndexAbstraction.DataStream dataStream, String dataStreamName, CreateIndexRequest createIndexRequest, List<Condition<?>> metConditions, boolean silent, boolean onlyValidate) throws Exception {<NEW_LINE>lookupTemplateForDataStream(dataStreamName, curre...
createIndexService.validateIndexName(newWriteIndexName, currentState);
936,416
private void retryFramework(FrameworkStatus frameworkStatus, RetryPolicyState newRetryPolicyState) throws Exception {<NEW_LINE>String frameworkName = frameworkStatus.getFrameworkName();<NEW_LINE>Integer frameworkVersion = frameworkStatus.getFrameworkVersion();<NEW_LINE>String logPrefix = String.<MASK><NEW_LINE>// Ensur...
format("[%s][%s]: retryFramework: ", frameworkName, frameworkVersion);
53,908
private void encodeHeader(ByteBuf out, CharSequence name, CharSequence value, boolean sensitive, long headerSize) {<NEW_LINE>// If the header value is sensitive then it must never be indexed<NEW_LINE>if (sensitive) {<NEW_LINE>int nameIndex = getNameIndex(name);<NEW_LINE>encodeLiteral(out, name, value, IndexType.NEVER, ...
value, IndexType.NONE, nameIndex);
1,529,843
private void initDiscoveryMulticast(Configuration pConfig) {<NEW_LINE>String url = findAgentUrl(pConfig);<NEW_LINE>if (url != null || listenForDiscoveryMcRequests(pConfig)) {<NEW_LINE>backendManager.<MASK><NEW_LINE>String multicastGroup = getOrDefault(ConfigKey.MULTICAST_GROUP, "JOLOKIA_MULTICAST_GROUP", pConfig, Strin...
getAgentDetails().setUrl(url);
1,498,773
private void processPOST(IncomingExchange exchange) {<NEW_LINE>Request request = exchange.getRequest();<NEW_LINE>String resource = exchange.getUriPath();<NEW_LINE>Integer observe = exchange.getObserves();<NEW_LINE>List<String> observeUriQuery = exchange.getUriQuery();<NEW_LINE>if (observe != null && resource != null) {...
Endpoint endpoint = exchange.getEndpoint();
960,889
protected void formatAddress(A appender, AddressSpace addrSpace, ConstTpl offset, ConstTpl size) {<NEW_LINE>if (offset.getType() != ConstTpl.REAL) {<NEW_LINE>throw new RuntimeException("Unsupported address offset type: " + offset.getType());<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (addrSpace == null) {<NEW_LINE>appender...
long offsetValue = offset.getReal();
141,853
void subscriber(final Subscriber<? super T> subscriber, final boolean triggerOnSubscribe, final ContextMap contextMap, final AsyncContextProvider contextProvider) {<NEW_LINE>// The root Subscriber's downstream subscriber is set internally, so no need for atomic operation to filter<NEW_LINE>// duplicates.<NEW_LINE>if (!...
contextProvider.wrapPublisherSubscriber(subscriber, contextMap);
1,411,655
private Map<String, Collection<HostTagInfo>> remoteQueryHostEc2Tags(EnvironBean environBean, String tagName) throws Exception {<NEW_LINE>Collection<HostBean> hostsByEnvId = hostDAO.<MASK><NEW_LINE>Map<String, String> hostId2HostName = new HashMap<String, String>();<NEW_LINE>for (HostBean hostBean : hostsByEnvId) {<NEW_...
getHostsByEnvId(environBean.getEnv_id());
1,561,956
public ClusterVersion unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ClusterVersion clusterVersion = new ClusterVersion();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<N...
().unmarshall(context));
1,684,463
public Collection<Diagnosis> diagnose(Collection<Symptom> symptoms) {<NEW_LINE>Collection<Diagnosis> diagnoses = new ArrayList<>();<NEW_LINE>SymptomsTable symptomsTable = SymptomsTable.of(symptoms);<NEW_LINE>SymptomsTable bp = symptomsTable.type(SYMPTOM_COMP_BACK_PRESSURE.text());<NEW_LINE>if (bp.size() > 1) {<NEW_LINE...
assignments = Collections.singletonList(bpComponent);
1,009,314
public void onCreate(Bundle icicle) {<NEW_LINE>super.onCreate(icicle);<NEW_LINE>locale = (Locale) getArguments().getSerializable(PassphraseRequiredActionBarActivity.LOCALE_EXTRA);<NEW_LINE>archive = getArguments().getBoolean(ARCHIVE, false);<NEW_LINE>DcEventCenter eventCenter = DcHelper.getEventCenter(getActivity());<N...
addObserver(DcContext.DC_EVENT_CONNECTIVITY_CHANGED, this);
190,600
public void resumeActivity() {<NEW_LINE><MASK><NEW_LINE>SelendroidLogger.info("got background activity");<NEW_LINE>if (activity == null) {<NEW_LINE>SelendroidLogger.error("activity class is empty", new NullPointerException("Activity class to start is null."));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// start now the new a...
Activity activity = activitiesReporter.getBackgroundActivity();
566,517
public static void colorized(ImageFlow flowImage, float maxValue, BufferedImage out) {<NEW_LINE>int[] tableSine = new int[360];<NEW_LINE>int[] tableCosine = new int[360];<NEW_LINE>for (int i = 0; i < 360; i++) {<NEW_LINE>double angle = i * Math.PI / 180.0;<NEW_LINE>tableSine[i] = (int) (255 * (Math.sin(angle) + 1) / 2)...
(m * tableSine[degree]);
1,832,068
public static ICreateFrom create(GridTab mTab) {<NEW_LINE>// dynamic init preparation<NEW_LINE>int AD_Table_ID = Env.getContextAsInt(Env.getCtx(), mTab.<MASK><NEW_LINE>ICreateFrom retValue = null;<NEW_LINE>Class<? extends ICreateFrom> cl = s_registeredClasses.get(AD_Table_ID);<NEW_LINE>if (cl != null) {<NEW_LINE>try {<...
getWindowNo(), GridWindowVO.CTXNAME_BaseTable_ID);
1,703,801
private BlockParsedResult parseNumericBlock() throws FormatException {<NEW_LINE>while (isStillNumeric(current.getPosition())) {<NEW_LINE>DecodedNumeric numeric = decodeNumeric(current.getPosition());<NEW_LINE>current.<MASK><NEW_LINE>if (numeric.isFirstDigitFNC1()) {<NEW_LINE>DecodedInformation information;<NEW_LINE>if ...
setPosition(numeric.getNewPosition());
1,528,161
ArrayList<Object> new117() /* reduce AInstanceofExpression */<NEW_LINE>{<NEW_LINE>@SuppressWarnings("hiding")<NEW_LINE>ArrayList<Object> nodeList = new ArrayList<Object>();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nodeArrayList3 = pop();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Obj...
PImmediate) nodeArrayList1.get(0);
23,105
private void parseWebEditorData(Map<String, Set<Node>> groups, Map<String, List<String>> tracks, Map<UUID, UserData> users) {<NEW_LINE>JsonArray holdersArray = this.data.get("permissionHolders").getAsJsonArray();<NEW_LINE>for (JsonElement holderElement : holdersArray) {<NEW_LINE>JsonObject jsonData = holderElement.getA...
uuid = UUID.fromString(id);
31,716
private static void startSink(StageConfig previousStage, int[] previousStagePorts, StageConfig stage, PortSelector portSelector, SinkHolder sink, Context context, Action0 sinkObservableCompletedCallback, Action0 sinkObservableTerminatedCompletedCallback, Action1<Throwable> sinkObservableErrorCallback, int stageNumber, ...
(null, staticInjector(endpoints));
1,252,855
public static void renderStitching(BufferedImage imageA, BufferedImage imageB, Homography2D_F64 fromAtoB) {<NEW_LINE>// specify size of output image<NEW_LINE>double scale = 0.5;<NEW_LINE>// Convert into a BoofCV color format<NEW_LINE>Planar<GrayF32> colorA = ConvertBufferedImage.convertFromPlanar(imageA, null, true, Gr...
, corners[2].y);
1,090,995
private static void write(Argument arg) throws Exception {<NEW_LINE>try {<NEW_LINE>Document document = DocumentHelper.createDocument();<NEW_LINE>Element persistence = document.addElement("persistence", "http://java.sun.com/xml/ns/persistence");<NEW_LINE>persistence.addAttribute(QName.get("schemaLocation", "xsi", "http:...
slice_unit_properties = unit.addElement("properties");
943,048
private CostDetailCreateResult createComponentIssue(@NonNull final CostDetailCreateRequest request, @NonNull final CurrentCost currentCosts, @NonNull final PPOrderCosts orderCosts) {<NEW_LINE>final CostDetailPreviousAmounts previousCosts = CostDetailPreviousAmounts.of(currentCosts);<NEW_LINE>final CostDetailCreateResul...
utils.createCostDetailRecordWithChangedCosts(request, previousCosts);
1,512,977
public Endpoint unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>Endpoint endpoint = new Endpoint();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>while (true) {<N...
().unmarshall(context));
1,493,183
static //<NEW_LINE>//<NEW_LINE>Object //<NEW_LINE>doCached(//<NEW_LINE>PolyglotLanguageContext context, //<NEW_LINE>Object receiver, Object[] args, @CachedLibrary("receiver") InteropLibrary buffers, @Cached BranchProfile unsupported, @Cached BranchProfile invalidIndex, @Cached BranchProfile invalidValue) {<NEW_LINE>fin...
), e.getLength());
1,175,288
public void addObject(Object o) {<NEW_LINE>this.getContent().add(o);<NEW_LINE>// If this object contains paragraphs, make sure any style used<NEW_LINE>// is activated<NEW_LINE>Set<String> stylesInUse = new java.util.HashSet<String>();<NEW_LINE>// Set<String> fontsDiscovered = new java.util.HashSet<String>();<NEW_LINE>L...
.styleDefinitionsPart = this.getStyleDefinitionsPart();
1,236,360
private void runTest(String testCase) throws Exception {<NEW_LINE>Log.i(LOG_TAG, "Running test case: " + testCase);<NEW_LINE>if ("empty_unary".equals(testCase)) {<NEW_LINE>tester.emptyUnary();<NEW_LINE>} else if ("large_unary".equals(testCase)) {<NEW_LINE>try {<NEW_LINE>tester.largeUnary();<NEW_LINE>} catch (Assumption...
"Skipping " + testCase + " due to assumption violation", e);
1,603,541
private static // <editor-fold desc="30 helper"><NEW_LINE>void initDefaultDataPath() {<NEW_LINE>if (OCR.Options.defaultDataPath == null) {<NEW_LINE>// export SikuliX eng.traineddata, if libs are exported as well<NEW_LINE>File fTessDataPath = new File(Commons.getAppDataPath(), "SikulixTesseract/tessdata");<NEW_LINE>bool...
OcrDataPath, "tessdata").getAbsolutePath();
421,529
public Function<ContainerRequest, ?> createValueProvider(Parameter parameter) {<NEW_LINE>String parameterName = parameter.getSourceName();<NEW_LINE>if (parameterName == null || parameterName.length() == 0) {<NEW_LINE>// Invalid URI parameter name<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Class<?> rawParameterType...
?> e = get(parameter);
1,524,244
public Clustering<Model> run(Relation<Model> relation) {<NEW_LINE>// Build model mapping<NEW_LINE>HashMap<Model, ModifiableDBIDs> modelMap = new HashMap<>();<NEW_LINE>for (DBIDIter iditer = relation.iterDBIDs(); iditer.valid(); iditer.advance()) {<NEW_LINE>modelMap.computeIfAbsent(relation.get(iditer), x -> DBIDUtil.ne...
result = new ReferenceClustering<>();
1,653,914
private void parseSize(VDTree apath, Attributes attributes) {<NEW_LINE>Pattern pattern = Pattern.compile("^\\s*(\\d+(\\.\\d+)*)\\s*([a-zA-Z]+)\\s*$");<NEW_LINE>HashMap<String, Integer> m = new HashMap<String, Integer>();<NEW_LINE>m.put("px", 1);<NEW_LINE>m.put("dip", 1);<NEW_LINE>m.put("dp", 1);<NEW_LINE>m.put("sp", 1)...
mPortHeight = Float.parseFloat(value);
1,120,009
protected void updateItem(PaymentMethod method, boolean empty) {<NEW_LINE>super.updateItem(method, empty);<NEW_LINE>if (method != null && !empty) {<NEW_LINE>String id = method.getId();<NEW_LINE>HBox box = new HBox();<NEW_LINE>box.setSpacing(20);<NEW_LINE>Label paymentType = new AutoTooltipLabel(method.isAltcoin() ? Res...
).addAll(paymentType, paymentMethod);
1,236,289
public void serialize(ByteBuf buf) {<NEW_LINE>super.serialize(buf);<NEW_LINE>LongIntVectorStorage storage = split.getStorage();<NEW_LINE>buf.writeInt(storage.size());<NEW_LINE>if (storage instanceof LongIntSparseVectorStorage) {<NEW_LINE>ObjectIterator<Long2IntMap.Entry> iter = storage.entryIterator();<NEW_LINE>Long2In...
.writeInt(values[i]);
999,054
public String genericSignature(Object type) {<NEW_LINE>Type.TypeVar generic = (Type.TypeVar) type;<NEW_LINE>String name = generic.tsym.name.toString();<NEW_LINE>if (typeVariableNameStack == null) {<NEW_LINE>typeVariableNameStack = new HashSet<>();<NEW_LINE>}<NEW_LINE>if (!typeVariableNameStack.add(name)) {<NEW_LINE>ret...
.IntersectionClassType) generic.getUpperBound();
1,373,069
public void createBindings() {<NEW_LINE>IntegerConverter intConverter = new IntegerConverter();<NEW_LINE>LengthConverter lengthConverter = new LengthConverter();<NEW_LINE>addWrappedBinding(nozzleTip.getCalibration(), "enabled", calibrationEnabledCheckbox, "selected");<NEW_LINE>addWrappedBinding(nozzleTip.getCalibration...
this, "calibrationStatus", lblCalibrationStatus, "text");
1,064,775
private static boolean checkPolynomial(long[] polynomial, int polyOffset, int bound) {<NEW_LINE>int i, j, sum = 0, limit = PARAM_N;<NEW_LINE>long temp, mask;<NEW_LINE>long[] list = new long[PARAM_N];<NEW_LINE>for (j = 0; j < PARAM_N; j++) {<NEW_LINE>list[j] = absolute((int<MASK><NEW_LINE>}<NEW_LINE>for (j = 0; j < PARA...
) polynomial[polyOffset + j]);
756,824
final StartConfigurationSessionResult executeStartConfigurationSession(StartConfigurationSessionRequest startConfigurationSessionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startConfigurationSessionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
175,189
AnnotationsTransformerBuildItem transformBeanScope(BeanArchiveIndexBuildItem index, CustomScopeAnnotationsBuildItem scopes) {<NEW_LINE>return new AnnotationsTransformerBuildItem(new AnnotationsTransformer() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int getPriority() {<NEW_LINE>// this specifically should run after...
Dependent.class).done();
982,436
private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati...
TypeAlias.rlim_t, NativeType.ULONGLONG);
454,967
public synchronized void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>if (background == null)<NEW_LINE>return;<NEW_LINE>computeScale();<NEW_LINE>Graphics2D g2 = BoofSwingUtil.antialiasing(g);<NEW_LINE>int dstWidth = (int) (imageScale * background.getWidth());<NEW_LINE>int dstHeight = (int) (i...
setStroke(new BasicStroke(2));
737,292
public void run() {<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("AgentCheckTimerTask started.");<NEW_LINE>}<NEW_LINE>List<AgentInfo> agentInfoList = Collections.emptyList();<NEW_LINE>try {<NEW_LINE>agentInfoList = agentService.getRecentAgentInfoList(applicationName, DEFAULT_AGENT_LOOKUP_TIME);<NEW_LIN...
timer.schedule(agentCheckTimerTask, DEFAULT_AGENT_CHECK_DELAY);
482,633
protected Session createSession(Host hc, String user, String host, int port, FS fs) throws JSchException {<NEW_LINE>Session session = super.createSession(hc, user, host, port, fs);<NEW_LINE>try {<NEW_LINE>List<Proxy> proxies = ProxySelector.getDefault().select(new URI("socket", null, host, port == -1 ? 22 : port, null,...
SocketAddress addr = p.address();
571,671
private TransactionNode createTransactionNode(MonitorData md, boolean current) {<NEW_LINE>// NOI18N<NEW_LINE>if (debug)<NEW_LINE>log("createTransactionNode(MonitorData)");<NEW_LINE>Dispatches dis = null;<NEW_LINE>RequestData rd = md.getRequestData();<NEW_LINE>try {<NEW_LINE>dis = md.getDispatches();<NEW_LINE>} catch (E...
] nds = new NestedNode[numChildren];
1,200,121
private static void entityHitFire(ServerWorld serverWorld, LivingEntity livingEntity, ElementalFire arrowFire) {<NEW_LINE>ElementalFire entityFire = livingEntity.getCapability(CapabilityElementalFire.CAPABILITY_ELEMENTAL_FIRE).orElse(null);<NEW_LINE>if (arrowFire.getChargeLevel() == 0)<NEW_LINE>return;<NEW_LINE>if (ent...
entityFire.getChargeLevel() / MAX_FIRE_CHARGE_LEVEL_ENTITY);
805,270
protected void registerJobsAndTriggers() throws SchedulerException {<NEW_LINE>TransactionStatus transactionStatus = null;<NEW_LINE>if (this.transactionManager != null) {<NEW_LINE>transactionStatus = this.transactionManager.getTransaction(TransactionDefinition.withDefaults());<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (this...
logger.error("Job registration exception overridden by rollback exception", ex);
986,263
public void windowAdded(final DockingWindow addedToWindow, final DockingWindow addedWindow) {<NEW_LINE>if (addedWindow instanceof TabWindow) {<NEW_LINE>final DockingWindowProperties windowProperties = addedWindow.getWindowProperties();<NEW_LINE>windowProperties.setDockEnabled(false);<NEW_LINE>windowProperties.setUndock...
) topLevelAncestor).setIconImages(iconImages);
1,177,830
public Collection<Shape> createShapes(TraitContainer resolvedTraits) {<NEW_LINE>// Merge all shapes together, resolve conflicts, and warn for acceptable conflicts.<NEW_LINE>Map<ShapeId, Shape> <MASK><NEW_LINE>for (ModelFile modelFile : modelFiles) {<NEW_LINE>for (Shape shape : modelFile.createShapes(resolvedTraits)) {<...
shapes = new HashMap<>();
1,063,552
private void destroyIn() {<NEW_LINE>Customizer caps = (Customizer) aps;<NEW_LINE>PropertyChangeListener pchl = providersChangeListener;<NEW_LINE>if (caps != null && pchl != null) {<NEW_LINE>caps.removePropertyChangeListener(pchl);<NEW_LINE>logger.log(Level.FINE, "{0}.destroyIn(): ProvidersChangeListener removed from {1...
> apsc = actionProviders.values();
386,761
public static TokenizationUpdate tokenizationFromMap(Map<String, Object> map) {<NEW_LINE>Map<String, Object> tokenization = (Map<String, Object>) map.remove("tokenization");<NEW_LINE>if (tokenization == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Map<String, BiFunction<Tokenization.Truncate, Integer, Tokenization...
updater = knownTokenizers.get(tokenizerType);
962,755
private PreparedStatement bindStmt(PersistRequestUpdateSql request, boolean batchThisRequest) throws SQLException {<NEW_LINE>request.startBind(batchThisRequest);<NEW_LINE>SpiSqlUpdate updateSql = request.updateSql();<NEW_LINE>SpiTransaction t = request.transaction();<NEW_LINE>BindParams bindParams = updateSql.getBindPa...
BindParamsParser.parse(bindParams, sql);
1,339,301
protected LayoutPositions<FGVertex, FGEdge> updateDestinationLocations() {<NEW_LINE>Set<FGVertex> ignore = new HashSet<>();<NEW_LINE><MASK><NEW_LINE>LayoutPositions<FGVertex, FGEdge> positions;<NEW_LINE>if (relayout) {<NEW_LINE>positions = calculateDefaultLayoutLocations(ignore);<NEW_LINE>Map<FGVertex, Point2D> locatio...
ignore.addAll(getVerticesToBeRemoved());
1,815,972
/* SubMenu for column specific tasks.<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void addThisColumnSubMenu(String sColumnName, Menu menuThisColumn) {<NEW_LINE>switch(sColumnName) {<NEW_LINE>case "path":<NEW_LINE>{<NEW_LINE>path_item = new MenuItem(menuThisColumn, SWT.CHECK);<NEW_LINE>boolean show_full_path = COConf...
boolean show_full_path = path_item.getSelection();
1,562,926
public static RecognizeImageColorResponse unmarshall(RecognizeImageColorResponse recognizeImageColorResponse, UnmarshallerContext _ctx) {<NEW_LINE>recognizeImageColorResponse.setRequestId<MASK><NEW_LINE>recognizeImageColorResponse.setCode(_ctx.stringValue("RecognizeImageColorResponse.Code"));<NEW_LINE>recognizeImageCol...
(_ctx.stringValue("RecognizeImageColorResponse.RequestId"));
753,450
public static void executeUpdate() throws NamingException, SQLException, LiquibaseException, InstantiationException, IllegalAccessException, ClassNotFoundException {<NEW_LINE>// setDataSource((String) servletValueContainer.getValue(LIQUIBASE_DATASOURCE));<NEW_LINE>final String LIQUIBASE_CHANGELOG = "liquibase.changelog...
, fsFO, threadClFO), database);
1,002,253
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see javax.websocket.Endpoint#onOpen(javax.websocket.Session, javax.websocket.EndpointConfig)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void onOpen(Session session, EndpointConfig config) {<NEW_LINE>if (onOpen != null) {<NEW_LINE>try {<NEW_LINE>Object[] args = new ...
int sessionIndex = methodData.getSessionIndex();
464,804
// snippet-start:[textract.java2._analyze_doc.main]<NEW_LINE>public static void analyzeDoc(TextractClient textractClient, String sourceDoc) {<NEW_LINE>try {<NEW_LINE>InputStream sourceStream = new FileInputStream(new File(sourceDoc));<NEW_LINE>SdkBytes sourceBytes = SdkBytes.fromInputStream(sourceStream);<NEW_LINE>// G...
analyzeDocument = textractClient.analyzeDocument(analyzeDocumentRequest);
1,732,328
final public void JsonObjectMember() throws ParseException {<NEW_LINE>Node o;<NEW_LINE>String s;<NEW_LINE>Token t;<NEW_LINE>s = String();<NEW_LINE>t = jj_consume_token(PNAME_NS);<NEW_LINE>if (!t.image.equals(":"))<NEW_LINE>throwParseException("Prefix name expression not legal at this point : " + t.image, t.beginLine, t...
).addJsonMapping(s, o);
1,450,600
protected void applyPressingInWorld() {<NEW_LINE>AABB bb = new AABB(worldPosition.below(1));<NEW_LINE>boolean bulk = canProcessInBulk();<NEW_LINE>pressedItems.clear();<NEW_LINE>if (level.isClientSide)<NEW_LINE>return;<NEW_LINE>for (Entity entity : level.getEntities(null, bb)) {<NEW_LINE>if (!(entity instanceof ItemEnti...
ItemStack item = itemEntity.getItem();
143,833
public List<Endpoint> findEndpoint(String keyword, String serviceId, int limit) throws IOException {<NEW_LINE>StringBuilder sql = new StringBuilder();<NEW_LINE>List<Object> condition <MASK><NEW_LINE>sql.append("select * from ").append(EndpointTraffic.INDEX_NAME).append(" where ");<NEW_LINE>sql.append(EndpointTraffic.SE...
= new ArrayList<>(5);
805,864
public void delete(Set<Integer> ordinals) {<NEW_LINE>lock.acquire();<NEW_LINE>try {<NEW_LINE>checkDeleted();<NEW_LINE>if (ordinals.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean bitFieldRemoved = false;<NEW_LINE>TreeSet<Integer> treeSet = null;<NEW_LINE>if (!isPackingEnabled()) {<NEW_LINE>// treeSet only use...
dataMgr.dataTypeChanged(this, false);
316,315
protected String embedEngines(String json_in) {<NEW_LINE>// see if we need to embed private search templates<NEW_LINE>Map map = JSONUtils.decodeJSON(json_in);<NEW_LINE>long engine_id = ((Long) map.get("engine_id")).longValue();<NEW_LINE>String json_out = json_in;<NEW_LINE>if (engine_id >= Integer.MAX_VALUE || engine_id...
engine.getName() + "'");
1,494,382
public BeanDefinition parse(Element element, ParserContext pc) {<NEW_LINE>String logoutUrl = null;<NEW_LINE>String successHandlerRef = null;<NEW_LINE>String logoutSuccessUrl = null;<NEW_LINE>String invalidateSession = null;<NEW_LINE>String deleteCookies = null;<NEW_LINE>BeanDefinitionBuilder builder = BeanDefinitionBui...
logoutUrl = element.getAttribute(ATT_LOGOUT_URL);
1,283,251
void addAbsMem(Instruction instruction, int operand) {<NEW_LINE>encoderFlags |= EncoderFlags.DISPL;<NEW_LINE>int opKind = instruction.getOpKind(operand);<NEW_LINE>if (opKind == OpKind.MEMORY) {<NEW_LINE>if (instruction.getMemoryBase() != Register.NONE || instruction.getMemoryIndex() != Register.NONE) {<NEW_LINE>setErro...
.format("Operand %d: Displacement must fit in a uint", operand));
741,844
public void testStartAddLogicalFilesDataSource() {<NEW_LINE>try {<NEW_LINE>new Timeout("pausing", 120000).sleep();<NEW_LINE>logger.info("Starting Add Logical Files process");<NEW_LINE>WizardOperator wo = new WizardOperator("Add Data Source");<NEW_LINE>wo.setTimeouts(setTimeout("WindowWaiter.WaitWindowTimeOut", 240000))...
.btNext().clickMouse();
1,798,590
public void initWithOptions(java.util.ArrayList<String> args) {<NEW_LINE>java.util.ArrayList<String> unknown = new java.util.ArrayList<String>();<NEW_LINE>String str = "`" + protocol() + " ";<NEW_LINE>for (String p : args) {<NEW_LINE>if (IceUtilInternal.StringUtil.findFirstOf(p, " \t\n\r") != -1) {<NEW_LINE>str += " \"...
= args.get(++n);
1,342,929
private static boolean isInFreeArea(Point location, Window exclude) {<NEW_LINE>// prepare array of all our windows<NEW_LINE>Window mainWindow = WindowManagerImpl.getInstance().getMainWindow();<NEW_LINE>Window[] owned = mainWindow.getOwnedWindows();<NEW_LINE>Window[] frames = Frame.getFrames();<NEW_LINE>Window[] windows...
windows, 0, frames.length);
1,679,869
private void processDelayImports(OptionalHeader optionalHeader, Program program, TaskMonitor monitor, MessageLog log) {<NEW_LINE>if (monitor.isCancelled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>monitor.setMessage("[" + program.getName() + "]: processing delay imports...");<NEW_LINE>DataDirectory[] dataDirectories = op...
FunctionManager funcManager = program.getFunctionManager();
1,213,041
public SimpleMessage decode(ProtoReader reader) throws IOException {<NEW_LINE>Builder builder = new Builder();<NEW_LINE>long token = reader.beginMessage();<NEW_LINE>for (int tag; (tag = reader.nextTag()) != -1; ) {<NEW_LINE>switch(tag) {<NEW_LINE>case 1:<NEW_LINE>builder.optional_int32(ProtoAdapter.INT32.decode(reader)...
(reader.endMessageAndGetUnknownFields(token));
1,786,656
public void check() throws SQLException {<NEW_LINE>OceanBaseSchema.OceanBaseTable randomTable = s.getRandomTable();<NEW_LINE>List<OceanBaseSchema.OceanBaseColumn<MASK><NEW_LINE>OceanBaseExpressionGenerator gen = new OceanBaseExpressionGenerator(state).setColumns(columns);<NEW_LINE>OceanBaseExpression randomWhereConditi...
> columns = randomTable.getColumns();
239,162
protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>JsonObject input = InputParser.parseJsonObjectOrThrowError(req);<NEW_LINE>String userId = InputParser.parseStringOrThrowError(input, "userId", false);<NEW_LINE>String email = InputParser.parseStringOrT...
sendJsonResponse(200, result, resp);
1,376,935
public BaseSummarizer visit(Row row) {<NEW_LINE>int n = row.getArity();<NEW_LINE>int numberN = numericalColIndices.length;<NEW_LINE>if (count == 0) {<NEW_LINE>init();<NEW_LINE>}<NEW_LINE>count++;<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>Object obj = row.getField(i);<NEW_LINE>if (obj == null) {<NEW_LINE>numMissin...
, Math.abs(val));
826,116
public void waitFor(String narrative, Condition condition) {<NEW_LINE>ContextImpl context = new ContextImpl();<NEW_LINE>SeleniumException seleniumException = null;<NEW_LINE>try {<NEW_LINE>monitor.waitHasBegun(context, condition);<NEW_LINE>threadSleep(initialDelay);<NEW_LINE>while (context.elapsed() < context.timeout())...
monitor.conditionWasReached(context, condition);
1,462,054
public <T> Publisher<T> broadcast(T message, MediaType mediaType, Predicate<WebSocketSession> filter) {<NEW_LINE>return Flux.create(emitter -> {<NEW_LINE>try {<NEW_LINE>WebSocketFrame frame = webSocketMessageEncoder.encodeMessage(message, mediaType);<NEW_LINE>webSocketSessionRepository.getChannelGroup().writeAndFlush(f...
) && filter.test(s);
66,367
// for diagnostics<NEW_LINE>@SuppressWarnings("ConstantConditions")<NEW_LINE>private static Object streamInfo(@Nonnull InputStream stream) throws IOException {<NEW_LINE>if (stream instanceof BufferedInputStream) {<NEW_LINE>InputStream in = ReflectionUtil.getField(stream.getClass(), <MASK><NEW_LINE>byte[] buf = Reflecti...
stream, InputStream.class, "in");
1,678,272
final ListRequestedServiceQuotaChangeHistoryByQuotaResult executeListRequestedServiceQuotaChangeHistoryByQuota(ListRequestedServiceQuotaChangeHistoryByQuotaRequest listRequestedServiceQuotaChangeHistoryByQuotaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRequestedServiceQuotaChangeH...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
764,326
public ShipmentScheduleWithHU addQtyPickedAndUpdateHU(@NonNull final de.metas.inoutcandidate.model.I_M_ShipmentSchedule sched, @NonNull final StockQtyAndUOMQty stockQtyAndCatchQty, @NonNull final I_M_HU tuOrVHU, @NonNull final IHUContext huContext, final boolean anonymousHuPickedOnTheFly) {<NEW_LINE>// Retrieve VHU, TU...
create(schedQtyPicked, I_M_ShipmentSchedule_QtyPicked.class);
676,327
public IQueryFilter<T> createFilter(@NonNull final List<AttributesKeyPattern> attributesKeyPatterns) {<NEW_LINE>Check.assumeNotEmpty(attributesKeyPatterns, "attributesKeyPatterns is not empty");<NEW_LINE>if (attributesKeyPatterns.contains(AttributesKeyPattern.ALL)) {<NEW_LINE>return ConstantQueryFilter.of(true);<NEW_LI...
setJoinOr().addFilters(filters);
870,999
public void tickFlower() {<NEW_LINE>super.tickFlower();<NEW_LINE>drawManaFromPool();<NEW_LINE>redstoneSignal = 0;<NEW_LINE>if (acceptsRedstone()) {<NEW_LINE>for (Direction dir : Direction.values()) {<NEW_LINE>int redstoneSide = getLevel().getSignal(getBlockPos().relative(dir), dir);<NEW_LINE>redstoneSignal = Math.max(r...
>> 16 & 0xFF) / 255F;
871,053
private // Returns the JScrollPane for the Address/Data part of the Data Segment window.<NEW_LINE>JScrollPane generateDataPanel() {<NEW_LINE>dataData = new Object[NUMBER_OF_ROWS][NUMBER_OF_COLUMNS];<NEW_LINE>int valueBase = Globals.getGui().getMainPane().getExecutePane().getValueDisplayBase();<NEW_LINE>int addressBase ...
] = getHeaderStringForColumn(i, addressBase);
1,312,694
public Object makeUnderlying(Object[] propertyValues) {<NEW_LINE>Object outObject = beanInstantiator.instantiate();<NEW_LINE>if (!hasPrimitiveTypes) {<NEW_LINE>Object[<MASK><NEW_LINE>for (int i = 0; i < writeMethodsReflection.length; i++) {<NEW_LINE>parameters[0] = propertyValues[i];<NEW_LINE>try {<NEW_LINE>writeMethod...
] parameters = new Object[1];
1,390,336
Object handleResponse(HttpResponse response, Method method) throws Throwable {<NEW_LINE>final int code = response.getStatusCode();<NEW_LINE>final InputStream content = response.getContent();<NEW_LINE>// successful request if code is 2xx<NEW_LINE>if (code >= HTTP_RESPONSE_OK && code < HTTP_RESPONSE_LAST_SUCCESS_STATUSCO...
"" : IOUtils.toString(content);
1,711,830
public MetadataProviderResponse populateValue(PopulateValueRequest populateValueRequest, Serializable instance) throws PersistenceException {<NEW_LINE>if (!canHandlePersistence(populateValueRequest, instance)) {<NEW_LINE>return MetadataProviderResponse.NOT_HANDLED;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String requestedVal...
getProperty().setIsDirty(dirty);
245,268
// also used by TraitPickup<NEW_LINE>public static int doDirect(BlockEvent.HarvestDropsEvent event) {<NEW_LINE>int count = 0;<NEW_LINE>final EntityPlayer player = NullHelper.notnullF(event.getHarvester(), "BlockEvent.HarvestDropsEvent.getHarvester()");<NEW_LINE>final NNList<ItemStack> <MASK><NEW_LINE>for (Iterator<Item...
remainsList = new NNList<>();
1,522,465
public Object executeWithTarget(VirtualFrame frame, Object target, Object receiver) {<NEW_LINE>byte is = indexState;<NEW_LINE>if (is == 0) {<NEW_LINE>CompilerDirectives.transferToInterpreterAndInvalidate();<NEW_LINE>Object index = getIndexNode().execute(frame);<NEW_LINE>if (index instanceof Integer) {<NEW_LINE>indexSta...
executeWithTargetAndIndex(target, index, receiver);
966,977
final CreateDomainResult executeCreateDomain(CreateDomainRequest createDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
(super.beforeMarshalling(createDomainRequest));
1,727,004
private static void addClassProxyHashCodeMethod(ClassWriter cw, String implClassName) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())<NEW_LINE>Tr.<MASK><NEW_LINE>// -----------------------------------------------------------------------<NEW_LINE>// public boolean equals(Object other)<NEW_LIN...
debug(tc, INDENT + "adding method : hashCode ()I");
789,747
public Application updateApplicationWithDefaultResources(Application application) {<NEW_LINE>if (application.getGitApplicationMetadata() != null && !StringUtils.isEmpty(application.getGitApplicationMetadata().getDefaultApplicationId())) {<NEW_LINE>application.setId(application.<MASK><NEW_LINE>}<NEW_LINE>if (!Collection...
getGitApplicationMetadata().getDefaultApplicationId());
965,548
private void initIsochroneResponsePolygonFillLayers(@NonNull Style style) {<NEW_LINE>// Create and style a FillLayer based on information in the Isochrone API response<NEW_LINE>FillLayer personOneIsochroneFillLayer = new FillLayer(PERSON_ONE_ISOCHRONE_FILL_LAYER, PERSON_ONE_ISOCHRONE_RESPONSE_GEOJSON_SOURCE_ID);<NEW_LI...
)), fillOpacity(.6f));
1,249,705
private void installEPF(String epfString) {<NEW_LINE>try {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>properties.load(new ByteArrayInputStream(epfString.getBytes("ISO-8859-1")));<NEW_LINE>IJTPreset defaultPreset = JThemesCore.getDefault().getPresetManager().getDefaultPreset();<NEW_LINE>properties = Pro...
JTPConstants.Memento.LAST_CHOOSED_PRESET, "");
210,342
public void controlChanged(final Object source) {<NEW_LINE>if (source == comboBinarization) {<NEW_LINE>configHough.binarization = ConfigHoughBinary.Binarization.values()[comboBinarization.getSelectedIndex()];<NEW_LINE>handleChangeBinarization();<NEW_LINE>handleConfigChange();<NEW_LINE>} else if (source == spinnerResRan...
(Double) spinnerResRange.getValue();
1,613,645
protected synchronized void paintDeterminate(Graphics g, JComponent c) {<NEW_LINE>Insets b = progressBar.getInsets();<NEW_LINE>int w = progressBar.getWidth() - (<MASK><NEW_LINE>int h = progressBar.getHeight() - (b.top + b.bottom);<NEW_LINE>if (w < 1 || h < 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int max = progressBar...
b.right + b.left);
849,851
public int compare(WalletAccount w1, WalletAccount w2) {<NEW_LINE>if (w1 instanceof ColuAccount) {<NEW_LINE>WalletAccount linkedAccount = getLinkedAccount(w1, accounts);<NEW_LINE>if (linkedAccount == null) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>return linkedAccount.getId().equals(w2.getId()) ? -1 : 0;<NEW_LINE>} else...
), linkedEthAccount2.getAccountIndex());
706,696
final ListMembersResult executeListMembers(ListMembersRequest listMembersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listMembersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
687,486
public static AggregateFunction rectifyAggregationFunction(AggregateFunction fn, Type argType, Type returnType) {<NEW_LINE>if (argType.isDecimalV2() || argType.isDecimalV3()) {<NEW_LINE>if (fn.functionName().equals(FunctionSet.COUNT)) {<NEW_LINE>// count function return type always bigint<NEW_LINE>returnType = fn.getRe...
setisAnalyticFn(fn.isAnalyticFn());
1,116,170
static private CompletionCandidate[] checkForTypes(ASTNode node) {<NEW_LINE>List<VariableDeclarationFragment> vdfs = null;<NEW_LINE>switch(node.getNodeType()) {<NEW_LINE>case ASTNode.TYPE_DECLARATION:<NEW_LINE>return new CompletionCandidate[] { new CompletionCandidate((TypeDeclaration) node) };<NEW_LINE>case ASTNode.ME...
md.getStructuralProperty(MethodDeclaration.PARAMETERS_PROPERTY);
1,720,869
private void loadNode111() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_XmlSchema_Union, new QualifiedName(0, "Union"), new LocalizedText("en", "Union"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), ...
String xml = sb.toString();
1,798,855
protected void flushEntries(List<Entry> entries) {<NEW_LINE>mBackingStoreEmpty = false;<NEW_LINE>boolean useBatch = entries.size() <MASK><NEW_LINE>try (WriteBatch batch = useBatch ? mBackingStore.createWriteBatch() : null) {<NEW_LINE>for (Entry entry : entries) {<NEW_LINE>Edge edge = entry.mKey;<NEW_LINE>Optional<RWLoc...
> 0 && mBackingStore.supportsBatchWrite();
1,128,176
int addSlots() {<NEW_LINE>if (this.equipmentSlot == EquipmentSlot.MAINHAND || this.equipmentSlot == EquipmentSlot.OFFHAND) {<NEW_LINE>int bullets0 = ((IBulletContainer) (heldItem).getItem()).getBulletCount(heldItem);<NEW_LINE>this.secondHand = this.equipmentSlot == EquipmentSlot.MAINHAND ? EquipmentSlot.OFFHAND : Equip...
HumanoidArm.RIGHT) ? secondRevolver : heldItem;
499,704
void draw(Graphics g) {<NEW_LINE>double v1 = volts[0];<NEW_LINE>double v2 = volts[1];<NEW_LINE>setBbox(point1, point2, 6);<NEW_LINE>adjustBbox(gate[0], gate[1]);<NEW_LINE>draw2Leads(g);<NEW_LINE>setVoltageColor(g, v1);<NEW_LINE>setPowerColor(g, true);<NEW_LINE>drawThickLine(g, plate1[0], plate1[1]);<NEW_LINE>setVoltage...
, gate[0], curcount_g);
1,055,082
private void loadNode250() {<NEW_LINE>DataTypeEncodingTypeNode node = new DataTypeEncodingTypeNode(this.context, Identifiers.NetworkGroupDataType_Encoding_DefaultXml, new QualifiedName(0, "Default XML"), new LocalizedText("en", "Default XML"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), UByte.va...
.expanded(), true));