idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,491,538
public void paintSpotlight(final Graphics g, final JComponent surfaceComponent) {<NEW_LINE>Dimension size = surfaceComponent.getSize();<NEW_LINE>if (myLightComponents.size() > 0) {<NEW_LINE>int width = size.width - 1;<NEW_LINE><MASK><NEW_LINE>Rectangle2D screen = new Rectangle2D.Double(0, 0, width, height);<NEW_LINE>fi...
int height = size.height - 1;
1,064,968
<T> void executeTransaction(Container container, boolean autoCommit, Transaction<T> transaction, Callback<T> callback) {<NEW_LINE>executor.submit(() -> {<NEW_LINE>try (Connection connection = dataSource.getConnection()) {<NEW_LINE>T result;<NEW_LINE>if (autoCommit) {<NEW_LINE>result = transaction.run(container.getParen...
container.getId(), connection);
149,079
public void onNext(T t) {<NEW_LINE>if (done) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long c = unique + 1;<NEW_LINE>unique = c;<NEW_LINE>SwitchMapInnerSubscriber<T, R> inner = active.get();<NEW_LINE>if (inner != null) {<NEW_LINE>inner.cancel();<NEW_LINE>}<NEW_LINE>Publisher<? extends R> p;<NEW_LINE>try {<NEW_LINE>p = Obj...
>(this, c, bufferSize);
1,261,978
protected void createControls(Composite parent) {<NEW_LINE>createLabel(parent, Messages.InfluenceRelationshipSection_0, ITabbedLayoutConstants.STANDARD_LABEL_WIDTH, SWT.CENTER);<NEW_LINE>Text text = createSingleTextControl(parent, SWT.NONE);<NEW_LINE>text.setMessage(Messages.InfluenceRelationshipSection_2);<NEW_LINE>fT...
executeCommand(result.unwrap());
757,726
private static void drawTextOverlay(Graphics2D g2d, int topLeftX, int topLeftY, String text) {<NEW_LINE>Insets insets = new Insets(10, 10, 10, 10);<NEW_LINE>int interLineSpacing = 4;<NEW_LINE>int cornerRadius = 8;<NEW_LINE>g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);<NEW_LIN...
().getHeight() + interLineSpacing;
274,128
final DisassociateIdentityProviderConfigResult executeDisassociateIdentityProviderConfig(DisassociateIdentityProviderConfigRequest disassociateIdentityProviderConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateIdentityProviderConfigRequest);<NEW_LINE>AWSRequestMetrics awsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,763,247
public int compare(BaseSpec a, BaseSpec b) {<NEW_LINE>PathElement ape = a.getPathElement();<NEW_LINE><MASK><NEW_LINE>int aa = orderMap.get(ape.getClass());<NEW_LINE>int bb = orderMap.get(bpe.getClass());<NEW_LINE>int elementsEqual = aa < bb ? -1 : aa == bb ? 0 : 1;<NEW_LINE>if (elementsEqual != 0) {<NEW_LINE>return ele...
PathElement bpe = b.getPathElement();
426,874
public void readPayload(int id, PacketBufferBC buffer, Side side, MessageContext ctx) throws IOException {<NEW_LINE>super.readPayload(id, buffer, side, ctx);<NEW_LINE>if (id == NET_GUI_DATA) {<NEW_LINE>recipesStates.clear();<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < count; i++) {<NEW_LINE>AssemblyInstruction instruc...
int count = buffer.readInt();
366,829
public double distance(SparseNumberVector v1, SparseNumberVector v2) {<NEW_LINE>// Get the bit masks<NEW_LINE>double accu = 0.;<NEW_LINE>int i1 = v1.iter(), i2 = v2.iter();<NEW_LINE>while (v1.iterValid(i1) && v2.iterValid(i2)) {<NEW_LINE>final int d1 = v1.iterDim(i1), d2 = v2.iterDim(i2);<NEW_LINE>if (d1 < d2) {<NEW_LI...
i1 = v1.iterAdvance(i1);
1,819,809
protected void updateBendPoints(InternalRelationship[] relationshipsToConsider) {<NEW_LINE>for (int i = 0; i < relationshipsToConsider.length; i++) {<NEW_LINE>InternalRelationship relationship = relationshipsToConsider[i];<NEW_LINE>List bendPoints = relationship.getBendPoints();<NEW_LINE>if (bendPoints.size() > 0) {<NE...
InternalNode destNode = relationship.getDestination();
1,378,924
public void measureInWindow(int id, Promise promise) {<NEW_LINE>View <MASK><NEW_LINE>if (v == null) {<NEW_LINE>promise.reject("this view is null");<NEW_LINE>} else {<NEW_LINE>int[] outputBuffer = new int[4];<NEW_LINE>int statusBarHeight;<NEW_LINE>try {<NEW_LINE>v.getLocationOnScreen(outputBuffer);<NEW_LINE>// We need t...
v = mControllerRegistry.getView(id);
1,757,322
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = <MASK><NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));<NEW_LINE>}<NEW_LINE>String nam...
Utils.getValueFromIdByName(id, "resourceGroups");
1,329,037
protected void paintTabBorder(Graphics g, int tabIndex, int x, int y, int w, int h, boolean isSelected) {<NEW_LINE>int bottom = h - 1;<NEW_LINE>int right = w + 4;<NEW_LINE>g.translate(x - 3, y);<NEW_LINE>// Paint Border<NEW_LINE>g.setColor(selectHighlight);<NEW_LINE>// Paint left<NEW_LINE>g.fillRect(0, 0, 1, 2);<NEW_LI...
right - 3, bottom - 4);
335,392
private void doRegisterBookie(String regPath, long leaseId) throws MetadataStoreException {<NEW_LINE>if (checkRegNodeAndWaitExpired(regPath, leaseId)) {<NEW_LINE>// the bookie is already registered under `${regPath}` with `${leaseId}`.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ByteSequence regPathBs = ByteSequence.from(regP...
getGetResponses().get(0);
1,196,268
private static Event parseEventMap(Map<String, Object> eMap) {<NEW_LINE>Event e = new Event();<NEW_LINE>e.setUuid((String) eMap.get("id"));<NEW_LINE>e.setTimestamp((Long) eMap.get("timestamp"));<NEW_LINE>e.setHostName((String) eMap.get("hostName"));<NEW_LINE>e.setSource((String) eMap.get("source"));<NEW_LINE>e.setUser(...
) eMap.get("user"));
701,432
void checkSpecificAccessControl() throws UnauthorizedAccessException {<NEW_LINE>if (!userInfo.isInstructor) {<NEW_LINE>throw new UnauthorizedAccessException("Instructor privilege is required to access this resource.");<NEW_LINE>}<NEW_LINE>String courseId = getNonNullRequestParamValue(Const.ParamsNames.COURSE_ID);<NEW_L...
courseAttributes, Const.InstructorPermissions.CAN_MODIFY_INSTRUCTOR);
444,580
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject(Fields.JVM);<NEW_LINE>builder.field(Fields.PID, pid);<NEW_LINE>builder.field(Fields.VERSION, version);<NEW_LINE>builder.field(Fields.VM_NAME, vmName);<NEW_LINE>builder.field(Fields.VM_VERSION, vmV...
new ByteSizeValue(mem.heapMax));
623,579
public static void attestOpenEnclaveAsync1() {<NEW_LINE>BinaryData runtimeData = BinaryData.fromBytes(SampleCollateral.getRunTimeData());<NEW_LINE>BinaryData inittimeData = null;<NEW_LINE>BinaryData openEnclaveReport = BinaryData.fromBytes(SampleCollateral.getOpenEnclaveReport());<NEW_LINE>BinaryData sgxQuote = BinaryD...
runtimeData, AttestationDataInterpretation.BINARY)));
694,866
public Set<String> doCheckExpired(Set<String> candidates, long time) {<NEW_LINE>if (candidates == null || candidates.isEmpty())<NEW_LINE>return candidates;<NEW_LINE>Set<String> expired = new HashSet<>();<NEW_LINE>for (String candidate : candidates) {<NEW_LINE>if (LOG.isDebugEnabled())<NEW_LINE>LOG.debug("Checking expir...
LOG.debug("Session {} does not exist in infinispan", candidate);
1,740,921
private boolean isMethodAlreadyInjectedAnnotationPresent(MethodNode methodNode) {<NEW_LINE>AnnotationNode injectedTraceAnnotation = getAnnotation(INJECTED_TRACE_TYPE.<MASK><NEW_LINE>AnnotationNode manualTraceAnnotation = getAnnotation(MANUAL_TRACE_TYPE.getDescriptor(), methodNode.visibleAnnotations);<NEW_LINE>if (manua...
getDescriptor(), methodNode.visibleAnnotations);
838,985
public static void main(String[] args) {<NEW_LINE>if (args.length < 3) {<NEW_LINE>System.out.println("Usage: dechat ipaddress interface username");<NEW_LINE>System.out.println("Example: dechat 192.168.55.123 localhost joe");<NEW_LINE>System.exit(0);<NEW_LINE>}<NEW_LINE>ZContext ctx = new ZContext();<NEW_LINE>// cut str...
= new Scanner(System.in);
323,129
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, String[] args) {<NEW_LINE>if (args.length == 2) {<NEW_LINE>if (UserManager.getPlayer((Player) sender) == null) {<NEW_LINE>sender.sendMessage(LocaleLoader.getString("Profile.PendingLoad"));<NEW_LINE>return true;<NEW_...
(UserManager.getPlayer(onlineTarget));
1,177,153
private void registerAttributeHandlers(final ReadManager reader) {<NEW_LINE>final IAttributeHandler vShiftHandler = new IAttributeHandler() {<NEW_LINE><NEW_LINE>public void setAttribute(final Object userObject, final String value) {<NEW_LINE>final NodeModel node = (NodeModel) userObject;<NEW_LINE>LocationModel.createLo...
NodeBuilder.XML_NODE, "HGAP_QUANTITY", hgapHandler);
299,350
public void run(RegressionEnvironment env) {<NEW_LINE>env.advanceTime(0);<NEW_LINE>// Every event generates a new row, this time we sum the price by symbol and output volume<NEW_LINE>String epl = "@name('s0') select symbol, volume, sum(price) as mySum from SupportMarketDataBean#time(30)";<NEW_LINE>env.compileDeployAddL...
, 30000, 70, false));
357,032
public void handle(PacketWrapper wrapper) throws Exception {<NEW_LINE>// Selecting trade now moves the items, we need to resync the inventory<NEW_LINE>PacketWrapper resyncPacket = wrapper.create(0x08);<NEW_LINE>EntityTracker1_14 tracker = wrapper.user().getEntityTracker(Protocol1_14To1_13_2.class);<NEW_LINE>// 0 - Wind...
(short) 0, tag));
1,189,945
private JavaScriptNode desugarFor(ForNode forNode, JavaScriptNode init, JavaScriptNode test, JavaScriptNode modify, JavaScriptNode wrappedBody) {<NEW_LINE>if (needsPerIterationScope(forNode)) {<NEW_LINE>VarRef firstTempVar = environment.createTempVar();<NEW_LINE>JSFrameDescriptor iterationBlockFrameDescriptor = environ...
(factory.createLoopNode(repeatingNode));
148,766
public void glGetIntegerv(int pname, IntBuffer params) {<NEW_LINE>if (pname == GL20.GL_ACTIVE_TEXTURE || pname == GL20.GL_ALPHA_BITS || pname == GL20.GL_BLEND_DST_ALPHA || pname == GL20.GL_BLEND_DST_RGB || pname == GL20.GL_BLEND_EQUATION_ALPHA || pname == GL20.GL_BLEND_EQUATION_RGB || pname == GL20.GL_BLEND_SRC_ALPHA |...
, array.get(1));
340,278
Guard anonfun_11(Guard pc_41, EventBuffer effects, EventHandlerReturnReason outcome) {<NEW_LINE>PrimitiveVS<Machine> var_$tmp0 = new PrimitiveVS<Machine>().restrict(pc_41);<NEW_LINE>PrimitiveVS<Event> var_$tmp1 = new PrimitiveVS<Event>(_null).restrict(pc_41);<NEW_LINE>PrimitiveVS<Machine> var_$tmp2 = new PrimitiveVS<Ma...
(_null).restrict(pc_41);
1,115,011
public Parameters unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Parameters parameters = new Parameters();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso...
class).unmarshall(context));
574,837
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {<NEW_LINE>if (this.registry == null) {<NEW_LINE>// In spring 3.x, may be not call postProcessBeanDefinitionRegistry()<NEW_LINE>this.registry = (BeanDefinitionRegistry) beanFactory;<NEW_LINE>}<NEW_LINE>// scan bean def...
] beanNames = beanFactory.getBeanDefinitionNames();
826,433
public NDArrayAnalysisCounter merge(NDArrayAnalysisCounter other) {<NEW_LINE>this.countTotal += other.countTotal;<NEW_LINE>this.countNull += other.countNull;<NEW_LINE>this.minLength = Math.min(<MASK><NEW_LINE>this.maxLength = Math.max(this.maxLength, other.maxLength);<NEW_LINE>this.totalNDArrayValues += other.totalNDAr...
this.minLength, other.minLength);
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, ...
authorizerProviderInput, input, output, ctx);
1,435,495
public int apply(ExportMixin exportMixin, Code code, RunContext ctx) throws IOException {<NEW_LINE>Path outputPath = exportMixin.getFileOutputPath(ctx);<NEW_LINE>// Copy the JAR or native binary<NEW_LINE>Path source = code.getJarFile().toPath();<NEW_LINE>if (exportMixin.nativeImage) {<NEW_LINE>source = getImageName(sou...
tempDirectory.toFile(), "MANIFEST.MF");
174,737
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>ByteBuf buf = (ByteBuf) msg;<NEW_LINE>// sync<NEW_LINE>buf.skipBytes(4);<NEW_LINE>int type = buf.readUnsignedByte();<NEW_LINE>// length<NEW_LINE>buf.readUnsignedShortLE();<NEW_LINE>switch(type) {<NEW_LINE>case ...
ByteBuf response = Unpooled.buffer();
405,793
// Modified version of {@link String#indexOf(String) that allows a CharSequence.<NEW_LINE>private int indexOfFallback(CharSequence hayStack, String needle, int fromIndex) {<NEW_LINE>if (fromIndex >= hayStack.length()) {<NEW_LINE>return needle.<MASK><NEW_LINE>}<NEW_LINE>if (fromIndex < 0) {<NEW_LINE>fromIndex = 0;<NEW_L...
isEmpty() ? 0 : -1;
968,858
private void backtrack(final BFSInfo info, final String principalId, final Permission permission, final boolean value, final int level, final boolean doLog) {<NEW_LINE><MASK><NEW_LINE>if (doLog) {<NEW_LINE>if (level == 0) {<NEW_LINE>if (value) {<NEW_LINE>buf.append(permission.name()).append(": granted: ");<NEW_LINE>} e...
final StringBuilder buf = new StringBuilder();
756,706
public float[] transformToFloatValuesSV(ProjectionBlock projectionBlock) {<NEW_LINE>int numDocs = projectionBlock.getNumDocs();<NEW_LINE>if (_floatValuesSV == null || _floatValuesSV.length < numDocs) {<NEW_LINE>_floatValuesSV = new float[numDocs];<NEW_LINE>}<NEW_LINE>float[] values = _arguments.get(0).transformToFloatV...
0, _floatValuesSV, 0, numDocs);
828,641
public final MatchRecogMatchesIntervalContext matchRecogMatchesInterval() throws RecognitionException {<NEW_LINE>MatchRecogMatchesIntervalContext _localctx = new MatchRecogMatchesIntervalContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 282, RULE_matchRecogMatchesInterval);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_L...
_la = _input.LA(1);
713,814
public String discoverIdentityProvider(@RequestParam String email, @RequestParam(required = false) String skipDiscovery, @RequestParam(required = false, name = "login_hint") String loginHint, @RequestParam(required = false, name = "username") String username, Model model, HttpSession session, HttpServletRequest request...
model.addAttribute("username", username);
1,208,621
public Stream<T> debounce(final long time, final TimeUnit t) {<NEW_LINE>final Iterator<T> it = stream.iterator();<NEW_LINE>final long timeNanos = t.toNanos(time);<NEW_LINE>return Streams.stream(new Iterator<T>() {<NEW_LINE><NEW_LINE>volatile long last = 0;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean hasNext() ...
System.nanoTime() - last);
672,129
public void paintEntity(Graphics g) {<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>g2.setFont(HandlerElementMap.getHandlerForElement(this).getFontHandler().getFont());<NEW_LINE>// enable colors<NEW_LINE>Composite[] composites = colorize(g2);<NEW_LINE>g2.setColor(fgColor);<NEW_LINE>Polygon poly = new Polygon();<NEW...
Utils.decomposeStrings(getPanelAttributes());
1,303,711
private void loadNode714() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.DataItemType_Definition, new QualifiedName(0, "Definition"), new LocalizedText("en", "Definition"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), Identifi...
.expanded(), true));
1,010,741
public Either<SessionNotCreatedException, Result> createSession(HttpHandler client, NewSessionPayload payload) throws IOException {<NEW_LINE>int threshold = (int) Math.min(Runtime.getRuntime().freeMemory() / 10, Integer.MAX_VALUE);<NEW_LINE>FileBackedOutputStream os = new FileBackedOutputStream(threshold);<NEW_LINE>try...
CountingOutputStream counter = new CountingOutputStream(os);
415,702
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.authflood_dialog, container);<NEW_LINE>getDialog().setTitle("AuthFlood Attack");<NEW_LINE>btnAuthFloodStart = (Button) view.findViewById(R.id.button_start_authflood);<NEW_LI...
Gson().toJson(attack);
1,663,379
public double alpha(HullWhiteOneFactorPiecewiseConstantParameters data, double startExpiry, double endExpiry, double numeraireTime, double bondMaturity) {<NEW_LINE>double factor1 = Math.exp(-data.getMeanReversion() * numeraireTime) - Math.exp(-data.getMeanReversion() * bondMaturity);<NEW_LINE>double numerator = 2 * dat...
() * s[loopperiod]);
856,968
public void _parseDetails(ByteBuffer content) {<NEW_LINE>parseVersionAndFlags(content);<NEW_LINE>if ((getFlags() & 0x1) > 0) {<NEW_LINE>algorithmId = IsoTypeReader.readUInt24(content);<NEW_LINE><MASK><NEW_LINE>kid = new byte[16];<NEW_LINE>content.get(kid);<NEW_LINE>}<NEW_LINE>long numOfEntries = IsoTypeReader.readUInt3...
ivSize = IsoTypeReader.readUInt8(content);
1,250,689
public boolean handleHbResponse(FrontendHbResponse hbResponse, boolean isReplay) {<NEW_LINE>boolean isChanged = false;<NEW_LINE>if (hbResponse.getStatus() == HbStatus.OK) {<NEW_LINE>if (!isAlive && !isReplay && Config.edit_log_type.equalsIgnoreCase("bdb")) {<NEW_LINE>BDBHA bdbha = (BDBHA) Env.getCurrentEnv().getHaProto...
getCurrentEnv().getFollowerCount());
1,270,452
private static void make_go2_method(ClassWriter cw, String outer_name, String mname, String full_inner, int arity, boolean proc, int freevars, Type returnType, boolean isTailCall, boolean isPausable) {<NEW_LINE>if (isPausable) {<NEW_LINE>if (ModuleAnalyzer.log.isLoggable(Level.FINE)) {<NEW_LINE>ModuleAnalyzer.log.fine(...
visitVarInsn(ALOAD, i + 2);
1,631,517
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>this.requestWindowFeature(Window.FEATURE_NO_TITLE);<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.lt_trade_activity);<NEW_LINE>_mbwManager = MbwManager.getInstance(this.getApplication());<NEW_LINE>_ltManager = _mbwManager.getLoca...
findViewById(R.id.btAbort);
776,609
private HttpRequest createRequest(HttpMethod method, String uri, MultiMap headerMap, String authority, boolean chunked, ByteBuf buf, boolean end) {<NEW_LINE>HttpRequest request = new DefaultHttpRequest(HttpUtils.toNettyHttpVersion(version), method.toNetty(), uri, false);<NEW_LINE>HttpHeaders headers = request.headers()...
).set(ACCEPT_ENCODING, DEFLATE_GZIP);
967,017
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "create context SegmentedByString partition by theString from SupportBean;\n" + "@name('s0') context SegmentedByString select theString as c0, intPrimitive as c1, sum(longPrimitive) as c2 from SupportBean group by rollup(theString, intPrimitive)";<NEW_L...
("E1", 1, 10));
835,066
final ListPortfolioAccessResult executeListPortfolioAccess(ListPortfolioAccessRequest listPortfolioAccessRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPortfolioAccessRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,554,070
public void startServer() throws Exception {<NEW_LINE>IndexListServlet indexList = new IndexListServlet();<NEW_LINE>if (this.bindAddress != null) {<NEW_LINE>this.server = new Server(new InetSocketAddress(InetAddress.getByName(this.bindAddress), port));<NEW_LINE>} else {<NEW_LINE>this.server = new Server(this.port);<NEW...
new ServletHolder(indexList), "/");
1,790,204
private int transitionsBetween(ResultPoint from, ResultPoint to) {<NEW_LINE>// See QR Code Detector, sizeOfBlackWhiteBlackRun()<NEW_LINE>int fromX = (int) from.getX();<NEW_LINE>int fromY = (int) from.getY();<NEW_LINE>int toX = (int) to.getX();<NEW_LINE>int toY = Math.min(image.getHeight() - 1, (int) to.getY());<NEW_LIN...
fromY < toY ? 1 : -1;
493,037
public void endSection() {<NEW_LINE>if (this.profilingEnabled) {<NEW_LINE>if (stack.isEmpty()) {<NEW_LINE>StringBuilder b = new StringBuilder();<NEW_LINE>b.append("Profiler Underrun!\n");<NEW_LINE>b.append("Special mismatching start/end pairs:\n");<NEW_LINE>for (Element element : candidates) {<NEW_LINE>b.append("Sectio...
+ e2s(element.ender));
1,063,690
private boolean apply(final MigrationConfig config, final Client ksqlClient, final String migrationsDir, final Clock clock) {<NEW_LINE>String previous = MetadataUtil.getLatestMigratedVersion(config, ksqlClient);<NEW_LINE>LOGGER.info("Loading migration files");<NEW_LINE>final List<MigrationFile> migrations;<NEW_LINE>try...
error(e.getMessage());
1,606,893
private static void removeReturn(SootMethod method) {<NEW_LINE>// check if this is a void method<NEW_LINE>if (!(method.getReturnType() instanceof VoidType)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// get the methodnode<NEW_LINE>if (!method.hasActiveBody()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Chain units = ((DavaBody)...
getActiveBody()).getUnits();
877,843
static boolean compareLessThanEqual(Object left, Object right) {<NEW_LINE>Class<?> leftClass = left == null ? null : left.getClass();<NEW_LINE>Class<?> rightClass = right == null <MASK><NEW_LINE>if (leftClass == Integer.class && rightClass == Integer.class) {<NEW_LINE>return (Integer) left <= (Integer) right;<NEW_LINE>...
? null : right.getClass();
1,191,002
public void start() {<NEW_LINE>SmithLogger.logger.info("probe client start");<NEW_LINE>try {<NEW_LINE>Bootstrap b = new Bootstrap();<NEW_LINE>b.group(group).channel(EpollDomainSocketChannel.class).handler(new ChannelInitializer<DomainSocketChannel>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void initChannel(Domai...
.closeFuture().sync();
987,734
public static DescribeNASFileSystemsResponse unmarshall(DescribeNASFileSystemsResponse describeNASFileSystemsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeNASFileSystemsResponse.setRequestId(_ctx.stringValue("DescribeNASFileSystemsResponse.RequestId"));<NEW_LINE>describeNASFileSystemsResponse.setNextToken(_ctx...
("DescribeNASFileSystemsResponse.FileSystems[" + i + "].FileSystemType"));
24,691
public void showIssue(final Issue issue) {<NEW_LINE>setToolbarTitle(getString(R.string.issue).concat(" #").concat(String.valueOf(issue.getNumber())));<NEW_LINE>GlideApp.with(getActivity()).load(issue.getUser().getAvatarUrl()).onlyRetrieveFromCache(!PrefUtils.isLoadImageEnable()).into(userImageView);<NEW_LINE>issueTitle...
setText(issue.getTitle());
670,328
public static void storeWhiteboardPenColor(Context context, long did, boolean isLight, Integer value) {<NEW_LINE>openDBIfClosed(context);<NEW_LINE>String columnName = isLight ? "lightpencolor" : "darkpencolor";<NEW_LINE>try (Cursor cur = mMetaDb.rawQuery("SELECT _id FROM whiteboardState WHERE did = ?", new String[] { ...
String sql = "INSERT INTO whiteboardState (did, " + columnName + ") VALUES (?, ?)";
918,515
public UpdateThingGroupResult updateThingGroup(UpdateThingGroupRequest updateThingGroupRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateThingGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsReque...
invoke(request, responseHandler, executionContext);
442,511
public static Object[] extractRowFromDataTable(DataTable dataTable, int rowId) {<NEW_LINE>DataSchema dataSchema = dataTable.getDataSchema();<NEW_LINE>ColumnDataType[] storedColumnDataTypes = dataSchema.getStoredColumnDataTypes();<NEW_LINE>int numColumns = storedColumnDataTypes.length;<NEW_LINE>Object[] row = new Object...
dataTable.getString(rowId, i);
1,108,079
public static byte[] generateCreate2ContractAddress(byte[] address, byte[] salt, byte[] initCode) {<NEW_LINE>if (address.length != ADDRESS_BYTE_SIZE) {<NEW_LINE>throw new RuntimeException("Invalid address size");<NEW_LINE>}<NEW_LINE>if (salt.length != SALT_SIZE) {<NEW_LINE>throw new RuntimeException("Invalid salt size"...
buffer, offset, hashedInitCode.length);
540,423
public synchronized void unlockExclusive() {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "unlockExclusive", this);<NEW_LINE>// Synchronize on the locking Mutex.<NEW_LINE>synchronized (iMutex) {<NEW_LINE>// Only release the lock if the holder is the current thread.<NEW_LINE>if (Thread.currentThread() == i...
SibTr.debug(tc, "Thread not the current thread to unlock exclusively");
706,573
private VpnProfile VpnProfileFromCursor(Cursor cursor) {<NEW_LINE>VpnProfile profile = new VpnProfile();<NEW_LINE>profile.setId(cursor.getLong(cursor.getColumnIndex(KEY_ID)));<NEW_LINE>profile.setUUID(UUID.fromString(cursor.getString(cursor.getColumnIndex(KEY_UUID))));<NEW_LINE>profile.setName(cursor.getString(cursor.g...
cursor.getColumnIndex(KEY_SELECTED_APPS)));
354,553
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ContextNestedWithFilterUDF());<NEW_LINE>execs.add(new ContextNestedIterateTargetedCP());<NEW_LINE>execs.add(new ContextNestedInvalid());<NEW_LINE>execs.add(new ContextNe...
.add(new ContextNestedInitTermOverPartitionedIterate());
183,484
public void marshall(CreateCustomDataIdentifierRequest createCustomDataIdentifierRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createCustomDataIdentifierRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarsh...
createCustomDataIdentifierRequest.getRegex(), REGEX_BINDING);
305,350
public boolean execute(CommandSender sender, String commandLabel, String[] args) {<NEW_LINE>if (!this.testPermission(sender)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (args.length == 0) {<NEW_LINE>sender.sendMessage(new TranslationContainer("commands.generic.usage", this.usageMessage));<NEW_LINE>return false;<NEW...
Player) sender).getDisplayName();
1,556,384
public static GetTemplateResponse unmarshall(GetTemplateResponse getTemplateResponse, UnmarshallerContext _ctx) {<NEW_LINE>getTemplateResponse.setRequestId(_ctx.stringValue("GetTemplateResponse.RequestId"));<NEW_LINE>getTemplateResponse.setTemplateARN(_ctx.stringValue("GetTemplateResponse.TemplateARN"));<NEW_LINE>getTe...
(_ctx.stringValue("GetTemplateResponse.ChangeSetId"));
680,271
public void finish() {<NEW_LINE>wizard.completed = true;<NEW_LINE><MASK><NEW_LINE>if (upLimit > 0) {<NEW_LINE>COConfigurationManager.setParameter(TransferSpeedValidator.AUTO_UPLOAD_ENABLED_CONFIGKEY, false);<NEW_LINE>COConfigurationManager.setParameter(TransferSpeedValidator.AUTO_UPLOAD_SEEDING_ENABLED_CONFIGKEY, false...
int upLimit = wizard.getUploadLimit();
1,833,433
protected boolean deleteGatewayAssets(List<String> assetIds) {<NEW_LINE>if (!isConnected() || isInitialSyncInProgress()) {<NEW_LINE>String msg = "Gateway is not connected or initial sync in progress so cannot delete asset(s): Gateway ID=" + gatewayId + ", Asset<?> IDs=" + Arrays.toString(assetIds.toArray());<NEW_LINE>L...
(assetIds.toArray()));
396,095
public View render(RenderedAdaptiveCard renderedCard, Context context, FragmentManager fragmentManager, ViewGroup viewGroup, BaseCardElement baseCardElement, ICardActionHandler cardActionHandler, HostConfig hostConfig, RenderArgs renderArgs) throws Exception {<NEW_LINE>ImageSet imageSet = Util.castTo(baseCardElement, I...
baseCardElement.GetIsVisible(), horizFlowLayout);
237,984
public Node<V> visit(final BranchNode<V> node, final Bytes searchPath) {<NEW_LINE>byte iterateFrom = 0;<NEW_LINE>Bytes remainingPath = searchPath;<NEW_LINE>if (state == State.SEARCHING) {<NEW_LINE>iterateFrom = searchPath.get(0);<NEW_LINE>if (iterateFrom == CompactEncoding.LEAF_TERMINATOR) {<NEW_LINE>return node;<NEW_L...
push(node.getPath());
296,535
public final void factor() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>PascalAST factor_AST = null;<NEW_LINE>switch(LA(1)) {<NEW_LINE>case LPAREN:<NEW_LINE>{<NEW_LINE>match(LPAREN);<NEW_LINE>expression();<NEW_LINE>astFactory.addAST...
factor_AST = (PascalAST) currentAST.root;
350,126
public StartPosition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartPosition startPosition = new StartPosition();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
class).unmarshall(context));
1,538,356
public Folder createWithFolder(BaseCreateParam createParam) {<NEW_LINE>// check unique<NEW_LINE>DatachartCreateParam param = (DatachartCreateParam) createParam;<NEW_LINE>if (!CollectionUtils.isEmpty(folderMapper.checkVizName(param.getOrgId(), param.getParentId(), param.getName()))) {<NEW_LINE>Exceptions.tr(ParamExcepti...
setId(UUIDGenerator.generate());
1,652,446
Cookie ensureDomainAndPath(Cookie cookie, URI uri) {<NEW_LINE>final boolean validDomain = !Strings.isNullOrEmpty(cookie.domain());<NEW_LINE>final String cookiePath = cookie.path();<NEW_LINE>final boolean validPath = !Strings.isNullOrEmpty(cookiePath) && cookiePath.charAt(0) == '/';<NEW_LINE>if (validDomain && validPath...
()).hostOnly(true);
256,983
private static Queue<CommentOutput> buildComments(List<FeedbackResponseCommentAttributes> feedbackResponseComments, SessionResultsBundle bundle) {<NEW_LINE>LinkedList<CommentOutput> outputs = new LinkedList<>();<NEW_LINE>CommentOutput participantComment = null;<NEW_LINE>for (FeedbackResponseCommentAttributes comment : ...
withLastEditorName(null).build();
235,816
public TopDocs search(String field, float[] target, int k, Bits acceptDocs, int visitedLimit) throws IOException {<NEW_LINE>FieldEntry fieldEntry = fields.get(field);<NEW_LINE>if (fieldEntry.size() == 0) {<NEW_LINE>return new TopDocs(new TotalHits(0, TotalHits.Relation.EQUAL_TO), new ScoreDoc[0]);<NEW_LINE>}<NEW_LINE>/...
k, fieldEntry.size());
611,310
final UpgradeElasticsearchDomainResult executeUpgradeElasticsearchDomain(UpgradeElasticsearchDomainRequest upgradeElasticsearchDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(upgradeElasticsearchDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
false), new UpgradeElasticsearchDomainResultJsonUnmarshaller());
1,597,970
private static void progMusterErsetzen(JFrame parent, DatenPset pSet) {<NEW_LINE>pSet.arr[DatenPset.PROGRAMMSET_ZIEL_PFAD] = StringUtils.replace(pSet.arr[DatenPset.PROGRAMMSET_ZIEL_PFAD], MUSTER_PFAD_ZIEL, StandardLocations.getStandardDownloadPath());<NEW_LINE>String vlc = "";<NEW_LINE>String ffmpeg = "";<NEW_LINE>// d...
, Matcher.quoteReplacement(vlc));
121,590
public void buildMenu(Menu menuBrowse) {<NEW_LINE>final MenuItem itemBrowsePublic = new MenuItem(menuBrowse, SWT.PUSH);<NEW_LINE>itemBrowsePublic.setText(MessageText.getString("label.public") + "...");<NEW_LINE>itemBrowsePublic.addListener(SWT.Selection, new ListenerDMTask(dms, false) {<NEW_LINE><NEW_LINE>@Override<NEW...
browse(dm, false, true);
1,782,372
protected EnumMap<KeyIndex, String> initContentProviderKeys() {<NEW_LINE>EnumMap<KeyIndex, String> keys = new EnumMap<KeyIndex, String>(KeyIndex.class);<NEW_LINE>keys.put(KeyIndex.CALENDARS_ID, Calendars._ID);<NEW_LINE>keys.put(KeyIndex.IS_PRIMARY, Calendars.IS_PRIMARY);<NEW_LINE>keys.put(KeyIndex.CALENDARS_NAME, Calen...
KeyIndex.INSTANCES_END, Instances.END);
1,028,377
public // until it is deleted using the unsubscribe method.<NEW_LINE>void testCreateSharedDurableConsumer_unsubscribe(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>JMSContext jmsContext = tcfBindings.createContext();<NEW_LINE>JMSConsumer jmsConsumer = <MASK><NEW_LINE>JMSProducer ...
jmsContext.createDurableConsumer(topic1, "DURATEST1");
537,526
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {<NEW_LINE>LogHelper.i(TAG, "query values with: " + this);<NEW_LINE>if (isUriNotValid(uri)) {<NEW_LINE>return new MatrixCursor(new String[0], 1);<NEW_LINE>}<NEW_LINE>ensureCacheReady();<NEW_LINE>String[] queryK...
.get(queryKeys[i]);
1,514,079
public void onPostLinkableClicked(Post post, PostLinkable linkable) {<NEW_LINE>if (linkable.type == PostLinkable.Type.QUOTE) {<NEW_LINE>Post linked = findPostById((int) linkable.value);<NEW_LINE>if (linked != null) {<NEW_LINE>threadPresenterCallback.showPostsPopup(post, Collections.singletonList(linked));<NEW_LINE>}<NE...
(PostLinkable.ThreadLink) linkable.value;
258,878
public void buildModel() {<NEW_LINE>model = new Model("CarSequencing");<NEW_LINE>parse(data.source());<NEW_LINE>prepare();<NEW_LINE>int max = nClasses - 1;<NEW_LINE>cars = model.intVarArray("cars", nCars, 0, max, false);<NEW_LINE>IntVar[] expArray = new IntVar[nClasses];<NEW_LINE>for (int optNum = 0; optNum < options.l...
nbConf = options[optNum].length;
615,867
public void formatEditor(CEditor editor1, CEditor editor2) {<NEW_LINE>log.fine("");<NEW_LINE>VEditor editor = (VEditor) editor1;<NEW_LINE>VEditor editorTo = (VEditor) editor2;<NEW_LINE>if (editor == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>configColumns(editor, editorTo);<NEW_LINE>// Create label<NEW_LINE>CLabel la...
ALayoutConstraint(row, cols++));
136,478
private void parallelizationReplacement(StructuredGraph graph, InductionVariable inductionVar, int loopIndex, ValueNode maxIterations, List<IntegerLessThanNode> conditions) throws TornadoCompilationException {<NEW_LINE>if (inductionVar.isConstantInit() && inductionVar.isConstantStride()) {<NEW_LINE>final ConstantNode n...
!usage.equals(phi));
860,245
public static boolean breakOneBlock(BlockPos pos) {<NEW_LINE>Direction side = null;<NEW_LINE>Direction[] sides = Direction.values();<NEW_LINE>BlockState state = BlockUtils.getState(pos);<NEW_LINE>VoxelShape shape = state.getOutlineShape(MC.world, pos);<NEW_LINE>if (shape.isEmpty())<NEW_LINE>return false;<NEW_LINE><MASK...
Vec3d eyesPos = RotationUtils.getEyesPos();
1,204,625
protected Dumper createDumper() {<NEW_LINE>return new Dumper() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void onWritingSections(CompositeMonitors monitors, Printer printer) {<NEW_LINE><MASK><NEW_LINE>monitors.getAppStats(new Consumer<AppStats>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void accept(AppStat...
super.onWritingSections(monitors, printer);
1,301,012
private String request(String json, String endpoint) throws IOException {<NEW_LINE>var request = HttpRequest.newBuilder().uri(url(endpoint)).timeout(Duration.ofSeconds(timeoutSeconds)).header("Content-Type", "application/json").POST(HttpRequest.BodyPublishers.ofString(json)).build();<NEW_LINE>try {<NEW_LINE>var respons...
e, "Request " + endpoint + " was interrupted.");
707,705
public static H2Select generateSelect(H2GlobalState globalState, int nrColumns) {<NEW_LINE>H2Tables targetTables = globalState.getSchema().getRandomTableNonEmptyTables();<NEW_LINE>H2ExpressionGenerator gen = new H2ExpressionGenerator(globalState).setColumns(targetTables.getColumns());<NEW_LINE>H2Select select = new H2S...
> expression = gen.generateExpression();
973,485
private void createErrorNote(final PostingException ex) {<NEW_LINE>DB.saveConstraints();<NEW_LINE>try {<NEW_LINE>DB.getConstraints().setOnlyAllowedTrxNamePrefixes(false).incMaxTrx(1);<NEW_LINE>final PostingStatus postingStatus = ex.getPostingStatus(PostingStatus.Error);<NEW_LINE>final AdMessageKey AD_MessageValue = pos...
), po.get_ID());
715,861
public void read(Reader in, Object desc) throws IOException {<NEW_LINE>RTextAreaEditorKit kit = (RTextAreaEditorKit) getUI().getEditorKit(this);<NEW_LINE>setText(null);<NEW_LINE>// We disassociate the document from the text area while loading a file<NEW_LINE>// for performance reasons. For small files this will be neg...
IOException(e.getMessage());
1,640,441
public void visit(BLangErrorVariable varNode) {<NEW_LINE>// Create error destruct block stmt.<NEW_LINE>final BLangBlockStmt blockStmt = ASTBuilderUtil.createBlockStmt(varNode.pos);<NEW_LINE>BType errorType = varNode.getBType() == null ? symTable.errorType : varNode.getBType();<NEW_LINE>// Create a simple var for the er...
getNextErrorVarKey(env.enclPkg.packageID);
1,320,344
private void readLoopBackMessages() {<NEW_LINE>while (true) {<NEW_LINE>LoopBackMessage msg = null;<NEW_LINE>try {<NEW_LINE>synchronized (m_msgQueue) {<NEW_LINE>if (m_msgQueue.isEmpty()) {<NEW_LINE>m_msgQueue.wait();<NEW_LINE>}<NEW_LINE>if (!m_msgQueue.isEmpty()) {<NEW_LINE>msg = (LoopBackMessage) m_msgQueue.removeFirst...
removeHeader(SipStackUtil.DESTINATION_URI, true);
1,662,673
private static List<NodeFactory> createFactoriesSpecifiedInProperty(String property) {<NEW_LINE>List<NodeFactory> <MASK><NEW_LINE>for (String factoryName : property.toLowerCase().split(",")) {<NEW_LINE>factoryName = factoryName.trim();<NEW_LINE>switch(factoryName) {<NEW_LINE>case "moshi":<NEW_LINE>factories.add(new Mos...
factories = new ArrayList<>();