idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,271,218
public static void main(String[] args) {<NEW_LINE>No Arvore = new No(45);<NEW_LINE>insereArvore(Arvore, 56);<NEW_LINE>insereArvore(Arvore, 67);<NEW_LINE>insereArvore(Arvore, 24);<NEW_LINE>insereArvore(Arvore, 61);<NEW_LINE>insereArvore(Arvore, 52);<NEW_LINE>System.out.print("Pre : ");<NEW_LINE>preOrdem(Arvore);<NEW_LIN...
System.out.print("\nEm : ");
81,816
private void updateBackgroundInsets() {<NEW_LINE>float top = 0, right = 0, bottom = 0, left = 0;<NEW_LINE>final List<BackgroundFill> fills = background.getFills();<NEW_LINE>for (int i = 0, max = fills.size(); i < max; i++) {<NEW_LINE>// We need to now inspect the paint to determine whether we can use a cache for this b...
, radii.getBottomRightHorizontalRadius()));
605,331
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>CommandLine cl = parseComandLine(args);<NEW_LINE>Pdf2Dcm pdf2Dcm = new Pdf2Dcm();<NEW_LINE>final List<String> argList = cl.getArgList();<NEW_LINE>int argc = argList.size();<NEW_LINE>if (argc < 2)<NEW_LINE>throw new ParseException(rb.getString("missing"));...
"pdf2dcm: " + e.getMessage());
1,128,578
public static VmwareContext create(String vCenterAddress, String vCenterUserName, String vCenterPassword) throws Exception {<NEW_LINE>assert (vCenterAddress != null);<NEW_LINE>assert (vCenterUserName != null);<NEW_LINE>assert (vCenterPassword != null);<NEW_LINE>String serviceUrl = "https://" + vCenterAddress + "/sdk/vi...
setVcenterSessionTimeout(s_vmwareMgr.getVcenterSessionTimeout());
1,141,568
private void deleteUnusedCertificates() {<NEW_LINE>var oneMonthAgo = clock.instant().minus(30, ChronoUnit.DAYS);<NEW_LINE>curator.readAllEndpointCertificateMetadata().forEach((applicationId, storedMetaData) -> {<NEW_LINE>var lastRequested = Instant.<MASK><NEW_LINE>if (lastRequested.isBefore(oneMonthAgo) && hasNoDeploym...
ofEpochSecond(storedMetaData.lastRequested());
607,506
public GetAutoSnapshotsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetAutoSnapshotsResult getAutoSnapshotsResult = new GetAutoSnapshotsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok...
String currentParentElement = context.getCurrentParentElement();
768,874
final DescribeVpcEndpointServiceConfigurationsResult executeDescribeVpcEndpointServiceConfigurations(DescribeVpcEndpointServiceConfigurationsRequest describeVpcEndpointServiceConfigurationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeVpcEndpointServiceConfigurationsRequest);<NE...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,400,597
public static void main(String[] args) {<NEW_LINE>LL list = new LL();<NEW_LINE>list.insertFirst(3);<NEW_LINE>list.insertFirst(2);<NEW_LINE>list.insertFirst(8);<NEW_LINE>list.insertFirst(17);<NEW_LINE>list.insertLast(99);<NEW_LINE>list.insert(100, 3);<NEW_LINE>list.display();<NEW_LINE>System.out.println(list.deleteFirst...
(list.delete(2));
1,387,584
public static void inverseN(WaveletDescription<WlCoef_I32> desc, GrayS32 input, GrayS32 output, GrayS32 storage, int numLevels, int minValue, int maxValue) {<NEW_LINE>if (numLevels == 1) {<NEW_LINE>inverse1(desc, input, output, storage, minValue, maxValue);<NEW_LINE>PixelMath.boundImage(output, minValue, maxValue);<NEW...
0, width, height, null);
1,074,909
private static GnssStatus createFrom(List<GnssSatelliteInfo> satelliteInfos) {<NEW_LINE>int svCount = satelliteInfos.size();<NEW_LINE>int[] svidWithFlags = new int[svCount];<NEW_LINE>float[] cn0DbHz = new float[svCount];<NEW_LINE>float[] elevations = new float[svCount];<NEW_LINE>float[] azimuths = new float[svCount];<N...
<?>[0]));
866,366
public static <T1 extends Throwable, T2 extends Throwable> T1 assertThrows(Class<T1> expectedClass, @Nullable Class<T2> optionalWrapperClass, Executable executable) {<NEW_LINE>if (optionalWrapperClass == null) {<NEW_LINE>return Assertions.assertThrows(expectedClass, executable);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>execu...
(cause.getCause()));
240,921
private void preprocessAssertNoSubstitutedShapeReferenceInOperation(Operation operation) {<NEW_LINE>// Check input<NEW_LINE>if (operation.getInput() != null && operation.getInput().getShape() != null) {<NEW_LINE>String inputShape = operation<MASK><NEW_LINE>if (shapeSubstitutions.containsKey(inputShape)) {<NEW_LINE>thro...
.getInput().getShape();
763,911
public static boolean isUnicodeIdentifierPart(int ch) {<NEW_LINE>// if props == 0, it will just fall through and return false<NEW_LINE>// cat == format<NEW_LINE>return ((1 << getType(ch)) & ((1 << UCharacterCategory.UPPERCASE_LETTER) | (1 << UCharacterCategory.LOWERCASE_LETTER) | (1 << UCharacterCategory.TITLECASE_LETT...
) != 0 || isIdentifierIgnorable(ch);
1,792,340
public int compareTo(removeTableProperty_result other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.<MASK><NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetSec(), other.isSetSec());<NEW_LINE>if (lastCompar...
getClass().getName());
51,670
public final Collection<Entry<K, V>> removeAllWithHash(int keyHash) {<NEW_LINE>List<Entry<K, V>> invalidated = new ArrayList<>();<NEW_LINE>int hash = spread(keyHash);<NEW_LINE>for (Node<K, V>[] tab = table; ; ) {<NEW_LINE>Node<K, V> f;<NEW_LINE>int n, i;<NEW_LINE>if (tab == null || (n = tab.length) == 0 || (f = tabAt(t...
tab = helpTransfer(tab, f);
1,302,659
public void run(TLObject response, TLRPC.TL_error error) {<NEW_LINE>AndroidUtilities.runOnUIThread(() -> {<NEW_LINE>if (response instanceof TLRPC.TL_messages_historyImport) {<NEW_LINE>importId = ((TLRPC.TL_messages_historyImport) response).id;<NEW_LINE>uploadSet.remove(historyPath);<NEW_LINE>getNotificationCenter().pos...
historyImportProgressChanged, dialogId, req, error);
441,147
protected Triple<int[], int[], int[]> truncateSequences(int[] ids, int[] pairIds, int numTokensToRemove, TruncationStrategy truncationStrategy, int stride) {<NEW_LINE>if (numTokensToRemove <= 0) {<NEW_LINE>return Triple.of(ids, <MASK><NEW_LINE>}<NEW_LINE>int[] overflowingTokens = new int[0];<NEW_LINE>if (truncationStra...
pairIds, new int[0]);
569,336
private void executeOnAuthorizationRequest(OIDCResponseType parsedResponseType, AuthorizationEndpointRequest request, String redirectUri) throws ClientPolicyException {<NEW_LINE>ClientModel client = session.getContext().getClient();<NEW_LINE>String codeChallenge = request.getCodeChallenge();<NEW_LINE>String codeChallen...
ClientPolicyException(OAuthErrorException.INVALID_REQUEST, "Invalid parameter: invalid code_challenge_method");
755,434
private long createPhoto(PrintWriter respWriter) throws RemoteInvocationException {<NEW_LINE>// make create photo request and send with the rest client synchronously<NEW_LINE>// response of create request does not have body, therefore use EmptyRecord as template<NEW_LINE>// create an instance of photo pragmatically<NEW...
.PNG).setExif(newExif);
1,254,347
public static boolean canMergeAnnounceURLs(TOTorrent new_torrent, TOTorrent dest_torrent) {<NEW_LINE>try {<NEW_LINE>List<List<String>> new_groups = announceGroupsToList(new_torrent);<NEW_LINE>List<List<String<MASK><NEW_LINE>Set<String> all_dest = new HashSet<>();<NEW_LINE>for (List<String> l : dest_groups) {<NEW_LINE>a...
>> dest_groups = announceGroupsToList(dest_torrent);
139,598
protected Function createFunction(Program prog, Address addr, boolean doDisassembly, TaskMonitor monitor) throws DemangledException {<NEW_LINE>Listing listing = prog.getListing();<NEW_LINE>Function func = listing.getFunctionAt(addr);<NEW_LINE>if (func != null) {<NEW_LINE>return func;<NEW_LINE>}<NEW_LINE>if (addr.isExte...
"Unable to create function: " + cmd.getStatusMsg());
1,308,596
public ListRouteCalculatorsResult listRouteCalculators(ListRouteCalculatorsRequest listRouteCalculatorsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRouteCalculatorsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executio...
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
1,153,276
private static void upgradeTable(final Connection connection, final int currentVersion) throws SQLException {<NEW_LINE>LOGGER.info(LOG_UPGRADING_TABLE, DATABASE_NAME, TABLE_NAME, currentVersion, TABLE_VERSION);<NEW_LINE>for (int version = currentVersion; version < TABLE_VERSION; version++) {<NEW_LINE>LOGGER.trace(LOG_U...
TABLE_NAME, version, version + 1);
1,663,129
public long sweepNextBatch(ShardAndStrategy shardStrategy, long sweepTs) {<NEW_LINE>metrics.updateSweepTimestamp(shardStrategy, sweepTs);<NEW_LINE>long lastSweptTs = progress.getLastSweptTimestamp(shardStrategy);<NEW_LINE>if (lastSweptTs + 1 >= sweepTs) {<NEW_LINE>return 0L;<NEW_LINE>}<NEW_LINE>log.debug("Beginning ite...
shardStrategy, sweepBatch.entriesRead());
343,663
public io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy result = new io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_b...
.rollingUpdate_ = rollingUpdateBuilder_.build();
585,058
protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) {<NEW_LINE>// Resolve out-of-range months. This is necessary in order to<NEW_LINE>// obtain the correct year. We correct to<NEW_LINE>// a 12- or 13-month year (add/subtract 12 or 13, depending<NEW_LINE>// on the year) but since we _always_ ...
month][yearType(eyear)];
499,691
final ListAssetsResult executeListAssets(ListAssetsRequest listAssetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAssetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
false), new ListAssetsResultJsonUnmarshaller());
1,286,862
public void writeFields(Object object) {<NEW_LINE>Class type = object.getClass();<NEW_LINE>Object[] defaultValues = getDefaultValues(type);<NEW_LINE>OrderedMap<String, FieldMetadata> fields = getFields(type);<NEW_LINE>int defaultIndex = 0;<NEW_LINE>Array<String> fieldNames = fields.orderedKeys();<NEW_LINE>for (int i = ...
type.getName() + ")");
1,548,694
public static RoaringBitmap and(final RoaringBitmap x1, final RoaringBitmap x2) {<NEW_LINE>final RoaringBitmap answer = new RoaringBitmap();<NEW_LINE>final int length1 = x1.highLowContainer.size(), length2 <MASK><NEW_LINE>int pos1 = 0, pos2 = 0;<NEW_LINE>while (pos1 < length1 && pos2 < length2) {<NEW_LINE>final char s1...
= x2.highLowContainer.size();
1,785,329
private synchronized // currently allow direct global state updates from external sources (if you need to, send an event on the bus instead)<NEW_LINE>PipelineInterpreter.State reloadAndSave() {<NEW_LINE>// read all rules and parse them<NEW_LINE>Map<String, Rule> ruleNameMap = Maps.newHashMap();<NEW_LINE>ruleService.loa...
"Failed to parse pipeline" + pipelineDao.id());
1,476,032
public GlmModelData deserializeModel(Params meta, Iterable<String> data) {<NEW_LINE>GlmModelData modelData = new GlmModelData();<NEW_LINE>modelData.featureColNames = meta.get(GlmTrainParams.FEATURE_COLS);<NEW_LINE>modelData.offsetColName = meta.get(GlmTrainParams.OFFSET_COL);<NEW_LINE>modelData.weightColName = meta.get...
meta.get(GlmTrainParams.MAX_ITER);
1,726,131
static void lzwCompress(OutputStream output, int codesize, byte[] toCompress) throws IOException {<NEW_LINE>byte c;<NEW_LINE>short index;<NEW_LINE>int clearcode;<NEW_LINE>int endofinfo;<NEW_LINE>int numbits;<NEW_LINE>short prefix = (short) 0xFFFF;<NEW_LINE>clearcode = 1 << codesize;<NEW_LINE>endofinfo = clearcode + 1;<...
bitFile.writeBits(prefix, numbits);
191,078
public UpdateBasePathMappingResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateBasePathMappingResult updateBasePathMappingResult = new UpdateBasePathMappingResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NE...
String currentParentElement = context.getCurrentParentElement();
1,359,719
final GetMemberResult executeGetMember(GetMemberRequest getMemberRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMemberRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,212,676
protected void initializeContainerNetworking(ByteOrder byteOrder) throws IOException, DatabusException {<NEW_LINE>// instruct netty not to rename our threads in the I/O and boss thread pools<NEW_LINE>ThreadRenamingRunnable.setThreadNameDeterminer(ThreadNameDeterminer.CURRENT);<NEW_LINE>_httpBootstrap = new ServerBootst...
, DirectChannelBufferFactory.getInstance(byteOrder));
1,563,745
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static com.sun.jdi.event.EventQueue eventQueue(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.modul...
jpda.jdi.VMDisconnectedExceptionWrapper(ex);
1,852,357
protected Result generateContent(int id, ByteBuffer content, boolean recycle, boolean lastContent, Callback callback, FCGI.FrameType frameType) {<NEW_LINE>id &= 0xFF_FF;<NEW_LINE>int contentLength = content == null ? 0 : content.remaining();<NEW_LINE>Result result = new Result(byteBufferPool, callback);<NEW_LINE>while ...
result.append(content, true);
574,270
public ImmutableList<Artifact> processDeps(RuleContext ruleContext, boolean isBinary) {<NEW_LINE>if (isBinary) {<NEW_LINE>// Currently, Android Databinding generates a class with a fixed name into the Java package<NEW_LINE>// of an android_library. This means that if an android_binary depends on two<NEW_LINE>// android...
.add(getClassInfoFile(ruleContext));
827,826
private List<CountAtBucket> nonZeroBuckets() {<NEW_LINE>List<CountAtBucket> buckets = new ArrayList<>();<NEW_LINE>long zeroSnap = zeros.get();<NEW_LINE>if (zeroSnap > 0) {<NEW_LINE>buckets.add(new CountAtBucket(UPPER_BOUNDS[getRangeIndex(ZERO.bucketIdx, ZERO.offset)], zeroSnap));<NEW_LINE>}<NEW_LINE>long lowerSnap = lo...
cnt = bucket.get(j);
1,075,455
private Response sendVerifyEmail(KeycloakSession session, LoginFormsProvider forms, UserModel user, AuthenticationSessionModel authSession, EventBuilder event) throws UriBuilderException, IllegalArgumentException {<NEW_LINE>RealmModel realm = session.getContext().getRealm();<NEW_LINE>UriInfo uriInfo = session.getContex...
logger.error("Failed to send verification email", e);
773,772
void downloadFileList(@Nullable final OnDownloadFileListListener listener) throws UserNotRegisteredException {<NEW_LINE>checkRegistered();<NEW_LINE>Map<String, String> params = new HashMap<>();<NEW_LINE>params.put("deviceid", getDeviceId());<NEW_LINE>params.put("accessToken", getAccessToken());<NEW_LINE>params.put("all...
allFiles.getJSONObject(i)));
1,752,761
public static void checkAdminRoleOrPermissions(Authorizer authorizer, SecurityContext securityContext, EntityReference entityReference, EntityReference ownerReference, JsonPatch patch) {<NEW_LINE>AuthenticationContext authenticationCtx = SecurityUtil.getAuthenticationContext(securityContext);<NEW_LINE>if (authorizer.is...
metadataOperations = JsonPatchUtils.getMetadataOperations(patch);
1,406,140
public String[] introspectSelf() {<NEW_LINE>com.ibm.ws.rsadapter.FFDCLogger info = new com.ibm.<MASK><NEW_LINE>info.append(dsConfig.get().introspectSelf());<NEW_LINE>if (dsConfig.get().enableMultithreadedAccessDetection)<NEW_LINE>info.append("Multithreaded access was detected?", detectedMultithreadedAccess);<NEW_LINE>i...
ws.rsadapter.FFDCLogger(this);
1,500,147
/* (non-Javadoc)<NEW_LINE>* @see com.ibm.ws.sib.processor.impl.interfaces.DestinationHandler#notifyReceiveAllowed(com.ibm.ws.sib.processor.impl.interfaces.DestinationHandler)<NEW_LINE>*/<NEW_LINE>public void notifyReceiveAllowed(DestinationHandler destinationHandler) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() ...
getSubscriptionIndex().iterator(filter);
630,853
private List<NameValueCountPair> listCreatorUnitPair(Business business, EffectivePerson effectivePerson) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(TaskCompleted.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(St...
creatorUnit)).where(p);
348,070
private boolean checkClass(TypeElement element) {<NEW_LINE>if (element.getKind() != ElementKind.CLASS) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Set<Modifier> modifiers = element.getModifiers();<NEW_LINE>Element enclosing = element.getEnclosingElement();<NEW_LINE>if (!(enclosing instanceof PackageElement)) {<NEW_LIN...
TypeMirror extensionType = extensionElement.asType();
256,884
private static Object instantiateIfNecessary(Object module, List<Method> declaredMethods, Binder binder) {<NEW_LINE>// If the module is already an object, no need to instantiate.<NEW_LINE>if (!(module instanceof Class)) {<NEW_LINE>return module;<NEW_LINE>}<NEW_LINE>// If none of the methods require instances, no need t...
"Unable to create an instance of %s for DaggerAdapter", module), roe));
820,685
private static void buildConversionMap() {<NEW_LINE>// Values in the map below may be always changed<NEW_LINE>ArrayMap<String, String> keyValueMap = new ArrayMap<>(10);<NEW_LINE>keyValueMap.put("top", "0");<NEW_LINE>keyValueMap.put("left", "0");<NEW_LINE>keyValueMap.put("right", "DUMMY_RIGHT");<NEW_LINE>keyValueMap.put...
= new WeakReference<>(keyValueMap);
1,216,968
private void sendResultNotification(DestroyedActivityInfo activityInfo, ManualDumpData data) {<NEW_LINE>final Context context = getWatcher().getContext();<NEW_LINE>Intent targetIntent = new Intent();<NEW_LINE>targetIntent.setClassName(getWatcher().getContext(), mTargetActivity);<NEW_LINE>targetIntent.putExtra(SharePlug...
= new Notification.Builder(context);
678,814
public <U extends IAggregableReduceOp<T, Writable>> void combine(U acc) {<NEW_LINE>if (this.getClass().isAssignableFrom(acc.getClass())) {<NEW_LINE>AggregableVariance<T> accu <MASK><NEW_LINE>Long totalCount = count + accu.getCount();<NEW_LINE>Double totalMean = (accu.getMean() * accu.getCount() + mean * count) / totalC...
= (AggregableVariance<T>) acc;
266,423
private IJsonType findReference(JsonSchemaType parent, IFile enclosing, Bindings jsonObj) {<NEW_LINE>Object value = jsonObj.get(JSCH_REF);<NEW_LINE>String ref;<NEW_LINE>Token token;<NEW_LINE>if (value instanceof Pair) {<NEW_LINE>ref = (String) ((Pair) value).getSecond();<NEW_LINE>token = ((Token[]) ((Pair) value).getFi...
String scheme = uri.getScheme();
1,152,557
public void insertHoleAt(final JSONArray args, final CallbackContext callbackContext) throws JSONException {<NEW_LINE>String id = args.getString(0);<NEW_LINE>final int holeIndex = args.getInt(1);<NEW_LINE>JSONArray <MASK><NEW_LINE>final ArrayList<LatLng> newHole = PluginUtil.JSONArray2LatLngList(holeJson);<NEW_LINE>fin...
holeJson = args.getJSONArray(2);
123,236
public void init(Container container) throws Exception {<NEW_LINE>managerIdentityService = container.getService(ManagerIdentityService.class);<NEW_LINE>assetStorageService = container.getService(AssetStorageService.class);<NEW_LINE>// Configure SMTP<NEW_LINE>String host = container.getConfig(<MASK><NEW_LINE>int port = ...
).getOrDefault(OR_EMAIL_HOST, null);
1,549,499
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.grpc.service.DeviceManagementGrpc.DeviceManagementImplBase#<NEW_LINE>* updateDevice(com.sitewhere.grpc.service.GUpdateDeviceRequest,<NEW_LINE>* io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void updateDevice(GU...
getUpdateDeviceMethod(), e, responseObserver);
1,103,546
public AnalyzedRefreshTable analyze(RefreshStatement<Expression> refreshStatement, ParamTypeHints paramTypeHints, CoordinatorTxnCtx txnCtx) {<NEW_LINE>var exprAnalyzerWithFieldsAsString = new ExpressionAnalyzer(txnCtx, nodeCtx, paramTypeHints, FieldProvider.FIELDS_AS_LITERAL, null);<NEW_LINE>var exprCtx = new Expressio...
analyzedTables.put(analyzedTable, tableInfo);
126,517
public boolean trySearch(SearchState state) throws RaiseException {<NEW_LINE>// no library or extension found, try to load directly as a class<NEW_LINE>Script script;<NEW_LINE>String className = buildClassName(state.searchFile);<NEW_LINE>int lastSlashIndex = className.lastIndexOf('/');<NEW_LINE>if (lastSlashIndex > -1 ...
className.replace('/', '.');
1,279,330
private void resizeUpdateCapacity() {<NEW_LINE>final int newCapacity = (int<MASK><NEW_LINE>// first, copy the stack of variables<NEW_LINE>final StoredDoubleVector[] tmp1 = new StoredDoubleVector[newCapacity];<NEW_LINE>System.arraycopy(vectorStack, 0, tmp1, 0, vectorStack.length);<NEW_LINE>vectorStack = tmp1;<NEW_LINE>/...
) (vectorStack.length * loadfactor);
614,781
public void marshall(Assignment assignment, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (assignment == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(assignment.getAssignmentId(), ASSIGNMENTID_BINDING);<N...
assignment.getDeadline(), DEADLINE_BINDING);
1,014,201
public static void removeTask(@Nonnull final Project project, LocalTask task, TaskManager manager) {<NEW_LINE>if (task.isDefault()) {<NEW_LINE>Messages.showInfoMessage(project, "Default task cannot be removed", "Cannot Remove");<NEW_LINE>} else {<NEW_LINE>List<ChangeListInfo> infos = task.getChangeLists();<NEW_LINE>Lis...
.isDefault() ? changeList : null;
1,687,727
public <T extends SaveFileFormat> T load(InputStream is, Class<T> format) {<NEW_LINE>entitySerializer.preLoad();<NEW_LINE><MASK><NEW_LINE>SaveFileFormat partial = new SaveFileFormat((IntBag) null);<NEW_LINE>partial.componentIdentifiers = kryo.readObject(input, SaveFileFormat.ComponentIdentifiers.class);<NEW_LINE>transm...
Input input = new ByteBufferInput(is);
1,766,721
private JComponent createTempoPanel() {<NEW_LINE>tempoSlider = new JSlider(0, 300);<NEW_LINE>tempoSlider.setValue(100);<NEW_LINE>final JLabel label = new JLabel("Tempo: 100%");<NEW_LINE>tempoSlider.setPaintLabels(true);<NEW_LINE>tempoSlider.addChangeListener(new ChangeListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>...
= tempoSlider.getValue() / 100.0;
1,301,342
public RelNode toRel(ToRelContext context) {<NEW_LINE>// Make sure rowType's list is immutable. If rowType is DynamicRecordType, creates a new<NEW_LINE>// RelOptTable by replacing with immutable RelRecordType using the same field list.<NEW_LINE>if (this.getRowType().isDynamicStruct()) {<NEW_LINE>final RelDataType stati...
EnumerableTableScan.create(cluster, this);
1,320,808
public static void main(String[] args) {<NEW_LINE>Point s1 = new Point(2147000000, 1);<NEW_LINE>Point e1 = new Point(-2147000000, -1);<NEW_LINE>Point s2 = <MASK><NEW_LINE>Point e2 = new Point(0, 0);<NEW_LINE>Point intersection = intersection(s1, e1, s2, e2);<NEW_LINE>System.out.println("Line Segment 1: " + s1 + " to " ...
new Point(-10, 0);
1,083,260
public void populateItem(final Item<RepositoryCommit> commitItem) {<NEW_LINE>final RepositoryCommit commit = commitItem.getModelObject();<NEW_LINE>// author gravatar<NEW_LINE>commitItem.add(new AvatarImage("commitAuthor", commit.getAuthorIdent(), null, 16, false));<NEW_LINE>// merge icon<NEW_LINE>if (commit.getParentCo...
Keys.web.shortCommitIdLength, 6);
1,713,001
final UpdateClusterKafkaVersionResult executeUpdateClusterKafkaVersion(UpdateClusterKafkaVersionRequest updateClusterKafkaVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateClusterKafkaVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
endClientExecution(awsRequestMetrics, request, response);
1,681,272
public static XMethod findInvocationLeastUpperBound(InvokeInstruction inv, ConstantPoolGen cpg, JavaClassAndMethodChooser methodChooser) {<NEW_LINE>if (DEBUG_METHOD_LOOKUP) {<NEW_LINE>System.out.println("Find prototype method for " + SignatureConverter.convertMethodSignature(inv, cpg));<NEW_LINE>}<NEW_LINE>short opcode...
== Const.INVOKEINTERFACE), methodChooser);
629,190
// from grammar, things that can be inside struct-field block<NEW_LINE>private void convertCommonFieldSettings(SDField field, ParsedField parsed) {<NEW_LINE>convertMatchSettings(field, parsed.matchSettings());<NEW_LINE><MASK><NEW_LINE>if (indexing.isPresent()) {<NEW_LINE>field.setIndexingScript(indexing.get().script())...
var indexing = parsed.getIndexing();
695,514
private View buildView() {<NEW_LINE>final View result = View.inflate(getContext(), R.layout.dialog_main, null);<NEW_LINE>editText = result.findViewById(R.id.main_dialog_chat_bottom_message_edittext);<NEW_LINE>rootView = result.findViewById(R.id.main_dialog_root_view);<NEW_LINE>emojiButton = result.<MASK><NEW_LINE>final...
findViewById(R.id.main_dialog_emoji);
415,355
public FloatBuffer fillFloatBuffer(FloatBuffer fb, boolean columnMajor) {<NEW_LINE>// if (columnMajor){<NEW_LINE>// fb.put(m00).put(m10).put(m20);<NEW_LINE>// fb.put(m01).put(m11).put(m21);<NEW_LINE>// fb.put(m02).put(m12).put(m22);<NEW_LINE>// }else{<NEW_LINE>// fb.put(m00).put(m01).put(m02);<NEW_LINE>// fb.put(m10).p...
fillFloatArray(vars.matrixWrite, columnMajor);
725,189
private void addInnerConfigurationMethod(GeneratorAdapter staticInit) {<NEW_LINE>if (isConfigurationProperties) {<NEW_LINE>if (beanTypeInnerClasses.size() > 0) {<NEW_LINE>classWriter.visitField(ACC_PRIVATE | ACC_FINAL | ACC_STATIC, FIELD_INNER_CLASSES, Type.getType(Set.class).<MASK><NEW_LINE>pushStoreClassesAsSet(stati...
getDescriptor(), null, null);
1,080,825
protected void handleDeclaringTypeNodes(NodeList list) {<NEW_LINE>for (int i = 0, n = list.getLength(); i < n; i += 1) {<NEW_LINE>Node node = list.item(i);<NEW_LINE>if (node instanceof Element) {<NEW_LINE>Element element = (Element) node;<NEW_LINE>if (element.getNodeName().equals(SuggestionElementStatics.DECLARING_TYPE...
element.getAttribute(SuggestionElementStatics.TYPE_ATT);
369,842
public IRubyObject op_cmp(ThreadContext context, IRubyObject other) {<NEW_LINE>final BigInteger otherValue;<NEW_LINE>if (other instanceof RubyFixnum) {<NEW_LINE>otherValue = fix2big((RubyFixnum) other);<NEW_LINE>} else if (other instanceof RubyBignum) {<NEW_LINE>otherValue = ((RubyBignum) other).value;<NEW_LINE>} else ...
(context).op_cmp, other);
731,334
private void installFile(File file, String groupId, String artifactId, String version, String classifier, String packaging) throws MojoExecutionException {<NEW_LINE>InvocationRequest request = new DefaultInvocationRequest();<NEW_LINE>// request.setPomFile( new File( "/path/to/pom.xml" ) );<NEW_LINE>request.setGoals(Col...
ex.getMessage(), ex);
1,660,610
void allSlotsInOptionalInfoDo() throws CorruptDataException {<NEW_LINE>U32Pointer optionalInfo = J9ROMClassHelper.optionalInfo(romClass);<NEW_LINE>SelfRelativePointer cursor = SelfRelativePointer.cast(optionalInfo);<NEW_LINE>if (romClass.optionalFlags().anyBitsIn(J9NonbuilderConstants.J9_ROMCLASS_OPTINFO_SOURCE_FILE_NA...
cursor = cursor.add(1);
176,566
private static boolean open(FileObject fo, String generate) {<NEW_LINE>if (fo == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!fo.isValid()) {<NEW_LINE>if (generate != null) {<NEW_LINE>try (OutputStream os = fo.getOutputStream()) {<NEW_LINE>os.write(generate.getBytes(StandardCharsets.UTF_8));<NEW_LINE>} catch...
).lookup(Openable.class);
248,044
public String convertValueToString(Object cell) {<NEW_LINE>final StringWriter stringWriter = new StringWriter();<NEW_LINE>HashMap<String, Object> scopes = new HashMap<>();<NEW_LINE>Object value = getModel().getValue(cell);<NEW_LINE>if (value instanceof AccountDeviceInstanceKey) {<NEW_LINE>final AccountDeviceInstanceKey...
getAccount().getTypeSpecificID());
1,537,661
public org.osmdroid.views.overlay.Polygon toPolygon(Polygon polygon) {<NEW_LINE>org.osmdroid.views.overlay.Polygon newPoloygon = new org.osmdroid.views.overlay.Polygon();<NEW_LINE>List<GeoPoint> pts = new ArrayList<>();<NEW_LINE>List<List<GeoPoint>> holes = new ArrayList<>();<NEW_LINE>List<LineString> rings = polygon.g...
hole = rings.get(i);
1,487,638
private void readJMX(ParserConfig config) {<NEW_LINE>ArrayList<Node> nodeList = null;<NEW_LINE>try {<NEW_LINE>nodeList = getNodeList("scouter/jmx");<NEW_LINE>if (nodeList == null || nodeList.size() == 0)<NEW_LINE>return;<NEW_LINE>int count = 100;<NEW_LINE>int interval = 10000;<NEW_LINE>String path = ".";<NEW_LINE>Node ...
list = getNodeList(jmxNode, "path");
1,207,742
private JPanel build(String messageText, Icon icon, String initialValue) {<NEW_LINE>JPanel dataPanel = new JPanel(new BorderLayout());<NEW_LINE>inputTextArea = new JTextArea(10, 50);<NEW_LINE>DockingUtils.installUndoRedo(inputTextArea);<NEW_LINE>inputTextArea.addKeyListener(new KeyAdapter() {<NEW_LINE><NEW_LINE>@Overri...
GLabel("(" + metaKeyText + "-Enter to accept)");
958,618
private Image annotateFolderIcon(VCSContext context, Image icon) {<NEW_LINE>boolean isVersioned = false;<NEW_LINE>for (Iterator i = context.getRootFiles().iterator(); i.hasNext(); ) {<NEW_LINE>File file = (File) i.next();<NEW_LINE>FileInformation info = cache.markAsSeenInUI(file);<NEW_LINE>if (info != null && (info.get...
icon, badge, 16, 9);
1,257,828
@Decompress<NEW_LINE>@Path("batch")<NEW_LINE>@Status(Status.CREATED)<NEW_LINE>@Consumes(APPLICATION_JSON)<NEW_LINE>@Produces(APPLICATION_JSON_WITH_CHARSET)<NEW_LINE>@RolesAllowed({ "admin", "$owner=$graph $action=edge_write" })<NEW_LINE>public String create(@Context HugeConfig config, @Context GraphManager manager, @Pa...
jsonEdge.target, jsonEdge.targetLabel);
1,557,121
static RealVector makeValues(PreferenceDomain domain) {<NEW_LINE>if (!domain.hasPrecision()) {<NEW_LINE>throw new IllegalArgumentException("domain is not discrete");<NEW_LINE>}<NEW_LINE>final double min = domain.getMinimum();<NEW_LINE>final double max = domain.getMaximum();<NEW_LINE>final double prec = domain.getPrecis...
= min + (prec * i);
1,815,286
// Stolen from org.openide.util.Utilities:<NEW_LINE>private static <T> List<T> topologicalSort(Collection<T> c, Map<? super T, ? extends Collection<? extends T>> edges) throws TopologicalSortException {<NEW_LINE>Map<T, Boolean> finished = new HashMap<>();<NEW_LINE>List<T> r = new ArrayList<>(Math.max(c.size(), 1));<NEW...
"Cycle detected: " + cycle.toString());
893,138
protected void renderItemStack(T te, @Nonnull World world, double x, double y, double z, float tick) {<NEW_LINE>EntityItem ei = this.enityItem;<NEW_LINE>if (ei == null) {<NEW_LINE>this.enityItem = ei = new EntityItem(world, 0, 0, 0, getFloatingItem(te));<NEW_LINE>}<NEW_LINE>ei.setItem(getFloatingItem(te));<NEW_LINE>ei....
BlockPos(0, 0, 0);
1,741,645
public Node rewriteCastExpression(CastExpression castExpression) {<NEW_LINE><MASK><NEW_LINE>TypeDescriptor fromType = fromExpression.getTypeDescriptor();<NEW_LINE>TypeDescriptor toType = castExpression.getTypeDescriptor();<NEW_LINE>if (!isBasicType(toType) || !isBasicType(fromType)) {<NEW_LINE>return castExpression;<NE...
Expression fromExpression = castExpression.getExpression();
1,468,386
public static FileInfo parseFilename(String filename) throws ParseException {<NEW_LINE>if (filename == null) {<NEW_LINE>throw new ParseException("The filename must not be null", 0);<NEW_LINE>}<NEW_LINE>final String ext = ".json";<NEW_LINE>if (!filename.endsWith(ext)) {<NEW_LINE>throwBadFormat(filename);<NEW_LINE>}<NEW_...
parts = filename.split(delim);
106,405
private void project4(double[] output) {<NEW_LINE>int observationIndex = 0;<NEW_LINE>for (int viewIndex = 0; viewIndex < structure.views.size; viewIndex++) {<NEW_LINE>SceneStructureMetric.View view = structure.views.get(viewIndex);<NEW_LINE>SceneStructureCommon.Camera camera = structure.cameras.get(view.camera);<NEW_LI...
observations.viewsRigid.get(viewIndex);
1,042,248
private State createStateForType(PlugwiseCommandType ctype, Object value) throws BindingConfigParseException {<NEW_LINE>Class<? extends Type> typeClass = ctype.getTypeClass();<NEW_LINE>// the logic below covers all possible command types and value types<NEW_LINE>if (typeClass == DecimalType.class && value instanceof Fl...
new DateTimeType((Calendar) value);
1,778,421
final DescribeUserPoolResult executeDescribeUserPool(DescribeUserPoolRequest describeUserPoolRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeUserPoolRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
endClientExecution(awsRequestMetrics, request, response);
58,549
public static ListDDLPublishRecordsResponse unmarshall(ListDDLPublishRecordsResponse listDDLPublishRecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDDLPublishRecordsResponse.setRequestId(_ctx.stringValue("ListDDLPublishRecordsResponse.RequestId"));<NEW_LINE>listDDLPublishRecordsResponse.setSuccess(_ctx.boolean...
("ListDDLPublishRecordsResponse.DDLPublishRecordList[" + i + "].AuditStatus"));
885,141
public void stretchDIBits(int dx, int dy, int dw, int dh, int sx, int sy, int sw, int sh, byte[] image, int usage, long rop) {<NEW_LINE>byte[] record = new byte[26 + (image.length + image.length % 2)];<NEW_LINE>int pos = 0;<NEW_LINE>pos = setUint32(record, pos, record.length / 2);<NEW_LINE>pos = setUint16(record, pos, ...
setInt16(record, pos, dy);
285,751
public static List<Integer> parsePagesOption(String pagesSpec) throws ParseException {<NEW_LINE>if (pagesSpec.equals("all")) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<Integer> rv = new ArrayList<>();<NEW_LINE>String[] ranges = pagesSpec.split(",");<NEW_LINE>for (int i = 0; i < ranges.length; i++) {<NEW_LINE>Stri...
(t, f + 1));
415,424
private String buildRouterInfo(String ip, String domain, RouterConfig config) {<NEW_LINE>String group = m_configManager.queryServerGroupByIp(ip);<NEW_LINE>Domain domainConfig = m_configManager.getRouterConfig().findDomain(domain);<NEW_LINE>List<Server> servers = new ArrayList<Server>();<NEW_LINE>if (domainConfigNotExis...
m_configManager.queryServersByDomain(group, domain);
1,344,213
public Object _reflectiveCall(String className, Object instance, String methodName, ModuleLog L, Object... args) {<NEW_LINE>try {<NEW_LINE>L.d("cls " + className + ", inst " + instance);<NEW_LINE>className = className == null && instance != null ? instance.getClass().getName() : className;<NEW_LINE>Class<?> cls = insta...
methodName + " of " + className, t);
1,333,267
public static TaobaoFilmGetSchedulesResponse unmarshall(TaobaoFilmGetSchedulesResponse taobaoFilmGetSchedulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>taobaoFilmGetSchedulesResponse.setRequestId<MASK><NEW_LINE>taobaoFilmGetSchedulesResponse.setErrorCode(_ctx.stringValue("TaobaoFilmGetSchedulesResponse.ErrorCode"))...
(_ctx.stringValue("TaobaoFilmGetSchedulesResponse.RequestId"));
1,797,892
public void addHeader(Header header, boolean top) throws IllegalArgumentException {<NEW_LINE>if (header == null) {<NEW_LINE>throw new IllegalArgumentException("Message: Null Header");<NEW_LINE>}<NEW_LINE>if (!(header instanceof HeaderImpl)) {<NEW_LINE>throw new IllegalArgumentException("Message: header must" + " be fro...
l = bottomHeader(headerName, direct);
454,355
// ---------//<NEW_LINE>// onEvent //<NEW_LINE>// ---------//<NEW_LINE>@Override<NEW_LINE>public void onEvent(UserEvent event) {<NEW_LINE>try {<NEW_LINE>// Ignore RELEASING<NEW_LINE>if (event.movement == MouseMovement.RELEASING) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (event instanceof LocationEvent) {<NEW_LINE>// Lo...
) + " onEvent error " + ex, ex);
1,608,253
public void evaluateCodeSnippet(String codeSnippet, String[] localVariableTypeNames, String[] localVariableNames, int[] localVariableModifiers, IType declaringType, boolean isStatic, boolean isConstructorCall, ICodeSnippetRequestor requestor, IProgressMonitor progressMonitor) throws org.eclipse.jdt.core.JavaModelExcept...
this.context.setImports(imports);
1,204,278
public com.amazonaws.services.codedeploy.model.ThrottlingException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codedeploy.model.ThrottlingException throttlingException = new com.amazonaws.services.codedeploy.model.ThrottlingException(null);<NEW_LINE><MASK><N...
int originalDepth = context.getCurrentDepth();
1,654,033
public static DeploymentState aggregateState(Set<DeploymentState> states) {<NEW_LINE>if (states.size() == 1) {<NEW_LINE>DeploymentState state = states.iterator().next();<NEW_LINE>logger.debug("aggregateState: Deployment State Set Size = 1. Deployment State " + state);<NEW_LINE>// a stream which is known to the stream ...
debug("aggregateState: Returning " + DeploymentState.deploying);