idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,158,890
public void addElement(final Object userObject, final XMLElement element) throws IOException {<NEW_LINE>final boolean isString = userObject instanceof String;<NEW_LINE>if (elementStarted == false && xmlElement != null) {<NEW_LINE>xmlwriter.write(xmlElement, !isString, 0, true, false);<NEW_LINE>}<NEW_LINE>final String n...
writeAttributes(this, userObject, name);
987,022
public int execute(Meterpreter meterpreter, TLVPacket request, TLVPacket response) throws Exception {<NEW_LINE>String root = request.getStringValue(TLV_TYPE_SEARCH_ROOT, ".");<NEW_LINE>String glob = request.getStringValue(TLV_TYPE_SEARCH_GLOB);<NEW_LINE>boolean recurse = request.getBooleanValue(TLV_TYPE_SEARCH_RECURSE)...
) files.get(i));
1,333,269
public void onPageSelected(int pos) {<NEW_LINE>if (mAdapter.getRealPosition(pos) == lastPos) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (WXEnvironment.isApkDebugable()) {<NEW_LINE>WXLogUtils.d("onPageSelected >>>>" + mAdapter.getRealPosition<MASK><NEW_LINE>}<NEW_LINE>if (mAdapter == null || mAdapter.getRealCount() == 0)...
(pos) + " lastPos: " + lastPos);
1,299,420
public ResUnMarshalerT execute(ReqMarshalerT exportRequest, ResUnMarshalerT responseUnmarshaller) {<NEW_LINE>MarshalerServiceStub<ReqMarshalerT, ResUnMarshalerT<MASK><NEW_LINE>if (timeoutNanos > 0) {<NEW_LINE>stub = stub.withDeadlineAfter(timeoutNanos, TimeUnit.NANOSECONDS);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>return Fu...
, ?> stub = this.stub;
1,322,665
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (!getUuidBytes().isEmpty()) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_);<NEW_LINE>}<NEW_LINE>if (!getNameBytes().isEmpty()) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.wri...
writeString(output, 3, note_);
1,284,810
public void run() throws IOException {<NEW_LINE>if (messages == null || messages.size() == 0) {<NEW_LINE>throw new RuntimeException("Need to specify a message");<NEW_LINE>}<NEW_LINE>getFileTypeFromFileName();<NEW_LINE>System.out.println(" File Name : " + fileName);<NEW_LINE>if (fileType.equals("pdf")) {<NEW_LINE>O...
QrCode qr = encoder.fixate();
1,817,282
public TypeBinding erasure() {<NEW_LINE>if (this.upperBounds != null && this.upperBounds.length > 1) {<NEW_LINE>ReferenceBinding[] erasures = new ReferenceBinding[this.upperBounds.length];<NEW_LINE>boolean multipleErasures = false;<NEW_LINE>for (int i = 0; i < this.upperBounds.length; i++) {<NEW_LINE>// FIXME cast?<NEW...
this.environment.createIntersectionType18(erasures);
861,041
private static ExemplarData mapExemplar(Exemplar exemplar) {<NEW_LINE>// Look for trace/span id.<NEW_LINE>SpanContext spanContext = SpanContext.getInvalid();<NEW_LINE>if (exemplar.getAttachments().containsKey("SpanContext")) {<NEW_LINE>// We need to use `io.opencensus.contrib.exemplar.util.AttachmentValueSpanContext`<N...
traceId = mr.group(1);
881,185
private List<MapDelegateEvent<K, V>> antiEntropyCheckLocalItems(AntiEntropyAdvertisement ad) {<NEW_LINE>final List<MapDelegateEvent<K, V>> externalEvents = Lists.newLinkedList();<NEW_LINE>final MemberId sender = ad.sender();<NEW_LINE>final List<MemberId> peers = ImmutableList.of(sender);<NEW_LINE>Set<String> staleOrMis...
digest().keySet());
467,641
public void launch(GhidraApplicationLayout layout, String[] args) throws IOException {<NEW_LINE>if (args.length != 2) {<NEW_LINE>System.out.println("Usage: DataTypeArchiveDumper <ArchiveFileName> <outputFileName");<NEW_LINE>System.exit(0);<NEW_LINE>}<NEW_LINE>Application.initializeApplication(layout, new ApplicationCon...
new File(args[0]);
1,492,026
public static void sendParam(Map<String, String> params) {<NEW_LINE>StringBuffer sb = new StringBuffer();<NEW_LINE>Iterator<String> paramIter = params.keySet().iterator();<NEW_LINE>while (paramIter.hasNext()) {<NEW_LINE>String key = paramIter.next();<NEW_LINE>String value = params.get(key);<NEW_LINE>sb.append(key + ":"...
.split(" ")[1];
751,948
public void checkConditionFieldsInTable(SqlNode conditionNode, JoinScope joinScope, AbstractSideTableInfo sideTableInfo) {<NEW_LINE>List<SqlNode> sqlNodeList = Lists.newArrayList();<NEW_LINE>ParseUtils.parseAnd(conditionNode, sqlNodeList);<NEW_LINE>for (SqlNode sqlNode : sqlNodeList) {<NEW_LINE>if (!SqlKind.COMPARISON....
).getOperands()[1];
1,687,477
private static <T> UnhandledResult<T> unhandled(ImmutableMap<Type, T> handles, VisitorState state) {<NEW_LINE>LinkedHashSet<Type> toHandle = new LinkedHashSet<>();<NEW_LINE>for (Class<?> e : Arrays.asList(InstantiationException.class, IllegalAccessException.class, InvocationTargetException.class, NoSuchMethodException....
Type type = entry.getKey();
1,154,222
public int clearSortPreferenceLines(final I_AD_User_SortPref_Hdr hdr) {<NEW_LINE>final IQueryBL queryBL = <MASK><NEW_LINE>int count = 0;<NEW_LINE>final List<I_AD_User_SortPref_Line> linesToDelete = retrieveSortPreferenceLines(hdr);<NEW_LINE>for (final I_AD_User_SortPref_Line line : linesToDelete) {<NEW_LINE>final int c...
Services.get(IQueryBL.class);
1,168,940
public void pingReceived(Ping pong) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>long previousPingTime = lastPingSentOn.get();<NEW_LINE>int previousPingValue = (int) (previousPingTime & 0xffffffffL);<NEW_LINE>int pongValue = pong.getValue2().intValue();<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.de...
, lastPingRoundTripTime.get() });
589,188
final GetPhoneNumberResult executeGetPhoneNumber(GetPhoneNumberRequest getPhoneNumberRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPhoneNumberRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
(super.beforeMarshalling(getPhoneNumberRequest));
734,285
public HitType queryEnvelopeInGeometry(Envelope2D env) {<NEW_LINE>if (!env.intersect(m_geomEnv))<NEW_LINE>return HitType.Outside;<NEW_LINE>int ixmin = worldToPixX(env.xmin);<NEW_LINE>int ixmax = worldToPixX(env.xmax);<NEW_LINE>int iymin = worldToPixY(env.ymin);<NEW_LINE>int iymax = worldToPixY(env.ymax);<NEW_LINE>if (i...
= (ix & 15) * 2;
1,185,205
public SnapshotGroup takeSnapshot(final Map<String, String> srcVolumeDestSnapshotMap) {<NEW_LINE>Preconditions.checkArgument(srcVolumeDestSnapshotMap != null && !srcVolumeDestSnapshotMap.isEmpty(), "srcVolumeDestSnapshotMap cannot be null");<NEW_LINE>final List<SnapshotDef> defs = new ArrayList<>();<NEW_LINE>for (final...
"/instances/System/action/snapshotVolumes", snapshotDefs, SnapshotGroup.class);
730,822
public void methodMustBeAccessedWithInstance(ReferenceExpression expression, MethodBinding instanceMethod) {<NEW_LINE>TypeBinding receiverType = instanceMethod.declaringClass;<NEW_LINE>char[] selector = instanceMethod.selector;<NEW_LINE>StringBuffer buffer = new StringBuffer();<NEW_LINE>StringBuffer shortBuffer = new S...
expression.sourceStart, expression.sourceEnd);
622,271
protected void generateComponentLifecycle() {<NEW_LINE>// 1. onCreate:<NEW_LINE>searchAndBuildMethod(AndroidEntryPointConstants.SERVICE_ONCREATE, component, thisLocal);<NEW_LINE>// service has two different lifecycles:<NEW_LINE>// lifecycle1:<NEW_LINE>// 2. onStart:<NEW_LINE>searchAndBuildMethod(AndroidEntryPointConsta...
AndroidEntryPointConstants.SERVICE_ONSTART2, component, thisLocal);
56,876
public static DisplayedAlbums albumDataSet() {<NEW_LINE>var titleList = new String[] { "HQ", "The Rough Dancer and Cyclical Night", "The Black Light", "Symphony No.5" };<NEW_LINE>var artistList = new String[] { "Roy Harper", "Astor Piazzola", "The Black Light", "CBSO" };<NEW_LINE>var isClassicalList = new boolean[] { <...
false, false, false, true };
1,219,917
private void dumpDBMeta(DatabaseMetaData dbMeta) throws SQLException {<NEW_LINE>final String dbProductName = dbMeta.getDatabaseProductName();<NEW_LINE>final String dbProductVersion = dbMeta.getDatabaseProductVersion();<NEW_LINE>final String jdbcDriverVersion = dbMeta.getDriverVersion();<NEW_LINE>final String jdbcURL = ...
"TABLE_SCHEM")).append("\n");
684,636
// @Override<NEW_LINE>public void updated(String pid, Dictionary<String, ?> properties) throws ConfigurationException {<NEW_LINE>System.<MASK><NEW_LINE>String id = (String) properties.get("id");<NEW_LINE>_properties = cloneDictionary(properties);<NEW_LINE>System.out.println("pid:" + pid + " id:" + id);<NEW_LINE>if (_co...
out.println("Updating configuration properties:" + properties);
1,134,125
private List<StarRocksRangePartitioner.PartitionRangeKey> createPartitionRangeKeys(EtlJobConfig.EtlPartitionInfo partitionInfo, List<Class> partitionKeySchema) throws SparkDppException {<NEW_LINE>List<StarRocksRangePartitioner.PartitionRangeKey> partitionRangeKeys = new ArrayList<>();<NEW_LINE>for (EtlJobConfig.EtlPart...
partitionKeySchema.get(i)));
326,983
void importItems(@NonNull List<SettingsItem> items, boolean forceReadData) throws IllegalArgumentException {<NEW_LINE>if (Algorithms.isEmpty(items)) {<NEW_LINE>throw new IllegalArgumentException("No items");<NEW_LINE>}<NEW_LINE>Collection<RemoteFile> remoteFiles = backupHelper.getBackup().getRemoteFiles(RemoteFilesType...
tasks = new ArrayList<>();
1,010,353
public List<T> query(String filter, String sortBy, boolean ascending, String zoneId) {<NEW_LINE>validateOrderBy(queryConverter.map(sortBy));<NEW_LINE>SearchQueryConverter.ProcessedFilter where = queryConverter.convert(filter, sortBy, ascending, zoneId);<NEW_LINE>logger.debug("Filtering groups with SQL: " + where);<NEW_...
where.getParams(), rowMapper);
941,915
public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not val...
format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id)));
752,451
private void sendHeartbeatAlertIfNeeded(String agentRollupId, String agentRollupDisplay, AlertConfig alertConfig, HeartbeatCondition heartbeatCondition, long endTime, boolean currentlyTriggered) throws Exception {<NEW_LINE>AlertCondition alertCondition = alertConfig.getCondition();<NEW_LINE>OpenIncident openIncident = ...
alertConfig.getNotification(), endTime);
1,712,995
static Map<String, IpAccessList> toIpAccessLists(@Nonnull AccessLayer access, Map<Uid, NamedManagementObject> objects, ServiceToMatchExpr serviceToMatchExpr, AddressSpaceToMatchExpr addressSpaceToMatchExpr, Map.Entry<ManagementDomain, GatewayOrServer> domainAndGateway, Warnings w) {<NEW_LINE>ImmutableMap.Builder<String...
addressSpaceToMatchExpr, domainAndGateway, policyTargetsUid, w);
854,105
public void actionPerformed(ActionEvent e) {<NEW_LINE>log.config("");<NEW_LINE>if (e.getSource().equals(searchButton)) {<NEW_LINE>log.config("search");<NEW_LINE>mainPanel.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));<NEW_LINE>refresh();<NEW_LINE>mainPanel.setCursor(Cursor.getDefaultCursor());<NEW_LINE>} el...
setCursor(Cursor.getDefaultCursor());
724,553
public CompletableFuture<byte[]> readMemory(Address address, int length) {<NEW_LINE>AddressSpace addressSpace = address.getAddressSpace();<NEW_LINE>if (addressSpace.equals(impl.getAddressSpace("ram"))) {<NEW_LINE>byte[] bytes = new byte[length];<NEW_LINE>Method <MASK><NEW_LINE>if (method != null && targetVM.vm.canGetBy...
method = impl.getMethodForAddress(address);
270,917
public Request<PutMetricDataRequest> marshall(PutMetricDataRequest putMetricDataRequest) {<NEW_LINE>if (putMetricDataRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(PutMetricDataRequest)");<NEW_LINE>}<NEW_LINE>Request<PutMetricDataRequest> request = new DefaultRequest<Pu...
metricDataItem, request, prefix + ".");
1,621,001
final DeleteClientVpnRouteResult executeDeleteClientVpnRoute(DeleteClientVpnRouteRequest deleteClientVpnRouteRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteClientVpnRouteRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
endClientExecution(awsRequestMetrics, request, response);
1,726,727
private void addToDefinePropertiesObject(ClassDeclarationMetadata metadata, Node member) {<NEW_LINE>Preconditions.checkArgument(!member.isComputedProp());<NEW_LINE>Node obj = member.isStaticMember() ? metadata.getDefinePropertiesObjForClass() : metadata.getDefinePropertiesObjForPrototype();<NEW_LINE>Node prop = NodeUti...
obj, member.getString());
776,802
static void encode(EncodeState state, BigInteger i) {<NEW_LINE>// System.out.println("Encoding integral " + i);<NEW_LINE>if (i.equals(BigInteger.ZERO)) {<NEW_LINE>state.add(INT_ZERO_CODE);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int n = minimalByteCount(i);<NEW_LINE>if (n > 0xff) {<NEW_LINE>throw new IllegalArgumentExcept...
.add((byte) n);
980,654
public static void main(String[] args) throws Exception {<NEW_LINE>FindBugs.setNoAnalysis();<NEW_LINE>// load plugins<NEW_LINE>DetectorFactoryCollection.instance();<NEW_LINE>MineBugHistory mineBugHistory = new MineBugHistory();<NEW_LINE>MineBugHistoryCommandLine commandLine = mineBugHistory.new MineBugHistoryCommandLin...
[argCount++]), true);
294,007
public static UserTrade adaptUserTrade(Map map) {<NEW_LINE>OrderType type = OrderType.BID;<NEW_LINE>if (map.get("type").toString().equals("SELL"))<NEW_LINE>type = OrderType.ASK;<NEW_LINE>Currency ccyA = Currency.getInstance(map.get("fixedCurrency").toString());<NEW_LINE>Currency ccyB = Currency.getInstance(map.get("var...
get("id").toString();
1,045,698
// [END tts_synthesize_ssml]<NEW_LINE>public static void main(String... args) throws Exception {<NEW_LINE>ArgumentParser parser = ArgumentParsers.newFor("SynthesizeText").build().defaultHelp<MASK><NEW_LINE>MutuallyExclusiveGroup group = parser.addMutuallyExclusiveGroup().required(true);<NEW_LINE>group.addArgument("--te...
(true).description("Synthesize a text, text with audio effect profiles, or ssml.");
282,882
private ObjectGroup unmarshalObjectGroup(Node t) throws Exception {<NEW_LINE>ObjectGroup og = null;<NEW_LINE>try {<NEW_LINE>og = unmarshalClass(t, ObjectGroup.class);<NEW_LINE>} catch (JAXBException e) {<NEW_LINE>// todo: replace with log message<NEW_LINE>e.printStackTrace();<NEW_LINE>return og;<NEW_LINE>}<NEW_LINE>fin...
.addObject(readMapObject(child));
1,326,073
private BeanDefinition parseJupiterProvider(Element element, ParserContext parserContext) {<NEW_LINE>RootBeanDefinition def = new RootBeanDefinition();<NEW_LINE>def.setBeanClass(beanClass);<NEW_LINE>addPropertyReference(def, element, "server", true);<NEW_LINE>addPropertyReference(def, element, "providerImpl", true);<NE...
Element) item, "executor", false);
1,605,819
public void formerSerialize(ByteBuffer buffer) {<NEW_LINE>buffer.put((byte) PhysicalPlanType.CREATE_ALIGNED_TIMESERIES.ordinal());<NEW_LINE>byte[] bytes = prefixPath<MASK><NEW_LINE>buffer.putInt(bytes.length);<NEW_LINE>buffer.put(bytes);<NEW_LINE>ReadWriteIOUtils.write(measurements.size(), buffer);<NEW_LINE>for (String...
.getFullPath().getBytes();
962,419
public Request<DescribeReservedInstancesListingsRequest> marshall(DescribeReservedInstancesListingsRequest describeReservedInstancesListingsRequest) {<NEW_LINE>if (describeReservedInstancesListingsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LIN...
, StringUtils.fromString(valuesListValue));
300,591
public StringBuilder exportEverything(JsonMeterRegistry meterRegistry) {<NEW_LINE>JsonObjectBuilder root = JSON_PROVIDER.createObjectBuilder();<NEW_LINE>List<Gauge> gauges = new ArrayList<>();<NEW_LINE>List<Counter> counters = new ArrayList<>();<NEW_LINE>List<TimeGauge> timeGauges = new ArrayList<>();<NEW_LINE>List<Fun...
).forEach(root::add);
947,911
final DeleteDatasetResult executeDeleteDataset(DeleteDatasetRequest deleteDatasetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDatasetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
endClientExecution(awsRequestMetrics, request, response);
754,800
protected RequestBody finalizeData() {<NEW_LINE>DataObject object = DataObject.empty();<NEW_LINE>// All channel types<NEW_LINE>object.put("name", name);<NEW_LINE>object.put("type", type.getId());<NEW_LINE>object.put("permission_overwrites", DataArray.fromCollection(overrides.valueCollection()));<NEW_LINE>if (position !...
object.put("nsfw", nsfw);
1,192,083
public com.amazonaws.services.personalizeruntime.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.personalizeruntime.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.personalizeruntime.model.Re...
String currentParentElement = context.getCurrentParentElement();
1,722,317
public static void onGlBindFramebuffer(final int target, final int id) {<NEW_LINE>long eglContextId = 0L;<NEW_LINE>if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {<NEW_LINE>eglContextId = EGL14.eglGetCurrentContext().getNativeHandle();<NEW_LINE>}<NEW_LINE>final long finalEglContextId =...
FRAME_BUFFERS, target, finalEglContextId, info);
1,319,798
protected Rectangle computePopupBounds(int px, int py, int pw, int ph) {<NEW_LINE>// get maximum display width of all items<NEW_LINE>int displayWidth = getDisplaySize().width;<NEW_LINE>// add border insets<NEW_LINE>for (Border border : new Border[] { scroller.getViewportBorder(), scroller.getBorder() }) {<NEW_LINE>if (...
JScrollBar verticalScrollBar = scroller.getVerticalScrollBar();
678,498
protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) {<NEW_LINE>bindGuiTexture();<NEW_LINE>this.drawTexturedModalRect(getGuiLeft(), getGuiTop(), 0, 0, getXSize(), getYSize());<NEW_LINE>int x = getGuiLeft() + 22;<NEW_LINE>int y = getGuiTop() + 11;<NEW_LINE>RenderUtil.renderGuiTank(getTileEntity...
color.getBlue() / 255f);
515,417
public void toChips(LayoutInflater inflater, ChipGroup group) {<NEW_LINE>Context ctx = inflater.getContext();<NEW_LINE>if (!showMasked)<NEW_LINE>addChip(inflater, group, R.id.not_hidden, ctx.getString(R.string.not_hidden_filter));<NEW_LINE>if (onlyBLocked)<NEW_LINE>addChip(inflater, group, R.id.blocked, ctx.getString(R...
.getStatusLabel(status, ctx));
876,904
<T> From<?, T> createJoin(SearchBuilderJoinEnum theType, String theSearchParameterName) {<NEW_LINE>if (myParamType == null) {<NEW_LINE>switch(theType) {<NEW_LINE>case REFERENCE:<NEW_LINE>myRoot = myQuery.from(ResourceLink.class);<NEW_LINE>myResourcePidColumn = myRoot.get("mySourceResourcePid").as(Long.class);<NEW_LINE>...
).as(Long.class);
1,426,192
public static void test() {<NEW_LINE>MemoryTransactionalSpout spout = new MemoryTransactionalSpout(DATA, new Fields("word"), PARTITION_TAKE_PER_BATCH);<NEW_LINE>TransactionalTopologyBuilder builder = new TransactionalTopologyBuilder("top-n-words", "spout", spout, 2);<NEW_LINE>builder.setBolt("count", new KeyedCountUpda...
()).noneGrouping("count");
1,110,804
public byte[] build() throws SaikuServiceException {<NEW_LINE>Long start = (new Date()).getTime();<NEW_LINE>int startRow = initExcelSheet();<NEW_LINE>Long init = (new Date()).getTime();<NEW_LINE>int lastHeaderRow = buildExcelTableHeader(startRow);<NEW_LINE>Long header = (new Date()).getTime();<NEW_LINE>addExcelTableRow...
throw new SaikuServiceException("Error creating excel export for query", e);
1,494,168
private SqlPrecondition parseSqlCheckCondition(String body) throws ChangeLogParseException {<NEW_LINE>Pattern[] patterns = new Pattern[] { Pattern.compile("^(?:expectedResult:)?(\\w+) (.*)", Pattern.CASE_INSENSITIVE), Pattern.compile("^(?:expectedResult:)?'([^']+)' (.*)", Pattern.CASE_INSENSITIVE), Pattern.compile("^(?...
matcher = pattern.matcher(body);
599,476
protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException {<NEW_LINE>if (notMarkedAsAMockitoMock(readObject())) {<NEW_LINE>return super.resolveClass(desc);<NEW_LINE>}<NEW_LINE>// create the Mockito mock class before it can even be deserialized<NEW_LINE>try {<NEW_LINE>@SuppressWa...
.setSerializableMode(SerializableMode.ACROSS_CLASSLOADERS));
1,606,859
public void onClose(CachedOutputStream cos) {<NEW_LINE>LoggingMessage buffer = setupBuffer(message);<NEW_LINE>String ct = (String) message.get(Message.CONTENT_TYPE);<NEW_LINE>if (!isShowBinaryContent() && isBinaryContent(ct)) {<NEW_LINE>buffer.getMessage().append(BINARY_CONTENT_MESSAGE).append('\n');<NEW_LINE>log(logge...
append("(message truncated to " + limit + " bytes)\n");
242,768
public int run_normal(NonBlockingHashMap<String, String> hm) {<NEW_LINE>SimpleRandom R = new SimpleRandom();<NEW_LINE>int get_ops = 0;<NEW_LINE>int put_ops = 0;<NEW_LINE>int del_ops = 0;<NEW_LINE>while (!_stop) {<NEW_LINE>int x = R.nextInt() & ((1 << 20) - 1);<NEW_LINE>String key = KEYS[R.nextInt() & (KEYS.length - 1)]...
val = hm.get(key);
1,445,580
private void writeTriggerInstancesData(final List<HashMap<String, Object>> output, final TriggerInstance triggerInst) {<NEW_LINE>final HashMap<String, Object> <MASK><NEW_LINE>data.put("id", triggerInst.getId());<NEW_LINE>data.put("starttime", triggerInst.getStartTime());<NEW_LINE>data.put("endtime", triggerInst.getEndT...
data = new HashMap<>();
1,478,714
public void PostTag() {<NEW_LINE>JSONObject tagJSON;<NEW_LINE>try {<NEW_LINE>tagJSON = prepareTagJSON();<NEW_LINE>} catch (Exception e) {<NEW_LINE>CobubLog.e(UmsConstants.LOG_TAG, e);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JSONObject postdata = new JSONObject();<NEW_LINE>try {<NEW_LINE>postdata.put("data", new JSONArray<...
().put(tagJSON));
1,271,890
public void messageSent(IoSession session, Object message) throws Exception {<NEW_LINE>log.trace("messageSent session: {} message: {}", session, message);<NEW_LINE>String sessionId = (String) <MASK><NEW_LINE>if (isTrace) {<NEW_LINE>log.trace("Message sent on session: {} id: {}", session.getId(), sessionId);<NEW_LINE>}<...
session.getAttribute(RTMPConnection.RTMP_SESSION_ID);
766,224
protected String doInBackground(IndexItem... filesToDownload) {<NEW_LINE>try {<NEW_LINE>List<File> filesToReindex = new ArrayList<>();<NEW_LINE>boolean forceWifi = downloadFileHelper.isWifiConnected();<NEW_LINE>Set<IndexItem> currentDownloads = new HashSet<>();<NEW_LINE>StringBuilder warnings = new StringBuilder();<NEW...
downloads.get() + 1);
1,626,999
private void okPressed() {<NEW_LINE>boolean ca = jcbSubjectIsCa.isSelected();<NEW_LINE>int pathLengthConstraint = -1;<NEW_LINE>String pathLengthConstraintStr = jtfPathLengthConstraint.getText().trim();<NEW_LINE>if (pathLengthConstraintStr.length() > 0) {<NEW_LINE>try {<NEW_LINE>pathLengthConstraint = Integer.parseInt(p...
getTitle(), JOptionPane.WARNING_MESSAGE);
1,089,489
private static void benchmark(final MemcachedBackupSessionManager manager, final SessionAttributesTranscoder transcoder, final Stats serializationStats, final Stats deserializationStats, final int rounds, final int countPersons, final int nodesPerEdge) throws InterruptedException {<NEW_LINE>System.out.println("Running ...
+ nodesPerEdge + 1) + ")");
1,019,361
public Bitmap createNakedBitmap(int width, int height, Bitmap.Config bitmapConfig) {<NEW_LINE>CloseableReference<PooledByteBuffer> jpgRef = mJpegGenerator.generate((short) width, (short) height);<NEW_LINE>EncodedImage encodedImage = null;<NEW_LINE>CloseableReference<byte[]> encodedBytesArrayRef = null;<NEW_LINE>try {<N...
encodedImage.getSampleSize(), bitmapConfig);
419,940
public void write(RTree<T, S> tree, OutputStream os) throws IOException {<NEW_LINE>FlatBufferBuilder builder = new FlatBufferBuilder();<NEW_LINE>final Rectangle mbb;<NEW_LINE>if (tree.root().isPresent()) {<NEW_LINE>mbb = tree.root().get().geometry().mbr();<NEW_LINE>} else {<NEW_LINE>mbb = Geometries.rectangle(0, 0, 0, ...
b = toBounds(builder, mbb);
617,436
public void removeRange(int start, int end) {<NEW_LINE>int n = size;<NEW_LINE>if (end >= n)<NEW_LINE>throw new IndexOutOfBoundsException("end can't be >= size: " + end + " >= " + size);<NEW_LINE>if (start > end)<NEW_LINE>throw new IndexOutOfBoundsException("start can't be > end: " + start + " > " + end);<NEW_LINE>T[] i...
++) items[i] = null;
1,480,833
protected void init() throws IOException {<NEW_LINE>_selector = Selector.open();<NEW_LINE>Task task = null;<NEW_LINE>try {<NEW_LINE>_clientConnection = SocketChannel.open();<NEW_LINE>s_logger.info("Connecting to " + _host + ":" + _port);<NEW_LINE>final InetSocketAddress peerAddr = new InetSocketAddress(_host, _port);<N...
"Connected to " + _host + ":" + _port);
1,297,427
public com.amazonaws.services.simplesystemsmanagement.model.UnsupportedCalendarException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simplesystemsmanagement.model.UnsupportedCalendarException unsupportedCalendarException = new com.amazonaws.services.simplesy...
String currentParentElement = context.getCurrentParentElement();
613,256
private FileTransfer sendFile(File file, boolean isMultimediaMessage) throws Exception {<NEW_LINE>// If this chat transport does not support instant messaging we do<NEW_LINE>// nothing here.<NEW_LINE>if (!allowsFileTransfer())<NEW_LINE>return null;<NEW_LINE>if (FileUtils.isImage(file.getName())) {<NEW_LINE>// Create a ...
).getOperationSet(OperationSetFileTransfer.class);
599,607
public static RecordChangeLog createBPartnerLocationChangeLog(@NonNull final I_C_BPartner_Location bpartnerLocationRecord, @NonNull final CompositeRelatedRecords relatedRecords) {<NEW_LINE>final List<RecordChangeLogEntry> domainEntries = new ArrayList<>();<NEW_LINE>final ImmutableListMultimap<TableRecordReference, Reco...
entry.ifPresent(domainEntries::add);
307,356
private static PartitionMetricSample readV0(ByteBuffer buffer) {<NEW_LINE><MASK><NEW_LINE>int brokerId = buffer.getInt();<NEW_LINE>int partition = buffer.getInt(45);<NEW_LINE>String topic = new String(buffer.array(), 49, buffer.array().length - 49, UTF_8);<NEW_LINE>PartitionMetricSample sample = new PartitionMetricSamp...
MetricDef metricDef = KafkaMetricDef.commonMetricDef();
89,605
public CacheBehaviorPerPath unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CacheBehaviorPerPath cacheBehaviorPerPath = new CacheBehaviorPerPath();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
JsonToken token = context.getCurrentToken();
1,642,122
private void eliminateReservation(MStorage target) {<NEW_LINE>// Negative Ordered / Reserved Qty<NEW_LINE>if (target.getQtyReserved().signum() != 0 || target.getQtyOrdered().signum() != 0) {<NEW_LINE><MASK><NEW_LINE>MStorage storage0 = MStorage.get(getCtx(), M_Locator_ID, target.getM_Product_ID(), 0, get_TrxName());<NE...
int M_Locator_ID = target.getM_Locator_ID();
172,415
private void checkSourceAttachmentChange(IResourceDelta delta, IResource res) {<NEW_LINE>IPath rootPath = this.state.sourceAttachments.get(externalPath(res));<NEW_LINE>if (rootPath != null) {<NEW_LINE>RootInfo rootInfo = rootInfo(rootPath, delta.getKind());<NEW_LINE>if (rootInfo != null) {<NEW_LINE>IJavaProject project...
currentDelta().sourceDetached(root);
614,755
private void loadBoosterPacks(String packString) {<NEW_LINE>if (!packString.isEmpty()) {<NEW_LINE>String[] packsArray = packString.substring(1, packString.length() - 1).split(",");<NEW_LINE>int packNumber = 0;<NEW_LINE>for (String pack : packsArray) {<NEW_LINE>packNumber++;<NEW_LINE>if (!packPanels.isEmpty() && this.pa...
int size = model.getSize();
973,594
public void read(org.apache.thrift.protocol.TProtocol prot, TFJvmGcDetailed struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(8);<NEW_LINE>if (incoming.get(0)) {...
.jvmPoolNewGenUsed = iprot.readDouble();
7,748
private ImmutableList<DunningAttachment> createDunningAttachments(@NonNull final DunningDocId dunningDocId) {<NEW_LINE>final ImmutableList.Builder<DunningAttachment> dunningAttachments = ImmutableList.builder();<NEW_LINE>final List<I_C_Invoice> dunnedInvoiceRecords = dunningService.retrieveDunnedInvoices(dunningDocId);...
attachments = attachmentEntryService.getByQuery(query);
1,418,406
private void insert(QNm field, Sequence value, JsonNodeTrx trx) {<NEW_LINE>final var fieldName = field.getLocalName();<NEW_LINE>if (value instanceof Atomic) {<NEW_LINE>if (value instanceof Str) {<NEW_LINE>trx.insertObjectRecordAsLastChild(fieldName, new StringValue(((Str) value).stringValue()));<NEW_LINE>} else if (val...
value).decimalValue()));
1,422,638
public static void checkAbbreviations() throws IOException {<NEW_LINE>LinkedHashSet<String> fromProper = new LinkedHashSet<>(TextIO.loadLinesFromResource("tr/proper-from-corpus.dict"));<NEW_LINE>LinkedHashSet<String> fromAbbrv = new LinkedHashSet<>(TextIO.loadLinesFromResource("tr/abbreviations.dict"));<NEW_LINE>Map<St...
>(map.values());
933,674
private Set<T> findIn(File windowsKitDir, DiscoveryType discoveryType) {<NEW_LINE>Set<T> found = new LinkedHashSet<T>();<NEW_LINE>String[] versionDirs = getComponentVersionDirs(windowsKitDir);<NEW_LINE>for (String versionDir : versionDirs) {<NEW_LINE>VersionNumber version = VersionNumber.withPatchNumber().parse(version...
version.toString(), windowsKitDir);
1,827,436
public static BufferCachingGrpcDataReader create(FileSystemContext context, WorkerNetAddress address, ReadRequest readRequest) throws IOException {<NEW_LINE>AlluxioConfiguration alluxioConf = context.getClusterConf();<NEW_LINE>int readerBufferSizeMessages = alluxioConf.getInt(PropertyKey.USER_STREAMING_READER_BUFFER_SI...
<ReadRequest, ReadResponse> stream = null;
1,666,587
public void opposingBracketColor(String str, int cur, int len) {<NEW_LINE>if (inOpposingBracketColor) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>inOpposingBracketColor = true;<NEW_LINE>if (highlight != null) {<NEW_LINE>Highlighter h = mEditor.getHighlighter();<NEW_LINE>h.removeHighlight(highlight);<NEW_LINE>}<NEW_LINE>if (...
cur, '{', '}', true);
1,203,271
public static void main(String[] args) throws ParseException, IOException {<NEW_LINE>Options options = new Options();<NEW_LINE>options.addOption(Option.builder("c").longOpt("command").hasArg().argName("COMMAND").desc("supported COMMAND: ingest / commit").build());<NEW_LINE>options.addOption(Option.builder("d").longOpt(...
("data directory of HDFS. e.g., hdfs://1.2.3.4:9000/build_output").build());
754,041
static void doComplex(Object valist, int index, @SuppressWarnings("unused") LLVMType accessType, PComplex value, @CachedLibrary("valist") InteropLibrary vaListLib, @CachedLibrary(limit = "1") InteropLibrary outVarPtrLib, @Shared("getLLVMType") @Cached GetLLVMType getLLVMTypeNode) {<NEW_LINE>try {<NEW_LINE>// like 'some...
"real", value.getReal());
696,868
public void visitAnnotations(final AnnotatedNode node) {<NEW_LINE>List<AnnotationNode> nodeAnnotations = node.getAnnotations();<NEW_LINE>if (nodeAnnotations.isEmpty())<NEW_LINE>return;<NEW_LINE>super.visitAnnotations(node);<NEW_LINE>for (; ; ) {<NEW_LINE>Map<Integer, AnnotationCollectorMode> modes = new LinkedHashMap<>...
> annotationNodeList = entry.getValue();
837,192
public Deck createDeck(long did, DeckManager decks) {<NEW_LINE>Timber.d("Trying to get deck settings for deck with id=%s", did);<NEW_LINE>DeckConfig conf = decks.confForDid(did);<NEW_LINE>int newPerDay = mSettings.getMaxNewPerDay();<NEW_LINE>int revPerDay = mSettings.getMaxReviewsPerDay();<NEW_LINE>int initialFactor = ...
("new").getInt("initialFactor");
648,956
private Mono<SubscriptionsListSecretsResponse> listSecretsWithResponseAsync(String resourceGroupName, String serviceName, String sid, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot b...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
508,327
public ListRecordHistorySearchFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListRecordHistorySearchFilter listRecordHistorySearchFilter = new ListRecordHistorySearchFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
JsonToken token = context.getCurrentToken();
1,475,315
public void showMenuBuilderRecords(ActionRequest request, ActionResponse response) {<NEW_LINE>MenuBuilder menuBuilder = request.getContext().asType(MenuBuilder.class);<NEW_LINE>if (menuBuilder.getMetaMenu() == null || menuBuilder.getMetaMenu().getAction() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>M...
domain(actionView.getDomain());
972,332
final UpdateJobResult executeUpdateJob(UpdateJobRequest updateJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,327,135
final CopySnapshotResult executeCopySnapshot(CopySnapshotRequest copySnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(copySnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
589,534
public static void onCreateOptionsMenu(@NonNull Menu menu, @NonNull MenuInflater inflater) {<NEW_LINE>inflater.inflate(R.menu.menu_app_list, menu);<NEW_LINE>menu.findItem(R.id.item_enabled_top).setChecked(XposedApp.getPreferences().getBoolean("enabled_top", true));<NEW_LINE>menu.findItem(R.id.item_show_modules).setChec...
.getBoolean("show_modules", true));
1,561,551
public byte[] encodeBlock(byte[] in, int inOff, int inLen) throws InvalidCipherTextException {<NEW_LINE>if (inLen > getInputBlockSize()) {<NEW_LINE>throw new DataLengthException("input data too long");<NEW_LINE>}<NEW_LINE>byte[] block = new byte[getInputBlockSize() + 1 + 2 * defHash.length];<NEW_LINE>//<NEW_LINE>// cop...
block, 0, block.length);
248,461
protected void parseRoutingCodeHeader() {<NEW_LINE>String rtCode = this.<MASK><NEW_LINE>if (rtCode != null) {<NEW_LINE>try {<NEW_LINE>int routingTypeCode = Integer.parseInt(rtCode);<NEW_LINE>this.parsedRoutingType = RequestRoutingType.getRequestRoutingType(routingTypeCode);<NEW_LINE>} catch (NumberFormatException nfe) ...
request.getHeader(RestMessageHeaders.X_VOLD_ROUTING_TYPE_CODE);
817,574
public BVarSymbol defineVarSymbol(Location pos, Set<Flag> flagSet, BType varType, Name varName, Name origName, SymbolEnv env, boolean isInternal) {<NEW_LINE>// Create variable symbol<NEW_LINE>Scope enclScope = env.scope;<NEW_LINE>BVarSymbol varSymbol = createVarSymbol(flagSet, varType, varName, env, pos, isInternal);<N...
flagSet.contains(Flag.INCLUDED);
423,184
private synchronized V _put(K key, V value, MODE m) {<NEW_LINE>LinkedEntry<K, V>[] tab = table;<NEW_LINE>int index = hash(key) % tab.length;<NEW_LINE>for (LinkedEntry<K, V> e = tab[index]; e != null; e = e.next) {<NEW_LINE>if (CompareUtil.equals(e.key, key)) {<NEW_LINE>V old = e.value;<NEW_LINE>e.value = value;<NEW_LIN...
header.link_prev, header, e);
405,518
public int unmarshal(byte[] buf, int offset) {<NEW_LINE>int i = offset;<NEW_LINE>try {<NEW_LINE>byte header = buf[i++];<NEW_LINE>if (header == (byte) 0) {<NEW_LINE>int length = 0;<NEW_LINE>for (int shift = 0; true; shift += 7) {<NEW_LINE>byte b = buf[i++];<NEW_LINE>length |= (b & 0x7f) << shift;<NEW_LINE>if (shift == 2...
media.unmarshal(buf, i);
583,499
private Dictionary loadDictionary(String locale, Settings nodeSettings, Environment env) throws Exception {<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("Loading hunspell dictionary [{}]...", locale);<NEW_LINE>}<NEW_LINE>Path dicDir = hunspellDir.resolve(locale);<NEW_LINE>if (FileSystemUtils.isAccessib...
nodeSettings.getAsBoolean("ignore_case", defaultIgnoreCase);
1,240,114
SQLServerEncryptionAlgorithm create(SQLServerSymmetricKey columnEncryptionKey, SQLServerEncryptionType encryptionType, String encryptionAlgorithm) throws SQLServerException {<NEW_LINE>assert (columnEncryptionKey != null);<NEW_LINE>if (encryptionType != SQLServerEncryptionType.Deterministic && encryptionType != SQLServe...
String factoryKey = factoryKeyBuilder.toString();
1,787,533
public String dumpOf() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(String.format("%s%n", this));<NEW_LINE>// Prepare output buffer<NEW_LINE>ByteProcessor buffer = getBuffer();<NEW_LINE>// Print the buffer<NEW_LINE>sb.append('+');<NEW_LINE>for (int c = 0; c < width; c++) {<NEW_LINE>sb.append('=...
(String.format("|%n"));