idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
575,455
protected <T> T retryIfEnabled(String locator, Supplier<T> action) {<NEW_LINE>if (options.isRetryEnabled()) {<NEW_LINE>// will throw exception if not found<NEW_LINE>waitFor(locator);<NEW_LINE>}<NEW_LINE>if (options.highlight) {<NEW_LINE>highlight(locator, options.highlightDuration);<NEW_LINE>}<NEW_LINE>String before = ...
T result = action.get();
1,051,962
private void verifySchema(ODatabase<?> odb) {<NEW_LINE>try {<NEW_LINE>System.out.println("calling existsClass odb = " + odb);<NEW_LINE>if (!odb.getMetadata().getSchema().existsClass(oldapUserClass)) {<NEW_LINE><MASK><NEW_LINE>OClass ldapUser = odb.getMetadata().getSchema().createClass(oldapUserClass);<NEW_LINE>System.o...
System.out.println("calling createClass");
986,521
public static CompletableFuture<Response> invoke(Invocation invocation) {<NEW_LINE>Supplier<CompletionStage<Response>> next = invokeImpl(invocation);<NEW_LINE>DecorateCompletionStage<Response> dcs = Decorators.ofCompletionStage(next);<NEW_LINE>GovernanceRequest request = MatchType.createGovHttpRequest(invocation);<NEW_...
), invocation.getTraceId());
779,890
public void process(SceneStructureMetric scene, StereoPairGraph pairs) {<NEW_LINE>initializeListener();<NEW_LINE>// Go through each view and compute score for use as a common / "left" stereo image<NEW_LINE>initializeScores(scene, pairs);<NEW_LINE>scoreViewsSelectStereoPairs(scene);<NEW_LINE>// Initialize data structure...
listCenters.size() - 1);
1,212,118
public static J9Line parseLine(String line) {<NEW_LINE>J9Line result = new J9Line();<NEW_LINE>int closeParentheses = line.indexOf(')');<NEW_LINE>if (closeParentheses != -1) {<NEW_LINE>int openParentheses = line.indexOf('(');<NEW_LINE>if (openParentheses != -1 && openParentheses < closeParentheses) {<NEW_LINE>String tem...
substring(openParentheses + 1, closeParentheses);
1,150,295
public void run(FlowTrigger trigger, Map data) {<NEW_LINE>UpdateHostOSCmd cmd = new UpdateHostOSCmd();<NEW_LINE>cmd.hostUuid = self.getUuid();<NEW_LINE>cmd.excludePackages = msg.getExcludePackages();<NEW_LINE>cmd.updatePackages = msg.getUpdatePackages();<NEW_LINE>cmd<MASK><NEW_LINE>cmd.enableExpRepo = msg.isEnableExper...
.releaseVersion = msg.getReleaseVersion();
1,130,627
public static int wrapPosition(@NonNull AdapterPath path, @Nullable RecyclerView.Adapter originAdapter, @Nullable RecyclerView.Adapter targetAdapter, int position) {<NEW_LINE>final List<AdapterPathSegment<MASK><NEW_LINE>final int nSegments = segments.size();<NEW_LINE>int originSegmentIndex = (originAdapter == null) ? n...
> segments = path.segments();
581,516
public LaunchTemplateAndOverridesResponse unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>LaunchTemplateAndOverridesResponse launchTemplateAndOverridesResponse = new LaunchTemplateAndOverridesResponse();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalD...
().unmarshall(context));
1,277,742
public static Collection<ColumnMetaData> load(final Connection connection, final String tableNamePattern, final DatabaseType databaseType) throws SQLException {<NEW_LINE>Collection<ColumnMetaData> <MASK><NEW_LINE>Collection<String> primaryKeys = loadPrimaryKeys(connection, tableNamePattern);<NEW_LINE>List<String> colum...
result = new LinkedList<>();
259,419
public ListChannelsModeratedByAppInstanceUserResult listChannelsModeratedByAppInstanceUser(ListChannelsModeratedByAppInstanceUserRequest listChannelsModeratedByAppInstanceUserRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listChannelsM...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,303,567
protected boolean validate(final String uri) {<NEW_LINE>if (uri.indexOf("://") != -1) {<NEW_LINE>final Protocol protocol = factory.forName(uri.substring(0, uri.indexOf("://")));<NEW_LINE>if (null == protocol) {<NEW_LINE>console.printf("Unknown protocol in URI %s%n", uri);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>}<NE...
console.printf("Missing hostname in URI %s%n", uri);
294,275
public static Parameter createInstance(AnnotationModel annotation, ApiContext context) {<NEW_LINE>ParameterImpl from = new ParameterImpl();<NEW_LINE>from.setName(annotation.getValue("name", String.class));<NEW_LINE>EnumModel inEnum = annotation.getValue("in", EnumModel.class);<NEW_LINE>if (inEnum != null) {<NEW_LINE>fr...
getValue("style", EnumModel.class);
1,111,745
private final void check(boolean close) throws IOException {<NEW_LINE>if (!pending) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>depth++;<NEW_LINE>pending = false;<NEW_LINE>if (indent.length <= depth) {<NEW_LINE>boolean[] hlp = new boolean[depth + 4];<NEW_LINE>System.arraycopy(indent, 0, hlp, 0, depth);<NEW_LINE>indent = hlp...
* 2 + 1], '"');
856,576
public SignRequest createSignRequest(String method, IpPort ipPort, RequestParam requestParam, String url, Map<String, String> headers) {<NEW_LINE>SignRequest signReq = new SignRequest();<NEW_LINE>StringBuilder endpoint = new StringBuilder("https://" + ipPort.getHostOrIp());<NEW_LINE>endpoint.append(":").append(ipPort.g...
setQueryParams(requestParam.getQueryParamsMap());
1,419,617
private // TODO move to ReflectionUtil, and move that to unexported pkg<NEW_LINE>void exportBuilderConfig(Writer writer) throws ReflectiveOperationException, SecurityException, IllegalArgumentException, IOException {<NEW_LINE>for (Class<?> intf : getClass().getInterfaces()) {<NEW_LINE>if (ConfigInstance.Producer.class....
builderClass = Class.forName(builderClassName);
4,350
protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterfaceDeclaration nodeCoid) {<NEW_LINE>if (nodeMetaModel.is(Node.class)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ConstructorDeclaration constructor = new ConstructorDeclaration().setPublic(true).setName(nodeCoid.getNameAsStrin...
, parameter.getName()));
796,555
public static DescribeJoinRuleListResponse unmarshall(DescribeJoinRuleListResponse describeJoinRuleListResponse, UnmarshallerContext context) {<NEW_LINE>describeJoinRuleListResponse.setRequestId(context.stringValue("DescribeJoinRuleListResponse.RequestId"));<NEW_LINE>PageInfo pageInfo = new PageInfo();<NEW_LINE>pageInf...
("DescribeJoinRuleListResponse.JoinRuleList[" + i + "].RuleId"));
1,481,641
static RequestContext readRequestContext(HttpServletRequest req) {<NEW_LINE>RequestContext context = new RequestContext();<NEW_LINE>context.putLocalAttr(R2Constants.REMOTE_ADDR, req.getRemoteAddr());<NEW_LINE>context.putLocalAttr(R2Constants.REMOTE_PORT, req.getRemotePort());<NEW_LINE>HttpProtocolVersion protocol = Htt...
putLocalAttr(R2Constants.HTTP_PROTOCOL_VERSION, protocol);
1,586,318
// --- Implement IUpdatableModule: ---<NEW_LINE>@Override<NEW_LINE>public void addReads(char[] requiredModuleName) {<NEW_LINE>ModuleBinding requiredModule = this.environment.getModule(requiredModuleName);<NEW_LINE>if (requiredModule != null) {<NEW_LINE>int len = this.requires.length;<NEW_LINE>if (len == 0) {<NEW_LINE>...
HashtableOfPackage knownPackages = this.environment.knownPackages;
723,190
public void initializeComponent(RADComponent metaComp) {<NEW_LINE>metaComp.setAuxValue(RADComponent.AUX_VALUE_CLASS_DETAILS, initializerId);<NEW_LINE>if ("Box.Filler.Glue".equals(initializerId)) {<NEW_LINE>// NOI18N<NEW_LINE>// NOI18N<NEW_LINE>setProperty(metaComp, "maximumSize", new Dimension(Short.MAX_VALUE, Short.MA...
new Dimension(0, height));
1,551,020
private Path extractPackedFile(JarFileResource configResource) throws IOException {<NEW_LINE>String uri = configResource.getURI().toASCIIString();<NEW_LINE>int colon = uri.lastIndexOf(":");<NEW_LINE>int bangSlash = uri.indexOf("!/");<NEW_LINE>if (colon < 0 || bangSlash < 0 || colon > bangSlash)<NEW_LINE>throw new Illeg...
.toFile().deleteOnExit();
1,684,475
public void validate(JobParameters theJobParameters) throws JobParametersInvalidException {<NEW_LINE>if (theJobParameters == null) {<NEW_LINE>throw new JobParametersInvalidException(Msg.code(793) + "This job needs Parameters: [readChunkSize], [jobUUID], [filters], [outputFormat], [resourceTypes]");<NEW_LINE>}<NEW_LINE>...
boolean hasExistingJob = oJob.isPresent();
1,235,690
private void loadNode435() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupFolderType_AdditionalGroup_Placeholder_TrustList_Read_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), Localized...
String xml = sb.toString();
1,044,124
public DirContext obtainDirContext(CallbackHandler handler, ReferralMode mode) throws NamingException {<NEW_LINE>NameCallback nameCallback = new NameCallback("Principal Name");<NEW_LINE>PasswordCallback passwordCallback = new PasswordCallback("Password", false);<NEW_LINE>try {<NEW_LINE>handler.handle(new Callback[] { n...
] securityCredential = passwordCallback.getPassword();
571,345
public static Collection<VirtualFile> findMetadataForRepositoryClass(@NotNull final Project project, @NotNull String repositoryClass) {<NEW_LINE>Map<String, Collection<String>> cache = CachedValuesManager.getManager(project).getCachedValue(project, DOCTRINE_REPOSITORY_CACHE, () -> {<NEW_LINE>Map<String, Collection<Stri...
StringUtils.stripStart(repositoryClass, "\\");
1,626,476
protected void writeAdditionalSourceInfo(ResultSourceInfo source, XMLStreamWriter writer) throws XMLStreamException {<NEW_LINE>super.writeAdditionalSourceInfo(source, writer);<NEW_LINE>// Write out the category to which this source belongs<NEW_LINE>if (source.getDefinition() != null && source.getDefinition() instanceof...
XmlConstants.Attributes.userCategory, customCat);
269,414
public void localize(HistoricTaskInstance task, String locale, boolean withLocalizationFallback) {<NEW_LINE>HistoricTaskInstanceEntity taskEntity = (HistoricTaskInstanceEntity) task;<NEW_LINE>taskEntity.setLocalizedName(null);<NEW_LINE>taskEntity.setLocalizedDescription(null);<NEW_LINE>if (locale != null) {<NEW_LINE>St...
getTaskDefinitionKey(), processDefinitionId, withLocalizationFallback);
569,871
public void onPlayerInteract(PlayerInteractEvent event) {<NEW_LINE>if (!plugin.getInternalPlatform().isHookingEvents()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (event.useItemInHand() == Result.DENY) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (event.getHand() == EquipmentSlot.OFF_HAND) {<NEW_LINE>return;<NEW_LINE>}<NEW...
Block clickedBlock = event.getClickedBlock();
784,700
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource");
1,165,944
public OSSAsyncTask<RestoreObjectResult> restoreObject(RestoreObjectRequest request, OSSCompletedCallback<RestoreObjectRequest, RestoreObjectResult> completedCallback) {<NEW_LINE>RequestMessage requestMessage = new RequestMessage();<NEW_LINE>Map<String, String> query = new LinkedHashMap<String, String>();<NEW_LINE>quer...
setBucketName(request.getBucketName());
236,231
final DeleteReplicationConfigurationTemplateResult executeDeleteReplicationConfigurationTemplate(DeleteReplicationConfigurationTemplateRequest deleteReplicationConfigurationTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteReplicationConfigurationTemplateRequest);<NEW_LINE>AWS...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,197,763
private void docTypeBuild(NewDocumentType documentType, DocumenttypesConfig.Builder builder, IdxMap indexMap) {<NEW_LINE>DocumenttypesConfig.Doctype.Builder db = <MASK><NEW_LINE>db.idx(indexMap.idxOf(documentType)).name(documentType.getName()).internalid(documentType.getId()).contentstruct(indexMap.idxOf(documentType.g...
new DocumenttypesConfig.Doctype.Builder();
385,596
private void printHeader() throws IOException {<NEW_LINE>int kKeySize = 16;<NEW_LINE>printEnvironment();<NEW_LINE>System.out.printf("Keys: %d bytes each\n", kKeySize);<NEW_LINE>System.out.printf("Values: %d bytes each (%d bytes after compression)\n", valueSize, (int) (valueSize * compressionRatio + 0.5));<NEW...
valueSize) * num) / 1048576.0);
772,059
public AwsVpcConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsVpcConfiguration awsVpcConfiguration = new AwsVpcConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
JsonToken token = context.getCurrentToken();
790,868
protected Object doInBackground(Void... params) {<NEW_LINE>if (debuggable > 0) {<NEW_LINE>Log.v(TAG, "doInBackground - starting work: " + imageViewReference.get() + ", on: " + mUri);<NEW_LINE>}<NEW_LINE>Object bitmap = null;<NEW_LINE>// Wait here if work is paused and the task is not cancelled<NEW_LINE>synchronized (mP...
get() + ", src: " + mCacheUri);
1,819,205
public EsHadoopException extractError(Map jsonMap) {<NEW_LINE>Object err = jsonMap.get("error");<NEW_LINE>EsHadoopException error = null;<NEW_LINE>if (err != null) {<NEW_LINE>// part of ES 2.0<NEW_LINE>if (err instanceof Map) {<NEW_LINE>Map m = ((Map) err);<NEW_LINE>err = m.get("root_cause");<NEW_LINE>if (err == null) ...
EsHadoopRemoteException(nested.toString());
200,973
public static PeerScoringInformation buildByScoring(PeerScoring scoring, String id, String type) {<NEW_LINE>int successfulHandshakes = scoring.getEventCounter(EventType.SUCCESSFUL_HANDSHAKE);<NEW_LINE>int failedHandshakes = scoring.getEventCounter(EventType.FAILED_HANDSHAKE);<NEW_LINE>int invalidNetworks = scoring.getE...
int score = scoring.getScore();
804,891
private void mergeReservoirInto(final ReservoirItemsSketch<T> reservoir) {<NEW_LINE>final <MASK><NEW_LINE>if (reservoirN == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>n_ += reservoirN;<NEW_LINE>final int reservoirK = reservoir.getK();<NEW_LINE>if (reservoir.getN() <= reservoirK) {<NEW_LINE>// exact mode, so just insert ...
long reservoirN = reservoir.getN();
465,065
private AttackResult credentialsLoginFlow(String username, String password, HttpServletResponse response) {<NEW_LINE>String lowerCasedUsername = username.toLowerCase();<NEW_LINE>if (ATTACK_USERNAME.equals(lowerCasedUsername) && users.get(lowerCasedUsername).equals(password)) {<NEW_LINE>return informationMessage(this).f...
newCookieValue = EncDec.encode(lowerCasedUsername);
1,618,634
private HttpMessage prepareHttpMessage() throws HttpMalformedHeaderException, DatabaseException {<NEW_LINE>// Build fetch the request message from the database<NEW_LINE>HttpMessage msg;<NEW_LINE>try {<NEW_LINE>msg = reference.getHttpMessage();<NEW_LINE>// HistoryReference is about to be deleted, so no point keeping ref...
setRequestingUser(parent.getScanUser());
828,889
// entry point async trace.<NEW_LINE>@InterfaceAudience.LimitedPrivate("vert.x")<NEW_LINE>@Override<NEW_LINE>public Trace continueAsyncTraceObject(final TraceId traceId) {<NEW_LINE>final TraceSampler.State state = traceSampler.isContinueSampled();<NEW_LINE>final boolean sampling = state.isSampled();<NEW_LINE>if (sampli...
recorderFactory.newWrappedSpanEventRecorder(traceRoot, asyncState);
875,239
public void ready() throws Pausable {<NEW_LINE>if (!this.result_ok) {<NEW_LINE>reply_posix_error(posix_errno);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int RESULT_SIZE = (1 + (17 * 4));<NEW_LINE>ByteBuffer <MASK><NEW_LINE>res.order(ByteOrder.BIG_ENDIAN);<NEW_LINE>res.put(FILE_RESP_INFO);<NEW_LINE>res.putLong(file_siz...
res = ByteBuffer.allocate(RESULT_SIZE);
1,293,779
public static RexNode swapTableColumnReferences(final RexBuilder rexBuilder, final RexNode node, final Map<RelTableRef, RelTableRef> tableMapping, final Map<RexTableInputRef, Set<RexTableInputRef>> ec) {<NEW_LINE>RexShuttle visitor = new RexShuttle() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public RexNode visitTableInpu...
), inputRef.getType());
87,045
public ANode visitLambda(LambdaContext ctx) {<NEW_LINE>reserved.push(new FunctionReserved());<NEW_LINE>List<String> <MASK><NEW_LINE>List<String> paramNames = new ArrayList<>();<NEW_LINE>List<AStatement> statements = new ArrayList<>();<NEW_LINE>for (LamtypeContext lamtype : ctx.lamtype()) {<NEW_LINE>if (lamtype.decltype...
paramTypes = new ArrayList<>();
483,462
public static void openUrlByUsingBlogCredentials(Context context, SiteModel site, PostImmutableModel post, String url, String[] listOfAllowedURLs, boolean disableLinks, boolean allowPreviewModeSelection, boolean startPreviewForResult) {<NEW_LINE>if (context == null) {<NEW_LINE>AppLog.e(AppLog.T.UTILS, "Context is null"...
LOCAL_BLOG_ID, site.getId());
734,356
public void flatMap2(Tuple4<Timestamp, Integer, Integer, Long> value, Collector<byte[]> out) throws Exception {<NEW_LINE>List<Tuple3<Integer, Integer, Long>> local = new ArrayList<>();<NEW_LINE>local.add(Tuple3.of(value.f1, value.f2, value.f3));<NEW_LINE>for (Tuple3<Integer, Integer, Long> t : total.get()) {<NEW_LINE>l...
filesId.add(t.f0);
1,847,407
private <T> RedisCommand<K, V, T> preProcessCommand(RedisCommand<K, V, T> command) {<NEW_LINE>RedisCommand<K, V, T> local = command;<NEW_LINE>if (local.getType().name().equals(AUTH.name())) {<NEW_LINE>local = attachOnComplete(local, status -> {<NEW_LINE>if (status.equals("OK")) {<NEW_LINE>List<char[]> args = CommandArg...
getCharArrayArguments(command.getArgs());
806,123
public void populateGroups(Set<Group> groups, Set<Project> projects) {<NEW_LINE>if (projects == null || groups == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// clear the groups first if they had something in them<NEW_LINE>for (Group group : groups) {<NEW_LINE>group.getRepositories().clear();<NEW_LINE>group.getProject...
.getGroups().clear();
1,150,332
private <E extends Member & AnnotatedElement> void registerMetrics(Class<?> bean, E element) {<NEW_LINE>MetricResolver.Of<Counted> counted = resolver.counted(bean, element);<NEW_LINE>if (counted.isPresent()) {<NEW_LINE>registry.counter(counted.metadata());<NEW_LINE>extension.addMetricName(element, counted.metricAnnotat...
metadata().getName());
791,675
public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) {<NEW_LINE>String method = owner + "#" + name;<NEW_LINE>if (interfaceLambdaMethods.contains(method)) {<NEW_LINE>// Rewrite invocations of lambda methods in interfaces to anticipate the lambda method being<NEW_LINE>// moved into...
Opcodes.INVOKESTATIC, "Cannot move instance method %s", method);
1,023,230
public synchronized void scanResources(TreeLogger logger) {<NEW_LINE>Event resourceOracle = SpeedTracerLogger.start(CompilerEventType.RESOURCE_ORACLE, "phase", "refresh");<NEW_LINE>TreeLogger refreshBranch = Messages.REFRESHING_RESOURCES.branch(logger, null);<NEW_LINE>Map<String, ResourceDescription> resourceDescriptio...
unmodifiableSet(resourcesByPath.keySet());
813,143
public boolean isEqual(final Long firstNode, final Long secondNode) {<NEW_LINE>assert firstNode != null;<NEW_LINE>assert secondNode != null;<NEW_LINE>mOldRtx.moveTo(firstNode);<NEW_LINE>mNewRtx.moveTo(secondNode);<NEW_LINE>assert mOldRtx.getKind() == mNewRtx.getKind();<NEW_LINE>boolean retVal = false;<NEW_LINE>if (mIdN...
, mDescendantsNewRev.get(secondNode));
1,708,679
public boolean eIsSet(int featureID) {<NEW_LINE>switch(featureID) {<NEW_LINE>case ModelPackage.LOAD_CELL_WEIGHT__LOGGER:<NEW_LINE>return LOGGER_EDEFAULT == null ? logger != null : !LOGGER_EDEFAULT.equals(logger);<NEW_LINE>case ModelPackage.LOAD_CELL_WEIGHT__UID:<NEW_LINE>return UID_EDEFAULT == null ? uid != null : !UID...
: !DEVICE_TYPE_EDEFAULT.equals(deviceType);
560,215
@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>public Response updateAccessToken(@PathParam("name") String name, OAuthTokenContainer tokens) {<NEW_LINE>try {<NEW_LINE>if (storage.getPlugin(name).getConfig() instanceof AbstractSecuredStoragePluginConfig) {<NEW_LINE>Drillbit...
setAccessToken(tokens.getAccessToken());
890,954
public void memcpySpecial(DataBuffer dstBuffer, Pointer srcPointer, long length, long dstOffset) {<NEW_LINE>CudaContext context = getCudaContext();<NEW_LINE>AllocationPoint point = ((<MASK><NEW_LINE>Pointer dP = new CudaPointer((point.getHostPointer().address()) + dstOffset);<NEW_LINE>val profH = PerformanceTracker.get...
BaseCudaDataBuffer) dstBuffer).getAllocationPoint();
1,313,605
public static SusiThought readRSS(String url) {<NEW_LINE>SyndFeedInput input = new SyndFeedInput();<NEW_LINE>SyndFeed feed = null;<NEW_LINE>try {<NEW_LINE>ClientConnection connection = new ClientConnection(url);<NEW_LINE>XmlReader xmlreader = new XmlReader(connection.inputStream);<NEW_LINE>feed = input.build(xmlreader)...
jsonArray.put(i, jsonObject);
1,691,682
public void updateClob(int i, Reader x, long length) throws SQLException {<NEW_LINE>try {<NEW_LINE>rsetImpl.updateClob(i, x, length);<NEW_LINE>} catch (SQLException sqlX) {<NEW_LINE>FFDCFilter.processException(sqlX, getClass().getName() + ".updateClob", "3828", this);<NEW_LINE>throw WSJdbcUtil.mapException(this, sqlX);...
AdapterUtil.notSupportedX("ResultSet.updateClob", methError);
1,619,496
/*<NEW_LINE>public void paint(Graphics g){<NEW_LINE>Graphics2D g2d = (Graphics2D)g;<NEW_LINE>super.paint(g);<NEW_LINE><NEW_LINE>g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);<NEW_LINE>drawRayPolygon(g, current, target.getRect());<NEW_LINE>}<NEW_LINE>*/<NEW_LINE>public void dra...
flagShape.moveTo(m, n);
1,554,504
public void after(Object target, Object[] args, Object result, Throwable throwable) {<NEW_LINE>if (isDebug) {<NEW_LINE>logger.afterInterceptor(target, args, result, throwable);<NEW_LINE>}<NEW_LINE>final AsyncContext asyncContext = getAsyncContext(target, args, result, throwable);<NEW_LINE>if (asyncContext == null) {<NE...
SpanEventRecorder recorder = trace.currentSpanEventRecorder();
1,419,347
public void messagingServerNotifications() {<NEW_LINE>Predicate<NetworkEvent> filter = NetworkEvent.filterType(EventType.MessageAdded, EventType.MessageRemoved);<NEW_LINE>Disposable d = ChatSDK.events().source().filter(filter).subscribe(networkEvent -> {<NEW_LINE>// Handle Event Here<NEW_LINE>if (networkEvent.getMessag...
data.get(HookEvent.Message);
711,564
private void addMeta(SessionLocal session, DbObject obj) {<NEW_LINE>assert Thread.holdsLock(this);<NEW_LINE>int id = obj.getId();<NEW_LINE>if (id > 0 && !obj.isTemporary()) {<NEW_LINE>if (!isReadOnly()) {<NEW_LINE>Row r = meta.getTemplateRow();<NEW_LINE>MetaRecord.populateRowFromDBObject(obj, r);<NEW_LINE>assert object...
() == obj.getType();
1,241,116
final CreateDirectoryResult executeCreateDirectory(CreateDirectoryRequest createDirectoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDirectoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<Create...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,534,106
private void prepareIndexOnClusteredTable(boolean onGsi) {<NEW_LINE>final SchemaManager sm = OptimizerContext.<MASK><NEW_LINE>final GsiMetaBean gsiMetaBean = sm.getGsi(tableName, IndexStatus.ALL);<NEW_LINE>if (gsiMetaBean.withGsi(tableName)) {<NEW_LINE>// Local indexes on clustered GSIs.<NEW_LINE>final GsiTableMetaBean...
getContext(schemaName).getLatestSchemaManager();
1,317,328
public static DescribeCertificateResponse unmarshall(DescribeCertificateResponse describeCertificateResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCertificateResponse.setRequestId(_ctx.stringValue("DescribeCertificateResponse.RequestId"));<NEW_LINE>describeCertificateResponse.setCertificateId(_ctx.stringValue("...
(_ctx.stringValue("DescribeCertificateResponse.KeySpec"));
477,490
private static P createFillerP() {<NEW_LINE>org.docx4j.wml.ObjectFactory wmlObjectFactory = Context.getWmlObjectFactory();<NEW_LINE><MASK><NEW_LINE>// Create object for pPr<NEW_LINE>PPr ppr = wmlObjectFactory.createPPr();<NEW_LINE>p.setPPr(ppr);<NEW_LINE>// Create object for rPr<NEW_LINE>ParaRPr pararpr = wmlObjectFact...
P p = wmlObjectFactory.createP();
1,431,362
public RealtimeEndpointInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RealtimeEndpointInfo realtimeEndpointInfo = new RealtimeEndpointInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
class).unmarshall(context));
1,291,547
static public double HYCON(int p_A_ASSET_ID, String p_POSTINGTYPE, int p_A_ASSET_ACCT_ID, int p_Flag, double p_Period) {<NEW_LINE>int v_adj = 0;<NEW_LINE>StringBuffer sqlB = new StringBuffer("SELECT A_ASSET.ASSETSERVICEDATE, A_DEPRECIATION_WORKFILE.A_PERIOD_POSTED," + " A_DEPRECIATION_WORKFILE.A_ASSET_LIFE_YEARS, A_DEP...
out.println("HYCON" + e);
736,537
public static int hash(Object... values) {<NEW_LINE>if (values == null || values.length == 0) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>int result = 0;<NEW_LINE>for (Object v : values) {<NEW_LINE>if (v == null) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>if (v instanceof Number) {<NEW_LINE>result += v.hashCode();<NEW_LINE>...
.get(v, i));
23,984
public static void main(String[] args) throws InstantiationException, IllegalAccessException {<NEW_LINE>Scanner in = new Scanner(System.in);<NEW_LINE>System.out.println("Run algorithm:");<NEW_LINE>System.out.println("1 - Simulated Annealing");<NEW_LINE>System.out.println("2 - Simple Genetic Algorithm");<NEW_LINE>System...
System.out.println("Unknown option");
1,353,135
void query(JobManagerThread jobManagerThread, ConsumerManager consumerManager) {<NEW_LINE>running = consumerManager.markJobsCancelled(tagConstraint, tags);<NEW_LINE>Constraint queryConstraint = jobManagerThread.queryConstraint;<NEW_LINE>queryConstraint.clear();<NEW_LINE>queryConstraint.setNowInNs(jobManagerThread.timer...
jobManagerThread.persistentJobQueue.onJobCancelled(persistent);
1,307,862
private void processUpdateWithNameChange(final String pid, final ApplicationConfig newAppConfig, final NamedApplication appFromPid) {<NEW_LINE>final String oldAppName = appFromPid.getAppName();<NEW_LINE>ApplicationConfig oldAppConfig = appFromPid.getConfig();<NEW_LINE>if (oldAppConfig == null) {<NEW_LINE>// hmmm, our p...
pid + ", oldAppName=" + oldAppName + ": unable to find old app config");
1,153,456
public static Object extractDorisLiteral(Expr expr) {<NEW_LINE>if (!expr.isLiteral()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (expr instanceof BoolLiteral) {<NEW_LINE>BoolLiteral boolLiteral = (BoolLiteral) expr;<NEW_LINE>return boolLiteral.getValue();<NEW_LINE>} else if (expr instanceof DateLiteral) {<NEW_LINE>...
append(dateLiteral.getSecond());
1,229,128
protected void addPackageList(Content contentTree) {<NEW_LINE>Content caption = contents.getContent("doclet.ClassUse_Packages.that.use.0", getPackageLink(packageElement, <MASK><NEW_LINE>Table table = new Table(configuration.htmlVersion, HtmlStyle.useSummary).setSummary(packageUseTableSummary).setCaption(caption).setHea...
utils.getPackageName(packageElement)));
573,540
public List<HintDeclaration> findActiveDefaultHints() {<NEW_LINE>List<HintDeclaration> activeDefaultHints = new ArrayList<>();<NEW_LINE>activeDefaultHints.addAll(findHints("java.lang.Object"));<NEW_LINE>Map<String, List<HintDeclaration>> proposedhints = hintLocator.getProposedhints();<NEW_LINE>for (Map.Entry<String, Li...
type.getName() + " processing since it will be processed on AOT side");
1,475,442
// @see com.biglybt.core.util.AEDiagnosticsEvidenceGenerator#generate(com.biglybt.core.util.IndentWriter)<NEW_LINE>@Override<NEW_LINE>public void generate(IndentWriter writer) {<NEW_LINE>synchronized (mapDrives) {<NEW_LINE>writer.println("DriveDetector: " + mapDrives.size() + " drives");<NEW_LINE>for (File file : mapDr...
val = driveInfo.get(key);
904,730
protected void renderTileEntity(@Nonnull TilePowerMonitor te, @Nonnull IBlockState blockState, float partialTicks, int destroyStage) {<NEW_LINE>boolean isPainted = te.getPaintSource() != null;<NEW_LINE>VertexRotationFacing xform = new VertexRotationFacing(te.getFacing());<NEW_LINE>xform.setCenter(new Vector3d(0.5, 0.5,...
.getInstance().getBuffer();
1,680,828
public boolean blockLocation(Location location) {<NEW_LINE>final float inaccuracy = location.getAccuracy();<NEW_LINE>final double altitude = location.getAltitude();<NEW_LINE>final float bearing = location.getBearing();<NEW_LINE>final double latitude = location.getLatitude();<NEW_LINE>final double longitude = location.g...
w(LOG_TAG, "Bogus latitude: " + latitude);
1,675,479
private JPanel buildHeader() {<NEW_LINE>JPanel header = <MASK><NEW_LINE>JPanel leftSide = new JPanel(new BorderLayout());<NEW_LINE>JPanel rightSide = new JPanel(new BorderLayout());<NEW_LINE>pingHeader = new WorldTableHeader("Ping", orderIndex == WorldOrder.PING, ascendingOrder, plugin::refresh);<NEW_LINE>pingHeader.se...
new JPanel(new BorderLayout());
141,912
public <T> T delete(Object id, String keyspace, Class<T> type) {<NEW_LINE>byte[] binId = toBytes(id);<NEW_LINE>byte[] binKeyspace = toBytes(keyspace);<NEW_LINE>T o = get(id, keyspace, type);<NEW_LINE>if (o != null) {<NEW_LINE>byte[] keyToDelete = createKey(asString(keyspace), asString(id));<NEW_LINE>redisOps.execute((R...
getMappingContext().getPersistentEntity(type);
834,800
public static void main(String[] args) {<NEW_LINE>SusiMind mem = new SusiMind(null);<NEW_LINE>SusiMind.Layer testlayer = new SusiMind.Layer("test", FileSystems.getDefault().getPath("conf", "os_skills", "test", "en", "alarm.txt").toFile(), true);<NEW_LINE>mem.addLayer(testlayer);<NEW_LINE>try {<NEW_LINE>mem.observe();<N...
System.out.println(actions);
138,636
private void positionViews() {<NEW_LINE>LayoutParams layoutParams = (LayoutParams) getLayoutParams();<NEW_LINE>layoutParams.setMargins(0, 0, 0, 0);<NEW_LINE>setLayoutParams(layoutParams);<NEW_LINE>// FloatingWidgetView layout is forced LTR<NEW_LINE>mBackgroundView.setTranslationX(mBackgroundPosition.left);<NEW_LINE>mBa...
() / mAppWidgetBackgroundView.getWidth();
145,137
private void openRecordView(ActionRequest request, ActionResponse response, String statusKey, String modelKey, String recordkey) {<NEW_LINE>LinkedHashMap<String, Object> _map = (LinkedHashMap<String, Object>) request.getData().get("context");<NEW_LINE>String status = "";<NEW_LINE>if (statusKey != null) {<NEW_LINE>statu...
get(modelKey).toString();
212,131
private boolean canBeReplanted(BlockPos pos) {<NEW_LINE>Item <MASK><NEW_LINE>if (item == Items.WHEAT_SEEDS || item == Items.CARROT || item == Items.POTATO || item == Items.BEETROOT_SEEDS || item == Items.PUMPKIN_SEEDS || item == Items.MELON_SEEDS)<NEW_LINE>return BlockUtils.getBlock(pos.down()) instanceof FarmlandBlock...
item = plants.get(pos);
769,483
public static void vertical11(Kernel1D_F64 kernel, GrayF64 src, GrayF64 dst) {<NEW_LINE>final double[] dataSrc = src.data;<NEW_LINE>final double[] dataDst = dst.data;<NEW_LINE>final double k1 = kernel.data[0];<NEW_LINE>final double k2 = kernel.data[1];<NEW_LINE>final double k3 = kernel.data[2];<NEW_LINE>final double k4...
(dataSrc[indexSrc]) * k11;
716,256
protected void init() {<NEW_LINE>setTitle(Msg.translate(Env.getCtx(), "C_Order_ID"));<NEW_LINE>// North<NEW_LINE>parameterPanel.setLayout(new MigLayout<MASK><NEW_LINE>parameterPanel.setBorder(new TitledBorder(Msg.getMsg(ctx, QUERY)));<NEW_LINE>CLabel labelDocument = new CLabel(Msg.translate(ctx, DOCUMENTNO));<NEW_LINE>...
("fill", "", "[50][50][]"));
792,517
private static DataSet<Number[]> encode(DataSet<Tuple3<Long, Long, Double>> edges, DataSet<Row> vocab) {<NEW_LINE>return edges.coGroup(vocab).where(0).equalTo(new RowKeySelector(0)).with(new CoGroupFunction<Tuple3<Long, Long, Double>, Row, Tuple3<Long, Long, Double>>() {<NEW_LINE><NEW_LINE>private static final long ser...
] res = new Number[3];
311,909
private OverdueState refreshWithLock(final DateTime effectiveDate, final InternalCallContext context) throws OverdueException, OverdueApiException {<NEW_LINE>final BillingState billingState = billingState(context);<NEW_LINE>final BlockingState blockingStateForService = api.getBlockingStateForService(overdueable.getId()...
overdueable, currentOverdueState, nextOverdueState, context);
1,669,470
public void marshall(UpdateExperimentTemplateTargetInput updateExperimentTemplateTargetInput, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateExperimentTemplateTargetInput == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protoco...
updateExperimentTemplateTargetInput.getSelectionMode(), SELECTIONMODE_BINDING);
1,627,207
public void processOpts() {<NEW_LINE>setSrcBasePath("src");<NEW_LINE>// Preserve and process options mangled in parent class<NEW_LINE>String rootNamespace = "App";<NEW_LINE>if (additionalProperties.containsKey(CodegenConstants.INVOKER_PACKAGE)) {<NEW_LINE>rootNamespace = (String) <MASK><NEW_LINE>}<NEW_LINE>String model...
additionalProperties.get(CodegenConstants.INVOKER_PACKAGE);
815,133
public int sendMacDesktopBuild(SamplesContext context) throws IOException, InterruptedException {<NEW_LINE>syncChangesToBuildDir(context);<NEW_LINE>// ant -f /Users/shannah/cn1_files/dev/AppleMapsTest1213/build.xml -Dnb.internal.action.name=run run<NEW_LINE>List<String> cmd = new ArrayList<>();<NEW_LINE>cmd.add(context...
, "build.xml").getAbsolutePath());
1,136,972
public void marshall(Component component, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (component == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(component.getAppId(), APPID_BINDING);<NEW_LINE>protocolMa...
component.getSourceId(), SOURCEID_BINDING);
490,674
public void encodeValues(Buffer valueBuffer, List<JoinMemoryBo> joinMemoryBoList) {<NEW_LINE>if (CollectionUtils.isEmpty(joinMemoryBoList)) {<NEW_LINE>throw new IllegalArgumentException("MemoryBoList must not be empty");<NEW_LINE>}<NEW_LINE>final <MASK><NEW_LINE>valueBuffer.putVInt(numValues);<NEW_LINE>List<Long> times...
int numValues = joinMemoryBoList.size();
127,292
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>final X509Certificate certificate;<NEW_LINE>certificate = (X509Certificate) getArguments().getSerializable(VpnProfileDataSource.KEY_CERTIFICATE);<NEW_LINE>return new AlertDialog.Builder(getActivity()).setIcon(R.mipmap.ic_app).setTitle(R.string.import_ce...
Toast.LENGTH_LONG).show();
935,018
private void paintFoldingLines(final Graphics2D g, final Rectangle clip) {<NEW_LINE>boolean shown = isFoldingOutlineShown();<NEW_LINE>double x = getWhitespaceSeparatorOffset2D();<NEW_LINE>if ((shown || myEditor.isInDistractionFreeMode() && Registry.is("editor.distraction.gutter.separator")) && myPaintBackground) {<NEW_...
offsetToVisualLine(region.getEndOffset());
571,257
private void collectWorkerInfo(List<WorkerInfo> workerInfoList) {<NEW_LINE>initVariables();<NEW_LINE>for (WorkerInfo workerInfo : workerInfoList) {<NEW_LINE>long usedBytes = workerInfo.getUsedBytes();<NEW_LINE>long capacityBytes = workerInfo.getCapacityBytes();<NEW_LINE>mSumCapacityBytes += capacityBytes;<NEW_LINE>mSum...
mUsedTierInfoMap.put(tier, map);
836,380
public static DescribeInstancePerformanceResponse unmarshall(DescribeInstancePerformanceResponse describeInstancePerformanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeInstancePerformanceResponse.setRequestId(_ctx.stringValue("DescribeInstancePerformanceResponse.RequestId"));<NEW_LINE>describeInstancePerform...
("DescribeInstancePerformanceResponse.Data.PerformanceItems[" + i + "].MetricName"));
1,246,783
private void updateDependency(Object value, int row, int col) throws TaskDependencyException {<NEW_LINE>TaskDependency dep = myDependencies.get(row);<NEW_LINE>switch(col) {<NEW_LINE>case 4:<NEW_LINE>dep.setHardness((Hardness) value);<NEW_LINE>break;<NEW_LINE>case 3:<NEW_LINE>{<NEW_LINE>int loadAsInt = Integer.parseInt(...
, selectedTask, new FinishStartConstraintImpl());
1,285,587
private static List<String> doIncomingForSearch(File repository, HgURL repositoryUrl, String to, String branchName, boolean bShowMerges, boolean bGetFileInfo, boolean getParents, int limit, OutputLogger logger) throws HgException {<NEW_LINE>InterRepositoryCommand command = new InterRepositoryCommand();<NEW_LINE>command...
command.additionalOptions.add(HG_VERBOSE_CMD);
903,961
public void keyPressed(final KeyEvent event) {<NEW_LINE>if (event.getKeyCode() == KeyEvent.VK_RIGHT) {<NEW_LINE>if (m_caretPosition != (2 * m_registerModel.getRegisterInformation(m_editedRegister).getRegisterSize())) {<NEW_LINE>m_caretPosition++;<NEW_LINE>}<NEW_LINE>// Consume the event to avoid scrolling<NEW_LINE>even...
(BigInteger.valueOf(shiftedNew));
1,750,187
public void finishBatch(ProcessorContext processorContext) {<NEW_LINE>_collector.setContext(processorContext);<NEW_LINE>Object batchId = processorContext.batchId;<NEW_LINE>// since this processor type is a committer, this occurs in the commit phase<NEW_LINE>List<TridentTuple> buffer = (List) processorContext.state[_con...
updateState(_state, buffer, _collector);