idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
251,975
// BlockFaceShape<NEW_LINE>@Override<NEW_LINE>@Nonnull<NEW_LINE>protected IShape<T> mkShape(@Nonnull BlockFaceShape allFaces) {<NEW_LINE>return new IShape<T>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>@Nonnull<NEW_LINE>public BlockFaceShape getBlockFaceShape(@Nonnull IBlockAccess worldIn, @Nonnull IBlockState state, @No...
getBlockFaceShape(worldIn, pos, face);
1,757,263
protected PreparedStatement fillPreparedStatementColumnType(PreparedStatement preparedStatement, int columnIndex, int columnSqlType, Column column) throws SQLException {<NEW_LINE>if (column == null || column.getRawData() == null) {<NEW_LINE>preparedStatement.setObject(columnIndex, null);<NEW_LINE>return preparedStateme...
columnIndex, column.asTimestamp());
60,140
public Properties jpaProperties() {<NEW_LINE>Properties extraProperties = new Properties();<NEW_LINE>// Regular Hibernate Settings<NEW_LINE>extraProperties.put("hibernate.dialect", HapiFhirH2Dialect.class.getName());<NEW_LINE>extraProperties.put("hibernate.format_sql", "true");<NEW_LINE>extraProperties.put("hibernate.s...
extraProperties.put("hibernate.cache.use_query_cache", "false");
505,007
// Get byte array with fixed length (value length + key length = recordLength)<NEW_LINE>private byte[] fillArray(byte[] key, byte[] line) {<NEW_LINE>int valueLength = recordLength - key.length;<NEW_LINE>byte[] valueByte;<NEW_LINE>if (valueLength > 0) {<NEW_LINE>valueByte = new byte[valueLength];<NEW_LINE>if (line.lengt...
, valueLength, (byte) 0);
1,080,502
public void apply(final Project project) {<NEW_LINE>final TaskContainer tasks = project.getTasks();<NEW_LINE>// static classes are used for the actions to avoid implicitly dragging project/tasks into the model registry<NEW_LINE><MASK><NEW_LINE>tasks.register(ProjectInternal.HELP_TASK, Help.class, new HelpAction());<NEW...
String projectName = project.toString();
74,321
public static void main(final String[] args) throws IOException {<NEW_LINE>String executionPath = ReactAndroidCodeTransformer.class.getProtectionDomain().getCodeSource().getLocation().getPath();<NEW_LINE>String projectRoot = new File(executionPath + "../../../../../../").getCanonicalPath() + '/';<NEW_LINE>String sdkVer...
= new File(projectRoot + REACT_ANDROID_DEST_ROOT);
886,825
final ChangePasswordResult executeChangePassword(ChangePasswordRequest changePasswordRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(changePasswordRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.SERVICE_ID, "IAM");
765,563
private void validateGraph(boolean throwPropertyException) {<NEW_LINE>try (Graph graph = new Graph()) {<NEW_LINE>graph.importGraphDef(graphDef);<NEW_LINE>for (String inputName : featureConverter.inputNamesSet()) {<NEW_LINE>if (graph.operation(inputName) == null) {<NEW_LINE>String msg = "Unable to find an input operatio...
outputOp = graph.operation(outputName);
511,481
/* (non-Javadoc)<NEW_LINE>* @see android.content.BroadcastReceiver#onReceive(android.content.Context, android.content.Intent)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void onReceive(Context arg0, Intent receivedIntent) {<NEW_LINE>Bundle b = receivedIntent.getExtras();<NEW_LINE>// Extract the values associated wit...
TAG, transferEvent + " : " + returnValue);
1,306,101
public void execute(Map<String, List<String>> parameters, PrintWriter output) throws Exception {<NEW_LINE>final List<String> loggerNames = getLoggerNames(parameters);<NEW_LINE>final Level loggerLevel = getLoggerLevel(parameters);<NEW_LINE>final Duration duration = getDuration(parameters);<NEW_LINE>for (String loggerNam...
long millis = duration.toMillis();
216,570
private static NumberSortScript.LeafFactory newSortScript(Expression expr, SearchLookup lookup, @Nullable Map<String, Object> vars) {<NEW_LINE>// NOTE: if we need to do anything complicated with bindings in the future, we can just extend Bindings,<NEW_LINE>// instead of complicating SimpleBindings (which should stay si...
bindings.add(variable, valueSource);
1,266,536
private static Map<String, String> createDefaultCheckerSetMap() {<NEW_LINE>Map<String, String> folderMap = new HashMap<>();<NEW_LINE>folderMap.put(Tool.COVERITY.name(), "codecc_default_rules_" + Tool.COVERITY.name().toLowerCase());<NEW_LINE>folderMap.put(Tool.KLOCWORK.name(), "codecc_default_rules_" + Tool.KLOCWORK.nam...
name().toLowerCase());
673,389
public void onNext(T value) {<NEW_LINE>List<Value> path = dataFetchingEnvironment.getExecutionStepInfo().getPath().toList().stream().map(p -> p instanceof Number ? Value.newBuilder().setNumberValue(Double.parseDouble(p.toString())).build() : Value.newBuilder().setStringValue(p.toString()).build()).<MASK><NEW_LINE>ListV...
collect(ImmutableList.toImmutableList());
1,259,735
public void handleRequest(HttpServerExchange exchange) throws Exception {<NEW_LINE>var registry = PluginsRegistryImpl.getInstance();<NEW_LINE>var path = exchange.getRequestPath();<NEW_LINE>var pi = registry.getPipelineInfo(path);<NEW_LINE>if (pi.getType() == PipelineInfo.PIPELINE_TYPE.SERVICE) {<NEW_LINE>var srv = regi...
.getCustomerSender().run();
1,059,962
protected JSONObject addBreadcrumbData(final HttpServletRequest request) throws JSONException {<NEW_LINE>final JSONObject breadcrumbObjects = new JSONObject();<NEW_LINE>breadcrumbObjects.put("@context", getStructuredDataContext());<NEW_LINE>breadcrumbObjects.put("@type", "BreadcrumbList");<NEW_LINE>final String request...
).addBreadcrumbListItemData(request, listItem);
796,992
public void onMouseDown(MouseDownEvent event) {<NEW_LINE>startX = event.getClientX();<NEW_LINE>startY = event.getClientY();<NEW_LINE>if (isDisabled() || event.getNativeButton() != NativeEvent.BUTTON_LEFT) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>clickTarget = Element.as(event.getNativeEvent().getEventTarget());<NEW_LINE>...
GWT.log("Exception calculating relative start position", e);
297,758
public TYPE next(final String iFetchPlan) {<NEW_LINE>final Object value = underlying.next();<NEW_LINE>if (value == null)<NEW_LINE>return null;<NEW_LINE>if (value instanceof ORID && autoConvert2Object) {<NEW_LINE>currentElement = (OIdentifiable) value;<NEW_LINE>ORecord record = ((ODatabaseDocument) database.getUnderlyin...
((ORID) value, iFetchPlan);
1,389,042
public CreateFilterResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateFilterResult createFilterResult = new CreateFilterResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
class).unmarshall(context));
1,630,089
public static boolean shouldRun(Description desc) {<NEW_LINE>Class<?> c = desc == null ? KerberosPlatformRule.class : desc.getTestClass();<NEW_LINE>String m = (desc == null || desc.getMethodName() == null) ? "shouldRun" : desc.getMethodName();<NEW_LINE>// Kerberos is only supported on certain operating systems<NEW_LINE...
KRB5_USER + "@" + KerberosContainer.KRB5_REALM);
1,335,209
public void exceptionThrown(BreakpointInfo info, Object currentThread, Object exception, CallFrame[] callFrames) {<NEW_LINE>if (connection == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PacketStream stream = new PacketStream().commandPacket().commandSet(64).command(100);<NEW_LINE>CallFrame top = callFrames[0];<NEW_LIN...
writeLong(callFrame.getMethodId());
82,827
private void initNacosServiceBeanBuilderMap(ConfigurableListableBeanFactory beanFactory) {<NEW_LINE>Class<AbstractNacosServiceBeanBuilder> builderClass = AbstractNacosServiceBeanBuilder.class;<NEW_LINE>String[] beanNames = BeanUtils.getBeanNames(beanFactory, builderClass);<NEW_LINE>if (beanNames.length == 0) {<NEW_LINE...
, format("Please check the BeanDefinition of %s in Spring BeanFactory", builderClass));
448,940
/*<NEW_LINE>* Write the token length in the same way as in tWAS to ensure compatibility.<NEW_LINE>*/<NEW_LINE>private static void writeTokenLength(ByteArrayOutputStream baos, int tokenLength) {<NEW_LINE>if (tokenLength < 128) {<NEW_LINE>baos.write((byte) tokenLength);<NEW_LINE>} else if (tokenLength < (1 << 8)) {<NEW_L...
.write((byte) tokenLength);
1,633,458
private void implementList(ClassCreator classCreator, DataAccessImplementor dataAccessImplementor) {<NEW_LINE>MethodCreator methodCreator = classCreator.getMethodCreator("list", Uni.class, Page.class, Sort.class);<NEW_LINE>ResultHandle page = methodCreator.getMethodParam(0);<NEW_LINE>ResultHandle sort = methodCreator.g...
(), page, sort));
1,631,162
private ClassTree insertSecurityFetaureField(WorkingCopy workingCopy, TreeMaker make, ClassTree javaClass, TypeElement classElement) {<NEW_LINE>for (VariableElement var : ElementFilter.fieldsIn(classElement.getEnclosedElements())) {<NEW_LINE>TypeMirror varType = var.asType();<NEW_LINE>if (!varType.getKind().equals(Type...
modifiers.add(Modifier.FINAL);
1,592,292
public static QueryFaceDeviceGroupsByDeviceResponse unmarshall(QueryFaceDeviceGroupsByDeviceResponse queryFaceDeviceGroupsByDeviceResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryFaceDeviceGroupsByDeviceResponse.setRequestId(_ctx.stringValue("QueryFaceDeviceGroupsByDeviceResponse.RequestId"));<NEW_LINE>queryFaceDevi...
= new ArrayList<DeviceGroupListItem>();
1,218,686
public Set<UUID> possibleTargets(UUID sourceControllerId, Game game) {<NEW_LINE>Set<UUID> possibleTargets = new HashSet<>();<NEW_LINE>for (StackObject stackObject : game.getStack()) {<NEW_LINE>if (game.getState().getPlayersInRange(sourceControllerId, game).contains(stackObject.getControllerId()) && Objects.equals(stack...
add(card.getId());
1,380,791
void dump(Reindexing reindexing) {<NEW_LINE>reindexing.status().forEach((type, status) -> {<NEW_LINE>Reindexing.State state = status.state();<NEW_LINE>metric.set("reindexing.progress", status.progress().map(ProgressToken::percentFinished).map(percentage -> percentage * 1e-2).orElse(status.state() == SUCCESSFUL ? 1.0 : ...
, toString(unset))));
371,700
public static String selectServerDialog(J2eeModule.Type[] moduleTypes, Profile j2eeProfile, String title, String description) {<NEW_LINE>NoSelectedServerWarning panel = new NoSelectedServerWarning(moduleTypes, j2eeProfile);<NEW_LINE>Object[] options = new Object[] { DialogDescriptor.OK_OPTION, DialogDescriptor.CANCEL_O...
DialogDescriptor.DEFAULT_ALIGN, null, null);
1,097,160
/* STOCKMOVE OnClick */<NEW_LINE>public void showClientMyLastDelivery(ActionRequest request, ActionResponse response) {<NEW_LINE>try {<NEW_LINE>ClientViewService clientViewService = <MASK><NEW_LINE>User clientUser = clientViewService.getClientUser();<NEW_LINE>if (clientUser.getPartner() == null) {<NEW_LINE>response.set...
Beans.get(ClientViewService.class);
783,593
protected JFreeChart createXyLineChart() throws JRException {<NEW_LINE>JFreeChart jfreeChart = super.createXyLineChart();<NEW_LINE>XYPlot xyPlot = (XYPlot) jfreeChart.getPlot();<NEW_LINE>XYLineAndShapeRenderer lineRenderer = (XYLineAndShapeRenderer) jfreeChart.getXYPlot().getRenderer();<NEW_LINE>XYLine3DRenderer line3D...
.CAP_ROUND, BasicStroke.JOIN_ROUND));
931,095
private void collectHUTransactionCandidate(final IHUTransactionCandidate huTransaction) {<NEW_LINE>final I_M_HU hu = huTransaction.getM_HU();<NEW_LINE>if (hu == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Quantity quantity = huTransaction.getQuantity();<NEW_LINE>if (quantity.isZero()) {<NEW_LINE>return;<NEW_LINE...
-> IHandlingUnitsBL.extractLocatorIdOrNull(topLevelHU));
921,752
private void bindAreaVisibilityToSelection() {<NEW_LINE>ReadOnlyBooleanProperty selectionExists = getSkinnable().hasSelectionProperty();<NEW_LINE>ReadOnlyBooleanProperty selectionActive = getSkinnable().selectionActiveProperty();<NEW_LINE>BooleanBinding existsAndActive = Bindings.and(selectionExists, selectionActive);<...
().bind(existsAndActive));
1,568,810
private void recalculateGeometry() {<NEW_LINE>// This geometry must match the 3D printed feeder. So this code must remain in sync with the OpenSCAD file.<NEW_LINE>// @see /openpnp/src/main/resources/org/openpnp/machine/reference/feeder/BlindsFeeder-Library.scad<NEW_LINE>// and search for "recalculateGeometry()".<NEW_LI...
CoverType.BlindsCover ? 0.25 : 0.5);
1,336,814
public double correlation(final KernelDensityEstimate other, final int positionsToShiftOther) {<NEW_LINE>assert other.size() == size() : "The kde size should be the same!";<NEW_LINE>double correlation;<NEW_LINE>double matchingArea = 0.0;<NEW_LINE>double biggestKDEArea = Math.max(getSumFreq(), other.getSumFreq());<NEW_L...
positionsToShiftOther) % other.size();
1,210,678
private static CuratorTransactionFinal modifyZkRules(CuratorTransactionFinal transactionFinal, String ruleName, List<String> newDataNodes) throws Exception {<NEW_LINE><MASK><NEW_LINE>String rulePath = ZKUtils.getZKBasePath() + "rules/function";<NEW_LINE>JSONArray jsonArray = JSON.parseArray(new String(client.getData()....
CuratorFramework client = ZKUtils.getConnection();
289,139
private static void processOutputLimitedViewLastCodegen(ResultSetProcessorRowForAllForge forge, CodegenClassScope classScope, CodegenMethod method, CodegenInstanceAux instance) {<NEW_LINE>CodegenMethod getSelectListEventSingle = getSelectListEventSingleCodegen(forge, classScope, instance);<NEW_LINE>method.getBlock().de...
, REF_ISSYNTHESIZE)).blockEnd();
1,239,543
static Matcher extractPrefixFromOr(Matcher matcher) {<NEW_LINE>if (matcher instanceof OrMatcher) {<NEW_LINE>// Get the prefix for the first condition<NEW_LINE>List<Matcher> matchers = matcher.<OrMatcher>as().matchers();<NEW_LINE>if (matchers.isEmpty()) {<NEW_LINE>return matcher;<NEW_LINE>}<NEW_LINE>Matcher prefix = Pat...
ms = new ArrayList<>();
1,208,237
private ResponseAssertion responseAssertion(MsAssertionRegex assertionRegex) {<NEW_LINE>ResponseAssertion assertion = null;<NEW_LINE>if (StringUtils.startsWith(assertionRegex.getDescription(), "Check Error report:")) {<NEW_LINE>this.setName("ErrorReportAssertion");<NEW_LINE>assertion = new ErrorReportAssertion();<NEW_L...
setAssumeSuccess(assertionRegex.isAssumeSuccess());
1,713,880
public CompletableFuture<Void> lock(final Resource resource, final TaskData taskData, final String owner, final String tag, final String oldOwner, final String oldTag) {<NEW_LINE>return CompletableFuture.supplyAsync(() -> {<NEW_LINE>Preconditions.checkNotNull(resource);<NEW_LINE>Preconditions.checkNotNull(taskData);<NE...
|| !oldTag.isEmpty());
381,887
public void loadAnchors() {<NEW_LINE>this.anchors = new HashMap<String, Location>();<NEW_LINE>this.anchorConfig = YamlConfiguration.loadConfiguration(new File(this.plugin<MASK><NEW_LINE>this.ensureConfigIsPrepared();<NEW_LINE>ConfigurationSection anchorsSection = this.anchorConfig.getConfigurationSection("anchors");<NE...
.getDataFolder(), "anchors.yml"));
1,294,600
protected void reload() {<NEW_LINE>// -AWLOCKED<NEW_LINE>clear();<NEW_LINE>try (DataInputStream is = new DataInputStream(new FileInputStream(file))) {<NEW_LINE>long maxRecid = 0;<NEW_LINE>// load records<NEW_LINE>long recCount = IO.readLong(is);<NEW_LINE>for (long i = 0; i < recCount; i++) {<NEW_LINE>long recid = IO.re...
Math.max(maxRecid, recid);
655,386
public IPacket deserialize(byte[] data, int offset, int length) throws PacketParsingException {<NEW_LINE>ByteBuffer bb = ByteBuffer.wrap(data, offset, length);<NEW_LINE>// short will be signed, pos or neg<NEW_LINE>this.sourcePort = TransportPort.of((int) (bb.getShort() & 0xffff));<NEW_LINE>// convert range 0 to 65534, ...
.getConstructor().newInstance();
1,351,294
public static void grayToBuffered(GrayF32 src, DataBufferInt buffer, WritableRaster dst) {<NEW_LINE>final float[] srcData = src.data;<NEW_LINE>final int[] dstData = buffer.getData();<NEW_LINE>final int numBands = dst.getNumBands();<NEW_LINE>if (numBands == 3) {<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, sr...
(int) srcData[indexSrc++];
8,041
public Page<ConfigInfo> findAllConfigInfo(final int pageNo, final int pageSize, final String tenant) {<NEW_LINE>String tenantTmp = StringUtils.isBlank(tenant) ? StringUtils.EMPTY : tenant;<NEW_LINE>String sqlCountRows = "SELECT count(*) FROM config_info";<NEW_LINE>String sqlFetchRows = " SELECT t.id,data_id,group_id,te...
}, pageNo, pageSize, CONFIG_INFO_ROW_MAPPER);
307,272
protected MeasureValue[][][] retrieveTotals(List<Bucket> vals, List<BucketMap> bucketMaps) {<NEW_LINE>MeasureValue[][][] totals = new MeasureValue[rowBucketCount + 1][colBucketCount + 1][];<NEW_LINE>for (int row = rowRetrTotalMax; row >= rowRetrTotalMin; --row) {<NEW_LINE>if (!rowRetrTotals[row]) {<NEW_LINE>continue;<N...
rowMap = bucketMaps.get(row);
1,795,278
private void addAccountApiRoles(RealmModel realm) {<NEW_LINE>ClientModel accountClient = realm.getClientByClientId(Constants.ACCOUNT_MANAGEMENT_CLIENT_ID);<NEW_LINE>RoleModel viewAppRole = accountClient.addRole(AccountRoles.VIEW_APPLICATIONS);<NEW_LINE>viewAppRole.setDescription("${role_" + AccountRoles.VIEW_APPLICATIO...
"${role_" + AccountRoles.MANAGE_CONSENT + "}");
1,177,429
protected static void receiveArg(ThreadContext context, Instr i, Operation operation, IRubyObject[] args, boolean usesKeywords, boolean ruby2Keywords, DynamicScope currDynScope, Object[] temp, Object exception, Block blockArg) {<NEW_LINE>Object result;<NEW_LINE>ResultInstr instr = (ResultInstr) i;<NEW_LINE>switch(opera...
instr.getResult(), result);
200,576
protected static CsvWriterSettings createSettings(CsvWriteOptions options) {<NEW_LINE>CsvWriterSettings settings = new CsvWriterSettings();<NEW_LINE>// Sets the character sequence to write for the values that are null.<NEW_LINE>settings.setNullValue(nullValue);<NEW_LINE>if (options.separator() != null) {<NEW_LINE>setti...
setQuote(options.quoteChar());
598,744
public static Annotation<?> of(int key, Object value) {<NEW_LINE>if (value == null) {<NEW_LINE>return newNullAnnotation(key);<NEW_LINE>}<NEW_LINE>if (value instanceof String) {<NEW_LINE>return new StringAnnotation(key, (String) value);<NEW_LINE>}<NEW_LINE>if (value instanceof DataType) {<NEW_LINE>return new DataTypeAnn...
(key, (Integer) value);
780,268
// public void textSize(float size)<NEW_LINE>// public float textWidth(char c)<NEW_LINE>// public float textWidth(String str)<NEW_LINE>// protected float textWidthImpl(char buffer[], int start, int stop)<NEW_LINE>// ////////////////////////////////////////////////////////////<NEW_LINE>// TEXT IMPL<NEW_LINE>@Override<NE...
+= sign * textAscent() / 2;
73,361
private Map<String, org.terracotta.statistics.ValueStatistic<?>> createKnownStatistics(String tierName) {<NEW_LINE>Map<String, org.terracotta.statistics.ValueStatistic<?>> knownStatistics = new HashMap<>(7);<NEW_LINE>addIfPresent(knownStatistics, tierName + ":HitCount", get, this::getHits);<NEW_LINE>addIfPresent(knownS...
gauge(this::getAllocatedByteSize)));
516,351
public static Map toMap(final Object[] array) {<NEW_LINE>if (array == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Map map = new HashMap((int) (array.length * 1.5));<NEW_LINE>for (int i = 0; i < array.length; i++) {<NEW_LINE>Object object = array[i];<NEW_LINE>if (object instanceof Entry) {<NEW_LINE>Entry ent...
i + ", '" + object + "', is neither of type Map.Entry nor an Array");
647,824
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception {<NEW_LINE>if (args.length == 0) {<NEW_LINE>throw new NotEnoughArgumentsException();<NEW_LINE>}<NEW_LINE>User target = user;<NEW_LINE>if (args.length > 1 && user.isAuthorized("essentials.unlimited.othe...
.sendMessage(getList(target));
907,702
protected final Metadata fromKeyValues(Map<String, Object> keyValues) {<NEW_LINE>Map<String, List<String>> mdAsMap = (Map<String, List<String>>) keyValues.get("metadata");<NEW_LINE>Metadata metadata = new Metadata();<NEW_LINE>if (mdAsMap != null) {<NEW_LINE>Iterator<Entry<String, List<String>>> mdIter = mdAsMap.entrySe...
key.replaceAll("%2E", "\\.");
886,625
public void marshall(AwsApiGatewayRestApiDetails awsApiGatewayRestApiDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsApiGatewayRestApiDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(aws...
awsApiGatewayRestApiDetails.getName(), NAME_BINDING);
1,822,776
public RestChannelConsumer prepareRequest(RestRequest request, NodeClient client) throws IOException {<NEW_LINE>// we piggyback verbosity on "human" output<NEW_LINE>boolean verbose = <MASK><NEW_LINE>// In 7.x, there was an opt-in flag to show "enterprise" licenses. In 8.0 the flag is deprecated and can only be true<NEW...
request.paramAsBoolean("human", true);
1,244,003
private BLangExpression createConditionForErrorBindingPattern(BLangErrorBindingPattern errorBindingPattern, BLangSimpleVarRef matchExprVarRef) {<NEW_LINE>BType bindingPatternType = errorBindingPattern.getBType();<NEW_LINE>Location pos = errorBindingPattern.pos;<NEW_LINE>BLangSimpleVariableDef resultVarDef = createVarDe...
tempBlockStmt = ASTBuilderUtil.createBlockStmt(pos);
229,036
public boolean onHover(View view, MotionEvent event) {<NEW_LINE>int position = (int) view.getTag(R.string.position_tag);<NEW_LINE>if (!isEnabled(position)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (mItems.size() <= position) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>MenuItem item = mItems.get(position);<NEW_L...
findViewById(R.id.listItemText);
104,847
public ErrorCode action(ByteBuf ackPayload, String clientID, String fromUser, ProtoConstants.RequestSourceType requestSourceType, WFCMessage.GetTokenRequest request, Qos1PublishHandler.IMCallback callback) {<NEW_LINE>MemorySessionStore.Session session = m_sessionsStore.updateOrCreateUserSession(fromUser, clientID, requ...
+ "|" + session.getDbSecret();
1,040,809
final GetPortalResult executeGetPortal(GetPortalRequest getPortalRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPortalRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
995,698
public void findAllCycles(EdgeWeightedDigraphInterface edgeWeightedDigraph) {<NEW_LINE>blockedVerticesSet = new HashSet<>();<NEW_LINE>blockedVerticesMap = new SeparateChainingHashTable<>();<NEW_LINE>stack = new ArrayDeque<>();<NEW_LINE>allCyclesByVertices = new ArrayList<>();<NEW_LINE>stackOfEdges = new ArrayDeque<>();...
sccSubGraph, vertexToProcess, vertexToProcess, null);
151,102
public void encodeMessage(byte[] data) {<NEW_LINE>super.encodeMessage(data);<NEW_LINE>subType = SubType.fromByte(super.subType);<NEW_LINE>sensorId = (data[4] & 0xFF) << 8 | (data[5] & 0xFF);<NEW_LINE>// dateTime = "yyyy-MM-dd'T'HH:mm:ss";<NEW_LINE>yy = data[6] & 0xFF;<NEW_LINE>MM = data[7] & 0xFF;<NEW_LINE>dd = data[8]...
mm = data[11] & 0xFF;
529,024
public void marshall(ChannelResponse channelResponse, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (channelResponse == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(channelResponse.getApplicationId(), APP...
channelResponse.getIsArchived(), ISARCHIVED_BINDING);
1,164,714
public void onPlayerPostLogin(PostLoginEvent e) {<NEW_LINE>final <MASK><NEW_LINE>final User user = this.plugin.getUserManager().getIfLoaded(e.getPlayer().getUniqueId());<NEW_LINE>if (this.plugin.getConfiguration().get(ConfigKeys.DEBUG_LOGINS)) {<NEW_LINE>this.plugin.getLogger().info("Processing post-login for " + playe...
ProxiedPlayer player = e.getPlayer();
526,299
protected Void run() throws Exception {<NEW_LINE>GitLabWebHookCause cause = run.getCause(GitLabWebHookCause.class);<NEW_LINE>if (cause != null) {<NEW_LINE>MergeRequest mergeRequest = cause.getData().getMergeRequest();<NEW_LINE>if (mergeRequest != null) {<NEW_LINE>GitLabClient client = getClient(run);<NEW_LINE>if (clien...
(mergeRequest), step.removeSourceBranch);
1,100,952
public TestSuite buildTestSuite() throws Exception {<NEW_LINE>TestSuite suite = new TestSuite();<NEW_LINE>final ArrayList<URL> urlList = new ArrayList<URL>();<NEW_LINE>urlList.add(<MASK><NEW_LINE>if (classpath != null) {<NEW_LINE>StringTokenizer tok = new StringTokenizer(classpath, File.pathSeparator);<NEW_LINE>while (...
new URL("file:" + jarFileName));
1,275,021
private Method findSuperclassMethod(@DottedClassName String superclassName, Method subclassMethod) throws ClassNotFoundException {<NEW_LINE>String methodName = subclassMethod.getName();<NEW_LINE>Type[] subArgs = null;<NEW_LINE>JavaClass superClass = Repository.lookupClass(superclassName);<NEW_LINE>Method[] methods = su...
String superSuperClassName = superClass.getSuperclassName();
1,038,675
// ------------------ Serialization<NEW_LINE>public Slime toSlime(Application application) {<NEW_LINE>Slime slime = new Slime();<NEW_LINE>Cursor root = slime.setObject();<NEW_LINE>root.setString(idField, application.id().serialized());<NEW_LINE>root.setLong(createdAtField, application.createdAt().toEpochMilli());<NEW_L...
metrics().writeServiceQuality());
1,648,576
public static <T> SerializedValue serialize(Class<T> javaType, T value) {<NEW_LINE>if (value == null) {<NEW_LINE>return new SerializedValue(null, null, null);<NEW_LINE>}<NEW_LINE>if (JodaBeanUtils.stringConverter().isConvertible(javaType)) {<NEW_LINE>String str = JodaBeanUtils.stringConverter().convertToString(javaType...
null, baos.toByteArray());
461,280
private boolean projectBuild(Project project, String socketId) {<NEW_LINE>StringBuilder builder = tailBuffer.get(project.getId());<NEW_LINE>int code = CommandUtils.execute(project.getMavenWorkHome(), Arrays.asList(project.getMavenArgs()), (line) -> {<NEW_LINE>builder.append(line).append("\n");<NEW_LINE>if (tailOutMap.c...
remove(project.getId());
1,603,389
public String compact(@CliOption(key = { "parallelism" }, mandatory = true, help = "Parallelism for hoodie compaction") final String parallelism, @CliOption(key = "schemaFilePath", mandatory = true, help = "Path for Avro schema file") final String schemaFilePath, @CliOption(key = "sparkMaster", unspecifiedDefaultValue ...
int exitCode = process.waitFor();
1,499,067
public void converge(NodeAgentContext context, Supplier<Map<String, Object>> nodeAttributesSupplier, boolean throwIfCoreBeingWritten) {<NEW_LINE>ContainerPath containerCrashPath = context.<MASK><NEW_LINE>ContainerPath containerProcessingPath = containerCrashPath.resolve(PROCESSING_DIRECTORY_NAME);<NEW_LINE>updateMetric...
paths().of(crashPatchInContainer);
1,725,002
public CommandFuture<?> migrate(BeaconMigrationRequest migrationRequest) {<NEW_LINE>logger.debug("[migrate][{}] begin", migrationRequest.getClusterName());<NEW_LINE>SequenceCommandChain migrateSequenceCmd = new SequenceCommandChain();<NEW_LINE>migrateSequenceCmd.add(new MigrationPreCheckCmd(migrationRequest, checker, c...
cause().getMessage());
450,070
public static KeyValuePart[] split(MatrixMeta matrixMeta, int rowId, int[] keys, int[] values) {<NEW_LINE>PartitionKey[] matrixParts = matrixMeta.getPartitionKeys();<NEW_LINE>int matrixPartNumMinus1 = matrixParts.length - 1;<NEW_LINE>KeyValuePart[] keyValueParts = new KeyValuePart[matrixParts.length];<NEW_LINE>int avgP...
hashCodes[i] % matrixParts.length;
547,061
void initDeleteStatsGaugesIfNeeded() {<NEW_LINE>if (deleteStatsGaugeInitialized.compareAndSet(false, true)) {<NEW_LINE>Gauge<Long> expiredDeleteTombstoneCount = () -> aggregatedDeleteTombstoneStats.get().getExpiredDeleteTombstoneCount();<NEW_LINE>registry.register(MetricRegistry.name(StatsManager<MASK><NEW_LINE>Gauge<L...
.class, "ExpiredDeleteTombstoneCount"), expiredDeleteTombstoneCount);
1,237,405
void calc(FastDistanceSparseData left, FastDistanceSparseData right, double[] res) {<NEW_LINE>Arrays.fill(res, 0.0);<NEW_LINE>int[][] leftIndices = left.getIndices();<NEW_LINE>int[][] rightIndices = right.getIndices();<NEW_LINE>double[][] leftValues = left.getValues();<NEW_LINE>double[][] rightValues = right.getValues(...
= right.label.getData();
322,420
public boolean visit(ClassInstanceCreation node) {<NEW_LINE>int lParen = this.tm.firstIndexAfter(node.getType(), TokenNameLPAREN);<NEW_LINE>int rParen = node.getAnonymousClassDeclaration() == null ? this.tm.lastIndexIn(node, TokenNameRPAREN) : this.tm.firstIndexBefore(node.getAnonymousClassDeclaration(), TokenNameRPARE...
.alignment_for_arguments_in_qualified_allocation_expression : this.options.alignment_for_arguments_in_allocation_expression;
1,257,193
public static boolean callTaichiContentProvider(@NonNull Context context) {<NEW_LINE>try {<NEW_LINE>ContentResolver contentResolver = context.getContentResolver();<NEW_LINE>Uri uri = Uri.parse("content://me.weishu.exposed.CP/");<NEW_LINE>Bundle result = new Bundle();<NEW_LINE>try {<NEW_LINE>result = contentResolver.cal...
result.getBoolean("active", false);
1,425,737
public static GetEntityTagRelationResponse unmarshall(GetEntityTagRelationResponse getEntityTagRelationResponse, UnmarshallerContext _ctx) {<NEW_LINE>getEntityTagRelationResponse.setRequestId(_ctx.stringValue("GetEntityTagRelationResponse.RequestId"));<NEW_LINE>getEntityTagRelationResponse.setMessage(_ctx.stringValue("...
("GetEntityTagRelationResponse.Data[" + i + "].EntityType"));
485,592
public static DescribeAppResponse unmarshall(DescribeAppResponse describeAppResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAppResponse.setRequestId(_ctx.stringValue("DescribeAppResponse.requestId"));<NEW_LINE>Result result = new Result();<NEW_LINE>result.setId(_ctx.stringValue("DescribeAppResponse.result.id"));...
= new ArrayList<String>();
31,569
public ListFindingsFiltersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListFindingsFiltersResult listFindingsFiltersResult = new ListFindingsFiltersResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
int originalDepth = context.getCurrentDepth();
841,852
private void load() {<NEW_LINE>final ArrayList<Pack> values = new ArrayList<Pack>();<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE><MASK><NEW_LINE>param.put("eDate", eDate);<NEW_LINE>param.put("objType", objType);<NEW_LINE>param.put("counter", co...
param.put("sDate", sDate);
1,018,103
protected void onNewResultImpl(@Nullable EncodedImage newResult, @Status int status) {<NEW_LINE>if (mIsCancelled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean isLast = isLast(status);<NEW_LINE>if (newResult == null) {<NEW_LINE>if (isLast) {<NEW_LINE>getConsumer().<MASK><NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE...
onNewResult(null, Consumer.IS_LAST);
1,252,123
/* Sample generated code:<NEW_LINE>*<NEW_LINE>* @com.ibm.j9ddr.GeneratedFieldAccessor(offsetFieldName="_permOffset_", declaredType="J9Permission")<NEW_LINE>* public J9PermissionPointer perm() throws CorruptDataException {<NEW_LINE>* return J9PermissionPointer.cast(nonNullFieldEA(J9FileStat._permOffset_));<NEW_LINE>...
className, "nonNullFieldEA", longFromLong, false);
1,225,534
public void sanityCheck() {<NEW_LINE>var trackSet = new TLongHashSet();<NEW_LINE>for (int frameIdx = 0; frameIdx < frames.size; frameIdx++) {<NEW_LINE>BFrame bf = frames.get(frameIdx);<NEW_LINE>for (int trackIdx = 0; trackIdx < bf.tracks.size; trackIdx++) {<NEW_LINE>BTrack bt = <MASK><NEW_LINE>trackSet.add(bt.id);<NEW_...
bf.tracks.get(trackIdx);
519,573
public void marshall(CreateSimulationJobRequest createSimulationJobRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createSimulationJobRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(create...
createSimulationJobRequest.getVpcConfig(), VPCCONFIG_BINDING);
1,155,458
public <T> GeoResults<T> geoNear(NearQuery near, Class<?> domainType, String collectionName, Class<T> returnType) {<NEW_LINE>if (near == null) {<NEW_LINE>throw new InvalidDataAccessApiUsageException("NearQuery must not be null!");<NEW_LINE>}<NEW_LINE>if (domainType == null) {<NEW_LINE>throw new InvalidDataAccessApiUsag...
distanceField = operations.nearQueryDistanceFieldName(domainType);
1,418,785
public void applyFromCellItem(WidgetItem item, WidgetPreviewLoader loader) {<NEW_LINE>applyPreviewOnAppWidgetHostView(item);<NEW_LINE>Context context = getContext();<NEW_LINE>mItem = item;<NEW_LINE>mWidgetName.setText(mItem.label);<NEW_LINE>mWidgetName.setContentDescription(context.getString(R.string.widget_preview_con...
.spanX, mItem.spanY));
1,677,780
protected List<? extends JComponent> createPreviewElements() {<NEW_LINE>final JButton basic = new JButton();<NEW_LINE>basic.putClientProperty(StyleId.STYLE_PROPERTY, getStyleId());<NEW_LINE>UILanguageManager.registerComponent(basic, getExampleLanguageKey("styled.text.basic"));<NEW_LINE>final JButton group1 = new JButto...
StyleId.STYLE_PROPERTY, getStyleId());
897,738
protected JPanel positionTab() {<NEW_LINE>JPanel panel = new JPanel(new MigLayout("gap rel unrel", "[][65lp::][30lp::]", ""));<NEW_LINE>// // Radial position<NEW_LINE>// // Radial distance:<NEW_LINE>panel.add(new JLabel(trans.get("StreamerCfg.lbl.Radialdistance")));<NEW_LINE>DoubleModel m = new DoubleModel(component, ...
trans.get("StreamerCfg.lbl.Radialdirection")));
412,135
public void configureImportedPaymentTable(IMiniTable miniTable) {<NEW_LINE>miniTable.setKeyColumnIndex(0);<NEW_LINE>// 0-Selection<NEW_LINE>miniTable.setColumnClass(0, IDColumn.class, true, getImportedPaymentColumnNames().get(0));<NEW_LINE>// 1-TrxDate<NEW_LINE>miniTable.setColumnClass(1, Timestamp.class, true);<NEW_LI...
6, BigDecimal.class, true);
1,130,060
public <T extends SkylarkContext<T>> void run(ActionContext<T> context) throws ValidationException, RepoException {<NEW_LINE>SkylarkContext<T> actionContext = context.withParams(params);<NEW_LINE>try (Mutability mu = Mutability.create("dynamic_action")) {<NEW_LINE>StarlarkThread thread = new StarlarkThread(mu, Starlark...
.currentThread().interrupt();
1,188,290
public static void registerThreadPoolMetric(String poolName, ThreadPoolExecutor threadPool) {<NEW_LINE>for (String poolMetricType : poolMerticTypes) {<NEW_LINE>GaugeMetric<Integer> gauge = new GaugeMetric<Integer>("thread_pool", MetricUnit.NOUNIT, "thread_pool statistics") {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public...
.getQueue().size();
167,724
public List<String> validateValue(final PwmSetting pwmSetting) {<NEW_LINE>final int maxBodyChars = 500_000;<NEW_LINE>if (pwmSetting.isRequired()) {<NEW_LINE>if (values == null || values.isEmpty() || values.values().iterator().next() == null) {<NEW_LINE>return Collections.singletonList("required value missing");<NEW_LIN...
EmailItemBean emailItemBean = entry.getValue();
439,451
public void visualizePerpendicular(Graphics2D g2, double scale, ChessboardCornerClusterFinder<GrayF32> clusterFinder) {<NEW_LINE>g2.setFont(regular);<NEW_LINE>BasicStroke thin = new BasicStroke(2);<NEW_LINE>BasicStroke thick = new BasicStroke(4);<NEW_LINE>// g2.setStroke(new BasicStroke(1));<NEW_LINE>// List<Vertex> ve...
scale, cb.y * scale);
916,333
private static PsiReference[] mergeReferences(PsiElement element, List<PsiReference> references) {<NEW_LINE>if (references.size() <= 1) {<NEW_LINE>return references.toArray(new PsiReference[references.size()]);<NEW_LINE>}<NEW_LINE>Collections.sort(references, START_OFFSET_COMPARATOR);<NEW_LINE>final List<PsiReference> ...
.get(i - 1));
237,307
private int createComplementDataCommand(Date scheduleDate) {<NEW_LINE>Command command = new Command();<NEW_LINE>command.setScheduleTime(scheduleDate);<NEW_LINE>command.setCommandType(CommandType.COMPLEMENT_DATA);<NEW_LINE>command.setProcessDefinitionCode(processInstance.getProcessDefinitionCode());<NEW_LINE>Map<String,...
setEnvironmentCode(processInstance.getEnvironmentCode());
803,660
public void prepare() throws NoSuchMethodException {<NEW_LINE>final Validator validator = Validators.newValidator();<NEW_LINE>final ExecutableValidator execValidator = validator.forExecutables();<NEW_LINE>final Set<ConstraintViolation<ConstraintViolationBenchmark.Resource>> paramViolations = // the parameter value<NEW_...
.iterator().next();
1,129,125
public void eval(String body, String timestampSecond, String esInstanceId, String ip, String bodySize, String level, String node, String remote, String uri) {<NEW_LINE>try {<NEW_LINE>if (isBlackInstance(esInstanceId)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>reportMetric(body.getBytes().length + uri.getBytes().length, ti...
(Tuple1.of(dataJson));
1,790,786
protected static Bitmap createScaledBitmap(Bitmap src, int dstWidth, int dstHeight, boolean filter) {<NEW_LINE>if (dstWidth == src.getWidth() && dstHeight == src.getHeight() && !filter) {<NEW_LINE>// Return the original.<NEW_LINE>return src;<NEW_LINE>}<NEW_LINE>if (dstWidth <= 0 || dstHeight <= 0) {<NEW_LINE>throw new ...
" scaled to " + dstWidth + " x " + dstHeight);