idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
759,399
public PPOrderRouting execute() {<NEW_LINE>if (!routing.isValid()) {<NEW_LINE>throw new LiberoException("@NotValid@ " + routing.getCode());<NEW_LINE>}<NEW_LINE>if (!routing.isValidAtDate(dateStartSchedule)) {<NEW_LINE>throw new RoutingExpiredException(routing, dateStartSchedule);<NEW_LINE>}<NEW_LINE>//<NEW_LINE>// Orde...
products(orderProducts.build());
1,405,503
private void createSchemas() throws RepositoryException {<NEW_LINE>NodeTypeManager manager = session.getWorkspace().getNodeTypeManager();<NEW_LINE>NodeTypeTemplate ntt = manager.createNodeTypeTemplate();<NEW_LINE>ntt.setName("nt:mondrianschema");<NEW_LINE>// ntt.setPrimaryItemName("nt:file");<NEW_LINE>String[] str = ne...
pdt4.setRequiredType(PropertyType.STRING);
956,248
final DeleteLoadBalancerResult executeDeleteLoadBalancer(DeleteLoadBalancerRequest deleteLoadBalancerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLoadBalancerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
700,223
private void validateIfRevisionMatchesTheCurrentConfigAndUpdateTheMaterialMap(FanInGraphContext context, Pair<StageIdentifier, List<FaninScmMaterial>> stageIdentifierScmPair) {<NEW_LINE>final Set<MaterialConfig> currentScmMaterials = context.pipelineScmDepMap.get(materialConfig);<NEW_LINE>final Set<FaninScmMaterial> sc...
CollectionUtils.disjunction(currentScmFingerprint, commonMaterials);
236,882
public static List<String> extractTerms(IndexReader reader, String docid, int k, Analyzer analyzer) throws IOException {<NEW_LINE>// Fetch the raw JSON representation of the document.<NEW_LINE>IndexableField rawField = reader.document(IndexReaderUtils.convertDocidToLuceneDocid(reader, docid)).getField(IndexArgs.RAW);<N...
extractedTerms = new ArrayList<>();
966,625
public void marshall(ListSlotsRequest listSlotsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listSlotsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.m...
listSlotsRequest.getBotId(), BOTID_BINDING);
1,811,543
public void reset(final Context context) {<NEW_LINE>final Config config = Config.get(context);<NEW_LINE>key_symbol_color = config.getColor("key_symbol_color");<NEW_LINE>hilited_key_symbol_color = config.getColor("hilited_key_symbol_color");<NEW_LINE>mShadowColor = config.getColor("shadow_color");<NEW_LINE>mSymbolSize =...
mShadowRadius = config.getFloat("shadow_radius");
554,950
private void onDeleteClickeddialogtext(String reason) {<NEW_LINE>applicationKvStore.putBoolean(String.format(NOMINATING_FOR_DELETION_MEDIA, media<MASK><NEW_LINE>enableProgressBar();<NEW_LINE>Single<Boolean> resultSingletext = reasonBuilder.getReason(media, reason).flatMap(reasonString -> deleteHelper.makeDeletion(getCo...
.getImageUrl()), true);
999,152
private void updateJoinGapsInfo(@Nullable View view, int position) {<NEW_LINE>if (view != null && gpxItem != null) {<NEW_LINE>GPXTabItemType tabType = tabTypes[position];<NEW_LINE>boolean generalTrack = gpxItem.isGeneralTrack();<NEW_LINE>boolean joinSegments = displayHelper.isJoinSegments();<NEW_LINE>boolean showJoinGa...
app, analysis, joinSegments, generalTrack);
1,587,240
private ServiceCallResult createServiceCallResult(final Request request) {<NEW_LINE>ServiceCallResult resultRequest = new ServiceCallResult();<NEW_LINE>MetadataContext metadataContext = MetadataContextHolder.get();<NEW_LINE>String namespace = metadataContext.getSystemMetadata(SystemMetadataKey.PEER_NAMESPACE);<NEW_LINE...
setHost(uri.getHost());
681,139
public static AnswerCallResponse unmarshall(AnswerCallResponse answerCallResponse, UnmarshallerContext _ctx) {<NEW_LINE>answerCallResponse.setRequestId(_ctx.stringValue("AnswerCallResponse.RequestId"));<NEW_LINE>answerCallResponse.setCode(_ctx.stringValue("AnswerCallResponse.Code"));<NEW_LINE>answerCallResponse.setHttp...
("AnswerCallResponse.Data.CallContext.ChannelContexts[" + i + "].Originator"));
1,759,295
public synchronized static void createTreatment(DataMap dataMap, Context context) {<NEW_LINE>Log.d(TAG, "createTreatment dataMap=" + dataMap);<NEW_LINE>double timeoffset = dataMap.getDouble("timeoffset", 0);<NEW_LINE>double carbs = dataMap.getDouble("carbs", 0);<NEW_LINE>double insulin = dataMap.getDouble("insulin", 0)...
SendData(context, SYNC_TREATMENTS_PATH, null);
1,101,524
// Dump the content of this bean returning it as a String<NEW_LINE>public void dump(StringBuffer str, String indent) {<NEW_LINE>String s;<NEW_LINE>Object o;<NEW_LINE>org.netbeans.modules.schema2beans.BaseBean n;<NEW_LINE>str.append(indent);<NEW_LINE>// NOI18N<NEW_LINE>str.append("Name");<NEW_LINE>// NOI18N<NEW_LINE>str...
str.append(indent + "\t");
1,162,165
private void nextTablet() throws TableNotFoundException, AccumuloException, IOException {<NEW_LINE>Range nextRange;<NEW_LINE>if (currentExtent == null) {<NEW_LINE>Text startRow;<NEW_LINE>if (range.getStartKey() != null)<NEW_LINE>startRow = range.getStartKey().getRow();<NEW_LINE>else<NEW_LINE>startRow = new Text();<NEW_...
), tablet.getFiles());
902,620
private // ----------------------------------------------------------------------<NEW_LINE>AttributeSet findAttribs(TokenItem tokenItem) {<NEW_LINE>synchronized (this) {<NEW_LINE>AttributeSet attribs = attribsCache.get(tokenItem.getTokenID());<NEW_LINE>if (attribs == null) {<NEW_LINE>FontColorSettings fcs = MimeLookup....
mimePath.getPath() + "'");
972,822
protected CompletableFuture<SnapshotPhase1Result> doRun() {<NEW_LINE>JetService service = getService();<NEW_LINE>ExecutionContext ctx = service.getJobExecutionService().assertExecutionContext(getCallerAddress(), jobId(), executionId, <MASK><NEW_LINE>CompletableFuture<SnapshotPhase1Result> future = ctx.beginSnapshotPhas...
getClass().getSimpleName());
544,342
private boolean allowMethod(Method method) {<NEW_LINE>// NinjaProperties-based route exclusions/inclusions<NEW_LINE>if (method.isAnnotationPresent(Requires.class)) {<NEW_LINE>String key = method.getAnnotation(Requires.class).value();<NEW_LINE>String value = ninjaProperties.get(key);<NEW_LINE>if (value == null) {<NEW_LI...
add(mode.value());
1,022,260
private static // -------------------------------------------------------------------------<NEW_LINE>void buildFilter(FileFilter filter, AssociationBuilder builder) throws CommandException {<NEW_LINE>// Filter on the file type.<NEW_LINE>if (filter instanceof AttributeFileFilter) {<NEW_LINE>AttributeFileFilter attribute...
setIsExecutable(permissionFilter.getFilter());
409,276
// TO DO --Use StoreCallback instead of SessionEventDispatcher??<NEW_LINE>@ProbeAtEntry<NEW_LINE>@ProbeSite(clazz = "com.ibm.ws.session.SessionEventDispatcher", method = "sessionLiveCountInc", args = "java.lang.Object")<NEW_LINE>public void IncrementLiveCount(@Args Object[] myargs) {<NEW_LINE>if (tc.isEntryEnabled()) {...
exit(tc, "IncrementLiveCount", "session object is null");
268,289
public static void main(String[] args) {<NEW_LINE>StdDraw.setPenRadius(0.0025);<NEW_LINE>Exercise38_TreeDrawing treeDrawing = new Exercise38_TreeDrawing();<NEW_LINE>BinarySearchTreeDrawable<Integer, String> binarySearchTreeDrawable = treeDrawing.new BinarySearchTreeDrawable();<NEW_LINE>binarySearchTreeDrawable.put(10, ...
binarySearchTreeDrawable.put(12, "Value 12");
55,872
static Settings buildClientSettings(String tribeName, String parentNodeId, Settings globalSettings, Settings tribeSettings) {<NEW_LINE>for (String tribeKey : tribeSettings.keySet()) {<NEW_LINE>if (tribeKey.startsWith("path.")) {<NEW_LINE>throw new IllegalArgumentException("Setting [" + tribeKey + "] not allowed in trib...
NODE_DATA_SETTING.getKey(), false);
915,515
public OutlierResult run(Relation<O> relation) {<NEW_LINE>QueryBuilder<O> qb = new QueryBuilder<>(relation, distance);<NEW_LINE>KNNSearcher<DBIDRef> <MASK><NEW_LINE>DistanceQuery<O> distFunc = qb.distanceQuery();<NEW_LINE>// track the maximum value for normalization<NEW_LINE>DoubleMinMax ldofminmax = new DoubleMinMax()...
knnQuery = qb.kNNByDBID(kplus);
1,098,199
public void load(ByteProvider provider, LoadSpec loadSpec, List<Option> options, Program program, TaskMonitor monitor, MessageLog log) throws IOException {<NEW_LINE>monitor.setMessage(getMonitorMessagePrimary());<NEW_LINE>try {<NEW_LINE>Address start = program.getAddressFactory().getDefaultAddressSpace().getAddress(0x0...
monitor.setMessage(getMonitorMessageSecondary());
994,415
void sendHeartbeatSync(Node node) {<NEW_LINE>HeartbeatHandler heartbeatHandler = new HeartbeatHandler(localMember, node);<NEW_LINE>HeartBeatRequest req = new HeartBeatRequest();<NEW_LINE><MASK><NEW_LINE>req.setCommitLogIndex(request.commitLogIndex);<NEW_LINE>req.setRegenerateIdentifier(request.regenerateIdentifier);<NE...
req.setCommitLogTerm(request.commitLogTerm);
1,817,228
protected void initNode(MNode result) {<NEW_LINE>MBool renderable = (MBool) result.getAttr("rnd");<NEW_LINE>renderable.set(true);<NEW_LINE>MInt filmFit = (MInt) result.getAttr("ff");<NEW_LINE>// horizontal fit<NEW_LINE>filmFit.set(1);<NEW_LINE>MFloat centerOfInterest = (MFloat) result.getAttr("coi");<NEW_LINE>centerOfI...
MFloat) result.getAttr("lsr");
343,655
protected void drawShadow(mxGraphicsCanvas2D canvas, mxCellState state, double rotation, boolean flipH, boolean flipV, mxRectangle bounds, double alpha, boolean filled) {<NEW_LINE>// Requires background in generic shape for shadow, looks like only one<NEW_LINE>// fillAndStroke is allowed per current path, try working a...
), offset.getY());
1,676,357
public int compare(MediaItem leftItem, MediaItem rightItem) {<NEW_LINE>if (leftItem.getGlobalSegmentList() != null || rightItem.getGlobalSegmentList() != null) {<NEW_LINE>return 1;<NEW_LINE>}<NEW_LINE>if (mOrderType == ORDER_ASCENDANT) {<NEW_LINE>MediaItem tmpItem = leftItem;<NEW_LINE>leftItem = rightItem;<NEW_LINE>rig...
(MediaItemUtils.getHeight(rightItem));
1,834,114
public static QueryDomainListResponse unmarshall(QueryDomainListResponse queryDomainListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryDomainListResponse.setRequestId(_ctx.stringValue("QueryDomainListResponse.RequestId"));<NEW_LINE>queryDomainListResponse.setTotalItemNum(_ctx.integerValue("QueryDomainListResponse....
("QueryDomainListResponse.Data[" + i + "].DomainType"));
1,689,423
public void marshall(UpdateFleetMetricRequest updateFleetMetricRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateFleetMetricRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_L...
updateFleetMetricRequest.getMetricName(), METRICNAME_BINDING);
416,723
public ResponseEntity<IdentityZone> createIdentityZone(@RequestBody @Valid IdentityZone body, BindingResult result) {<NEW_LINE>if (result.hasErrors()) {<NEW_LINE>throw new UnprocessableEntityException(getErrorMessages(result));<NEW_LINE>}<NEW_LINE>if (!IdentityZoneHolder.isUaa()) {<NEW_LINE>throw new AccessDeniedExcept...
defaultIdp, created.getId());
1,648,325
protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>SubMonitor subMonitor = <MASK><NEW_LINE>if (!repo.enterWriteProcess()) {<NEW_LINE>return new Status(IStatus.ERROR, GitPlugin.getPluginId(), Messages.GitLaunchDelegate_FailedToAcquireWriteLock);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>ILaunch ...
SubMonitor.convert(monitor, 100);
1,389,577
public ActionType buildModuleType(String UID, Map<String, Set<ModuleInformation>> moduleInformation) {<NEW_LINE>Set<ModuleInformation> mis = moduleInformation.get(UID);<NEW_LINE>List<ConfigDescriptionParameter> configDescriptions = new ArrayList<>();<NEW_LINE>if (mis != null && mis.size() > 0) {<NEW_LINE>ModuleInformat...
), mi.getThingUID());
1,519,772
static AssertionError makeComparisonFailure(ImmutableList<String> messages, ImmutableList<Fact> facts, String expected, String actual, @Nullable Throwable cause) {<NEW_LINE>Class<?> comparisonFailureClass;<NEW_LINE>try {<NEW_LINE>comparisonFailureClass = Class.forName("com.google.common.truth.ComparisonFailureWithFacts...
String.class, Throwable.class);
293,962
public void showTooltipByMouseMove(@Nonnull final Editor editor, @Nonnull final RelativePoint point, final TooltipRenderer tooltipObject, final boolean alignToRight, @Nonnull final TooltipGroup group, @Nonnull HintHint hintHint) {<NEW_LINE>LightweightHint currentTooltip = myCurrentTooltip;<NEW_LINE>if (currentTooltip =...
x += alignToRight ? -10 : 10;
1,255,516
public RepositoryAggregationResponse unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RepositoryAggregationResponse repositoryAggregationResponse = new RepositoryAggregationResponse();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
class).unmarshall(context));
317,892
public static DescribeDataCountsResponse unmarshall(DescribeDataCountsResponse describeDataCountsResponse, UnmarshallerContext context) {<NEW_LINE>describeDataCountsResponse.setRequestId(context.stringValue("DescribeDataCountsResponse.RequestId"));<NEW_LINE>List<DataCount> dataCountList = new ArrayList<DataCount>();<NE...
("DescribeDataCountsResponse.DataCountList[" + i + "].Column.SensitiveCount"));
1,526,987
public static Classifications predict() throws IOException, ModelException, TranslateException {<NEW_LINE>Path imageFile = Paths.get("src/test/resources/0.png");<NEW_LINE>Image img = ImageFactory.<MASK><NEW_LINE>String modelName = "mlp";<NEW_LINE>try (Model model = Model.newInstance(modelName)) {<NEW_LINE>model.setBloc...
getInstance().fromFile(imageFile);
1,608,000
protected void actionPerformed(ListingActionContext context) {<NEW_LINE>ListingActionContext programActionContext = (ListingActionContext) context.getContextObject();<NEW_LINE>PluginTool tool = plugin.getTool();<NEW_LINE>Program program = programActionContext.getProgram();<NEW_LINE>ProgramLocation loc = programActionCo...
.getComponent(compPath[i]);
1,317,710
public Object parseValidated(String str) {<NEW_LINE>int len = str.length();<NEW_LINE>int[] date = new int[TOTAL_SIZE];<NEW_LINE>int[] timeZone = new int[2];<NEW_LINE>// set constants<NEW_LINE>date[CY] = YEAR;<NEW_LINE>date[D] = DAY;<NEW_LINE>int stop = 4;<NEW_LINE>date[M] = parseInt(str, 2, stop);<NEW_LINE>// REVISIT: ...
return new XSDDateTime(date, MONTH_MASK);
1,468,328
protected void masterOperation(IndicesShardStoresRequest request, ClusterState state, ActionListener<IndicesShardStoresResponse> listener) {<NEW_LINE>final RoutingTable routingTables = state.routingTable();<NEW_LINE>final RoutingNodes routingNodes = state.getRoutingNodes();<NEW_LINE>final String[] concreteIndices = ind...
"using cluster state version [{}] to determine shards", state.version());
618,806
final ImportGameConfigurationResult executeImportGameConfiguration(ImportGameConfigurationRequest importGameConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importGameConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
951,749
protected void onChanged(Change<PathElement> c) {<NEW_LINE>List<PathElement> list = c.getList();<NEW_LINE>boolean firstElementChanged = false;<NEW_LINE>while (c.next()) {<NEW_LINE>List<PathElement> removed = c.getRemoved();<NEW_LINE>for (int i = 0; i < c.getRemovedSize(); ++i) {<NEW_LINE>removed.get(i).removeNode(Path....
|= c.getFrom() == 0;
855,331
public static OnsMessagePageQueryByTopicResponse unmarshall(OnsMessagePageQueryByTopicResponse onsMessagePageQueryByTopicResponse, UnmarshallerContext _ctx) {<NEW_LINE>onsMessagePageQueryByTopicResponse.setRequestId(_ctx.stringValue("OnsMessagePageQueryByTopicResponse.RequestId"));<NEW_LINE>onsMessagePageQueryByTopicRe...
= new ArrayList<MessageProperty>();
558,322
public int compareTo(getBlobMeta_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 = Boolean.valueOf(is_set_success()).compareTo(other.is_set_success());<NEW_LINE>if (lastCo...
getClass().getName());
623,375
public ResultData login(String username, String password) {<NEW_LINE>try {<NEW_LINE>UserModel user = userService.getUserByUserNameAndPassWord(username, password);<NEW_LINE>if (user == null) {<NEW_LINE>throw new AuthenticationException();<NEW_LINE>}<NEW_LINE>String token = JwtUtil.createToken(username);<NEW_LINE>Date to...
Subject subject = SecurityUtils.getSubject();
1,293,251
public final void allToAllw(Object sendBuf, int[] sendCount, int[] sDispls, Datatype[] sendTypes, Object recvBuf, int[] recvCount, int[] rDispls, Datatype[] recvTypes) throws MPIException {<NEW_LINE>MPI.check();<NEW_LINE>int[] sendoffs = new int[sendTypes.length];<NEW_LINE>int[] recvoffs = new int[recvTypes.length];<NE...
[i].getOffset(recvBuf);
38,965
protected void createMethods(Program program, DexHeader header, ClassDefItem item, List<EncodedMethod> methods, TaskMonitor monitor, MessageLog log) throws Exception {<NEW_LINE>for (int i = 0; i < methods.size(); ++i) {<NEW_LINE>monitor.checkCanceled();<NEW_LINE>EncodedMethod encodedMethod = methods.get(i);<NEW_LINE>Co...
] instructionBytes = codeItem.getInstructionBytes();
245,150
/* Build call for apisApiIdSwaggerGet */<NEW_LINE>private com.squareup.okhttp.Call apisApiIdSwaggerGetCall(String apiId, String accept, String ifNoneMatch, String ifModifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) thr...
HashMap<String, String>();
1,670,438
private Position decode1G(Channel channel, SocketAddress remoteAddress, String sentence) {<NEW_LINE>Parser parser = new Parser(PATTERN_1G, sentence);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress);<NEW_LINE>if (deviceSes...
, parser.nextDouble(0));
732,390
public FirewallRule createRuleForAllCidrs(long ipAddrId, Account caller, Integer startPort, Integer endPort, String protocol, Integer icmpCode, Integer icmpType, Long relatedRuleId, long networkId) throws NetworkRuleConflictException {<NEW_LINE>// If firwallRule for this port range already exists, return it<NEW_LINE>Li...
oneCidr.add(NetUtils.ALL_IP4_CIDRS);
883,651
final AssociateServiceActionWithProvisioningArtifactResult executeAssociateServiceActionWithProvisioningArtifact(AssociateServiceActionWithProvisioningArtifactRequest associateServiceActionWithProvisioningArtifactRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateServiceActionWithPr...
endClientExecution(awsRequestMetrics, request, response);
38,364
synchronized public void writeMetadata(@NonNull BackupFiles.BackupFile backupFile) throws IOException {<NEW_LINE>if (metadata == null) {<NEW_LINE>throw new RuntimeException("Metadata not set for path " + backupFile.getBackupPath());<NEW_LINE>}<NEW_LINE>Path metadataFile = backupFile.getMetadataFile();<NEW_LINE>try (Out...
put("has_rules", metadata.hasRules);
1,542,735
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.CLIENT_ENDPOINT, endpoint);
155,575
public void provideDynamicMetrics(MetricDescriptor descriptor, MetricsCollectionContext context) {<NEW_LINE>for (ManagedExecutorService executorService : executors.values()) {<NEW_LINE>MetricDescriptor executorDescriptor = descriptor.copy().withPrefix(EXECUTOR_PREFIX_INTERNAL).withDiscriminator(EXECUTOR_DISCRIMINATOR_N...
()).withExcludedTarget(MANAGEMENT_CENTER);
1,538,273
public void parse(String result, Object data) {<NEW_LINE>JsonObject jobj = JsonParser.parseString(result).getAsJsonObject();<NEW_LINE>if (jobj.has("type")) {<NEW_LINE>String type = jobj.get("type").getAsString();<NEW_LINE>if (type.equals("error")) {<NEW_LINE>String desc = jobj.get("description").getAsString();<NEW_LINE...
element = keyValue.get("key");
906,846
public Memory __construct(Environment env, TraceInfo traceInfo, String isoString, int options) {<NEW_LINE>String[] parts = Arrays.stream(isoString.split("/")).filter(s -> !s.isEmpty()).toArray(String[]::new);<NEW_LINE>Messages.Item badFormat = new Messages.Item("DatePeriod::__construct(): Unknown or bad format (%s)");<...
, badFormat.fetch(isoString));
155,401
static DriverWrapper loadDriver(final PwmApplication pwmApplication, final DBConfiguration dbConfiguration) throws DatabaseException {<NEW_LINE>final Set<ClassLoaderStrategy> strategies = dbConfiguration.getClassLoaderStrategies();<NEW_LINE>LOGGER.trace(() -> "attempting to load jdbc driver using strategies: " + JsonFa...
return new DriverWrapper(driver, loader);
1,112,080
final CreateRevisionResult executeCreateRevision(CreateRevisionRequest createRevisionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRevisionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
445,122
public static FindOsVersionsResponse unmarshall(FindOsVersionsResponse findOsVersionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>findOsVersionsResponse.setRequestId(_ctx.stringValue("FindOsVersionsResponse.RequestId"));<NEW_LINE>OsVersionList osVersionList = new OsVersionList();<NEW_LINE>osVersionList.setTotalCount(...
= new ArrayList<ItemsItem>();
1,489,167
protected void buildBodyDeclarations(org.eclipse.jdt.internal.compiler.ast.TypeDeclaration expression, AnonymousClassDeclaration anonymousClassDeclaration) {<NEW_LINE>// add body declaration in the lexical order<NEW_LINE>org.eclipse.jdt.internal.compiler.ast.TypeDeclaration[] members = expression.memberTypes;<NEW_LINE>...
.add(convert(nextFieldDeclaration));
1,175,022
public void exitCfp_clone(Cfp_cloneContext ctx) {<NEW_LINE>String name = toString(ctx.name.str());<NEW_LINE>Policy existing = _c.getPolicies().get(name);<NEW_LINE>if (existing == null) {<NEW_LINE>warn(ctx, String.format("Cannot clone a non-existent policy %s", name));<NEW_LINE>_c.undefined(FortiosStructureType.POLICY, ...
).put(toNumber, clone);
664,370
public WorkspaceInfoFromDiff sync(ExtendedEventHandler eventHandler, PackageOptions packageOptions, PathPackageLocator pathPackageLocator, BuildLanguageOptions buildLanguageOptions, UUID commandId, Map<String, String> clientEnv, Map<String, String> repoEnvOption, TimestampGranularityMonitor tsgm, OptionsProvider option...
.getOptions(CoreOptions.class));
363,731
static private String buildQuery(List<DataSource> dataSources, boolean showAll, int cntDaysFromRecent, boolean noTimeStamp) {<NEW_LINE>String mostRecentQuery = "";<NEW_LINE>if (!showAll && cntDaysFromRecent > 0) {<NEW_LINE>// MOST_RECENT_TIME<NEW_LINE>// SELECT MAX(value_int64) - (%d * 86400)<NEW_LINE>// FROM blackboar...
("AND artifact_id IN(%s)", getWaypointListQuery(dataSources));
447,982
/*<NEW_LINE>* Serialize parameter Object. Need to take special care of {@link Number} and<NEW_LINE>* {@link Date} instances since they should be of the correct type for late binding.<NEW_LINE>*/<NEW_LINE>private static void writeParam(Object v, DataOutput writer) throws IOException {<NEW_LINE>if (v instanceof Byte) {<N...
) v).longValue());
540,283
public GatewayPlatform unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GatewayPlatform gatewayPlatform = new GatewayPlatform();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte...
int originalDepth = context.getCurrentDepth();
1,268,344
public static void main(String[] args) {<NEW_LINE>int[] input_itemsets, output_itemsets, referrence;<NEW_LINE>// the lengths of the two sequences should be able to divided by 16 and at<NEW_LINE>// current stage max_rows needs to equal max_cols<NEW_LINE>if (args.length != 3) {<NEW_LINE>usage();<NEW_LINE>}<NEW_LINE>final...
System.out.printf("Start Needleman-Wunsch\n");
1,594,137
protected void playImpl() {<NEW_LINE>if (isVideo) {<NEW_LINE>if (component == null && nativePlayer) {<NEW_LINE>// Mass source of confusion. If getVideoComponent() has been called, then<NEW_LINE>// we can't use the native player.<NEW_LINE>if (uri != null) {<NEW_LINE>moviePlayerPeer = nativeInstance.createNativeVideoCom...
nativeInstance.createNativeVideoComponentNSData(val, onCompletionCallbackId);
991,066
private static String etlGetPasswordHash(List<String> funArgs) throws Exception {<NEW_LINE>String userName = funArgs.get(0);<NEW_LINE>String password = funArgs.get(1);<NEW_LINE>DateFormat df = new SimpleDateFormat("yyyyMMdd");<NEW_LINE>Date today = Calendar.getInstance().getTime();<NEW_LINE>String todayStr = df.format(...
byte0 >>> 4 & 0xf];
493,939
public static void open(final DiskManagerFileInfo file, final boolean open_containing_folder_mode) {<NEW_LINE>if (file != null) {<NEW_LINE>LaunchManager launch_manager = LaunchManager.getManager();<NEW_LINE>LaunchManager.LaunchTarget target = launch_manager.createTarget(file);<NEW_LINE>launch_manager.launchRequest(targ...
== null) ? this_file : parent_file);
1,662,127
public void updateRoutingProfileConcurrency(UpdateRoutingProfileConcurrencyRequest updateRoutingProfileConcurrencyRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateRoutingProfileConcurrencyRequest);<NEW_LINE><MASK><NEW_LINE>awsReque...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,500,171
final UnregisterConnectorResult executeUnregisterConnector(UnregisterConnectorRequest unregisterConnectorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(unregisterConnectorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,081,382
// check if file can be loaded in the encoding correctly:<NEW_LINE>// returns ABSOLUTELY if bytes on disk, converted to text with the charset, converted back to bytes matched<NEW_LINE>// returns NO_WAY if the new encoding is incompatible (bytes on disk will differ)<NEW_LINE>// returns WELL_IF_YOU_INSIST if the bytes on...
bytes, charset).toString();
1,458,734
public static DescribeDBClusterAccessWhiteListResponse unmarshall(DescribeDBClusterAccessWhiteListResponse describeDBClusterAccessWhiteListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBClusterAccessWhiteListResponse.setRequestId(_ctx.stringValue("DescribeDBClusterAccessWhiteListResponse.RequestId"));<NEW_LIN...
= new ArrayList<IPArray>();
287,397
public static ErrorDescription switchExpression(HintContext ctx) {<NEW_LINE>TreePath select = ctx.getVariables().get("$select");<NEW_LINE>TypeMirror m = ctx.getInfo().getTrees().getTypeMirror(select);<NEW_LINE>if (m == null || m.getKind() != TypeKind.DECLARED) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>State r = compu...
getMessage(NPECheck.class, "ERR_PossiblyDereferencingNull");
459,855
public static String removeExtraSpaces(@NotNull String str) {<NEW_LINE>if (str.indexOf(' ') == -1) {<NEW_LINE>return str;<NEW_LINE>}<NEW_LINE>StringBuilder result = new StringBuilder(str.length());<NEW_LINE>int length = str.length();<NEW_LINE>for (int i = 0; i < length; i++) {<NEW_LINE>char c = str.charAt(i);<NEW_LINE>...
.charAt(i - 1));
1,653,704
private void copyWindowTrl(@NonNull final AdWindowId targetWindowId, @NonNull final AdWindowId sourceWindowId) {<NEW_LINE>final String sqlDelete = "DELETE FROM AD_Window_Trl WHERE AD_Window_ID = " + targetWindowId.getRepoId();<NEW_LINE>final int countDelete = DB.executeUpdateEx(sqlDelete, ITrx.TRXNAME_ThreadInherited);...
logger.debug("AD_Window_Trl deleted: {}", countDelete);
1,140,515
public static void execMainClass(final Class<?> classWithMain, final String[] args) {<NEW_LINE>Method main = null;<NEW_LINE>try {<NEW_LINE>main = classWithMain.getMethod(<MASK><NEW_LINE>} catch (Exception t) {<NEW_LINE>log.error("Could not run main method on '" + classWithMain.getName() + "'.", t);<NEW_LINE>}<NEW_LINE>...
"main", args.getClass());
1,637,269
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>final CanalKafkaClientExample kafkaCanalClientExample = new CanalKafkaClientExample(AbstractKafkaTest.zkServers, AbstractKafkaTest.servers, AbstractKafkaTest.topic, AbstractKafkaTest.partition, AbstractKafkaTest.groupId);<NEW_LINE>logger.info("## start th...
logger.error("## Something goes wrong when starting up the kafka consumer:", e);
556,695
protected byte[] serializeRecords(List<IndexedRecord> records) throws IOException {<NEW_LINE>HFileContext context = new HFileContextBuilder().withBlockSize(DEFAULT_BLOCK_SIZE).withCompression(compressionAlgorithm.get()).withCellComparator(new HoodieHBaseKVComparator()).build();<NEW_LINE>Configuration conf = new Configu...
), null, null, recordBytes);
330,516
public ProtocolProviderService installAccount(ProtocolProviderFactory providerFactory, String user, String passwd) throws OperationFailedException {<NEW_LINE>Hashtable<String, String> accountProperties = new Hashtable<String, String>();<NEW_LINE>accountProperties.put(ProtocolProviderFactory.ACCOUNT_ICON_PATH, "resource...
providerFactory.modifyAccount(protocolProvider, accountProperties);
667,933
public Mono<Response<Void>> updateWithResponseAsync(String objectId, String tenantId, ServicePrincipalUpdateParameters parameters) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE...
error(new IllegalArgumentException("Parameter tenantId is required and cannot be null."));
498,646
private static FuseMountOptions parseOptions(String[] args, AlluxioConfiguration alluxioConf) {<NEW_LINE>final CommandLineParser parser = new DefaultParser();<NEW_LINE>try {<NEW_LINE>CommandLine cli = parser.parse(OPTIONS, args);<NEW_LINE>if (cli.hasOption("h")) {<NEW_LINE>final HelpFormatter fmt = new HelpFormatter();...
ImmutableList.of(), alluxioConf);
637,048
protected String[] searchOnvifDevices() {<NEW_LINE>String localIP = null;<NEW_LINE>String[] list = null;<NEW_LINE>Enumeration<NetworkInterface> interfaces = null;<NEW_LINE>try {<NEW_LINE>interfaces = NetworkInterface.getNetworkInterfaces();<NEW_LINE>} catch (SocketException e) {<NEW_LINE>// handle error<NEW_LINE>}<NEW_...
logger.info("IP Address: {} ", localIP);
1,725,518
static void c_6() throws Exception {<NEW_LINE>AkSourceBatchOp train_data = new AkSourceBatchOp().setFilePath(DATA_DIR + TRAIN_FILE);<NEW_LINE>AkSourceBatchOp test_data = new AkSourceBatchOp().setFilePath(DATA_DIR + TEST_FILE);<NEW_LINE>LinearSvmTrainBatchOp svmTrainer = new LinearSvmTrainBatchOp().setFeatureCols(FEATUR...
.lazyPrintTrainInfo().lazyPrintModelInfo();
1,567,889
private void openAsImage(Blob b) {<NEW_LINE>if (b == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>ImageInputStream iis = ImageIO.createImageInputStream(b.getBinaryStream());<NEW_LINE>Iterator<ImageReader> irs = ImageIO.getImageReaders(iis);<NEW_LINE>if (irs.hasNext()) {<NEW_LINE>FileSystem fs = FileUtil....
data = DataObject.find(fob);
1,319,316
private void loadOneRegistry(MergedEntityRegistry parentRegistry, String registryName, String registryVersionStr, String patchDirectory) {<NEW_LINE>ComparableVersion registryVersion = new ComparableVersion("0.0.0-dev");<NEW_LINE>try {<NEW_LINE>ComparableVersion maybeVersion = new ComparableVersion(registryVersionStr);<...
debug("Registry {}:{} already exists. Skipping loading...", registryName, registryVersion);
1,837,464
protected void onFinishInflate() {<NEW_LINE>super.onFinishInflate();<NEW_LINE>mButtonContainer = findViewById(R.id.button_container);<NEW_LINE>mButtonContainer.setBackground(mButtonBackground);<NEW_LINE>mNameView = mButtonContainer.findViewById(R.id.name);<NEW_LINE>mNameView.setTextColor(mButtonTextColor);<NEW_LINE>mPr...
findViewById(R.id.price);
1,258,908
public static File replaceTokensInScript(final String script, final Map<String, Map<String, String>> dataContext, final Framework framework, final ScriptfileUtils.LineEndingStyle style, final File destination) throws IOException {<NEW_LINE>if (null == script) {<NEW_LINE>throw new NullPointerException("script cannot be ...
null, replaceTokens, style, destination);
229,275
public List<SecurityGroup> describeSecurityGroups(String... groupNames) {<NEW_LINE>AmazonEC2 ec2Client = ec2Client();<NEW_LINE>DescribeSecurityGroupsRequest request = new DescribeSecurityGroupsRequest();<NEW_LINE>if (groupNames == null || groupNames.length == 0) {<NEW_LINE>LOGGER.info(String.format("Getting all EC2 sec...
, groupNames.length, region));
1,467,170
public static void drawArrowSubPixel(Quadrilateral_F64 quad, double strokeSize, double scale, Graphics2D g2) {<NEW_LINE>Line2D.Double line = new Line2D.Double();<NEW_LINE>Color[] colors = new Color[] { Color.RED, Color.ORANGE, Color.CYAN, Color.BLUE };<NEW_LINE>Point2D_F64 start = new Point2D_F64();<NEW_LINE>Point2D_F6...
(float) strokeSize * 2.0f));
1,637,630
private void accessEntries(Resource root, Multimap<String, Node> map, String user, List<Node> _graphs) {<NEW_LINE>// Convert string names for graphs to URIs.<NEW_LINE>Set<Node> graphs = _graphs.stream().map(n -> graphLabel(n, root)).collect(Collectors.toSet());<NEW_LINE>if (graphs.contains(SecurityContext.allGraphs)) {...
graphs.remove(SecurityContext.allGraphs);
342,224
protected boolean processPluginStream(SFPluginDetailsImpl details, InputStream is) {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>try {<NEW_LINE>properties.load(is);<NEW_LINE>String pid = details.getId();<NEW_LINE>String download_url = properties.getProperty(pid + ".dl_link", "");<NEW_LINE>if (download_u...
cvs_download_url, desc, comment, info_url);
1,578,507
public void doMentionToSpeaker(Annotation doc) {<NEW_LINE>List<CoreMap> quotes = doc.get(CoreAnnotations.QuotationsAnnotation.class);<NEW_LINE>List<List<Pair<Integer, Integer>>> skipChains = new ArrayList<>();<NEW_LINE>// Pairs are (pred_idx, paragraph_idx)<NEW_LINE>List<Pair<Integer, Integer>> <MASK><NEW_LINE>for (int...
currChain = new ArrayList<>();
1,709,476
private void checkConsumedAndProducedValues(Instruction ins, ValueNumber[] consumedValueList, ValueNumber[] producedValueList) {<NEW_LINE>int numConsumed = ins.consumeStack(getCPG());<NEW_LINE>int numProduced = ins.produceStack(getCPG());<NEW_LINE>if (numConsumed == Const.UNPREDICTABLE) {<NEW_LINE>throw new InvalidByte...
throw new InvalidBytecodeException("Unpredictable stack production for " + ins);
173,362
public static void disconnect() {<NEW_LINE>// Close UPnP port mapping if used<NEW_LINE>StartServerDialogPreferences serverProps = new StartServerDialogPreferences();<NEW_LINE>if (serverProps.getUseUPnP()) {<NEW_LINE>int port = serverProps.getPort();<NEW_LINE>UPnPUtil.closePort(port);<NEW_LINE>}<NEW_LINE>boolean isPerso...
.getInstance().unregisterInstance();
309,701
public void collect(LValue lValue, ReadWrite rw) {<NEW_LINE>Class<?> lValueClass = lValue.getClass();<NEW_LINE>if (lValueClass == LocalVariable.class) {<NEW_LINE>LocalVariable localVariable = (LocalVariable) lValue;<NEW_LINE>NamedVariable name = localVariable.getName();<NEW_LINE>if (name.getStringName().equals(MiscCons...
previousDef = earliestDefinition.get(name);
1,463,058
public AccessPathFragment append(AccessPathFragment toAppend) {<NEW_LINE>// If only one of the two operands contains actual data, we simply take that<NEW_LINE>// object and don't need to append anything<NEW_LINE>if (toAppend == null || toAppend.isEmpty()) {<NEW_LINE>if (this.isEmpty())<NEW_LINE>return null;<NEW_LINE>re...
appendedTypes, 0, fieldTypes.length);
1,342,479
public static String post(String httpUrl, String content) throws Exception {<NEW_LINE>Map<String, String> headers = new HashMap<>(1);<NEW_LINE>headers.put("Content-type", "application/json");<NEW_LINE>URL url = new URL(httpUrl);<NEW_LINE>HttpURLConnection conn = (HttpURLConnection) url.openConnection();<NEW_LINE>conn.s...
), entry.getValue());
1,212,458
public SegmentIdWithShardSpec allocate(InputRow row, String sequenceName, String previousSegmentId, boolean skipSegmentLineageCheck) {<NEW_LINE>return sequenceNameToSegmentId.computeIfAbsent(sequenceName, k -> {<NEW_LINE>final Pair<Interval, BucketNumberedShardSpec> pair = Preconditions.checkNotNull(sequenceNameToBucke...
? 0 : nextPartitionId + 1));
1,199,639
protected void fixGlobalElementNames() {<NEW_LINE>// clear unique names map<NEW_LINE>namesMap.clear();<NEW_LINE>// create buckets<NEW_LINE>HashMap<GlobalElement, java.util.List<ElementReference>> erefMap = new HashMap<GlobalElement, java.util.List<ElementReference>>();<NEW_LINE>for (Entry<Integer, java.util.List<Object...
ElementReference) scs.get(2);