idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,316,566
private void populateAgentDisplayTable() throws Exception {<NEW_LINE>dropTableIfExists("agent_display");<NEW_LINE>session.createTableWithLCS("create table if not exists agent_display (agent_rollup_id" + " varchar, display varchar, primary key (agent_rollup_id))");<NEW_LINE>PreparedStatement insertPS = session.prepare("...
.getGeneralConfig().getDisplay();
81,504
public boolean append(final DirectBuffer srcBuffer, final int srcOffset, final int srcLength) {<NEW_LINE>final int headOffset = (int) head & mask;<NEW_LINE>final int tailOffset = (int) tail & mask;<NEW_LINE>final int alignedLength = BitUtil.align(HEADER_LENGTH + srcLength, HEADER_ALIGNMENT);<NEW_LINE>final int totalRem...
writeMessage(srcBuffer, srcOffset, srcLength);
1,314,242
public BExpressionValue evaluate() throws EvaluationException {<NEW_LINE>// The result of a range-expr is a new object belonging to the object type Iterable<int,()> that will iterate<NEW_LINE>// over a sequence of integers in increasing order, where the sequence includes all integers<NEW_LINE>// that are less than / le...
toSourceCode().trim());
551,063
private void drawMarker(Editor editor, Graphics2D g2, int x1, int x2, int y1, int y2, boolean ignoredBackgroundColor) {<NEW_LINE>if (x1 >= x2)<NEW_LINE>return;<NEW_LINE>ColorValue color = myDiffType.getColor(editor);<NEW_LINE>if (y2 - y1 > 2) {<NEW_LINE>if (!myResolved) {<NEW_LINE>g2.setColor(TargetAWT.to(ignoredBackgr...
x2 - x1, y2 - y1);
1,787,621
// recursively copy a record type<NEW_LINE>private RelDataType copyRecordType(final RelRecordType type, final boolean ignoreNullable, final boolean nullable) {<NEW_LINE>// REVIEW: angel 18-Aug-2005 dtbug336<NEW_LINE>// Shouldn't null refer to the nullability of the record type<NEW_LINE>// not the individual field types...
}, type.getFieldNames());
1,728,939
public SslConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SslConfiguration sslConfiguration = new SslConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
class).unmarshall(context));
877,324
public P convert(T thriftObj) {<NEW_LINE>Descriptor protoDesc = protoObj_.getDescriptorForType();<NEW_LINE>Map<? extends org.apache.thrift.TFieldIdEnum, FieldMetaData> fieldMap = FieldMetaData.getStructMetaDataMap(thriftObj.getClass());<NEW_LINE>for (Map.Entry<? extends TFieldIdEnum, FieldMetaData> e : fieldMap.entrySe...
= e.getValue().valueMetaData;
774,424
private static <T> StreamingDeserializer<T> newDeserializer(ObjectReader reader) {<NEW_LINE>final JsonFactory factory = reader.getFactory();<NEW_LINE>final JsonParser parser;<NEW_LINE>try {<NEW_LINE>// TODO(scott): ByteBufferFeeder is currently not supported by jackson, and the current API throws<NEW_LINE>// Unsupporte...
NonBlockingInputFeeder rawFeeder = parser.getNonBlockingInputFeeder();
979,178
public static MTAudioProcessingTap create(Callbacks callbacks, MTAudioProcessingTapCreationFlags flags) throws OSStatusException {<NEW_LINE>MTAudioProcessingTap.MTAudioProcessingTapPtr ptr = new MTAudioProcessingTap.MTAudioProcessingTapPtr();<NEW_LINE>long callbackId = MTAudioProcessingTap.callbackId.getAndIncrement();...
null, struct, flags, ptr);
542,746
private void verifyVersions() {<NEW_LINE>// [#12488] Check if all of jOOQ, jOOQ-meta, jOOQ-codegen are using the same versions and editions<NEW_LINE>try {<NEW_LINE>Field[] f1 = org.jooq.Constants.class.getFields();<NEW_LINE>Field[] f2 = org.jooq.meta.Constants.class.getFields();<NEW_LINE>Field[] f3 = org.jooq.codegen.C...
.jooq.meta.Constants.FULL_VERSION;
1,339,014
public void fullRedraw() {<NEW_LINE>super.fullRedraw();<NEW_LINE>addCSSClasses(svgp);<NEW_LINE>DBIDSelection selContext = context.getSelection();<NEW_LINE>if (!(selContext instanceof RangeSelection)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HyperBoundingBox range = ((RangeSelection) selContext).getRanges();<NEW_LINE>if (...
int vdim = proj.getVisibleDimensions();
1,473,747
public static void main(String[] args) {<NEW_LINE>final String USAGE = "\n" + "SetWebsiteConfiguration - set the website configuration for an S3 bucket\n\n" + "Usage: SetWebsiteConfiguration <bucket> [indexdoc] [errordoc]\n\n" + "Where:\n" + " bucket - the bucket to set the website configuration on\n" + " indexdo...
) ? args[2] : null;
393,652
public MessageHandler messageReceiver() {<NEW_LINE>return message -> {<NEW_LINE>LOGGER.info("Message arrived! Payload: " + message.getPayload());<NEW_LINE>DfdlDef dfdlDef;<NEW_LINE>try {<NEW_LINE>// Get DFDL Definition Getting from Firestore.<NEW_LINE>dfdlDef = firestoreService.getDfdlDef(dfdlDefName);<NEW_LINE>System....
"Definition from Firestore: " + dfdlDef.getDefinition());
522,257
private void transcodeSvgToPdfFile(File chosenFile, SVGGraphics2D g2d) {<NEW_LINE>final <MASK><NEW_LINE>final Element rootE = doc.getDocumentElement();<NEW_LINE>g2d.getRoot(rootE);<NEW_LINE>final TranscoderInput input = new TranscoderInput(doc);<NEW_LINE>try {<NEW_LINE>try (final FileOutputStream ostream = new FileOutp...
Document doc = g2d.getDOMFactory();
1,057,149
private NavigatableContextAction breakPointActionFactory(String name, String cmd, boolean oneshot, KeyBindingData keyBinding) {<NEW_LINE>NavigatableContextAction breakpoint_action;<NEW_LINE>breakpoint_action = new NavigatableContextAction(name, getName()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerfor...
, pgm.getName()));
1,273,496
public static CreateHotParamItemsResponse unmarshall(CreateHotParamItemsResponse createHotParamItemsResponse, UnmarshallerContext _ctx) {<NEW_LINE>createHotParamItemsResponse.setRequestId(_ctx.stringValue("CreateHotParamItemsResponse.RequestId"));<NEW_LINE>createHotParamItemsResponse.setCode(_ctx.stringValue("CreateHot...
(_ctx.stringValue("CreateHotParamItemsResponse.Data.Namespace"));
1,116,995
public void enableProgram(GL2 gl) {<NEW_LINE>gl.glUseProgram(st_prog);<NEW_LINE>gl.glActiveTexture(GL.GL_TEXTURE0);<NEW_LINE>gl.glBindTexture(GL.GL_TEXTURE_2D, textures[0]);<NEW_LINE>gl.glActiveTexture(GL.GL_TEXTURE1);<NEW_LINE>gl.glBindTexture(GL<MASK><NEW_LINE>// Reset to Texture0, needed for i945 (otherwise: slow)<N...
.GL_TEXTURE_2D, textures[1]);
977,465
final RemoveTagsFromResourceResult executeRemoveTagsFromResource(RemoveTagsFromResourceRequest removeTagsFromResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(removeTagsFromResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,734,955
public Javalin start() {<NEW_LINE>Util.<MASK><NEW_LINE>JettyUtil.disableJettyLogger();<NEW_LINE>long startupTimer = System.currentTimeMillis();<NEW_LINE>if (jettyServer.started) {<NEW_LINE>String message = "Server already started. If you are trying to call start() on an instance " + "of Javalin that was stopped using s...
logJavalinBanner(this._conf.showJavalinBanner);
1,827,830
private DataStreamSink<?> consume(DataStream<RowData> dataStream, boolean isBounded, DataStructureConverter converter) {<NEW_LINE>checkAcidTable(catalogTable, identifier.toObjectPath());<NEW_LINE>try (HiveMetastoreClientWrapper client = HiveMetastoreClientFactory.create(HiveConfUtils.create(jobConf), hiveVersion)) {<NE...
ConfVars.COMPRESSRESULT.varname, false);
1,844,311
public void createFunctionToCalledConstructorOrDestructorRefAddrPairMapping(Function function) throws CancelledException {<NEW_LINE>List<ReferenceAddressPair> referenceAddressPairs = new ArrayList<ReferenceAddressPair>();<NEW_LINE>Set<Function> calledFunctions = function.getCalledFunctions(monitor);<NEW_LINE>Iterator<F...
thunkFunction = calledFunction.getThunkedFunction(true);
111,737
protected void addFurtherParametersToUri(SearchRequest searchRequest, UriComponentsBuilder componentsBuilder, String query) {<NEW_LINE>if (!query.isEmpty()) {<NEW_LINE>componentsBuilder.queryParam("q", query);<NEW_LINE>}<NEW_LINE>if (config.getSupportedSearchTypes().contains(ActionAttribute.TVSEARCH)) {<NEW_LINE>if (se...
componentsBuilder.queryParam(passwordParameter, "0");
434,949
public static Collector<CurrencyAmountArray, ?, MultiCurrencyAmountArray> toMultiCurrencyAmountArray() {<NEW_LINE>return // accumulate into a map<NEW_LINE>Collector.<// accumulate into a map<NEW_LINE>CurrencyAmountArray, // accumulate into a map<NEW_LINE>Map<Currency, CurrencyAmountArray>, // accumulate into a map<NEW_...
, ca2, CurrencyAmountArray::plus));
1,186,082
public boolean checkTrigger(GameEvent event, Game game) {<NEW_LINE>if (!super.checkTrigger(event, game)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>EntersTheBattlefieldEvent entersEvent = (EntersTheBattlefieldEvent) event;<NEW_LINE>if (entersEvent.getFromZone() == Zone.LIBRARY) {<NEW_LINE>this.getEffects().clear();<N...
).getZoneChangeCounter(game) - 1;
7,340
private void drawBuffer(Graphics g, FontMetrics fm, String str, int dispStart, int dispEnd, ArrayList<Integer> specials, Bounds bds) {<NEW_LINE>int x = bds.getX();<NEW_LINE>int y = bds.getY();<NEW_LINE>g.setFont(DEFAULT_FONT);<NEW_LINE>if (fm == null)<NEW_LINE>fm = g.getFontMetrics();<NEW_LINE>final var asc = fm.getAsc...
drawString(sub, xs, ys);
259,451
public void executeTaskAlongWithPingTask(HostInventory inv) {<NEW_LINE>logger.debug(String.format("SimulatorHost[uuid:%s] is tracing vm status", inv.getUuid()));<NEW_LINE>Map<String, VmInstanceState> vms = new HashMap<String, VmInstanceState>();<NEW_LINE>Map<String, VmInstanceState> curr = config.getVmOnHost(inv.getUui...
), vms, null, null);
999,891
final StartDocumentTextDetectionResult executeStartDocumentTextDetection(StartDocumentTextDetectionRequest startDocumentTextDetectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startDocumentTextDetectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
469,163
public static Class _TextItemBuilder() {<NEW_LINE>Class tmp;<NEW_LINE>Class mTextItemBuilder = load("com/tencent/mobileqq/activity/aio/item/TextItemBuilder");<NEW_LINE>if (mTextItemBuilder == null) {<NEW_LINE>try {<NEW_LINE>tmp = load("com/tencent/mobileqq/activity/aio/item/TextItemBuilder$10");<NEW_LINE>mTextItemBuild...
getDeclaredField("this$0").getType();
1,287,147
public void onPlayerWhois(InfoComponent.PlayerWhoisEvent event) {<NEW_LINE>if (event.getPlayer() instanceof Player) {<NEW_LINE>Player player = (Player) event.getPlayer();<NEW_LINE>LocalPlayer <MASK><NEW_LINE>if (WorldGuard.getInstance().getPlatform().getGlobalStateManager().get(localPlayer.getWorld()).useRegions) {<NEW...
localPlayer = plugin.wrapPlayer(player);
1,602,641
private boolean observeDo(double secs) {<NEW_LINE>if (regionObserver == null) {<NEW_LINE>Debug.error("Region: observe: Nothing to observe (Region might be invalid): " + this.toStringShort());<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (observing) {<NEW_LINE>if (!observingInBackground) {<NEW_LINE>Debug.error("Region:...
Date()).getTime();
1,165,786
public void symbolAdded(Symbol symbol, int type, Address addr, Object oldValue, Object newValue) {<NEW_LINE>if (recordChanges) {<NEW_LINE>if (!symbol.isDynamic()) {<NEW_LINE>long symbolID = symbol.getID();<NEW_LINE>((ProgramDBChangeSet) changeSet).symbolAdded(symbolID);<NEW_LINE>}<NEW_LINE>if (symbol instanceof Variabl...
, function, null, null));
1,198,558
private static J2ObjcMappingFileProvider depJ2ObjcMappingFileProvider(RuleContext ruleContext) {<NEW_LINE>NestedSetBuilder<Artifact> depsHeaderMappingsBuilder = NestedSetBuilder.stableOrder();<NEW_LINE>NestedSetBuilder<Artifact> depsClassMappingsBuilder = NestedSetBuilder.stableOrder();<NEW_LINE>NestedSetBuilder<Artifa...
), depsArchiveSourceMappingsBuilder.build());
111,885
public boolean onLongPress(final MotionEvent e, final MapView mapView) {<NEW_LINE>if (Configuration.getInstance().isDebugMapView()) {<NEW_LINE>Log.d(IMapView.LOGTAG, "CirclePlottingOverlay onLongPress");<NEW_LINE>}<NEW_LINE>GeoPoint pt = (GeoPoint) mapView.getProjection().fromPixels((int) e.getX(), (int) <MASK><NEW_LIN...
e.getY(), null);
1,171,473
private void initLangInfoLink() {<NEW_LINE>if (mLangInfoLink != null) {<NEW_LINE>Spannable link = new SpannableString(getString(R.string.prefs_languages_information_off_link));<NEW_LINE>link.setSpan(new ForegroundColorSpan(ContextCompat.getColor(getContext(), UiUtils.getStyledResourceId(getContext(), R.attr.colorAccent...
= new Intent(Intent.ACTION_VIEW);
731,226
private // Images take precedence over background colors.<NEW_LINE>void updateAppearance() {<NEW_LINE>// If there is no background image,<NEW_LINE>// the appearance depends solely on the background color and shape.<NEW_LINE>if (backgroundImageDrawable == null) {<NEW_LINE>if (shape == Component.BUTTON_SHAPE_DEFAULT) {<N...
backgroundColor, PorterDuff.Mode.SRC_ATOP);
752,915
public int compare(Viewer viewer, Object e1, Object e2) {<NEW_LINE>final int cat1 = category(e1);<NEW_LINE>final int cat2 = category(e2);<NEW_LINE>if (cat1 != cat2) {<NEW_LINE>return cat1 - cat2;<NEW_LINE>}<NEW_LINE>final String name1 = getLabel(viewer, e1);<NEW_LINE>final String <MASK><NEW_LINE>int result = 0;<NEW_LIN...
name2 = getLabel(viewer, e2);
1,301,582
private void prepareNetworkInfos(ContainerInfo.Builder containerBuilder, final SingularityContainerInfo containerInfo, final Optional<long[]> ports) {<NEW_LINE>for (SingularityNetworkInfo netInfo : containerInfo.getNetworkInfos().orElse(Collections.emptyList())) {<NEW_LINE>final NetworkInfo.Builder netBuilder = Network...
getProtocol().get());
1,838,568
private static IRubyObject mkdirCommon(Ruby runtime, String path, IRubyObject[] args) {<NEW_LINE>if (path.startsWith("uri:"))<NEW_LINE>throw runtime.newErrnoEACCESError(path);<NEW_LINE>path = dirFromPath(path, runtime);<NEW_LINE>FileResource res = JRubyFile.createResource(runtime, path);<NEW_LINE>if (res.exists())<NEW_...
startsWithDriveLetterOnWindows = RubyFile.startsWithDriveLetterOnWindows(name);
103,175
private void submitForm(boolean fromConfirmAccount) {<NEW_LINE>logDebug("fromConfirmAccount - " + fromConfirmAccount + " email: " + this.emailTemp + "__" + this.passwdTemp);<NEW_LINE>lastEmail = this.emailTemp;<NEW_LINE>lastPassword = this.passwdTemp;<NEW_LINE>imm.hideSoftInputFromWindow(et_user.getWindowToken(), 0);<N...
loginCreateAccount.setVisibility(View.GONE);
30,853
public LayerDetail mapRow(ResultSet rs, int rowNum) throws SQLException {<NEW_LINE>LayerDetail layer = new LayerDetail();<NEW_LINE>layer.chunkSize = rs.getInt("int_chunk_size");<NEW_LINE>layer.command = rs.getString("str_cmd");<NEW_LINE>layer.dispatchOrder = rs.getInt("int_dispatch_order");<NEW_LINE>layer.id = rs.getSt...
range = rs.getString("str_range");
129,045
MethodReference generateBeanDefinitionMethod(GenerationContext generationContext, BeanRegistrationsCode beanRegistrationsCode) {<NEW_LINE>BeanRegistrationCodeFragments codeFragments = getCodeFragments(beanRegistrationsCode);<NEW_LINE>Class<?> target = codeFragments.getTarget(this.registeredBean, this.constructorOrFacto...
getName().toString());
1,396,635
public DebugSymbolName next() {<NEW_LINE>try {<NEW_LINE>if (pulMatchSize.getValue().intValue() == 0) {<NEW_LINE>COMUtils.checkRC(jnaSymbols.GetNextSymbolMatch(pullHandle.getValue(), null, new ULONG(0), pulMatchSize, null));<NEW_LINE>}<NEW_LINE>byte[] aBuffer = new byte[pulMatchSize.getValue().intValue()];<NEW_LINE>COMU...
getValue().longValue());
702,749
public JsonElement extract() {<NEW_LINE>var enchantsJson = new JsonArray();<NEW_LINE>for (var enchant : Registry.ENCHANTMENT) {<NEW_LINE>var enchantJson = new JsonObject();<NEW_LINE>enchantJson.addProperty("id", Registry.ENCHANTMENT.getRawId(enchant));<NEW_LINE>enchantJson.addProperty("name", Registry.ENCHANTMENT.getId...
"translation_key", enchant.getTranslationKey());
338,891
private void initActive() throws ExecutorManagerException {<NEW_LINE>final Executor executor;<NEW_LINE>final int port;<NEW_LINE>final boolean useSsl = props.<MASK><NEW_LINE>if (useSsl) {<NEW_LINE>port = this.props.getInt(ConfigurationKeys.EXECUTOR_SSL_PORT, -1);<NEW_LINE>} else {<NEW_LINE>port = this.props.getInt(Confi...
getBoolean(ConfigurationKeys.JETTY_USE_SSL, true);
821,561
private static void parseRoutingRule(XmlPullParser parser, GeneralRouter currentRouter, RouteDataObjectAttribute attr, String parentType, Stack<RoutingRule> stack) {<NEW_LINE>String pname = parser.getName();<NEW_LINE>if (checkTag(pname)) {<NEW_LINE>if (attr == null) {<NEW_LINE>throw new NullPointerException("Select tag...
parser.getAttributeValue("", "t");
53,121
public void deserialize(byte[] data) throws IOException {<NEW_LINE>BKDLConfigFormat configFormat = new BKDLConfigFormat();<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>TJSONProtocol protocol = new TJSONProtocol(transport);<NEW_LINE>configFormat.read(protocol);<NEW_LINE>} catch (TException e) {<NEW_LINE>throw new IOException...
TMemoryInputTransport transport = new TMemoryInputTransport(data);
738,938
public AmazonServiceException handle(HttpResponse errorResponse) throws IOException {<NEW_LINE>final InputStream is = errorResponse.getContent();<NEW_LINE>if (is == null) {<NEW_LINE>return newAmazonS3Exception(errorResponse.getStatusText(), errorResponse);<NEW_LINE>}<NEW_LINE>// Try to read the error response<NEW_LINE>...
log.debug("Failed in reading the error response", ex);
1,343,886
public List<FactLine> distribute(final List<FactLine> lines) {<NEW_LINE>// no lines -> nothing to distribute<NEW_LINE>if (lines.isEmpty()) {<NEW_LINE>return lines;<NEW_LINE>}<NEW_LINE>final List<FactLine> newLines = new ArrayList<>();<NEW_LINE>final List<FactLine> newLines_Last = new ArrayList<>();<NEW_LINE>// For all ...
lineDimension = factAcctBL.createAccountDimension(line);
1,777,209
private void addCurrentUserOpenWithList(String name, String extKey, String appName, Properties props) throws NativeException {<NEW_LINE>boolean found = false;<NEW_LINE>// =a<NEW_LINE>String freeValue = MRU_VALUES.substring(0, 1);<NEW_LINE>String cuExtKey = CURRENT_USER_FILE_EXT_KEY + SEP + name;<NEW_LINE>if (!registry....
substring(i, i + 1);
1,036,393
public static void addApplicationServer() {<NEW_LINE>String glassfishHome = System.getProperty("glassfish.home");<NEW_LINE>if (glassfishHome == null) {<NEW_LINE>throw new Error("Can't add GlassFish server. glassfish.home property is not set.");<NEW_LINE>}<NEW_LINE>// Add Server...<NEW_LINE>String addServerMenuItem = Bu...
Bundle.getStringTrimmed("org.netbeans.modules.j2ee.deployment.impl.ui.wizard.Bundle", "LBL_ASIW_Title");
770,058
public static DescribeAiotPersonTablesResponse unmarshall(DescribeAiotPersonTablesResponse describeAiotPersonTablesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAiotPersonTablesResponse.setRequestId(_ctx.stringValue("DescribeAiotPersonTablesResponse.RequestId"));<NEW_LINE>describeAiotPersonTablesResponse.setMe...
("DescribeAiotPersonTablesResponse.PersonTableList[" + i + "].Type"));
1,581,301
public static void grayMagnitude(GrayS32 input, int maxAbsValue, Bitmap output, @Nullable DogArray_I8 _storage) {<NEW_LINE>shapeShape(input, output);<NEW_LINE>_storage = ConvertBitmap.resizeStorage(output, _storage);<NEW_LINE>final byte[] storage = _storage.data;<NEW_LINE>if (maxAbsValue < 0)<NEW_LINE>maxAbsValue = Ima...
indexDst++] = (byte) 0xFF;
1,174,697
public static ListDeviceGroupsResponse unmarshall(ListDeviceGroupsResponse listDeviceGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDeviceGroupsResponse.setRequestId(_ctx.stringValue("ListDeviceGroupsResponse.RequestId"));<NEW_LINE>listDeviceGroupsResponse.setMessage(_ctx.stringValue("ListDeviceGroupsResponse...
+ "].List[" + j + "].DeviceName"));
1,429,916
static int encodeCatchupPosition(final UnsafeBuffer encodingBuffer, final int offset, final int captureLength, final int length, final long leadershipTermId, final long logPosition, final int followerMemberId, final String catchupEndpoint) {<NEW_LINE>final int logHeaderLength = encodeLogHeader(encodingBuffer, offset, c...
bodyOffset + bodyLength, logPosition, LITTLE_ENDIAN);
173,169
public Optional<T> process(List<String> values) {<NEW_LINE>if (values.size() != fieldNames.size()) {<NEW_LINE>throw new IllegalArgumentException("values must have the same length as fieldNames. Got values: " + values.size() + " fieldNames: " + fieldNames.size());<NEW_LINE>}<NEW_LINE>List<String> response = new ArrayLis...
response.add(prefix + ":fourth");
1,364,060
public static void main(String[] args) {<NEW_LINE>Set<String> words = new HashSet<>();<NEW_LINE>words.add("sb");<NEW_LINE>words.add("xx");<NEW_LINE><MASK><NEW_LINE>String text1 = "u sb a";<NEW_LINE>Set<String> ss = sensitiveFilter.getSensitiveWords(text1, MatchType.MIN_MATCH);<NEW_LINE>System.out.println(ss.size());<NE...
SensitiveFilter sensitiveFilter = new SensitiveFilter(words);
1,171,941
public static void endKafkaProducer(Object localContext, Throwable thr) {<NEW_LINE>if (localContext == null)<NEW_LINE>return;<NEW_LINE>LocalContext lctx = (LocalContext) localContext;<NEW_LINE>ParameterizedMessageStep step = (ParameterizedMessageStep) lctx.stepSingle;<NEW_LINE>if (step == null)<NEW_LINE>return;<NEW_LIN...
(KAFKA_COMMAND_MSG), bootstrapServer, topic);
215,902
private void writeBlock(BlockBuilder blockBuilder, Type columnType, int columnIndex) {<NEW_LINE>Class<?> javaType = columnType.getJavaType();<NEW_LINE>DataSchema.ColumnDataType pinotColumnType = currentDataTable.getDataTable().getDataSchema().getColumnDataType(columnIndex);<NEW_LINE>if (columnType instanceof ArrayType)...
writeArrayBlock(blockBuilder, columnType, columnIndex);
600,327
public void markPotentiallyNullBit(LocalVariableBinding local) {<NEW_LINE>if (this != DEAD_END) {<NEW_LINE>this.tagBits |= NULL_FLAG_MASK;<NEW_LINE>int position;<NEW_LINE>long mask;<NEW_LINE>if ((position = local.id + this.maxFieldCount) < BitCacheSize) {<NEW_LINE>// use bits<NEW_LINE>mask = 1L << position;<NEW_LINE>//...
[3][vectorIndex] |= mask;
1,649,603
static TieredIdentity create(AlluxioConfiguration conf) {<NEW_LINE>TieredIdentity scriptIdentity = fromScript(conf);<NEW_LINE>List<LocalityTier> tiers = new ArrayList<>();<NEW_LINE>List<String> orderedTierNames = conf.getList(PropertyKey.LOCALITY_ORDER);<NEW_LINE>for (int i = 0; i < orderedTierNames.size(); i++) {<NEW_...
(Constants.LOCALITY_NODE, name));
927,299
private ResponseEntity postEventInternal(final String eventTypeName, final String eventsAsString, final EventTypeMetrics eventTypeMetrics, final Client client, final HttpServletRequest request, final boolean delete) throws AccessDeniedException, ServiceTemporarilyUnavailableException, InternalNakadiException, EventType...
eventCount, result, eventTypeName, client);
661,232
public Vector<LocalDate> toDate() {<NEW_LINE>LocalDate[] dates = null;<NEW_LINE>if (type.id() == DataType.ID.DateTime) {<NEW_LINE>dates = stream().map(d -> ((LocalDateTime) d).toLocalDate()).toArray(LocalDate[]::new);<NEW_LINE>} else if (type.id() == DataType.ID.Object) {<NEW_LINE>Class<?> clazz = ((ObjectType) type).g...
throw new UnsupportedOperationException("Unsupported data type for toDate(): " + type);
1,835,522
private static void addFilesToBuildTarget(@NotNull CompileContext context, @NotNull List<String> sortedDirtyErlangModules) {<NEW_LINE>List<ErlangTargetType> targetTypes = Collections.singletonList(ErlangTargetType.INSTANCE);<NEW_LINE>BuildRootIndex buildRootIndex = context.getProjectDescriptor().getBuildRootIndex();<NE...
buildOrder.myOrderedErlangFilePaths.add(filePath);
463,503
private void updateBufSize() {<NEW_LINE>//<NEW_LINE>// Must be called without any other threads holding the lock to the MulticastSocket!<NEW_LINE>//<NEW_LINE>try {<NEW_LINE>//<NEW_LINE>// Try to set the buffer size. The kernel will silently adjust the size to an acceptable value.<NEW_LINE>// Then read the size back to ...
"UDP receive buffer size: requested size of " + _newSize + " adjusted to " + _size);
1,845,503
public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, IProgressMonitor monitor) throws IOException {<NEW_LINE>if (monitor != null && monitor.isCanceled())<NEW_LINE>throw new OperationCanceledException();<NEW_LINE>try {<NEW_LINE>index.startQuery()...
SearchPattern decodedResult = pattern.getBlankPattern();
962,584
public boolean refreshUserSignInState() {<NEW_LINE>final OptionalPendingResult<GoogleSignInResult> opr = <MASK><NEW_LINE>if (opr.isDone()) {<NEW_LINE>// If the user's cached credentials are valid, the OptionalPendingResult will be "done"<NEW_LINE>// and the GoogleSignInResult will be available instantly.<NEW_LINE>final...
Auth.GoogleSignInApi.silentSignIn(mGoogleApiClient);
1,046,434
<E> E find(final Class<E> entityClass, final Object primaryKey) {<NEW_LINE>if (primaryKey == null) {<NEW_LINE>throw new IllegalArgumentException("PrimaryKey value must not be null for object you want to find.");<NEW_LINE>}<NEW_LINE>// Locking as it might read from persistence context.<NEW_LINE>EntityMetadata entityMeta...
.setClient(getClient(entityMetadata));
1,512,531
public static void main(String[] args) throws Exception {<NEW_LINE>// Create an HttpClient and wrap it in an abstraction layer<NEW_LINE>final HttpClientFactory http = new HttpClientFactory();<NEW_LINE>final Client r2Client = new TransportClientAdapter(http.getClient(Collections.<String, String>emptyMap()));<NEW_LINE>//...
= new RestClient(r2Client, "http://localhost:8080/");
1,807,415
public void onBtnRefresh() {<NEW_LINE>if (!TrueTime.isInitialized()) {<NEW_LINE>Toast.makeText(this, "Sorry TrueTime not yet initialized. Trying again.", Toast.LENGTH_SHORT).show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Date trueTime = TrueTime.now();<NEW_LINE>Date deviceTime = new Date();<NEW_LINE>timeGMT.setText(getSt...
.getTimeZone("GMT-07:00"))));
1,029,276
public void QueryJDOQL() {<NEW_LINE>PersistenceManagerFactory pmf = new JDOPersistenceManagerFactory(pumd, null);<NEW_LINE><MASK><NEW_LINE>Transaction tx = pm.currentTransaction();<NEW_LINE>try {<NEW_LINE>tx.begin();<NEW_LINE>// Declarative JDOQL :<NEW_LINE>LOGGER.log(Level.INFO, "Declarative JDOQL --------------------...
PersistenceManager pm = pmf.getPersistenceManager();
1,163,772
final CreateUserResult executeCreateUser(CreateUserRequest createUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
(super.beforeMarshalling(createUserRequest));
354,802
public CollectSource visitRoutedCollectPhase(RoutedCollectPhase phase, Void context) {<NEW_LINE>if (!phase.isRouted()) {<NEW_LINE>return emptyCollectSource;<NEW_LINE>}<NEW_LINE>String localNodeId = clusterService.state().nodes().getLocalNodeId();<NEW_LINE>Set<String> routingNodes = phase.routing().nodes();<NEW_LINE>if ...
throw new IllegalStateException("Can't resolve CollectService for collectPhase: " + phase);
1,336,419
private void findNextMatch(boolean doHighlight) {<NEW_LINE>int startOffset;<NEW_LINE>if (lastMatch != null && globalFlag) {<NEW_LINE>// next match might be on the same line<NEW_LINE>startOffset = lastMatch.getRightBound().getModelOffset() + replaceOffset;<NEW_LINE>// performing a substitution could change our next star...
), result.getModelLength());
1,567,503
public static void removeCSSClass(Element e, String cssclass) {<NEW_LINE>String oldval = e.getAttribute(SVGConstants.SVG_CLASS_ATTRIBUTE);<NEW_LINE>if (oldval == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String[] <MASK><NEW_LINE>if (classes.length == 1) {<NEW_LINE>if (cssclass.equals(classes[0])) {<NEW_LINE>e.remove...
classes = oldval.split(" ");
854,033
public QuarkusClassLoader createRuntimeClassLoader(ClassLoader base, Map<String, byte[]> resources, Map<String, byte[]> transformedClasses) {<NEW_LINE>QuarkusClassLoader.Builder builder = QuarkusClassLoader.builder("Quarkus Runtime ClassLoader: " + quarkusBootstrap.getMode() + " restart no:" + runtimeClassLoaderCount.g...
.fromPath(root, true));
890,559
public static ListEndpointGroupsResponse unmarshall(ListEndpointGroupsResponse listEndpointGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listEndpointGroupsResponse.setRequestId(_ctx.stringValue("ListEndpointGroupsResponse.RequestId"));<NEW_LINE>listEndpointGroupsResponse.setTotalCount(_ctx.integerValue("ListEndp...
("ListEndpointGroupsResponse.EndpointGroups[" + i + "].Description"));
1,384,880
public static double angle(NumberVector v1, NumberVector v2, NumberVector o) {<NEW_LINE>final int dim1 = v1.getDimensionality(), dim2 = v2.getDimensionality(), dimo = o.getDimensionality();<NEW_LINE>final int mindim = (dim1 <= dim2) ? dim1 : dim2;<NEW_LINE>// Essentially, we want to compute this:<NEW_LINE>// v1' = v1 -...
v1.doubleValue(k) - ok;
1,414,391
public int updateAllFromAcctSchemaDefault(@NonNull final I_C_AcctSchema_Default acctSchemaDefault) {<NEW_LINE>final AcctSchemaId acctSchemaId = AcctSchemaId.ofRepoId(acctSchemaDefault.getC_AcctSchema_ID());<NEW_LINE>final String sql = "UPDATE " + TABLENAME_C_BP_BankAccount_Acct + " a " + "SET B_InTransit_Acct=" + acctS...
() + ", Updated=now(), UpdatedBy=0 " + " WHERE a.C_AcctSchema_ID=?" + " AND EXISTS (SELECT 1 FROM C_BP_BankAccount_Acct x WHERE x.C_BP_BankAccount_ID=a.C_BP_BankAccount_ID)";
1,693,596
private void initTypes(BinaryMapDataObject object) {<NEW_LINE>if (mapIndexFields == null) {<NEW_LINE>mapIndexFields = new MapIndexFields();<NEW_LINE>// mapIndexFields.mapIndex = object.getMapIndex();<NEW_LINE>mapIndexFields.downloadNameType = object.getMapIndex().getRule(FIELD_DOWNLOAD_NAME, null);<NEW_LINE>mapIndexFie...
).getRule(FIELD_NAME_EN, null);
1,458,751
// Implement JSCoder.validate<NEW_LINE>public Object validate(Object value, int indirect) throws JMFSchemaViolationException, JMFModelNotImplementedException, JMFUninitializedAccessException, JMFMessageCorruptionException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>JmfTr.entry(t...
getClass().getName());
413,406
public void marshall(ParameterDefinition parameterDefinition, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (parameterDefinition == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(parameterDefinition.getAllo...
parameterDefinition.getAllowedValues(), ALLOWEDVALUES_BINDING);
1,507,374
private Set<StoreTrait> createCurrentTraits(final Store store) {<NEW_LINE>final Set<StoreTrait> traits = Sets.newHashSet(store.getTraits());<NEW_LINE>final Schema schema = store.getSchema();<NEW_LINE>final boolean hasAggregatedGroups = isNotEmpty(schema.getAggregatedGroups());<NEW_LINE>final boolean hasVisibility = non...
traits.remove(StoreTrait.QUERY_AGGREGATION);
1,621,901
private static Optional<SmtpConfig> systemSmtpConfig(Config systemConfig) {<NEW_LINE>Optional<String> host = systemConfig.getOptional("config.mail.host", String.class);<NEW_LINE>if (!host.isPresent()) {<NEW_LINE>return Optional.absent();<NEW_LINE>}<NEW_LINE>SmtpConfig config = ImmutableSmtpConfig.builder().host(host.ge...
.class)).build();
378,096
private Mono<Response<Flux<ByteBuffer>>> createOrUpdateAtSubscriptionScopeWithResponseAsync(String deploymentName, DeploymentInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (deploymentName == null) {<NEW_LINE>return Mono.error(new...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
220,842
private void updateCompressionRatio(IMemTable memTableToFlush) {<NEW_LINE>try {<NEW_LINE>double compressionRatio = ((double) <MASK><NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("The compression ratio of tsfile {} is {}, totalMemTableSize: {}, the file size: {}", writer.getFile().getAbsolutePath(), comp...
totalMemTableSize) / writer.getPos();
976,205
public DeleteSecretResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteSecretResult deleteSecretResult = new DeleteSecretResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
JsonToken token = context.getCurrentToken();
954,382
public static Trades adaptBleutradeMarketHistory(List<BleutradeTrade> bleutradeTrades, CurrencyPair currencyPair) {<NEW_LINE>List<Trade> <MASK><NEW_LINE>for (BleutradeTrade bleutradeTrade : bleutradeTrades) {<NEW_LINE>Trade.Builder builder = new Trade.Builder();<NEW_LINE>builder.currencyPair(currencyPair);<NEW_LINE>bui...
trades = new ArrayList<>();
663,093
protected void flushUpdates() {<NEW_LINE>for (Entity updatedObject : updatedObjects) {<NEW_LINE>String updateStatement = dbSqlSessionFactory.getUpdateStatement(updatedObject);<NEW_LINE>updateStatement = dbSqlSessionFactory.mapStatement(updateStatement);<NEW_LINE>if (updateStatement == null) {<NEW_LINE>throw new Flowabl...
) updatedObject).getRevisionNext());
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...
(fieldName, new NullValue());
577,277
public static boolean isCamelCase(@NonNull final String value, @NullAllowed String separatorRegExp, @NullAllowed String partRegExp) {<NEW_LINE>if (separatorRegExp == null && partRegExp == null) {<NEW_LINE>return DEFAULT_CAMEL_CASE_PATTERN.matcher(value).matches();<NEW_LINE>} else {<NEW_LINE>Pattern p;<NEW_LINE>Pair<Pai...
String>, Pattern> val = cache;
1,854,230
public static void writeTopDocs(StreamOutput out, TopDocsAndMaxScore topDocs) throws IOException {<NEW_LINE>if (topDocs.topDocs instanceof CollapseTopFieldDocs) {<NEW_LINE>out.writeByte((byte) 2);<NEW_LINE>CollapseTopFieldDocs collapseDocs = (CollapseTopFieldDocs) topDocs.topDocs;<NEW_LINE>writeTotalHits(out, topDocs.t...
out.writeFloat(topDocs.maxScore);
1,350,073
private void condenseRightSide(final float condensingFactor, final int halfHorizontalGap, final int keyboardWidth, int currentRightX, Deque<Keyboard.Key> rightKeys, Keyboard.Key spaceKey) {<NEW_LINE>// currentRightX holds the rightest x+width point. condensing a bit<NEW_LINE>currentRightX = (int) (keyboardWidth - ((key...
Key rightKey = rightKeys.pop();
1,172,473
public DescribeResiliencyPolicyResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeResiliencyPolicyResult describeResiliencyPolicyResult = new DescribeResiliencyPolicyResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu...
JsonToken token = context.getCurrentToken();
650,784
protected void processOneLevelWildcard(IMNode node, int idx, int level) throws MetadataException {<NEW_LINE>boolean multiLevelWildcard = nodes[idx].equals(MULTI_LEVEL_PATH_WILDCARD);<NEW_LINE>String targetNameRegex = nodes[idx + 1<MASK><NEW_LINE>traverseContext.push(node);<NEW_LINE>for (IMNode child : node.getChildren(...
].replace("*", ".*");
524,861
private void tryArrayConstruction(Statement statement) {<NEW_LINE>if (!(statement instanceof AssignmentStatement)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AssignmentStatement assign = (AssignmentStatement) statement;<NEW_LINE>if (!(assign.getLeftValue() instanceof VariableExpr)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>in...
getLeftValue()).getIndex();
984,516
public void visit(final GroovyCodeVisitor visitor) {<NEW_LINE>if (visitor instanceof AsmClassGenerator) {<NEW_LINE>WriterController controller = ((AsmClassGenerator) visitor).getController();<NEW_LINE>MethodVisitor mv = controller.getMethodVisitor();<NEW_LINE>getLeftExpression().visit(visitor);<NEW_LINE>controller.getO...
mv.visitJumpInsn(IF_ACMPNE, l1);
1,293,048
public List<Synchronizers> querySynchronizers(JdbcTemplate jdbcTemplate) {<NEW_LINE>List<Synchronizers> synchronizerList = jdbcTemplate.query(SYNCHRONIZERS_SELECT_STATEMENT, new RowMapper<Synchronizers>() {<NEW_LINE><NEW_LINE>public Synchronizers mapRow(ResultSet rs, int rowNum) throws SQLException {<NEW_LINE>Synchroni...
(rs.getString("providerurl"));
1,367,589
public static <DT, MT> DataSet<Tuple2<Long, MT>> pullTrainPush(DataSet<DT> data, DataSet<Tuple2<Long, MT>> model, ApsFuncIndex4Pull<DT> requestIndex, ApsContext context4Index, ApsFuncTrain<DT, MT> trainSubset, ApsContext context4Train, ApsFuncUpdateModel<MT> updateModel, Integer trainNum) {<NEW_LINE>TypeInformation mtT...
()).getTypeAt(1);
900,064
private static Object recurse(Map<String, Object> raw) {<NEW_LINE>if (raw == null || raw.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String key = raw.keySet().iterator().next();<NEW_LINE>Object val = raw.get(key);<NEW_LINE>switch(key) {<NEW_LINE>case "o":<NEW_LINE>List<Map<String, Object>> objectItems = (Lis...
String) entry.get("k");
123,851
private long insertArray() {<NEW_LINE>long key = -1;<NEW_LINE>switch(insert) {<NEW_LINE>case AS_FIRST_CHILD:<NEW_LINE>if (parents.peek() == Fixed.NULL_NODE_KEY.getStandardProperty()) {<NEW_LINE>key = wtx.insertArrayAsFirstChild().getNodeKey();<NEW_LINE>} else {<NEW_LINE>key = wtx.insertArrayAsRightSibling().getNodeKey(...
.insertArrayAsLeftSibling().getNodeKey();