idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,599,032
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>this.<MASK><NEW_LINE>getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));<NEW_LINE>View rootView = inflater.inflate(R.layout.dialog_fragment_no_entries, contai...
getDialog().setCanceledOnTouchOutside(true);
455,648
public VaultLockPolicy unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>VaultLockPolicy vaultLockPolicy = new VaultLockPolicy();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte...
int originalDepth = context.getCurrentDepth();
202,296
public void marshall(CreateDataRepositoryAssociationRequest createDataRepositoryAssociationRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createDataRepositoryAssociationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LIN...
createDataRepositoryAssociationRequest.getS3(), S3_BINDING);
1,536,595
public List<SFormatSerializerMap> listAvailableOutputFormats(Long poid) throws ServerException, UserException {<NEW_LINE>Map<String, SFormatSerializerMap> <MASK><NEW_LINE>try (DatabaseSession session = getBimServer().getDatabase().createSession(OperationType.READ_ONLY)) {<NEW_LINE>Project project = session.get(poid, Ol...
outputs = new HashMap<>();
1,242,805
public Record unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Record record = new Record();<NEW_LINE>reader.beginObject();<NEW_LINE>while (read...
().unmarshall(context));
1,355,967
private void processEntryForLogSegmentBucket(ScanResults results, IndexEntry indexEntry, Map<StoreKey, IndexFinalState> keyFinalStates) {<NEW_LINE>IndexValue indexValue = indexEntry.getValue();<NEW_LINE>results.updateLogSegmentBaseBucket(indexValue.getOffset().getName(), indexValue.getSize());<NEW_LINE>if (indexValue.i...
finalState.getOperationTime(), SUBTRACT);
1,684,765
public void parseContent(String content) {<NEW_LINE>Matcher matcher = attPattern.matcher(content);<NEW_LINE>String value;<NEW_LINE>int bidx;<NEW_LINE>int eidx;<NEW_LINE>while (matcher.find()) {<NEW_LINE>bidx = matcher.start(2) + 1;<NEW_LINE>eidx = matcher.end(2) - 1;<NEW_LINE>addParameter(matcher.group(1), bidx, eidx, ...
bidx = matcher.start(2);
609,245
public Hover provideHover(ASTNode node, TypeDeclaration typeDeclaration, ITypeBinding type, int offset, TextDocument doc, IJavaProject project, SpringProcessLiveData[] processLiveData) {<NEW_LINE>if (processLiveData.length > 0 && !isComponentAnnotatedType(typeDeclaration)) {<NEW_LINE>ITypeBinding beanType = typeDeclara...
SimpleName name = typeDeclaration.getName();
108,156
public void main() {<NEW_LINE>RFloat gShadowValue = (<MASK><NEW_LINE>RVec4 color = (RVec4) getGlobal(DefaultShaderVar.G_COLOR);<NEW_LINE>RVec3 ambientColor = (RVec3) getGlobal(LightsShaderVar.G_AMBIENT_COLOR);<NEW_LINE>RVec3 eyeDir = (RVec3) getGlobal(DefaultShaderVar.V_EYE_DIR);<NEW_LINE>RVec3 normal = (RVec3) getGlob...
RFloat) getGlobal(DefaultShaderVar.G_SHADOW_VALUE);
1,063,480
public static void printLocationArrays(String data) {<NEW_LINE>ArrayList<String> countries = getCountries(data);<NEW_LINE>ArrayList<Country> array = new ArrayList<Country>();<NEW_LINE>// set up the main array with the list of countries<NEW_LINE>for (String s : countries) {<NEW_LINE>array.add(new Country(s));<NEW_LINE>}...
n = jsonObject.getString("name");
813,844
public void visitContextParam(WebAppContext context, Descriptor descriptor, XmlParser.Node node) {<NEW_LINE>String name = node.getString("param-name", false, true);<NEW_LINE>String value = node.getString("param-value", false, true);<NEW_LINE>Origin origin = context.getMetaData().getOrigin("context-param." + name);<NEW_...
).put(name, value);
1,041,987
public boolean onContextItemSelected(MenuItem item) {<NEW_LINE>if (selectedUrl == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final int itemId = item.getItemId();<NEW_LINE>if (itemId == R.id.open_in_browser_item) {<NEW_LINE>IntentUtils.openInBrowser(getContext(), selectedUrl);<NEW_LINE>} else if (itemId == R.id....
(Timeline.getTimecodeLinkTime(selectedUrl));
1,755,005
public static StepResult fromKarateJson(File workingDir, Scenario scenario, Map<String, Object> map) {<NEW_LINE>Map<String, Object> stepMap = (Map) map.get("step");<NEW_LINE>Step step = Step.fromKarateJson(scenario, stepMap);<NEW_LINE>Result result = Result.fromKarateJson((Map) map.get("result"));<NEW_LINE>StepResult s...
Boolean) map.get("hidden");
660,712
public NDArrayMessage reassemble(String id) {<NEW_LINE>List<NDArrayMessageChunk> chunkList = chunks.get(id);<NEW_LINE>if (chunkList.size() != chunkList.get(0).getNumChunks())<NEW_LINE>throw new IllegalStateException("Unable to reassemble message chunk " + id + " missing " + (chunkList.get(0).getNumChunks() - chunkList....
chunk.getChunkIndex()] = chunk;
976,693
protected Slf4jReporter createInstance() {<NEW_LINE>final Slf4jReporter.Builder reporter = Slf4jReporter.forRegistry(getMetricRegistry());<NEW_LINE>if (hasProperty(DURATION_UNIT)) {<NEW_LINE>reporter.convertDurationsTo(getProperty(DURATION_UNIT, TimeUnit.class));<NEW_LINE>}<NEW_LINE>if (hasProperty(RATE_UNIT)) {<NEW_LI...
reporter.filter(getMetricFilter());
1,448,951
public static <T, M extends Classifier<T>> ClassificationMetrics of(double fitTime, M model, T[] testx, int[] testy) {<NEW_LINE>int k = MathEx.unique(testy).length;<NEW_LINE>long start = System.nanoTime();<NEW_LINE>if (model.soft()) {<NEW_LINE>double[][] posteriori = new double[testx.length][k];<NEW_LINE>int[] predicti...
nanoTime() - start) / 1E6;
1,287,581
public static DescribeVsPullStreamInfoConfigResponse unmarshall(DescribeVsPullStreamInfoConfigResponse describeVsPullStreamInfoConfigResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVsPullStreamInfoConfigResponse.setRequestId(_ctx.stringValue("DescribeVsPullStreamInfoConfigResponse.RequestId"));<NEW_LINE>List<Liv...
("DescribeVsPullStreamInfoConfigResponse.LiveAppRecordList[" + i + "].StartTime"));
584,628
public UserVm destroyVm(DestroyVMCmd cmd) throws ResourceUnavailableException, ConcurrentOperationException {<NEW_LINE><MASK><NEW_LINE>long vmId = cmd.getId();<NEW_LINE>boolean expunge = cmd.getExpunge();<NEW_LINE>// When trying to expunge, permission is denied when the caller is not an admin and the AllowUserExpungeRe...
CallContext ctx = CallContext.current();
1,411,089
private boolean advanceLeft(TSource left, TKey leftKey) {<NEW_LINE>lefts.clear();<NEW_LINE>lefts.add(left);<NEW_LINE>while (getLeftEnumerator().moveNext()) {<NEW_LINE>left = getLeftEnumerator().current();<NEW_LINE>TKey leftKey2 = outerKeySelector.apply(left);<NEW_LINE>if (leftKey2 == null && joinType != JoinType.LEFT) ...
leftKey + "' is greater than '" + leftKey2 + "'");
586,524
public static EventReader<Event> createEventReader(byte[] magic, InputStream is) throws IOException {<NEW_LINE>if (Arrays.equals(magic, StackTraceCodec.MAGIC)) {<NEW_LINE><MASK><NEW_LINE>EventReader<Event> reader = new LegacyThreadEventReader(lreader);<NEW_LINE>return reader;<NEW_LINE>}<NEW_LINE>if (Arrays.equals(magic...
StackTraceReader lreader = new StackTraceReaderV1(is);
1,077,150
final GetUserPoolMfaConfigResult executeGetUserPoolMfaConfig(GetUserPoolMfaConfigRequest getUserPoolMfaConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getUserPoolMfaConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,714,493
public boolean addNonLeafEntry(final int index, final byte[] key, final long leftChild, final long rightChild, final boolean updateNeighbours) {<NEW_LINE>assert !isLeaf();<NEW_LINE>final int entrySize = key.length + 2 * OLongSerializer.LONG_SIZE;<NEW_LINE>int size = size();<NEW_LINE>int freePointer = getIntValue(FREE_P...
= (int) getLongValue(nextEntryPosition);
724,663
private void saveTrackInfo() {<NEW_LINE>GPXFile gpxFile = selectedGpxFile.getGpxFile();<NEW_LINE>if (gpxFile.showCurrentTrack) {<NEW_LINE>settings.CURRENT_TRACK_COLOR.set(trackDrawInfo.getColor());<NEW_LINE>settings.CURRENT_TRACK_COLORING_TYPE.set(trackDrawInfo.getColoringType());<NEW_LINE>settings.CURRENT_TRACK_ROUTE_...
gpxDataItem, trackDrawInfo.isShowArrows());
1,102,992
public void reset() {<NEW_LINE>if (this.root != this) {<NEW_LINE>this.root.reset();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.knownModules = new HashtableOfModule();<NEW_LINE>this.UnNamedModule = new ModuleBinding.UnNamedModule(this);<NEW_LINE>this.module = this.UnNamedModule;<NEW_LINE>this.JavaBaseModule = null;<NEW_L...
this.typesBeingConnected = new HashSet();
139,517
public void scrollSmoothTo(int x, int y) {<NEW_LINE>// Ensure newHOffset and newVOffset are within the appropriate ranges<NEW_LINE>x = verifyScrollBarOffset(getViewport().getHorizontalRangeModel(), x);<NEW_LINE>y = verifyScrollBarOffset(getViewport().getVerticalRangeModel(), y);<NEW_LINE>int oldX = getViewport().getVie...
(viewingArea.height / 3));
619,066
private void buildSpecFromRow(Elements row, List<Spec> specs) {<NEW_LINE>Set<Column> available = new HashSet<>();<NEW_LINE>Collections.<MASK><NEW_LINE>for (int ii = 0; ii < row.size(); ii++) {<NEW_LINE>Element element = row.get(ii);<NEW_LINE>if (// $NON-NLS-1$<NEW_LINE>element.hasAttr("colspan")) {<NEW_LINE>// $NON-NLS...
addAll(available, getColumns());
871,418
public Object translateQueryParametersIntoServerArgument(RequestDetails theRequest, BaseMethodBinding<?> theMethodBinding) throws InternalErrorException, InvalidRequestException {<NEW_LINE>String ctValue = defaultString(theRequest.getHeader(Constants.HEADER_CONTENT_TYPE));<NEW_LINE>Reader requestReader = createRequestR...
jsonNode = mapper.readTree(requestReader);
1,800,569
public Serializer createSerializer() {<NEW_LINE>return new StreamSerializer<DeferredMap>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int getTypeId() {<NEW_LINE>return SerializerHookConstants.DEFERRED_MAP;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void write(ObjectDataOutput out, DeferredMap deferredM...
writeObject(entry.getValue());
852,853
final ResumeWorkflowRunResult executeResumeWorkflowRun(ResumeWorkflowRunRequest resumeWorkflowRunRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(resumeWorkflowRunRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,117,186
public static DescribeLoadBalancerSpecResponse unmarshall(DescribeLoadBalancerSpecResponse describeLoadBalancerSpecResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLoadBalancerSpecResponse.setRequestId(_ctx.stringValue("DescribeLoadBalancerSpecResponse.RequestId"));<NEW_LINE>describeLoadBalancerSpecResponse.setPa...
(_ctx.integerValue("DescribeLoadBalancerSpecResponse.TotalCount"));
1,288,845
protected void onCreate(final Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.split_street_view_panorama_and_map_demo);<NEW_LINE>final LatLng markerPosition;<NEW_LINE>if (savedInstanceState == null) {<NEW_LINE>markerPosition = SYDNEY;<NEW_LINE>} else {<NEW_LINE...
markerPosition = savedInstanceState.getParcelable(MARKER_POSITION_KEY);
1,199,771
private void drawUpdates(Graphics2D g2) {<NEW_LINE>if (updateCount != 0) {<NEW_LINE><MASK><NEW_LINE>final int GAP = Toolkit.zoom(5);<NEW_LINE>final String updateLabel = "Updates";<NEW_LINE>String updatesStr = "" + updateCount;<NEW_LINE>double countWidth = font.getStringBounds(updatesStr, frc).getWidth();<NEW_LINE>if (f...
FontRenderContext frc = g2.getFontRenderContext();
654,846
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>CacheKey cacheKey = new CacheKey(this.getClass());<NEW_LINE>Optional<...
.copier.copy(o));
449,537
protected void collectVisibleButtons(@NotNull final WebDockablePane dockablePane, @NotNull final DockableElement element, @NotNull final List<SidebarButton> buttons) {<NEW_LINE>if (element instanceof DockableFrameElement) {<NEW_LINE>// Frame might not yet be added to the pane so we have to be careful here<NEW_LINE>fina...
findFrame(element.getId());
833,193
public void onBindViewHolderCursor(BudgetViewHolder holder, Cursor cursor) {<NEW_LINE>final Budget budget = mBudgetsDbAdapter.buildModelInstance(cursor);<NEW_LINE>holder.budgetId = mBudgetsDbAdapter.getID(budget.getUID());<NEW_LINE>holder.budgetName.<MASK><NEW_LINE>AccountsDbAdapter accountsDbAdapter = AccountsDbAdapte...
setText(budget.getName());
1,044,657
public void run(WorkingCopy copy) throws IOException {<NEW_LINE>copy.toPhase(JavaSource.Phase.RESOLVED);<NEW_LINE>javax.lang.model.element.Modifier[] modifiers = JavaUtil.PROTECTED;<NEW_LINE>String type = Constants.VOID;<NEW_LINE>// NOI18N<NEW_LINE>String comment = "\n";<NEW_LINE>for (String param : parameters) {<NEW_L...
initial = JavaSourceHelper.getTopLevelClassTree(copy);
268,609
public void close() throws IOException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) {<NEW_LINE>// 306998.15<NEW_LINE>logger.entering(CLASS_NAME, "close", "total=" + total + ",limit=" + limit);<NEW_LINE>}<NEW_LINE>// begin 280584.3 6021: Cleanup of defect 280584.2 WAS.webc...
FINE, CLASS_NAME, "close", "Notify observer that input stream has been closed.");
185,396
final DeleteUserPoolClientResult executeDeleteUserPoolClient(DeleteUserPoolClientRequest deleteUserPoolClientRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUserPoolClientRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
invoke(request, responseHandler, executionContext);
636,634
public void captureRef(int tag, ReadableMap options, Promise promise) {<NEW_LINE>final ReactApplicationContext context = getReactApplicationContext();<NEW_LINE>final DisplayMetrics dm = context.getResources().getDisplayMetrics();<NEW_LINE>final String extension = options.getString("format");<NEW_LINE>final int imageFor...
reactContext.getNativeModule(UIManagerModule.class);
1,404,050
private void sortSelectedMarkersDoorToDoor(final MapActivity mapActivity, final boolean startFromLoc, final Location myLoc) {<NEW_LINE>new AsyncTask<Void, Void, List<MapMarker>>() {<NEW_LINE><NEW_LINE>private ProgressDialog dialog;<NEW_LINE><NEW_LINE>private long startDialogTime;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>p...
start, null).solve();
921,769
final DescribeEndpointResult executeDescribeEndpoint(DescribeEndpointRequest describeEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeEndpoint");
680,401
public StreamEvent find(StateEvent matchingEvent, IndexedEventHolder indexedEventHolder, StreamEventCloner storeEventCloner) {<NEW_LINE>Collection<StreamEvent> notStreamEvents = notCollectionExecutor.findEvents(matchingEvent, indexedEventHolder);<NEW_LINE>if (notStreamEvents == null) {<NEW_LINE>return exhaustiveCollect...
> allEvents = indexedEventHolder.getAllEvents();
1,130,723
public Request<ListGroupsForUserRequest> marshall(ListGroupsForUserRequest listGroupsForUserRequest) {<NEW_LINE>if (listGroupsForUserRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ListGroupsForUserRequest> request = new DefaultRequest<Li...
request.setHttpMethod(HttpMethodName.POST);
67,318
private void initViews(View view) {<NEW_LINE>mMore = getToolbarController().getToolbar().findViewById(R.id.more);<NEW_LINE>mMore.setOnClickListener(this);<NEW_LINE>View editsBlock = view.findViewById(R.id.block_edits);<NEW_LINE>UiUtils.show(editsBlock);<NEW_LINE>mSentBlock = editsBlock.findViewById(R.id.sent_edits);<NE...
findViewById(R.id.edits_count);
1,327,564
protected void run(URL url, Map<String, String> headers) {<NEW_LINE>this.listener = new WatcherWebSocketListener<>(this);<NEW_LINE>Builder builder = client.newWebSocketBuilder();<NEW_LINE>headers.forEach(builder::header);<NEW_LINE>builder.uri(URI.create(url.toString()));<NEW_LINE>this.websocketFuture = builder.buildAsy...
> response = wshe.getResponse();
1,639,459
private static void emitSummaryTableHeader(PrintStream out) {<NEW_LINE>// First row<NEW_LINE>out.print("<tr class=\"bg-color\">");<NEW_LINE>out.print("<th colspan=1 class=\"header-text\"><b>Span Name</b></th>");<NEW_LINE>out.print("<th colspan=1 class=\"header-text border-left-white\"><b>Running</b></th>");<NEW_LINE>ou...
.get(latencyBoundary) + "]</b></th>");
91,780
public boolean range(PartitionField from, PartitionField to, boolean lowerBoundIncluded, boolean upperBoundIncluded) {<NEW_LINE>if (!checkBound(from, to)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>this.lowerBoundIncluded = lowerBoundIncluded;<NEW_LINE>this.upperBoundIncluded = upperBoundIncluded;<NEW_LINE>this.first...
calTimeDiff(maxDatetime, minDatetime, false);
787,417
public Lookup createAdditionalLookup(Lookup baseContext) {<NEW_LINE>final InstanceContent ic = new InstanceContent();<NEW_LINE>final Project prj = baseContext.lookup(Project.class);<NEW_LINE>assert prj != null;<NEW_LINE>final AccessQueryImpl access = new AccessQueryImpl(prj);<NEW_LINE>final ForeignClassBundlerImpl bund...
ic, access, bundler, templates);
437,385
private boolean handleCompressionOrder(ChannelHandlerContext ctx, ByteBuf buf) {<NEW_LINE>boolean needsCompress = false;<NEW_LINE>if (!handledCompression) {<NEW_LINE>if (ctx.pipeline().names().indexOf("compress") > ctx.pipeline().names().indexOf("via-encoder")) {<NEW_LINE>// Need to decompress this packet due to bad or...
pipeline().remove(dec);
1,445,770
public final ProcedureParameterContext procedureParameter() throws RecognitionException {<NEW_LINE>ProcedureParameterContext _localctx = new ProcedureParameterContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 66, RULE_procedureParameter);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW...
_errHandler.recover(this, re);
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.OPERATION_NAME, "ChangePassword");
245,018
public static void define(final Ruby runtime) {<NEW_LINE>JavaExtensions.put(runtime, java.util.Enumeration.class, (proxyClass) -> Enumeration.define(runtime, proxyClass));<NEW_LINE>JavaExtensions.put(runtime, java.util.Iterator.class, (proxyClass) -> Iterator.define(runtime, proxyClass));<NEW_LINE>JavaExtensions.put(ru...
"inspect", new InspectTimeZone(proxyClass));
1,211,232
private Object executeOverrideTarget(Method o, Object ctx, Object elCtx, VariableResolverFactory vars) {<NEW_LINE>// this local field is required to make sure exception block works with the same coercionNeeded value<NEW_LINE>// and it is not changed by another thread while setter is invoked<NEW_LINE>boolean attemptedCo...
))), elCtx, vars);
694,501
public void testSyncBulkheadSmall() throws Exception {<NEW_LINE>// the tasks notify that they are running<NEW_LINE>CountDownLatch notify = new CountDownLatch(2);<NEW_LINE>// and then wait to be released<NEW_LINE>CountDownLatch wait = new CountDownLatch(1);<NEW_LINE>// connectA has a poolSize of 2<NEW_LINE>// first two ...
connectA("Three", wait, notify);
12,149
public static BigInteger crt(BigInteger[] congs, BigInteger[] moduli) {<NEW_LINE>BigInteger prodModuli = BigInteger.ONE;<NEW_LINE>for (BigInteger mod : moduli) {<NEW_LINE>prodModuli = prodModuli.multiply(mod);<NEW_LINE>}<NEW_LINE>BigInteger[] modulus = new BigInteger[moduli.length];<NEW_LINE>for (int i = 0; i < moduli....
, modulus[i]).bigC;
1,029,200
public static Promise<String, Throwable, Void> generateShareMsg(final Playlist playlist) {<NEW_LINE>final ADeferredObject<String, Throwable, Void> deferred = new ADeferredObject<>();<NEW_LINE>if (playlist != null && playlist.getUserId() != null) {<NEW_LINE>final User user = User.getUserById(playlist.getUserId());<NEW_L...
" - " + generateLink(playlist, user);
333,747
Stateful doMultiNewKeyCached(SmallMap state, Object key, Object local_state, Object computation, @Cached("key") Object cachedNewKey, @Cached(value = "state.getKeys()", dimensions = 1) Object[] cachedOldKeys, @Cached("state.indexOf(key)") int index, @Cached(value = "buildNewKeys(cachedNewKey, cachedOldKeys)", dimensions...
= new Object[newKeys.length];
261,750
public static // begin begin_end_body end<NEW_LINE>boolean begin_end_expression(PsiBuilder b, int l) {<NEW_LINE>if (!recursion_guard_(b, l, "begin_end_expression"))<NEW_LINE>return false;<NEW_LINE>if (!nextTokenIs(b, "<expression>", ERL_BEGIN))<NEW_LINE>return false;<NEW_LINE>boolean r, p;<NEW_LINE>Marker m = enter_sec...
(b, l + 1));
1,085,222
public void execute(final SourceSet sourceSet) {<NEW_LINE>String displayName = (String) InvokerHelper.invokeMethod(sourceSet, "getDisplayName", null);<NEW_LINE>Convention sourceSetConvention = (Convention) InvokerHelper.getProperty(sourceSet, "convention");<NEW_LINE>org.gradle.api.internal.tasks.DefaultScalaSourceSet s...
getByName(sourceSet.getImplementationConfigurationName());
1,057,436
protected // May be called if couplingType indicates LOOSE or TIGHT or is UNSET<NEW_LINE>boolean matchBranchCoupling(int couplingType1, int couplingType2, ManagedConnectionFactory managedConnectionFactory) {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>boolean matched = true;<NEW_LI...
WSManagedConnectionFactory) managedConnectionFactory).getDefaultBranchCoupling();
1,407,222
public void handleMessage(String fromPort, Msg msg) {<NEW_LINE>synchronized (m_lastMsgReceived) {<NEW_LINE>m_lastMsgReceived = System.currentTimeMillis();<NEW_LINE>}<NEW_LINE>synchronized (m_features) {<NEW_LINE>// first update all features that are<NEW_LINE>// not status features<NEW_LINE>for (DeviceFeature f : m_feat...
"----- applying message to feature: {}", f.getName());
342,800
final AddCustomRoutingEndpointsResult executeAddCustomRoutingEndpoints(AddCustomRoutingEndpointsRequest addCustomRoutingEndpointsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addCustomRoutingEndpointsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
endClientExecution(awsRequestMetrics, request, response);
763,236
private static //<NEW_LINE>void overloading(LexerfulGrammarBuilder b) {<NEW_LINE>b.rule(operatorFunctionId).is(CxxKeyword.OPERATOR, operator);<NEW_LINE>b.rule(operator).is(// --- alternative tokens<NEW_LINE>b.// --- alternative tokens<NEW_LINE>firstOf(// --- alternative tokens<NEW_LINE>b.sequence(CxxKeyword.NEW, b.opti...
, b.optional(IDENTIFIER));
605,133
final DisassociateSkillFromSkillGroupResult executeDisassociateSkillFromSkillGroup(DisassociateSkillFromSkillGroupRequest disassociateSkillFromSkillGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateSkillFromSkillGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,687,026
protected void trackFeatures(I image) {<NEW_LINE>tracker.setImage(currPyr.basePyramid, currPyr.derivX, currPyr.derivY);<NEW_LINE>for (int i = active.size() - 1; i >= 0; i--) {<NEW_LINE>PyramidKltFeature t = active.get(i);<NEW_LINE>KltTrackFault <MASK><NEW_LINE>boolean success = false;<NEW_LINE>if (ret == KltTrackFault....
ret = tracker.track(t);
215,645
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static boolean canAddMethod(com.sun.jdi.VirtualMachine a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JD...
Mirror) a).virtualMachine();
1,815,990
private void writeIterableResult(StreamFactory streamOpener, IterableResult<?> ri) throws IOException {<NEW_LINE>PrintStream outStream = streamOpener.openStream(getFilename(ri, Metadata.of(ri).getLongName()));<NEW_LINE>TextWriterStream out = new TextWriterStream(outStream, writers, fallback);<NEW_LINE>// hack to print ...
>) ri).getHeader();
1,335,410
private static EFun createFunForMethod(Method method, String module) {<NEW_LINE>assert (Modifier.isStatic<MASK><NEW_LINE>assert (!Modifier.isPrivate(method.getModifiers()));<NEW_LINE>Class<?>[] parameterTypes = method.getParameterTypes();<NEW_LINE>int ary = parameterTypes.length;<NEW_LINE>boolean proc = (ary > 0 && par...
(method.getModifiers()));
1,571,334
public void run(RegressionEnvironment env) {<NEW_LINE>String stmtText = "@name('s0') select (select id from SupportBean_S1#length(1000) where p10=s0.p00) as ids1 from SupportBean_S0 as s0";<NEW_LINE>env.compileDeployAddListenerMileZero(stmtText, "s0");<NEW_LINE>env.sendEventBean(new SupportBean_S0(0));<NEW_LINE>env.ass...
assertEqualsNew("s0", "ids1", 1);
342,702
public static QueryApiAvgDurationGroupTrendResponse unmarshall(QueryApiAvgDurationGroupTrendResponse queryApiAvgDurationGroupTrendResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryApiAvgDurationGroupTrendResponse.setRequestId(_ctx.stringValue("QueryApiAvgDurationGroupTrendResponse.RequestId"));<NEW_LINE>List<MetricRe...
= new ArrayList<Point>();
781,533
public static void main(String[] args) {<NEW_LINE>StanfordCoreNLP pipeline = new StanfordCoreNLP(PropertiesUtils.asProperties("annotators", "tokenize,ssplit,pos,lemma,ner"));<NEW_LINE>Annotation annotation = new Annotation("Casey is 21. Sally Atkinson's age is 30.");<NEW_LINE>pipeline.annotate(annotation);<NEW_LINE>Lis...
get(CoreAnnotations.SentencesAnnotation.class);
394,906
private static CodegenExpression codegenLongInternal(ReformatBetweenNonConstantParamsForge forge, CodegenExpression inner, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenMethod methodNode = codegenMethodScope.makeChild(EPTypePremade.BOOLE...
secondCoercer, methodNode, exprSymbol, codegenClassScope);
80,896
private void patchActivityImplementation() {<NEW_LINE>SootClass scApplicationHolder = createOrGetApplicationHolder();<NEW_LINE>SootClass sc = Scene.v().getSootClassUnsafe("android.app.Activity");<NEW_LINE>if (sc == null || sc.resolvingLevel() < SootClass.SIGNATURES || scApplicationHolder == null)<NEW_LINE>return;<NEW_L...
getFieldByName("application").makeRef();
315,259
public static ListDataServiceApplicationsResponse unmarshall(ListDataServiceApplicationsResponse listDataServiceApplicationsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDataServiceApplicationsResponse.setRequestId(_ctx.stringValue("ListDataServiceApplicationsResponse.RequestId"));<NEW_LINE>listDataServiceApplicat...
("ListDataServiceApplicationsResponse.Data.Applications[" + i + "].ApplicationId"));
154,161
private OutputStream createEJB__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue(org.omg.CORBA_2_3.portable.InputStream in, ResponseHandler reply) throws Throwable {<NEW_LINE>String arg0 = (String) in.read_value(String.class);<NEW_LINE>String arg1 = (String) in.read_value(String.class);<NE...
write_value(ex, NamingException.class);
1,100,889
public boolean execute() throws Exception {<NEW_LINE>if (_controllerHost == null) {<NEW_LINE>_controllerHost = NetUtils.getHostAddress();<NEW_LINE>}<NEW_LINE>String stateValue = _state.toLowerCase();<NEW_LINE>if (!stateValue.equals("enable") && !stateValue.equals("disable") && !stateValue.equals("drop")) {<NEW_LINE>thr...
httpGet.setRequestHeader("Authorization", token);
63,248
public double d(double[] x, double[] y) {<NEW_LINE>if (x.length != y.length) {<NEW_LINE>throw new IllegalArgumentException(String.format("Arrays have different length: x[%d], y[%d]", x.length, y.length));<NEW_LINE>}<NEW_LINE>int n = x.length;<NEW_LINE>int m = 0;<NEW_LINE>double dist = 0.0;<NEW_LINE>if (weight == null) ...
pow(dist, 1.0 / p);
1,108,859
public void reread(Context context) {<NEW_LINE>Logger.T(TAG, "Updating screen properties");<NEW_LINE>Activity actvt = null;<NEW_LINE>try {<NEW_LINE>actvt = RhodesActivity.safeGetInstance();<NEW_LINE>} catch (Exception e) {<NEW_LINE>Logger.E(TAG, "can not get RhodesActivity !");<NEW_LINE>}<NEW_LINE>DisplayMetrics displa...
", height: " + mScreenHeight + ", orientation: " + mScreenOrientation);
1,347,103
public synchronized void stop() {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {<NEW_LINE>Tr.event(this, tc, "stop chain " + this);<NEW_LINE>}<NEW_LINE>// When the chain is being stopped, remove the previously<NEW_LINE>// registered EndPoint created in update<NEW_LINE>endpointMgr.removeEndP...
cd = cfw.getChain(chainName);
1,515,367
/*<NEW_LINE>* Generate artificial tangent for un-textured face<NEW_LINE>*/<NEW_LINE>static void generateTB(Vec3f v0, Vec3f v1, Vec3f v2, Vec3f[] ntb) {<NEW_LINE><MASK><NEW_LINE>Vec3f a = instance.vec3f1;<NEW_LINE>a.sub(v1, v0);<NEW_LINE>Vec3f b = instance.vec3f2;<NEW_LINE>b.sub(v2, v0);<NEW_LINE>if (a.dot(a) > b.dot(b)...
MeshTempState instance = MeshTempState.getInstance();
996,154
void init() {<NEW_LINE>for (EntityType<?> entity : dbf.getEntityManager().getMetamodel().getEntities()) {<NEW_LINE>Class type = entity.getJavaType();<NEW_LINE>String name = type.getSimpleName();<NEW_LINE>resourceTypeClassMap.put(name, type);<NEW_LINE>if (logger.isTraceEnabled()) {<NEW_LINE>logger.trace(String.format("d...
resourceTypeCreateMessageMap.put(cmsgClz, resType);
1,601,027
private MethodDeclaration findAfter(char[] startWith, Scope s, int from, int to, int maxLineCount, boolean outsideEnclosingBlock, char[][] discouragedNames, UnresolvedReferenceNameRequestor nameRequestor) {<NEW_LINE>this.requestor = nameRequestor;<NEW_LINE>// reinitialize completion scanner to be usable as a normal sca...
resetTo(from + 1, to);
1,470,342
protected final int _find(String sub, PyObject startObj, PyObject endObj) {<NEW_LINE>// Interpret the slice indices as concrete values<NEW_LINE>int[] indices = translateIndices(startObj, endObj);<NEW_LINE><MASK><NEW_LINE>if (subLen == 0) {<NEW_LINE>// Special case: an empty string may be found anywhere, ...<NEW_LINE>in...
int subLen = sub.length();
989,339
private void initLangPrefs() {<NEW_LINE>String[] SUPPORT_LOCALES = { "it", "es", "pt_BR", "ar", "fr", "ru", "bg", "he", "sv", "ca", "ja", "tr", "da", "ko", "uk", "de", "nl", "zh_CN", <MASK><NEW_LINE>Locale[] sortedLocales = new Locale[SUPPORT_LOCALES.length];<NEW_LINE>int count = 0;<NEW_LINE>for (String locale_code : S...
"en_US", "pl", "zh_TW", "ta_IN" };
1,236,520
// Yes, we extend AbstractDoCoMoResultParser since the format is very much<NEW_LINE>// like the DoCoMo MECARD format, but this is not technically one of<NEW_LINE>// DoCoMo's proposed formats<NEW_LINE>@Override<NEW_LINE>public AddressBookParsedResult parse(Result result) {<NEW_LINE>String rawText = getMassagedText(resul...
matchSingleDoCoMoPrefixedField("C:", rawText, true);
264,108
public DescribeTrustedAdvisorCheckResultResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeTrustedAdvisorCheckResultResult describeTrustedAdvisorCheckResultResult = new DescribeTrustedAdvisorCheckResultResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurren...
int originalDepth = context.getCurrentDepth();
817,123
public List<StoragePool> select(DiskProfile dskCh, VirtualMachineProfile vmProfile, DeploymentPlan plan, ExcludeList avoid, int returnUpTo, boolean bypassStorageTypeCheck) {<NEW_LINE>List<StoragePool> suitablePools = new ArrayList<StoragePool>();<NEW_LINE>long dcId = plan.getDataCenterId();<NEW_LINE>Long podId = plan.g...
pools.size() + " pools to check for allocation");
1,532,885
public Expectations updateExpectationsForConsumerAppOutput(Expectations expectations, String currentAction, JWTTokenBuilder builder) throws Exception {<NEW_LINE>JwtClaims claims = builder.getRawClaims();<NEW_LINE>// Audience can be a list of string values - the order of entries could vary and each element is quoted in ...
getIssuedAt().getValue());
977,136
public void write(T instance, TProtocol protocol) throws Exception {<NEW_LINE>TProtocolWriter writer = new TProtocolWriter(protocol);<NEW_LINE>Short idValue = (Short) getFieldValue(instance, idField.getKey());<NEW_LINE>writer.<MASK><NEW_LINE>if (metadataMap.containsKey(idValue)) {<NEW_LINE>ThriftFieldMetadata fieldMeta...
writeStructBegin(metadata.getStructName());
424,847
private void createDragSource(final Tree tree) {<NEW_LINE>Transfer[] types = new Transfer[] { TextTransfer.getInstance() };<NEW_LINE>int operations = DND.DROP_MOVE;<NEW_LINE>final DragSource source = new DragSource(tree, operations);<NEW_LINE>source.setTransfer(types);<NEW_LINE>source.addDragListener(new DragSourceList...
] selection = tree.getSelection();
406,402
private void findEscapingLiveVars(NonSsaLivenessAnalyzer liveness, Graph cfg, AsyncProgramSplitter splitter, int partIndex, boolean[] output) {<NEW_LINE><MASK><NEW_LINE>Program program = splitter.getProgram(partIndex);<NEW_LINE>int[] successors = splitter.getBlockSuccessors(partIndex);<NEW_LINE>Instruction[] splitPoint...
Program originalProgram = splitter.getOriginalProgram();
1,235,798
private OrderedTensorType typeWithShapeAsAttribute() {<NEW_LINE>if (attributeMap.getList("shape").isEmpty() || attributeMap.getList("shape").get().size() == 0)<NEW_LINE>throw new IllegalArgumentException("Reshape in " + name + ": Shape attribute is empty.");<NEW_LINE>OrderedTensorType inputType = inputs.get(0)<MASK><NE...
.type().get();
916,554
private void shrink(AtomicBoolean running, boolean full) {<NEW_LINE>int loops = 0;<NEW_LINE>int count = 0;<NEW_LINE>int log = Math.max(10000, connections.size() / 5);<NEW_LINE>Throwable error = null;<NEW_LINE>shrinkTime = ClockUtil.nanoRealtime();<NEW_LINE>Iterator<Connection> iterator = connections.ascendingIterator()...
.toMillis(shrinkTime), error);
509,280
private void activateWidgets() {<NEW_LINE>skipNSRLCheckBox.setSelected(KeywordSearchSettings.getSkipKnown());<NEW_LINE>showSnippetsCB.<MASK><NEW_LINE>boolean ingestRunning = IngestManager.getInstance().isIngestRunning();<NEW_LINE>ingestWarningLabel.setVisible(ingestRunning);<NEW_LINE>skipNSRLCheckBox.setEnabled(!ingest...
setSelected(KeywordSearchSettings.getShowSnippets());
754,627
private static void tryAssertion56(RegressionEnvironment env, String stmtText, String outputLimit, AtomicInteger milestone) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>String[] fields = new String[<MASK><NEW_LINE>ResultAssertTestResult expected = new ResultAssertTestRe...
] { "symbol", "volume", "sum(price)" };
1,442,673
private Task<Void> createFileIntentSender(DriveContents driveContents, Bitmap image) {<NEW_LINE>Log.i(TAG, "New contents created.");<NEW_LINE>// Get an output stream for the contents.<NEW_LINE><MASK><NEW_LINE>// Write the bitmap data from it.<NEW_LINE>ByteArrayOutputStream bitmapStream = new ByteArrayOutputStream();<NE...
OutputStream outputStream = driveContents.getOutputStream();
1,692,028
public static ChuteRenderModel create(IBakedModel parent) {<NEW_LINE>if (parent == null) {<NEW_LINE>throw new IllegalStateException("For some reason, the block model for the chute block was missing!" + "\nThis is not meant to happen, you have a bad JAR file!");<NEW_LINE>}<NEW_LINE>List<BakedQuad> lst = Lists.newArrayLi...
] = sideTexture.getInterpolatedV(8);
166,073
private static void putRanking(final serverObjects prop, final Map<String, String> map, final String prefix, final String attrExtension) {<NEW_LINE>prop.put("attr" + attrExtension, map.size());<NEW_LINE>String key, description, name, info;<NEW_LINE>int i, j = 0, p;<NEW_LINE>for (final Entry<String, String> entry : map....
"_select_" + i + "_checked", "0");
386,639
public void storeDynamicViewStructureMetadata(FacesContext context, UIViewRoot root, FaceletState faceletDynamicState) {<NEW_LINE>DynamicViewKey key = (DynamicViewKey) <MASK><NEW_LINE>MetadataViewKey ordinaryKey = deriveViewKey(context, root);<NEW_LINE>if (!dynamicStructureViewMetadataMap.containsKey(ordinaryKey)) {<NE...
generateDynamicStructureViewKey(context, root, faceletDynamicState);
557,594
private static ExplainedOptional<TableRefInfo> retrieveTableRefInfo(final ResultSet rs) throws SQLException {<NEW_LINE>final ReferenceId referenceId = ReferenceId.ofRepoId(rs.getInt("AD_Reference_ID"));<NEW_LINE>final String TableName = rs.getString(1);<NEW_LINE>if (!StringUtils.toBoolean(rs.getString("Ref_IsActive")))...
(rs.getString(5));