idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,813,690
private RecordTemplate mapCorpUserEditableInfo(CorpUserUpdateInput input, Optional<CorpUserEditableInfo> existing) {<NEW_LINE>CorpUserEditableInfo result = existing.orElseGet(() -> new CorpUserEditableInfo());<NEW_LINE>if (input.getDisplayName() != null) {<NEW_LINE>result.setDisplayName(input.getDisplayName());<NEW_LIN...
(input.getTeams()));
641,269
public void listModules(PrintStream out, List<String> tags) {<NEW_LINE>if (tags.contains("-*"))<NEW_LINE>return;<NEW_LINE>tags = new ArrayList<>(tags);<NEW_LINE>boolean wild = tags.contains("*");<NEW_LINE>Set<String> included = new HashSet<>();<NEW_LINE>if (wild)<NEW_LINE>tags.remove("*");<NEW_LINE>else<NEW_LINE>tags.s...
.get(0) : "");
1,678,388
public void testPersistentMessageClassicApi(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>QueueConnection con = jmsQCFBindings.createQueueConnection();<NEW_LINE>con.start();<NEW_LINE>QueueSession sessionSender = con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);<NEW_LINE>Qu...
producer2 = sessionSender.createSender(jmsQueue1);
1,655,553
private // returns true if the new event satisfies the condition at a givens state<NEW_LINE>boolean evalCondition(Event inputEvent, CEPOperation operation) {<NEW_LINE>if (operation == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>CEPCall condition = (CEPCall) operation;<NEW_LINE>CEPKind comparator = condition.getOp...
leftSideValue.compareTo(rightSideValue) >= 0;
961,016
public void execute() throws Exception {<NEW_LINE>File quickstartTmpDir = new File(_dataDir, String.valueOf(System.currentTimeMillis()));<NEW_LINE>File bootstrapTableDir <MASK><NEW_LINE>File dataDir = new File(bootstrapTableDir, "data");<NEW_LINE>Preconditions.checkState(dataDir.mkdirs());<NEW_LINE>File schemaFile = ne...
= new File(quickstartTmpDir, "meetupRsvp");
1,528,694
public static int rank_set_class(ST_Agraph_s g) {<NEW_LINE>ENTERING("65qi5f0bxp6d6vahhlcolpk88", "rank_set_class");<NEW_LINE>try {<NEW_LINE>CString[] name = new CString[] { new CString("same"), new CString("min"), new CString("source"), new CString("max"), new CString("sink"), null };<NEW_LINE>int[] class_ = new int[] ...
"rank")), name, class_);
330,050
private void readFooter() throws IOException {<NEW_LINE>// the footer is a serialised java object and so always BIG_ENDIAN<NEW_LINE>ByteOrder bo = stream.getByteOrder();<NEW_LINE>try {<NEW_LINE>stream.setByteOrder(ByteOrder.BIG_ENDIAN);<NEW_LINE><MASK><NEW_LINE>stream.seek(streamLength - 8);<NEW_LINE>int length = strea...
long streamLength = stream.length();
667,237
private static Exception extractAndWrapCause(Exception exception) {<NEW_LINE>if (exception instanceof InterruptedException) {<NEW_LINE>Thread.currentThread().interrupt();<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (exception instanceof ExecutionException) {<NEW_LINE>ExecutionException executionException = (ExecutionExcepti...
throw new RuntimeException("thread waiting for the response was interrupted", exception);
1,097,485
static String describeSamlObject(SAMLObject object) {<NEW_LINE>if (Response.class.isInstance(object)) {<NEW_LINE>Response response = (Response) object;<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("SAML Response: [\n");<NEW_LINE>sb.append(" Destination: ").append(response.getDestination()).app...
()).append("\n");
1,843,210
public ASN1Primitive toASN1Primitive() {<NEW_LINE>ASN1EncodableVector v = new ASN1EncodableVector(4);<NEW_LINE>{<NEW_LINE>ASN1EncodableVector pV = new ASN1EncodableVector(acceptablePolicySet.length);<NEW_LINE>for (int i = 0; i != acceptablePolicySet.length; i++) {<NEW_LINE>pV<MASK><NEW_LINE>}<NEW_LINE>v.add(new DERSequ...
.add(acceptablePolicySet[i]);
66,815
// ----------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public void loadUrl(String url) {<NEW_LINE>if (url.startsWith("javascript:")) {<NEW_LINE>// do nothing if script is enabled;<NEW_LINE>if (mDisableJs) {<NEW_LINE>Log.d("javascript injection disabled...return");<NEW_LINE>retur...
("javascript:".length()));
433,725
private CCodeNode createCurrentNode(final ICodeNodeProvider resultSet) throws ParserException, CPartialLoadException {<NEW_LINE>final int nodeId = resultSet.getNodeId();<NEW_LINE>final int moduleId = resultSet.getModule();<NEW_LINE>final IAddress parentFunction = resultSet.getParentFunction();<NEW_LINE>final INaviModul...
double x = resultSet.getX();
1,671,176
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(targetPointer<MASK><NEW_LINE>Permanent sourcePermanent = game.getPermanent(source.getSourceId());<NEW_LINE>if (player != null && sourcePermanent != null) {<NEW_LINE>int countBattlefield = game.getBattlefield().getAllActivePermanen...
.getFirst(game, source));
868,388
public final Import_stmtContext import_stmt() throws RecognitionException {<NEW_LINE>Import_stmtContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 58, RULE_import_stmt);<NEW_LINE>try {<NEW_LINE>setState(721);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(_input.LA(1)) {<NEW_LINE>case IMPORT:<NEW_LINE>enter...
Import_stmtContext(_ctx, getState());
663,988
private void buildSql(final Properties ctx) {<NEW_LINE>if (sqlBuilt) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (queryUpdaters.isEmpty()) {<NEW_LINE>throw new <MASK><NEW_LINE>}<NEW_LINE>final StringBuilder sql = new StringBuilder();<NEW_LINE>final List<Object> params = new ArrayList<>();<NEW_LINE>for (final IQueryUpdate...
AdempiereException("Cannot build sql update query for an empty " + CompositeQueryUpdater.class);
263,336
private void reload() {<NEW_LINE>Collection<GradleExecConfiguration> shared = updater.getSharedConfigurations();<NEW_LINE>Collection<GradleExecConfiguration> nonshared = updater.getPrivateConfigurations();<NEW_LINE>changedConfigs = new HashSet<>();<NEW_LINE>sharedConfigs = new HashSet<>();<NEW_LINE>fixedIds = updater.g...
configurations = new ArrayList<>();
559,483
/*<NEW_LINE>*<NEW_LINE>*/<NEW_LINE>public void trigger(TwitterContentHandle contentHandle, TwitterPaging paging, TwitterFetchStatusesFinishedCallback callback, ConnectionStatus connectionStatus, int priorityOffset) {<NEW_LINE>if (connectionStatus != null && !connectionStatus.isOnline()) {<NEW_LINE>if (callback != null)...
, contentHandle, paging, connectionStatus));
493,241
public void marshall(DescribedServer describedServer, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (describedServer == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(describedServer.getArn(), ARN_BINDING);...
describedServer.getEndpointType(), ENDPOINTTYPE_BINDING);
706,573
private VpnProfile VpnProfileFromCursor(Cursor cursor) {<NEW_LINE>VpnProfile profile = new VpnProfile();<NEW_LINE>profile.setId(cursor.getLong(cursor.getColumnIndex(KEY_ID)));<NEW_LINE>profile.setUUID(UUID.fromString(cursor.getString(cursor<MASK><NEW_LINE>profile.setName(cursor.getString(cursor.getColumnIndex(KEY_NAME)...
.getColumnIndex(KEY_UUID))));
1,111,120
private void loadHeadReference(boolean force) {<NEW_LINE>GitService service = ServiceFactory.get(GitService.class, force);<NEW_LINE><MASK><NEW_LINE>Repository repo = head.repo();<NEW_LINE>Single<Optional<GitReference>> refSingle = repo == null ? Single.just(Optional.absent()) : service.getGitReference(repo.owner().logi...
PullRequestMarker head = mPullRequest.head();
217,268
protected Map<String, String> extractExternalSystemParameters(@NonNull final ExternalSystemParentConfig externalSystemParentConfig) {<NEW_LINE>final ExternalSystemShopware6Config shopware6Config = ExternalSystemShopware6Config.cast(externalSystemParentConfig.getChildConfig());<NEW_LINE>final Map<String, String> paramet...
getFreightCostNormalVatConfig().getVatRates());
869,183
private ExecPlan createQueryPlan(Relation relation, ConnectContext session) {<NEW_LINE>QueryRelation query = (QueryRelation) relation;<NEW_LINE>List<String> colNames = query.getColumnOutputNames();<NEW_LINE>// 1. Build Logical plan<NEW_LINE>ColumnRefFactory columnRefFactory = new ColumnRefFactory();<NEW_LINE>LogicalPla...
.getOutputColumn()), columnRefFactory);
1,303,056
protected void onInit() {<NEW_LINE>Assert.state(!(this.requestChannelName != null && this.requestChannel != null), "'requestChannelName' and 'requestChannel' are mutually exclusive.");<NEW_LINE>Assert.state(!(this.replyChannelName != null && this.replyChannel != null), "'replyChannelName' and 'replyChannel' are mutuall...
.requestMapper).setMessageBuilderFactory(messageBuilderFactory);
1,371,670
public static // the fourth parameter `initialConfStr` should be set the all of endpoints in raft cluster, eg : 127.0.0.1:8081::100,127.0.0.1:8082::40,127.0.0.1:8083::40.<NEW_LINE>void main(final String[] args) {<NEW_LINE>if (args.length < 4) {<NEW_LINE>System.out.println("Usage : java com.alipay.sofa.jraft.example.pri...
int port = serverId.getPort();
1,847,832
private void addToSetIfLocal(Node node, BitSet set) {<NEW_LINE>checkState(node.isName(), node);<NEW_LINE>String name = node.getString();<NEW_LINE>Var var = allVarsInFn.get(name);<NEW_LINE>if (var == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean local;<NEW_LINE>Scope localScope = var.getScope();<NEW_LINE>// add t...
local = isDeclaredInFunctionBlockOrParameter(localScope, name);
1,623,696
public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler asm) {<NEW_LINE>Register src = asRegister(arraySrc);<NEW_LINE>Register sro = asRegister(offsetSrc);<NEW_LINE>Register dst = asRegister(arrayDst);<NEW_LINE>Register dso = asRegister(offsetDst);<NEW_LINE>Register len = asRegister(length);<NEW_LINE>asm...
, dso, Scale.Times1));
644,488
public void initialize() throws FileStateInvalidException {<NEW_LINE>WebProject.this.evaluator().addPropertyChangeListener(this);<NEW_LINE>if (!isCopyOnSaveEnabled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>docBase = getWebModule().getDocumentBase();<NEW_LINE>docBaseValue = evaluator().getProperty(WebProjectProperties.W...
FileUtil.addFileChangeListener(this, resources);
186,011
protected String doIt() throws java.lang.Exception {<NEW_LINE>StringBuffer sql = new StringBuffer(// #1<NEW_LINE>"SELECT * FROM S_TimeExpenseLine el " + // Business Partner && to be invoiced<NEW_LINE>"WHERE el.AD_Client_ID=?" + // not invoiced yet<NEW_LINE>" AND el.C_BPartner_ID>0 AND el.IsInvoiced='Y'" + // processed ...
.setInt(par++, p_C_BPartner_ID);
1,074,719
public void show(KrollDict options) {<NEW_LINE>if (this.dialogWrapper == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MaterialAlertDialogBuilder builder = getBuilder();<NEW_LINE>if (builder == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AlertDialog dialog = (AlertDialog) dialogWrapper.getDialog();<NEW_LINE>if (dialog ...
"onCancelListener called. Sending index: " + cancelIndex, Log.DEBUG_MODE);
724,334
public boolean isActive(FeatureState featureState, FeatureUser user) {<NEW_LINE>HttpServletRequest request = HttpServletRequestHolder.get();<NEW_LINE>if (request != null) {<NEW_LINE>List<String> parts = Strings.splitAndTrim(featureState.getParameter(PARAM_IPS), "[\\s,]+");<NEW_LINE>try {<NEW_LINE>String remoteAddr = re...
CIDRUtils cidrUtil = new CIDRUtils(part);
699,202
default void ifThenElseDec(BoolVar[] c, IntVar[] x, IntVar y) {<NEW_LINE>Tuples tuples = new Tuples();<NEW_LINE>int univ = Math.max(2, <MASK><NEW_LINE>tuples.setUniversalValue(univ);<NEW_LINE>int[] t = new int[c.length + 1];<NEW_LINE>Arrays.fill(t, 0);<NEW_LINE>t[c.length] = c.length;<NEW_LINE>tuples.add(t.clone());<NE...
y.getUB() + 1);
872,550
final ListLoggerDefinitionsResult executeListLoggerDefinitions(ListLoggerDefinitionsRequest listLoggerDefinitionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listLoggerDefinitionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Greengrass");
555,757
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('input') @public @buseventtype create avro schema Input(symbol string, price double);\n" + "\n" + "@public @buseventtype create avro schema SuperType(symbol string);\n" + "@public @buseventtype create avro schema B() inherits SuperType;\n" + "@pu...
assertReceived(env, "sa", "A");
433,124
public static void registerType(ModelBuilder modelBuilder) {<NEW_LINE>ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Process.class, BPMN_ELEMENT_PROCESS).namespaceUri(BPMN20_NS).extendsType(CallableElement.class).instanceProvider(new ModelTypeInstanceProvider<Process>() {<NEW_LINE><NEW_LINE>public Proces...
defaultValue(false).build();
1,511,019
public void connectionClose(@NotNull AbstractService service, String reason) {<NEW_LINE>pauseTime((MySQLResponseService) service);<NEW_LINE>TraceManager.TraceObject traceObject = TraceManager.serviceTrace(service, "get-connection-closed");<NEW_LINE>TraceManager.finishSpan(service, traceObject);<NEW_LINE>if (checkClosed...
errPacket.setErrNo(ErrorCode.ER_ABORTING_CONNECTION);
1,096,303
public static void vertical3(Kernel1D_S32 kernel, GrayU8 input, GrayI8 output, int skip, int divisor) {<NEW_LINE>final byte[] dataSrc = input.data;<NEW_LINE>final byte[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LIN...
[indexSrc] & 0xFF) * k1;
1,409,556
@Operation(summary = "List roles", tags = "roles", description = "Get a list of roles. Use cursor-based pagination to limit the number of entries in the list using `limit`" + " and `before` or `after` query params.", responses = { @ApiResponse(responseCode = "200", description = "List of roles", content = @Content(medi...
fields, filter, limitParam, before);
1,192,916
private static byte[] encode(long l, int sign) {<NEW_LINE>assert l >= 0;<NEW_LINE>// the header is formed of:<NEW_LINE>// - 1 bit for the sign<NEW_LINE>// - 4 bits for the number of additional bytes<NEW_LINE>// - up to 3 bits of the value<NEW_LINE>// additional bytes are data bytes<NEW_LINE>int numBits = 64 - Long.numb...
= new byte[1 + numAdditionalBytes];
560,139
public void update(final AnActionEvent event) {<NEW_LINE>InputEvent inputEvent = event.getInputEvent();<NEW_LINE>if (inputEvent instanceof MouseEvent) {<NEW_LINE>Component component = inputEvent.getComponent();<NEW_LINE>if (component != null) {<NEW_LINE>Point point = ((MouseEvent) inputEvent).getPoint();<NEW_LINE>Compo...
handler.toString(), e);
494,039
public static <// results of their children when complete<NEW_LINE>T> CompletableFuture<T> merge(List<CompletableFuture<T>> futures, BiFunction<T, T, T> mergeFunc, Supplier<T> nothing) {<NEW_LINE>if (futures.isEmpty()) {<NEW_LINE>return CompletableFuture.<MASK><NEW_LINE>}<NEW_LINE>while (futures.size() > 1) {<NEW_LINE>...
completedFuture(nothing.get());
1,348,711
public static long checkedPow(long b, int k) {<NEW_LINE>checkNonNegative("exponent", k);<NEW_LINE>if (b >= -2 & b <= 2) {<NEW_LINE>switch((int) b) {<NEW_LINE>case 0:<NEW_LINE>return (<MASK><NEW_LINE>case 1:<NEW_LINE>return 1;<NEW_LINE>case (-1):<NEW_LINE>return ((k & 1) == 0) ? 1 : -1;<NEW_LINE>case 2:<NEW_LINE>checkNo...
k == 0) ? 1 : 0;
154,630
public ChangeApplier prepareChange(@Nonnull List<? extends VFileEvent> events) {<NEW_LINE>List<VFileEvent> beforeEvents = new ArrayList<>();<NEW_LINE>List<VFileEvent> afterEvents = new ArrayList<>();<NEW_LINE>CompactVirtualFileSet newFilesSet = new CompactVirtualFileSet();<NEW_LINE>for (VFileEvent event : events) {<NEW...
VirtualFile file = event.getFile();
1,168,367
public static void printResults(RoutingContext ctx, LatLon start, LatLon end, List<RouteSegmentResult> result) {<NEW_LINE>Map<String, Object> info = new LinkedHashMap<String, Object>();<NEW_LINE>Map<String, Object> route = new LinkedHashMap<String, Object>();<NEW_LINE>info.put("route", route);<NEW_LINE>route.put("routi...
, extraInfo.toString()));
1,641,112
public void write(org.apache.thrift.protocol.TProtocol prot, bulkImportFiles_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (struct.i...
oprot.writeBitSet(optionals, 7);
1,797,045
static <T1, T2, T3, R> Single<R> zipDelayError(Single<? extends T1> s1, Single<? extends T2> s2, Single<? extends T3> s3, Function3<? super T1, ? super T2, ? super T3, ? extends R> zipper) {<NEW_LINE>return from(s1.map(v -> new ZipArg(0, v)), s2.map(v -> new ZipArg(1, v)), s3.map(v -> new ZipArg(2, v))).flatMapMergeSin...
zipArg.index] = zipArg.value;
667,746
public Event Run(CommandQueue queue) {<NEW_LINE>Utils.pointerBuffers[0].rewind();<NEW_LINE>Utils.pointerBuffers[1].rewind();<NEW_LINE>Utils.pointerBuffers[1].put(globalWorkSize.getSizes());<NEW_LINE>Utils.pointerBuffers[1].position(0);<NEW_LINE>PointerBuffer p2 = null;<NEW_LINE>if (workGroupSize.getSizes()[0] > 0) {<NE...
, Utils.pointerBuffers[0]);
1,411,661
private void loadNode238() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_XmlSchema_ProgramDiagnosticDataType, new QualifiedName(0, "ProgramDiagnosticDataType"), new LocalizedText("en", "ProgramDiagnosticDataType"), Localize...
.expanded(), false));
134,848
private static LongList readColumnTopsAllPartitions(int columnCount, int partitionBy, long partitionSizeOffset, int partitionTableSize, MemoryMARW txMemory, FilesFacade ff, Path path, int pathLen, ObjList<String> columnNames) {<NEW_LINE>LongList result = new LongList();<NEW_LINE>int partitionCount = partitionTableSize ...
partitionTs = txMemory.getLong(offset);
1,722,509
public void send(FeedOperation op) {<NEW_LINE>TestAndSetCondition cond = op.getCondition();<NEW_LINE>buffer.putUtf8String(cond.getSelection());<NEW_LINE>DocumentSerializer writer = DocumentSerializerFactory.createHead(buffer);<NEW_LINE>int type = NONE;<NEW_LINE>if (op.getType() == FeedOperation.Type.DOCUMENT) {<NEW_LIN...
0, header.position());
967,773
public static EVT_VARIANT EvtGetChannelConfigProperty(EVT_HANDLE channelHandle, int propertyId) {<NEW_LINE>IntByReference propertyValueBufferUsed = new IntByReference();<NEW_LINE>boolean result = Wevtapi.INSTANCE.EvtGetChannelConfigProperty(channelHandle, propertyId, 0, 0, null, propertyValueBufferUsed);<NEW_LINE>int e...
size(), propertyValueBuffer, propertyValueBufferUsed);
1,357,479
private void checkIfNeedAddNode() {<NEW_LINE>// Finished Parsing, check the buffer<NEW_LINE>if (!Strings.isBlank(sb)) {<NEW_LINE>String s = Strings.trim(clearStringBuffer());<NEW_LINE>// null<NEW_LINE>if ("null".equalsIgnoreCase(s)) {<NEW_LINE>addNode(new NullNode());<NEW_LINE>} else // boolean<NEW_LINE>if (Regex.match...
pos = s.lastIndexOf('.');
1,785,881
public void write(org.apache.thrift.protocol.TProtocol prot, revokeTablePermission_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (st...
oprot.writeString(struct.tableName);
475,432
DemangledObject build() {<NEW_LINE>//<NEW_LINE>// An example to follow along with:<NEW_LINE>//<NEW_LINE>// 'overloaded operator' syntax is:<NEW_LINE>// [return_type] operator<operator_chars>[templates](parameters)<NEW_LINE>//<NEW_LINE>// Namespace::Class::operator Namespace::Type()<NEW_LINE>//<NEW_LINE>// NS1::operator...
demangled.substring(start, end);
1,259,406
public String makeSnippet(String text, int sizeHint) {<NEW_LINE>if (text.length() <= Math.max(sizeHint, ASSUMED_OMIT_TEXT_LENGTH))<NEW_LINE>return text;<NEW_LINE>int maxSuffixLength = Math.max(0, <MASK><NEW_LINE>int maxPrefixLength = Math.max(0, sizeHint - ASSUMED_OMIT_TEXT_LENGTH - maxSuffixLength);<NEW_LINE>String si...
(sizeHint - ASSUMED_OMIT_TEXT_LENGTH) / 2);
1,505,219
public void updateProperties(final String repositoryId, final Holder<String> objectId, final Holder<String> changeToken, final Properties properties, final ExtensionsData extension) {<NEW_LINE>final App app = StructrApp.getInstance();<NEW_LINE>final <MASK><NEW_LINE>try (final Tx tx = app.tx()) {<NEW_LINE>final Abstract...
String id = objectId.getValue();
1,386,594
private // invoked elsewhere<NEW_LINE>void removeChunk(final String chunkId, final String requestId) {<NEW_LINE>// ignore if this chunk is currently executing<NEW_LINE>if (queue_.isChunkExecuting(chunkId))<NEW_LINE>return;<NEW_LINE>final ChunkOutputUi output = outputUi(chunkId);<NEW_LINE>if (output == null) {<NEW_LINE>...
add(output.getOutputWidget());
457,468
private void synchronizeName(Object inst) {<NEW_LINE>java.lang.reflect.Method getter;<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>getter = inst.getClass().getMethod("getDisplayName");<NEW_LINE>} catch (NoSuchMethodException me) {<NEW_LINE>// NOI18N<NEW_LINE>getter = inst.getClass().getMethod("getName");<N...
file.setAttribute(EA_NAME, name);
1,293,058
// guarded by myLock<NEW_LINE>private void initMetricsIfNeeded() {<NEW_LINE>if (myPlainSpaceWidth >= 0)<NEW_LINE>return;<NEW_LINE>Font font = myEditor.getColorsScheme().getFont(EditorFontType.PLAIN);<NEW_LINE>FontMetrics fm = FontInfo.getFontMetrics(font, myFontRenderContext);<NEW_LINE>float width = FontLayoutService.g...
font.getSize() * verticalScalingFactor);
1,110,638
public void run() {<NEW_LINE>// Construct and load our normal React JS code bundle<NEW_LINE>final ReactInstanceManager mReactInstanceManager = ((ReactApplication) mFirebaseMessagingService.getApplication()).getReactNativeHost().getReactInstanceManager();<NEW_LINE>ReactContext context = mReactInstanceManager.getCurrentR...
((ReactApplicationContext) context, bundle);
1,642,749
protected void advance(final ITuple<E> tuple) {<NEW_LINE>final AbstractBTree ndx = (AbstractBTree) src.getIndex();<NEW_LINE>final long currentIndex = ndx.indexOf(tuple.getKey());<NEW_LINE>if (nread == 0) {<NEW_LINE>// inclusive lower bound.<NEW_LINE>fromIndex = currentIndex;<NEW_LINE>// exclusive upper bound.<NEW_LINE>...
long rangeCount = (toIndex - fromIndex);
1,634,347
public static void checkGremlinConfig(String conf) {<NEW_LINE>Parameters params = new Parameters();<NEW_LINE>try {<NEW_LINE>FileBasedConfigurationBuilder<FileBasedConfiguration> builder = new FileBasedConfigurationBuilder(YAMLConfiguration.class).configure(params.fileBased().setFileName(conf));<NEW_LINE>YAMLConfigurati...
(YAMLConfiguration) builder.getConfiguration();
1,093,355
public URLConnection makeRequest(URL url, String[] propertiesValues, String... cookies) throws IOException {<NEW_LINE>URLConnection con = url.openConnection();<NEW_LINE>for (int i = 0; i < requestPropertiesKey.length; i++) {<NEW_LINE>String propertyKey = requestPropertiesKey[i];<NEW_LINE>con.setRequestProperty(property...
(jSessionIdCookie).append("; ");
485,656
public DescribeProvisioningTemplateVersionResult describeProvisioningTemplateVersion(DescribeProvisioningTemplateVersionRequest describeProvisioningTemplateVersionRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeProvisioningTempl...
JsonUnmarshallerContext> unmarshaller = new DescribeProvisioningTemplateVersionResultJsonUnmarshaller();
1,729,943
public void applyBeanDefinitions(SimpleDIContext context) throws Exception {<NEW_LINE>// TargetType<NEW_LINE>context.def(RunTargetType.class, CloudFoundryRunTargetType::new);<NEW_LINE>// Auto sync of cf deployed apps with JMX over SSH tunnel with boot ls (for live hover/data features).<NEW_LINE>context.def(RemoteBootAp...
Contributor.class, CloudFoundryRemoteBootAppsDataContributor::new);
763,457
public GetGameResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetGameResult getGameResult = new GetGameResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCu...
int originalDepth = context.getCurrentDepth();
1,392,859
private int parseRemoteStdoutForPort() {<NEW_LINE>Log.i(TAG, "Parsing remote stdout for PORT=");<NEW_LINE>String sought = "PORT=";<NEW_LINE>int soughtLength = sought.length();<NEW_LINE>int port = -1;<NEW_LINE>try {<NEW_LINE>int data = 0;<NEW_LINE>int i = 0;<NEW_LINE>while (data != -1 && i < soughtLength) {<NEW_LINE>dat...
parseInt(new String(buffer));
1,303,310
private boolean isFederated(List<FieldModel> partitionKey, List<FieldModel> clusteringColumns, EntityModel.Target target) throws SkipException {<NEW_LINE>List<Directive> <MASK><NEW_LINE>if (keyDirectives.isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (target == EntityModel.Target.UDT) {<NEW_LINE>invalidMapp...
keyDirectives = type.getDirectives("key");
766,597
protected void prepareHandshakeMessageContents() {<NEW_LINE>LOGGER.debug("Prepare SSL2ClientHello");<NEW_LINE>preparePaddingLength(message);<NEW_LINE>prepareType(message);<NEW_LINE>prepareProtocolVersion(message);<NEW_LINE>// By Default we just set a fixed value with ssl2 cipher suites<NEW_LINE>prepareCipherSuites(mess...
().getValue().length;
1,097,506
private void determineProgressAndResume(DataFrameAnalyticsTask task, DataFrameAnalyticsConfig config) {<NEW_LINE>DataFrameAnalyticsTask.StartingState startingState = task.determineStartingState();<NEW_LINE>LOGGER.debug(() -> new ParameterizedMessage("[{}] Starting job from state [{}]", config.getId(), startingState));<...
, task, auditor, config));
1,451,187
private void unpackInitializationHint(AnnotationNode typeInfo, HintDeclaration ch) {<NEW_LINE>List<Object> values = typeInfo.values;<NEW_LINE>List<org.objectweb.asm.Type> types = new ArrayList<>();<NEW_LINE>List<String> typeNames = new ArrayList<>();<NEW_LINE>List<String> packageNames = new ArrayList<>();<NEW_LINE>Init...
values.get(i + 1);
1,377,486
public static void main(String[] args) {<NEW_LINE>String calibDir = UtilIO.pathExample("calibration/stereo/Bumblebee2_Chess/");<NEW_LINE>String imageDir = UtilIO.pathExample("stereo/");<NEW_LINE>StereoParameters param = CalibrationIO.load(new File(calibDir, "stereo.yaml"));<NEW_LINE>// load and convert images into a Bo...
(origLeft, (GrayU8) null);
1,734,983
protected void run() throws GitException {<NEW_LINE>Repository repository = getRepository();<NEW_LINE>org.eclipse.jgit.api.RebaseCommand command = new <MASK><NEW_LINE>if (operation == GitClient.RebaseOperationType.BEGIN) {<NEW_LINE>Ref ref = null;<NEW_LINE>try {<NEW_LINE>ref = repository.findRef(revision);<NEW_LINE>} c...
Git(repository).rebase();
927,876
final CopySnapshotResult executeCopySnapshot(CopySnapshotRequest copySnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(copySnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
445,449
public static DescribeDomainQPSListResponse unmarshall(DescribeDomainQPSListResponse describeDomainQPSListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainQPSListResponse.setRequestId(_ctx.stringValue("DescribeDomainQPSListResponse.RequestId"));<NEW_LINE>List<DomainQPS> domainQPSList = new ArrayList<DomainQ...
("DescribeDomainQPSListResponse.DomainQPSList[" + i + "].Index"));
872,049
public int add(byte[] value) {<NEW_LINE>int offsetBufferIndex = _numValues >>> OFFSET_BUFFER_SHIFT_OFFSET;<NEW_LINE>int offsetIndex = _numValues & OFFSET_BUFFER_MASK;<NEW_LINE>PinotDataBuffer offsetBuffer;<NEW_LINE>// If this is the first entry in the offset buffer, allocate a new buffer and store the end offset of the...
+ 1) << 2, valueEndOffset);
97,957
public Flux<ActionCollection> findAllActionCollectionsByNamePageIdsViewModeAndBranch(String name, List<String> pageIds, boolean viewMode, String branchName, AclPermission aclPermission, Sort sort) {<NEW_LINE>List<Criteria> <MASK><NEW_LINE>if (!StringUtils.isEmpty(branchName)) {<NEW_LINE>criteriaList.add(where(FieldName...
criteriaList = new ArrayList<>();
1,318,015
private SignallingData.DataInfo convert2DataInfo(Map<String, Object> dataMap) {<NEW_LINE>SignallingData.DataInfo dataInfo = new SignallingData.DataInfo();<NEW_LINE>try {<NEW_LINE>if (dataMap.containsKey(CallModel.KEY_CMD)) {<NEW_LINE>Object cmd = dataMap.get(CallModel.KEY_CMD);<NEW_LINE>if (cmd instanceof String) {<NEW...
e(TAG, "onReceiveNewInvitation JsonSyntaxException:" + e);
1,167,014
private ContactIrcImpl createVolatileContact(final String id) {<NEW_LINE>// Get non-persistent group for volatile contacts.<NEW_LINE>ContactGroupIrcImpl volatileGroup = getNonPersistentGroup();<NEW_LINE>// Create volatile contact<NEW_LINE>ContactIrcImpl newVolatileContact = new ContactIrcImpl(this.parentProvider, id, v...
.getIrcStack().getConnection();
614,025
public void drawEventListener(GraphicInfo graphicInfo, BufferedImage image, double scaleFactor) {<NEW_LINE><MASK><NEW_LINE>g.setPaint(EVENT_COLOR);<NEW_LINE>Ellipse2D circle = new Ellipse2D.Double(graphicInfo.getX(), graphicInfo.getY(), graphicInfo.getWidth(), graphicInfo.getHeight());<NEW_LINE>g.fill(circle);<NEW_LINE...
Paint originalPaint = g.getPaint();
918,808
HtmlElement makeLexical(Example ex) {<NEW_LINE>HtmlElement predicatesElem = H.tr();<NEW_LINE>HtmlElement tokensElem = H.tr();<NEW_LINE>// Mark all the predicates used in any derivation on the beam.<NEW_LINE>// Note: this is not all possible.<NEW_LINE>CandidatePredicates[] predicates = new CandidatePredicates[ex.getToke...
(H.td(""));
537,375
final GlobalReplicationGroup executeDeleteGlobalReplicationGroup(DeleteGlobalReplicationGroupRequest deleteGlobalReplicationGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteGlobalReplicationGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequ...
addHandlerContext(HandlerContextKey.SERVICE_ID, "ElastiCache");
649,110
private static Matrix apply(BlasFloatMatrix mat, float alpha, IntFloatVector v1, IntDummyVector v2) {<NEW_LINE>float[] data = mat.getData();<NEW_LINE>int m = mat.getNumRows(), n = mat.getNumCols();<NEW_LINE>assert (m == v1.getDim() && n == v2.getDim());<NEW_LINE>if (v1.isDense()) {<NEW_LINE>float[] v1Values = v1.getSto...
] += alpha * v1Values[k];
91,627
/* (non-Javadoc)<NEW_LINE>* @see org.netbeans.modules.web.beans.analysis.analyzer.AnnotationElementAnalyzer.AnnotationAnalyzer#analyze(javax.lang.model.element.TypeElement, java.util.concurrent.atomic.AtomicBoolean, org.netbeans.modules.web.beans.analysis.analyzer.ElementAnalyzer.Result)<NEW_LINE>*/<NEW_LINE>@Override<...
element, AnnotationUtil.NORMAL_SCOPE_FQN, compInfo);
974,167
public void init(EasyRandomParameters parameters) {<NEW_LINE>long seed = parameters.getSeed();<NEW_LINE>annotationHandlers.put(AssertFalse.class, new AssertFalseAnnotationHandler());<NEW_LINE>annotationHandlers.put(AssertTrue.class, new AssertTrueAnnotationHandler());<NEW_LINE>annotationHandlers.put(Null.class, new Nul...
class, new PastAnnotationHandler(parameters));
553,194
public void init(Context cx) {<NEW_LINE>// Define some global functions particular to the shell. Note<NEW_LINE>// that these functions are not part of ECMA.<NEW_LINE>initStandardObjects(cx, sealedStdLib);<NEW_LINE>String[] names = { "defineClass", "deserialize", "gc", "help", "load", "loadClass", "print", "quit", "read...
"environment", environment, ScriptableObject.DONTENUM);
1,207,345
final AssociateLicenseResult executeAssociateLicense(AssociateLicenseRequest associateLicenseRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateLicenseRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<A...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
699,571
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String test = request.getParameter("test");<NEW_LINE>PrintWriter out = response.getWriter();<NEW_LINE>try {<NEW_LINE>out.println(getClass().getSimpleName() + " is starting " + test + "<br>");<N...
println("<----- " + test + " successful");
897,635
public void run() {<NEW_LINE>double CAMERA_PADDING = DEFAULT_CAMERA_PADDING;<NEW_LINE>try {<NEW_LINE>if (mParams.has("camera")) {<NEW_LINE>JSONObject camera = mParams.getJSONObject("camera");<NEW_LINE>if (camera.has("padding")) {<NEW_LINE>CAMERA_PADDING = camera.getDouble("padding");<NEW_LINE>}<NEW_LINE>}<NEW_LINE>} ca...
builder(map.getCameraPosition());
894,918
public void onClick(View v) {<NEW_LINE>DateTime now = DateTime.now();<NEW_LINE>MonthAdapter.CalendarDay minDate = new MonthAdapter.CalendarDay(now.getYear(), now.getMonthOfYear() - 2, now.getDayOfMonth());<NEW_LINE>MonthAdapter.CalendarDay maxDate = new MonthAdapter.CalendarDay(now.getYear(), now.getMonthOfYear(<MASK><...
), now.getDayOfMonth());
752,040
public static void main(final String[] args) throws IOException {<NEW_LINE>final ByteArrayOutputStream output = new ByteArrayOutputStream();<NEW_LINE>final CompactBinaryWriter writer = new CompactBinaryWriter(output, 1);<NEW_LINE>final Serializer<SchemaDef> <MASK><NEW_LINE>serializer.serialize(Example.BOND_TYPE.buildSc...
serializer = new Serializer<>();
859,617
public void translate(TranslateTo translation) {<NEW_LINE>switch(translation) {<NEW_LINE>case CENTER:<NEW_LINE>this.position.x = 50f - scale.x / 2f;<NEW_LINE>this.position.y = 50f - scale.x / 2f;<NEW_LINE>break;<NEW_LINE>case BOTTOM:<NEW_LINE>this.position.x = 50f - scale.x / 2f;<NEW_LINE>this.position.y = 100f - scale...
= 50f - scale.y / 2f;
787,170
private int findCodeConstructStartLine(int startLine) {<NEW_LINE>DocumentEx document = myEditor.getDocument();<NEW_LINE>CharSequence text = document.getImmutableCharSequence();<NEW_LINE>int lineStartOffset = document.getLineStartOffset(startLine);<NEW_LINE>int firstNonWsOffset = CharArrayUtil.shiftForward(text, lineSta...
BraceMatchingUtil.getBraceMatcher(type, language);
1,739,191
protected void createSpatialData(Spatial model) {<NEW_LINE>targetModel = model;<NEW_LINE>Node parent = model.getParent();<NEW_LINE>Vector3f initPosition = model.getLocalTranslation().clone();<NEW_LINE>Quaternion initRotation = model.getLocalRotation().clone();<NEW_LINE>initScale = model<MASK><NEW_LINE>model.removeFromP...
.getLocalScale().clone();
981,629
private Result checkStorageNodesForDistributor(DistributorNodeInfo distributorNodeInfo, List<StorageNode> storageNodes, Node node) {<NEW_LINE>for (StorageNode storageNode : storageNodes) {<NEW_LINE>if (storageNode.getIndex() == node.getIndex()) {<NEW_LINE><MASK><NEW_LINE>// Why test on != null? Missing min-replication ...
Integer minReplication = storageNode.getMinCurrentReplicationFactorOrNull();
1,272,349
private void initializeConnectionProperties() throws ResourceException {<NEW_LINE>try {<NEW_LINE>// Retrieve the default values for all Connection properties.<NEW_LINE>// Save the default values for when null is specified in the CRI.<NEW_LINE>// - get the default values from the JDBC driver<NEW_LINE>if (rrsTransactiona...
= defaultAutoCommit = sqlConn.getAutoCommit();
644,949
public static void tryForceDirectory(Path directory) throws IOException {<NEW_LINE>if (notExists(directory)) {<NEW_LINE>throw new NoSuchFileException(format("The directory %s does not exist!"<MASK><NEW_LINE>} else if (!isDirectory(directory)) {<NEW_LINE>throw new NotDirectoryException(format("The path %s must refer to ...
, directory.toAbsolutePath()));
1,274,723
public Parent createContent() {<NEW_LINE>final Pane root = new Pane();<NEW_LINE>root.setPrefSize(245, 100);<NEW_LINE>root.setMinSize(Pane.USE_PREF_SIZE, Pane.USE_PREF_SIZE);<NEW_LINE>root.setMaxSize(Pane.USE_PREF_SIZE, Pane.USE_PREF_SIZE);<NEW_LINE>// create rectangle<NEW_LINE>Rectangle rect = new Rectangle(-25, -25, 5...
TranslateTransition translate1 = new TranslateTransition(time);
858,988
private void addQuantity_QuantityNormalized(String theResourceType, Set<ResourceIndexedSearchParamQuantityNormalized> theParams, RuntimeSearchParam theSearchParam, IBase theValue) {<NEW_LINE>Optional<IPrimitiveType<BigDecimal>> valueField = myQuantityValueValueChild.<MASK><NEW_LINE>if (valueField.isPresent() && valueFi...
getAccessor().getFirstValueOrNull(theValue);
459,141
public static int andCardinality(final ImmutableRoaringBitmap x1, final ImmutableRoaringBitmap x2) {<NEW_LINE>int answer = 0;<NEW_LINE>int pos1 = 0, pos2 = 0;<NEW_LINE>final int length1 = x1.highLowContainer.size(), length2 <MASK><NEW_LINE>while (pos1 < length1 && pos2 < length2) {<NEW_LINE>final char s1 = x1.highLowCo...
= x2.highLowContainer.size();
1,088,654
// Cover basic life cycle of a policy executor service: use it to run a task, shut it down, and await termination.<NEW_LINE>@Test<NEW_LINE>public void testBasicLifeCycle() throws Exception {<NEW_LINE>ExecutorService executor = provider.create("testBasicLifeCycle");<NEW_LINE>assertFalse(executor.isShutdown());<NEW_LINE>...
assertFalse(executor.isShutdown());