idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,394,825
private void validateChildReferenceTargetTypes(IBase theElement, String thePath) {<NEW_LINE>if (theElement == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BaseRuntimeElementDefinition<?> def = myContext.getElementDefinition(theElement.getClass());<NEW_LINE>if (!(def instanceof BaseRuntimeElementCompositeDefinition)) {<...
validTypes = new HashSet<>();
1,624,831
private EhcachePersistentConcurrentOffHeapClockCache<K, OffHeapValueHolder<V>> createBackingMap(long size, Serializer<K> keySerializer, Serializer<V> valueSerializer, SwitchableEvictionAdvisor<K, OffHeapValueHolder<V>> evictionAdvisor) throws IOException {<NEW_LINE>File metadataFile = getMetadataFile();<NEW_LINE>try (F...
MappedPageSource(getDataFile(), size);
1,553,070
private void generateArrayInit(final EncogProgramNode node) {<NEW_LINE>final StringBuilder line = new StringBuilder();<NEW_LINE>line.append("public static readonly double[] ");<NEW_LINE>line.append(node.getName());<NEW_LINE>line.append(" = {");<NEW_LINE>indentLine(line.toString());<NEW_LINE>final double[] a = (double[]...
get(0).getValue();
119,586
private void j9threadCommand(String[] args, PrintStream out) throws DDRInteractiveCommandException {<NEW_LINE>if (args.length < 2) {<NEW_LINE>out.println("This command takes one address argument: \"!monitors j9thread <address>\"");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>long address = CommandUtils.parsePoi...
ptr = VoidPointer.cast(address);
457,109
public static Object invoke(Object target, Class<?> clazz, String methodName, Class<?>[] parameterTypes, Object... args) {<NEW_LINE>try {<NEW_LINE>Method method = null;<NEW_LINE>try {<NEW_LINE>method = clazz.getMethod(methodName, parameterTypes);<NEW_LINE>} catch (NoSuchMethodException e) {<NEW_LINE>method = clazz.getD...
method.invoke(target, args);
312,874
public Packet nextFrame() {<NEW_LINE><MASK><NEW_LINE>NALUnit prevNu = null;<NEW_LINE>SliceHeader prevSh = null;<NEW_LINE>while (true) {<NEW_LINE>bb.mark();<NEW_LINE>ByteBuffer buf = H264Utils.nextNALUnit(bb);<NEW_LINE>if (buf == null)<NEW_LINE>break;<NEW_LINE>// NIOUtils.skip(buf, 4);<NEW_LINE>NALUnit nu = NALUnit.read...
ByteBuffer result = bb.duplicate();
708,029
private Response samlErrorMessage(AuthenticationSessionModel authSession, SamlClient samlClient, boolean isPostBinding, String destination, JBossSAMLURIConstants statusDetail, String relayState) {<NEW_LINE>JaxrsSAML2BindingBuilder binding = new JaxrsSAML2BindingBuilder(session).relayState(relayState);<NEW_LINE>SAML2Err...
String canonicalization = samlClient.getCanonicalizationMethod();
47,672
private void createExitStateForNewSegmentEarlyExit(StructuredGraph graph, LoopExitNode exit, LoopExitNode lex, EconomicMap<Node, Node> new2OldPhis) {<NEW_LINE>assert exit.stateAfter() != null;<NEW_LINE>FrameState exitState = exit.stateAfter();<NEW_LINE>FrameState duplicate = exitState.duplicateWithVirtualState();<NEW_L...
ValueNode) p.get(from);
1,571,392
private void heightChangeUpdate(int endIndex, double endYR, double deltaY) {<NEW_LINE>if (gapStorage != null) {<NEW_LINE>gapStorage.visualGapStart = endYR;<NEW_LINE>gapStorage.visualGapLength -= deltaY;<NEW_LINE>gapStorage.visualGapIndex = endIndex;<NEW_LINE>} else {<NEW_LINE>// No gapStorage<NEW_LINE>if (deltaY != 0d)...
view.getRawEndVisualOffset() + deltaY);
1,253,398
public static void kustoScriptsCreateOrUpdate(com.azure.resourcemanager.kusto.KustoManager manager) {<NEW_LINE>manager.scripts().define("kustoScript").withExistingDatabase("kustorptest", "kustoCluster", "KustoDatabase8").withScriptUrl("https://mysa.blob.core.windows.net/container/script.txt").withScriptUrlSasToken("?sv...
withContinueOnErrors(true).create();
1,787,947
private SelectIntoOperator parseAndConstructSelectIntoOperator(IoTDBSqlParser.SelectStatementContext ctx) {<NEW_LINE>if (queryOp.getFromComponent().getPrefixPaths().size() != 1) {<NEW_LINE>throw new SQLParserException("select into: the number of prefix paths in the from clause should be 1.");<NEW_LINE>}<NEW_LINE>int so...
intoPaths = new ArrayList<>();
288,471
protected void writeAdditionalAttributes(BaseElement element, BpmnModel model, XMLStreamWriter xtw) throws Exception {<NEW_LINE>UserTask userTask = (UserTask) element;<NEW_LINE>writeQualifiedAttribute(ATTRIBUTE_TASK_USER_ASSIGNEE, userTask.getAssignee(), xtw);<NEW_LINE>writeQualifiedAttribute(ATTRIBUTE_TASK_USER_OWNER,...
userTask.getExtensionId(), xtw);
1,693,133
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] bytes) throws IllegalClassFormatException {<NEW_LINE>try {<NEW_LINE>if (GlobalConfiguration.isRuntimeLogging && log.isLoggable(Level.INFO)) {<NEW_LINE>log.info("> (loader=" + loader + " ...
typeRegistry.getReloadableType(className, false);
164,460
protected void addY(int yOffset) {<NEW_LINE>if (yOffset == 0f)<NEW_LINE>return;<NEW_LINE>if (isYspaceFor(yOffset)) {<NEW_LINE>m_position[m_area].y += yOffset;<NEW_LINE>if (log.isLoggable(Level.FINEST))<NEW_LINE>log.finest("Page=" + m_pageNo + " [" + m_area + "] " + m_position[m_area].x + "/" + m_position[m_area].y);<NE...
+ m_position[m_area].y);
978,004
private void remoteCodeFirstPojo_testMap(CodeFirstPojoIntf codeFirst) {<NEW_LINE>Map<String, String> userMap = new HashMap<>();<NEW_LINE>userMap.put("u1", "u1");<NEW_LINE>userMap.put("u2", null);<NEW_LINE>Map<String, String> <MASK><NEW_LINE>TestMgr.check(result.get("u1"), "u1");<NEW_LINE>TestMgr.check(result.get("u2"),...
result = codeFirst.testMap(userMap);
1,209,408
public void splitBefore(Staff pivotStaff, Part partBelow) {<NEW_LINE>final Measure measureBelow = new Measure(partBelow);<NEW_LINE>final List<Staff> stavesBelow = partBelow.getStaves();<NEW_LINE>// Barlines<NEW_LINE>if (leftBarline != null) {<NEW_LINE>measureBelow.leftBarline = leftBarline.splitBefore(pivotStaff);<NEW_...
splitCollectionBefore(stavesBelow, measureBelow, restChords);
940,678
public Status addLearners(final String groupId, final Configuration conf, final List<PeerId> learners) {<NEW_LINE>checkLearnersOpParams(groupId, conf, learners);<NEW_LINE><MASK><NEW_LINE>final Status st = getLeader(groupId, conf, leaderId);<NEW_LINE>if (!st.isOk()) {<NEW_LINE>return st;<NEW_LINE>}<NEW_LINE>if (!this.cl...
final PeerId leaderId = new PeerId();
608,771
protected boolean doGeneric(JSDynamicObject proxy, Object receiver, Object value, Object key, @Cached("createBinaryProfile()") ConditionProfile hasTrap, @Cached JSClassProfile targetClassProfile) {<NEW_LINE>assert JSProxy.isJSProxy(proxy);<NEW_LINE>assert !(key instanceof HiddenKey);<NEW_LINE>Object propertyKey = toPro...
truffleWrite(target, propertyKey, value);
756,523
final ListOpenIDConnectProvidersResult executeListOpenIDConnectProviders(ListOpenIDConnectProvidersRequest listOpenIDConnectProvidersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listOpenIDConnectProvidersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
ListOpenIDConnectProvidersResult>(new ListOpenIDConnectProvidersResultStaxUnmarshaller());
1,832,597
public void marshall(CreateRecommenderConfiguration createRecommenderConfiguration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createRecommenderConfiguration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.mar...
createRecommenderConfiguration.getName(), NAME_BINDING);
679,247
public boolean verifyPassword(KeyPair keyPair, X509Certificate x509) throws GeneralSecurityException {<NEW_LINE>AgileEncryptionVerifier ver = <MASK><NEW_LINE>AgileEncryptionHeader header = (AgileEncryptionHeader) builder.getHeader();<NEW_LINE>HashAlgorithm hashAlgo = header.getHashAlgorithmEx();<NEW_LINE>CipherAlgorith...
(AgileEncryptionVerifier) builder.getVerifier();
1,542,696
final BatchDetectSentimentResult executeBatchDetectSentiment(BatchDetectSentimentRequest batchDetectSentimentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDetectSentimentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "BatchDetectSentiment");
1,086,378
private void fillTopRepos(Collection<Repository> topRepos) {<NEW_LINE>View progress = mContentView.findViewById(R.id.pb_top_repos);<NEW_LINE>LinearLayout ll = mContentView.findViewById(R.id.ll_top_repos);<NEW_LINE>ll.removeAllViews();<NEW_LINE>LayoutInflater inflater = getLayoutInflater();<NEW_LINE>if (topRepos != null...
findViewById(R.id.btn_repos);
190,302
public boolean execute(CommandSender sender, String label, String[] args, CommandMessages messages) {<NEW_LINE>if (!testPermission(sender, messages.getPermissionMessage())) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (args.length != 1) {<NEW_LINE>sendUsageMessage(sender, messages);<NEW_LINE>return false;<NEW_LINE>}<...
ChatColor.RED, sender, name);
288,104
private List<String> fetchPluginsFromUrl(final String url) {<NEW_LINE>final List<String> <MASK><NEW_LINE>try {<NEW_LINE>final URL esUrl = new URL(url + "/_cat/plugins?format=json&local=true");<NEW_LINE>final HttpURLConnection conn = (HttpURLConnection) esUrl.openConnection();<NEW_LINE>conn.setRequestMethod("GET");<NEW_...
plugins = new ArrayList<>();
854,884
public QueryExecutionContext unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>QueryExecutionContext queryExecutionContext = new QueryExecutionContext();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token =...
String currentParentElement = context.getCurrentParentElement();
1,633,129
public String quotedContent(String boldOpenTag, String boldCloseTag, String separatorTag, boolean inAttribute) {<NEW_LINE>StringBuilder xml = new StringBuilder();<NEW_LINE>Iterator<FieldPart> iter <MASK><NEW_LINE>while (iter.hasNext()) {<NEW_LINE>FieldPart f = iter.next();<NEW_LINE>if (f instanceof BoldOpenFieldPart &&...
= ensureTokenized().iterator();
1,210,783
private boolean waitForCondition(Condition condition, final long timeoutMs) {<NEW_LINE>Exception finalException = null;<NEW_LINE><MASK><NEW_LINE>int numErrors = 0;<NEW_LINE>int numIters = 0;<NEW_LINE>String errorMessage = null;<NEW_LINE>do {<NEW_LINE>try {<NEW_LINE>if (injectWaitError) {<NEW_LINE>Thread.sleep(AsyncYBCl...
long start = System.currentTimeMillis();
1,114,004
public AwsRdsDbClusterAssociatedRole unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsRdsDbClusterAssociatedRole awsRdsDbClusterAssociatedRole = new AwsRdsDbClusterAssociatedRole();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
class).unmarshall(context));
794,741
public QuerySchemaVersionMetadataResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>QuerySchemaVersionMetadataResult querySchemaVersionMetadataResult = new QuerySchemaVersionMetadataResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte...
JsonToken token = context.getCurrentToken();
787,774
public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {<NEW_LINE>super.configure(name, params);<NEW_LINE>_capacityPerSSVM = NumbersUtil.parseInt(_configDao.getValue(Config.SecStorageSessionMax.key()), DEFAULT_SS_VM_CAPACITY);<NEW_LINE>_standbyCapacity = NumbersUtil.parseInt(_co...
= StorageManager.MaxDataMigrationWaitTime.value();
616,186
private SqlDynamicParam visitAllDynamicParam(SqlDynamicParam dynamicParam) {<NEW_LINE>if (autoIncrementColumn != curFieldIndex) {<NEW_LINE>return SqlNode.clone(dynamicParam);<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>List<Map<Integer, ParameterContext>> batchParameters = parameterSettings.getBatchParameters();<NEW_LINE>for (...
int dynamicParamIndex = dynamicParam.getIndex();
1,580,859
final GetPipelineDefinitionResult executeGetPipelineDefinition(GetPipelineDefinitionRequest getPipelineDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPipelineDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Data Pipeline");
582,075
private static boolean registerServerInstanceFO(FileObject serverInstanceDir, String url, String displayName, File glassfishRoot, File java7orLaterExecutable) {<NEW_LINE>String name = FileUtil.findFreeFileName(serverInstanceDir, GlassfishInstanceProvider.GLASSFISH_AUTOREGISTERED_INSTANCE, null);<NEW_LINE>FileObject ins...
"domains")).getAbsolutePath());
1,806,783
private static Throwable toException(ExecutionFailureInfo executionFailureInfo) {<NEW_LINE>if (executionFailureInfo == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Throwable failure;<NEW_LINE>if (executionFailureInfo.getErrorCode() == null) {<NEW_LINE>failure = new TddlNestableRuntimeException(executionFailureInfo...
.addSuppressed(toException(suppressed));
263,517
public EntityPersonaConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EntityPersonaConfiguration entityPersonaConfiguration = new EntityPersonaConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme...
JsonToken token = context.getCurrentToken();
562,031
private boolean visit(FunctionCall call) {<NEW_LINE>if (!(call.getTarget() instanceof PropertyGet)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>PropertyGet propertyGet = (PropertyGet) call.getTarget();<NEW_LINE>MethodReference methodRef = getJavaMethodSelector(propertyGet.getTarget());<NEW_LINE>if (methodRef == null ||...
get(location.getMethod());
1,328,137
public void execute() throws UserException {<NEW_LINE>// 0. empty set<NEW_LINE>// A where clause with a constant equal to false will not execute the update directly<NEW_LINE>// Example: update xxx set v1=0 where 1=2<NEW_LINE>if (analyzer.hasEmptyResultSet()) {<NEW_LINE>QeProcessorImpl.INSTANCE.unregisterQuery(queryId);...
.getState().setOk();
741,604
protected void layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected) {<NEW_LINE>textRect.x = textRect.y = iconRect<MASK><NEW_LINE>javax.swing.text.View v = getTextViewForTab(tabIndex);<NEW_LINE>if (v != nu...
.x = iconRect.y = 0;
1,077,717
public void marshall(CreateStudioRequest createStudioRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createStudioRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createStudioRequest.getName...
createStudioRequest.getSubnetIds(), SUBNETIDS_BINDING);
1,565,588
public static int count(String self, String sub, int start, int end) {<NEW_LINE>if (self.isEmpty()) {<NEW_LINE>return (sub.length() == 0 && start <= 0) ? 1 : 0;<NEW_LINE>} else if (sub.isEmpty()) {<NEW_LINE>return (start <= self.length()) ? (<MASK><NEW_LINE>} else {<NEW_LINE>char needle = sub.charAt(0);<NEW_LINE>int cn...
end - start) + 1 : 0;
770,918
protected void run(Map tokens, Object data) {<NEW_LINE>GarbageCollectorVO vo = dbf.findByUuid(uuid, GarbageCollectorVO.class);<NEW_LINE>if (vo == null) {<NEW_LINE>logger.warn(String.format("[GC] cannot find a job[name:%s, id:%s], assume it's deleted", NAME, uuid));<NEW_LINE>cancel();<NEW_LINE>return;<NEW_LINE>}<NEW_LIN...
, NAME, uuid, path));
911,808
private void updateContents(@Nonnull java.util.List<StatusItem> status) {<NEW_LINE>removeAll();<NEW_LINE>setEnabled(!status.isEmpty());<NEW_LINE>setVisible(!status.isEmpty());<NEW_LINE>GridBag gc = new GridBag().nextLine();<NEW_LINE>if (status.size() == 1 && StringUtil.isEmpty(status.get(0).getText())) {<NEW_LINE>add(c...
), gc.next());
1,648,047
public double evaluate(JavaSparkContext sparkContext, PMML model, Path modelParentPath, JavaRDD<String> testData, JavaRDD<String> trainData) {<NEW_LINE>KMeansPMMLUtils.validatePMMLVsSchema(model, inputSchema);<NEW_LINE>JavaRDD<Vector> evalData = parsedToVectorRDD(trainData.union(testData)<MASK><NEW_LINE>List<ClusterInf...
.map(MLFunctions.PARSE_FN));
1,242,725
public synchronized QueryStatement init() throws UserException {<NEW_LINE>Preconditions.checkNotNull(inlineViewDef);<NEW_LINE>// Parse the expanded view definition SQL-string into a QueryStmt and<NEW_LINE>// populate a view definition.<NEW_LINE>ParseNode node;<NEW_LINE>try {<NEW_LINE>node = com.starrocks.sql.parser.Sql...
<>((QueryStatement) node);
576,355
public Iterator<String> call(Integer partitionIdx, Iterator<MultiDataSet> iterator) throws Exception {<NEW_LINE>List<String> outputPaths = new ArrayList<>();<NEW_LINE>LinkedList<MultiDataSet> <MASK><NEW_LINE>int count = 0;<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>MultiDataSet next = iterator.next();<NEW_LINE>if (...
tempList = new LinkedList<>();
71,884
public static void fillRectangle(InterleavedS64 image, long value, int x0, int y0, int width, int height) {<NEW_LINE>int x1 = x0 + width;<NEW_LINE>int y1 = y0 + height;<NEW_LINE>if (x0 < 0)<NEW_LINE>x0 = 0;<NEW_LINE>if (x1 > image.width)<NEW_LINE>x1 = image.width;<NEW_LINE>if (y0 < 0)<NEW_LINE>y0 = 0;<NEW_LINE>if (y1 >...
.stride + _x0 * image.numBands;
473,019
private boolean checkStaticOuterField(final PropertyExpression pexp, final String propertyName) {<NEW_LINE>for (final ClassNode outer : controller.getClassNode().getOuterClasses()) {<NEW_LINE>FieldNode field = outer.getDeclaredField(propertyName);<NEW_LINE>if (field != null) {<NEW_LINE>if (!field.isStatic())<NEW_LINE>b...
outerClass, pexp.getProperty());
1,816,439
public Object invokeStaticMethod(Object object, String methodName, Object[] arguments) {<NEW_LINE>if (methodName.equals("grab") && arguments.length > 1 && (arguments[0] instanceof Map)) {<NEW_LINE>return AccessController.doPrivileged(new PrivilegedAction<Object>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Object r...
invokeStaticMethod(object, methodName, arguments);
1,456,897
private boolean isInMinimalDeviceMode() {<NEW_LINE>if (!FeatureFlags.ENABLE_MINIMAL_DEVICE.get()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (DEBUG || mIsInTest) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>Preconditions.assertNonUiThread();<NEW_LINE>final Uri contentUri = apiBuilder().build();<NEW_LINE>try (ContentProvi...
Log.d(TAG, "isInMinimalDeviceMode() called");
1,274,280
public boolean checkTrigger(GameEvent event, Game game) {<NEW_LINE>if (!event.getTargetId().equals(getSourceId())) {<NEW_LINE>MageObject sourceObj = this.getSourceObject(game);<NEW_LINE>if (sourceObj != null) {<NEW_LINE>if (sourceObj instanceof Card && ((Card) sourceObj).isFaceDown(game)) {<NEW_LINE>// if face down and...
.getTargetId(), game));
1,629,070
final StartExpenseAnalysisResult executeStartExpenseAnalysis(StartExpenseAnalysisRequest startExpenseAnalysisRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startExpenseAnalysisRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
827,915
public Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException {<NEW_LINE>Entity entity = persistencePackage.getEntity();<NEW_LINE>try {<NEW_LINE>List<Property> productOptionProperties = getProductOptionProperties(entity);<NEW_LINE>// Verify that...
adminInstance = dynamicEntityDao.persist(adminInstance);
858,581
void renderPointerLayer(final Surface aSurface, final long aNativeCallback) {<NEW_LINE>runOnUiThread(() -> {<NEW_LINE>try {<NEW_LINE>Canvas canvas = aSurface.lockHardwareCanvas();<NEW_LINE>canvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR);<NEW_LINE>Paint paint = new Paint();<NEW_LINE>paint.setAntiAlias(true);<...
= canvas.getWidth() * 0.4f;
1,208,470
public void encode(MutableDirectBuffer buffer) {<NEW_LINE>MessageHeaderEncoder enc = new MessageHeaderEncoder();<NEW_LINE>StorageMetaDataEncoder smde = new StorageMetaDataEncoder();<NEW_LINE>enc.wrap(buffer, 0).blockLength(smde.sbeBlockLength()).templateId(smde.sbeTemplateId()).schemaId(smde.sbeSchemaId()).version(smde...
SbeUtil.toBytes(true, typeID);
1,027,186
public void onClick(View v) {<NEW_LINE>Activity activity = getActivity();<NEW_LINE>if (activity != null) {<NEW_LINE>final ListPopupWindow popup = new <MASK><NEW_LINE>popup.setAnchorView(v);<NEW_LINE>popup.setContentWidth(AndroidUtils.dpToPx(app, 200f));<NEW_LINE>popup.setModal(true);<NEW_LINE>popup.setDropDownGravity(G...
ListPopupWindow(v.getContext());
769,930
private void processApplicationReferences(EARApplicationInfo appInfo, Application app) throws StateChangeException {<NEW_LINE>Map<JNDIEnvironmentRefType, List<? extends JNDIEnvironmentRef>> allRefs = new EnumMap<JNDIEnvironmentRefType, List<? extends JNDIEnvironmentRef>>(JNDIEnvironmentRefType.class);<NEW_LINE>boolean ...
= appInfo.getName() + " META-INF/application.xml";
509,912
public void render(EffectContainer e) {<NEW_LINE>if (tex == null)<NEW_LINE>tex = Core.atlas.find(region);<NEW_LINE>float realRotation = (useRotation ? e.rotation : baseRotation);<NEW_LINE>float rawfin = e.fin();<NEW_LINE>float fin = e.fin(interp);<NEW_LINE>float rad = sizeInterp.apply(sizeFrom, sizeTo, rawfin) * 2;<NEW...
Draw.getColor().a);
1,069,721
public static void main(String[] args) {<NEW_LINE>// START SNIPPET: loadAll<NEW_LINE>// Create a context and a client<NEW_LINE>FhirContext ctx = FhirContext.forR4();<NEW_LINE>String serverBase = "http://hapi.fhr.org/baseR4";<NEW_LINE>IGenericClient client = ctx.newRestfulGenericClient(serverBase);<NEW_LINE>// We'll pop...
patients = new ArrayList<>();
332,338
private void backup(String toolName, ToolIntegratedStatus toStatus, String buildId, Collection<CheckerSetEntity> toCheckerSetList) {<NEW_LINE>List<CheckerSetHisEntity> hisCheckerSetEntities = checkerSetHisRepository.findByToolNameInAndVersion(toolName, toStatus.value());<NEW_LINE>if (CollectionUtils.isNotEmpty(hisCheck...
ToolIntegratedStatus.G.value());
1,263,313
public String readIdByDn(String dn) {<NEW_LINE>// TODO: this might not be necessary if the LDAP server would support an extended OID<NEW_LINE>// https://ldapwiki.com/wiki/LDAP_SERVER_EXTENDED_DN_OID<NEW_LINE>String id = dns.get(dn);<NEW_LINE>if (id == null) {<NEW_LINE>for (Map.Entry<String, LdapMapRoleEntityFieldDelega...
getAllKeys().get(0);
1,417,256
public static Yield parse(List<Object> wmsg) {<NEW_LINE>MessageUtil.validateMessage(wmsg, <MASK><NEW_LINE>Map<String, Object> options = (Map<String, Object>) wmsg.get(2);<NEW_LINE>List<Object> args = null;<NEW_LINE>if (wmsg.size() > 3) {<NEW_LINE>if (wmsg.get(3) instanceof byte[]) {<NEW_LINE>throw new ProtocolError("Bi...
MESSAGE_TYPE, "YIELD", 3, 6);
369,245
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Extensions.DaemonSetList other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1beta1Extensions.DaemonSetList.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasMetadata()) {<NEW_LINE>mergeMetadata(other.getMetadata());<NEW_LINE>}<NEW_LINE>i...
items_.addAll(other.items_);
1,754,948
public boolean hitEntity(@Nonnull ItemStack stack, @Nonnull EntityLivingBase entity, @Nonnull EntityLivingBase playerEntity) {<NEW_LINE>if (playerEntity instanceof EntityPlayer) {<NEW_LINE>EntityPlayer player = (EntityPlayer) playerEntity;<NEW_LINE>// Durability damage<NEW_LINE>EnergyUpgradeHolder eu = EnergyUpgradeMan...
setBoolean(SwordHandler.HIT_BY_DARK_STEEL_SWORD, true);
1,821,126
public static DescribeDBClusterNetInfoResponse unmarshall(DescribeDBClusterNetInfoResponse describeDBClusterNetInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBClusterNetInfoResponse.setRequestId(_ctx.stringValue("DescribeDBClusterNetInfoResponse.RequestId"));<NEW_LINE>describeDBClusterNetInfoResponse.setCl...
= new ArrayList<Address>();
1,355,303
private void removeMapping(@Nonnull Object element, DefaultMutableTreeNode node, @Nullable Object elementToPutNodeActionsFor) {<NEW_LINE>element = TreeAnchorizer.<MASK><NEW_LINE>warnMap("myElementToNodeMap: removeMapping: ", myElementToNodeMap);<NEW_LINE>final Object value = myElementToNodeMap.get(element);<NEW_LINE>if...
getService().createAnchor(element);
1,374,435
final GetGroupResult executeGetGroup(GetGroupRequest getGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,839,204
public void processCarbonsMessage(AccountJid account, final Message message, CarbonExtension.Direction direction) {<NEW_LINE>if (direction == CarbonExtension.Direction.sent) {<NEW_LINE>ChatMarkersElements.DisplayedExtension extension = ChatMarkersElements.DisplayedExtension.from(message);<NEW_LINE>if (extension != null...
getInstance().startGracePeriod(account);
1,682,679
public static void main(String[] args) throws IOException, InvalidFormatException {<NEW_LINE>try (final Workbook workbook = new XSSFWorkbook();<NEW_LINE>FileOutputStream saveExcel = new FileOutputStream("target/baeldung-apachepoi.xlsx")) {<NEW_LINE>Sheet sheet = workbook.createSheet("Avengers");<NEW_LINE>XSSFDrawing dr...
row1 = sheet.createRow(0);
762,830
protected String extractTokenFromResponse(String response, String tokenName) {<NEW_LINE>if (response == null)<NEW_LINE>return null;<NEW_LINE>if (response.startsWith("{")) {<NEW_LINE>try {<NEW_LINE>JsonNode node = mapper.readTree(response);<NEW_LINE>if (node.has(tokenName)) {<NEW_LINE>String s = node.get(tokenName).text...
e.getMessage(), e);
1,545,305
public void saveOverride(DynamicConfigDTO override) {<NEW_LINE>String id = ConvertUtil.getIdFromDTO(override);<NEW_LINE>String path = getPath(id);<NEW_LINE>String exitConfig = dynamicConfiguration.getConfig(path);<NEW_LINE>List<OverrideConfig> configs = new ArrayList<>();<NEW_LINE><MASK><NEW_LINE>if (exitConfig != null...
OverrideDTO existOverride = new DynamicConfigDTO2OverrideDTOAdapter(override);
969,079
public void initialize() {<NEW_LINE>if (this.release == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.release = getReleaseOptionFromCompliance(this.release);<NEW_LINE>this.releaseInHex = Integer.toHexString(Integer.parseInt(this.release)).toUpperCase();<NEW_LINE>Path lib = Paths.get(this.zipFilename).getParent();<N...
.getFileName().toString();
1,398,370
public DescribeObservationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeObservationResult describeObservationResult = new DescribeObservationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
().unmarshall(context));
436,238
final GetFieldLevelEncryptionResult executeGetFieldLevelEncryption(GetFieldLevelEncryptionRequest getFieldLevelEncryptionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFieldLevelEncryptionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,246,014
public static boolean areOppositeBranches(int opcode1, int opcode2) {<NEW_LINE>if (!isBranch(opcode1)) {<NEW_LINE>throw new IllegalArgumentException<MASK><NEW_LINE>}<NEW_LINE>if (!isBranch(opcode2)) {<NEW_LINE>throw new IllegalArgumentException(OPCODE_NAMES[opcode2] + " isn't a branch");<NEW_LINE>}<NEW_LINE>switch(opco...
(OPCODE_NAMES[opcode1] + " isn't a branch");
1,219,372
public void encode(Buffer valueBuffer) {<NEW_LINE>StrategyAnalyzer<Long> collectIntervalStrategyAnalyzer = collectIntervalAnalyzerBuilder.build();<NEW_LINE>StrategyAnalyzer<Long> sampledNewCountStrategyAnalyzer = sampledNewCountAnalyzerBuilder.build();<NEW_LINE>StrategyAnalyzer<Long> sampledContinuationCountStrategyAna...
> skippedContinuationCountStrategyAnalyzer = skippedContinuationCountAnalyzerBuilder.build();
1,505,977
public boolean canDecodeInput(File file) throws IOException {<NEW_LINE>if (file == null) {<NEW_LINE>throw new IllegalArgumentException("file == null!");<NEW_LINE>}<NEW_LINE>if (!file.canRead()) {<NEW_LINE>throw new IIOException("cannot read the input file");<NEW_LINE>}<NEW_LINE>byte[<MASK><NEW_LINE>// set-up a FileChan...
] hdr4 = new byte[4];
232,432
private void createSegment(File dataFile, int sequenceId) throws IOException {<NEW_LINE>LOGGER.info("Creating segment from data file: {} of sequence id: {}", dataFile, sequenceId);<NEW_LINE>_segmentGeneratorConfig.setInputFilePath(dataFile.getPath());<NEW_LINE>_segmentGeneratorConfig.setSequenceId(sequenceId);<NEW_LINE...
_segmentTarDir, segmentName + TarGzCompressionUtils.TAR_GZ_FILE_EXTENSION);
1,711,491
private void processClassReferences(ObjectiveC2_State state) throws Exception {<NEW_LINE>state.monitor.setMessage("Objective-C 2.0 Class References...");<NEW_LINE>MemoryBlock block = state.program.getMemory().getBlock(ObjectiveC2_Constants.OBJC2_CLASS_REFS);<NEW_LINE>if (block == null) {<NEW_LINE>return;<NEW_LINE>}<NEW...
address.add(state.pointerSize);
345,522
public void marshall(InstanceStorageConfig instanceStorageConfig, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (instanceStorageConfig.getAssociationId() != null) {<NEW_LINE><MASK><NEW_LINE>jsonWriter.name("AssociationId");<NEW_LINE>jsonWriter.value(associationId);<NEW_LINE...
String associationId = instanceStorageConfig.getAssociationId();
1,506,810
public void marshall(FirewallRule firewallRule, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (firewallRule == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.marshall(fire...
firewallRule.getFirewallRuleGroupId(), FIREWALLRULEGROUPID_BINDING);
942,417
int commit(long upToTransactionId) {<NEW_LINE>long traceId = LoggerHelpers.traceEnterWithContext(log, this.traceObjectId, "commit", upToTransactionId);<NEW_LINE>// Commit every UpdateTransaction, in order, until we reach our transaction id.<NEW_LINE>List<Long> commits = new ArrayList<>();<NEW_LINE>while (!this.transact...
= this.transactions.removeFirst();
914,478
private boolean updateCalculatedGoals() {<NEW_LINE>if (!MEASURETYPE_Calculated.equals(getMeasureType()))<NEW_LINE>return false;<NEW_LINE>MGoal[] goals = MGoal.getMeasureGoals(<MASK><NEW_LINE>for (int i = 0; i < goals.length; i++) {<NEW_LINE>MGoal goal = goals[i];<NEW_LINE>// Find Role<NEW_LINE>MRole role = null;<NEW_LI...
getCtx(), getPA_Measure_ID());
1,418,929
public synchronized String execute(final String aCommand, final String... params) throws IOException, InterruptedException {<NEW_LINE>// build command array<NEW_LINE>String[] arrayCommand = new String[params.length + 1];<NEW_LINE>arrayCommand[0] = aCommand;<NEW_LINE>StringBuilder arrayCommandToLog = new StringBuilder()...
] = params[i - 1];
200,614
public Request<DeleteTableRequest> marshall(DeleteTableRequest deleteTableRequest) {<NEW_LINE>if (deleteTableRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteTableRequest)");<NEW_LINE>}<NEW_LINE>Request<DeleteTableRequest> request = new DefaultRequest<DeleteTableReq...
t.getMessage(), t);
839,830
public static SearchMetaTablesResponse unmarshall(SearchMetaTablesResponse searchMetaTablesResponse, UnmarshallerContext _ctx) {<NEW_LINE>searchMetaTablesResponse.setRequestId(_ctx.stringValue("SearchMetaTablesResponse.RequestId"));<NEW_LINE>searchMetaTablesResponse.setHttpStatusCode(_ctx.integerValue("SearchMetaTables...
(_ctx.stringValue("SearchMetaTablesResponse.ErrorCode"));
1,253,846
private WriterCacheEntry makeCacheEntry(String eventTypeName) {<NEW_LINE>EventType eventType = runtime.getServicesContext().getEventTypeRepositoryBus().getNameToTypeMap().get(eventTypeName);<NEW_LINE>if (eventType == null) {<NEW_LINE>log.<MASK><NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (!(eventType instanceof EventT...
info("Event type by name '" + eventTypeName + "' not found.");
1,567,444
private void assembleShare(Share share, Business business, Wi wi, EffectivePerson effectivePerson) throws Exception {<NEW_LINE>Attachment2 attachment = business.entityManagerContainer().find(wi.getFileId(), Attachment2.class);<NEW_LINE>if (attachment == null) {<NEW_LINE>Folder2 folder = business.entityManagerContainer(...
share.setFileType(Share.FILE_TYPE_ATTACHMENT);
201,031
public static void vertical7(Kernel1D_F64 kernel, GrayF64 src, GrayF64 dst) {<NEW_LINE>final double[] dataSrc = src.data;<NEW_LINE>final double[] dataDst = dst.data;<NEW_LINE>final double k1 = kernel.data[0];<NEW_LINE>final double k2 = kernel.data[1];<NEW_LINE>final double k3 = kernel.data[2];<NEW_LINE>final double k4 ...
(dataSrc[indexSrc]) * k2;
947,954
public Expression visitGstringPath(final GstringPathContext ctx) {<NEW_LINE>VariableExpression variableExpression = new VariableExpression(this.visitIdentifier(ctx.identifier()));<NEW_LINE>if (asBoolean(ctx.GStringPathPart())) {<NEW_LINE>Expression propertyExpression = // GRECLIPSE add<NEW_LINE>ctx.GStringPathPart().st...
getObjectExpression().getLineNumber());
432,916
private void buildUI() {<NEW_LINE>BorderLayout borderLayout = new BorderLayout();<NEW_LINE>setLayout(borderLayout);<NEW_LINE>ringChartPanel = new RingChartPanel(this);<NEW_LINE>toolbar = new Toolbar(this);<NEW_LINE>add(toolbar, BorderLayout.NORTH);<NEW_LINE>toolbar.addKeyListenerToTypingArea(this);<NEW_LINE>displayArea...
JScrollPane(filesTree.getJTree());
1,193,048
public void processConfigEntryProperties() {<NEW_LINE>super.processConfigEntryProperties();<NEW_LINE>if (configEntry.processorData[SLOT_EDGEABLE] != null) {<NEW_LINE>edgeable = ((Boolean) configEntry.processorData[SLOT_EDGEABLE]).booleanValue();<NEW_LINE>}<NEW_LINE>if (configEntry.processorData[SLOT_CONSUME_SUBFRAGMENT...
]) configEntry.processorData[SLOT_CONSUME_EXCLUDE_LIST];
119,591
public void runTool(String... args) throws SQLException {<NEW_LINE>String dir = ".";<NEW_LINE>String cipher = null;<NEW_LINE>char[] decryptPassword = null;<NEW_LINE>char[] encryptPassword = null;<NEW_LINE>String db = null;<NEW_LINE>boolean quiet = false;<NEW_LINE>for (int i = 0; args != null && i < args.length; i++) {<...
[++i].toCharArray();
1,031,928
private void processProperties() {<NEW_LINE>if (_cmd.hasOption(PROPS_FILE_OPT_CHAR)) {<NEW_LINE>for (String propFile : _cmd.getOptionValues(PROPS_FILE_OPT_CHAR)) {<NEW_LINE>_log.info("Loading container config from properties file " + propFile);<NEW_LINE>FileInputStream fis = null;<NEW_LINE>try {<NEW_LINE>fis = new File...
"error processing properties; ignoring:" + e.getMessage());
1,780,281
public ListStreamsResult listStreams(ListStreamsRequest listStreamsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listStreamsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MA...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
106,818
protected MapTileRequestState nextTile() {<NEW_LINE>synchronized (mapTileModuleProviderBase.mQueueLockObject) {<NEW_LINE>MapTile result = null;<NEW_LINE>// get the most recently accessed tile<NEW_LINE>// - the last item in the iterator that's not already being<NEW_LINE>// processed<NEW_LINE>Iterator<MapTile> iterator =...
.get(result) : null);
937,951
private // region Parameters<NEW_LINE>void applyAllParameters(@NonNull CaptureRequest.Builder builder, @Nullable CaptureRequest.Builder oldBuilder) {<NEW_LINE>LOG.i("applyAllParameters:", "called for tag", builder.build().getTag());<NEW_LINE>builder.set(CaptureRequest.CONTROL_MODE, CaptureRequest.CONTROL_MODE_AUTO);<NE...
applyWhiteBalance(builder, WhiteBalance.AUTO);
1,253,783
// -------//<NEW_LINE>// visit //<NEW_LINE>// -------//<NEW_LINE>@Override<NEW_LINE>public void visit(KeyAlterInter inter) {<NEW_LINE>final MusicFont font = getMusicFont(inter.getStaff());<NEW_LINE>setColor(inter);<NEW_LINE>final Point2D center = GeoUtil.center2D(inter.getBounds());<NEW_LINE>Staff staff = inter.getStaf...
dim = symbol.getDimension(font);
1,109,104
private void replaceBookmarkContents(List<Object> paragraphs, Map<DataFieldName, String> data) throws Exception {<NEW_LINE>RangeFinder rt = new RangeFinder("CTBookmark", "CTMarkupRange");<NEW_LINE>new TraversalUtil(paragraphs, rt);<NEW_LINE>for (CTBookmark bm : rt.getStarts()) {<NEW_LINE>// do we have data for this one...
cce.getMessage(), cce);
1,282,290
public void unbindChannel(ChannelBinding channel) {<NEW_LINE>checkArgument(checkNotNull(channel, "channel") instanceof SpongeModChannelBinding, "Custom channel implementation not supported");<NEW_LINE>SpongeModChannelBinding boundChannel = this.channelMap.remove(channel.getName());<NEW_LINE>checkState(boundChannel != n...
remove(channel.getName());