idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,595,392
public String toSql() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("SHOW PARTITIONS FROM ");<NEW_LINE>if (!Strings.isNullOrEmpty(dbName)) {<NEW_LINE>sb.append("`").append(dbName).append("`");<NEW_LINE>}<NEW_LINE>if (!Strings.isNullOrEmpty(tableName)) {<NEW_LINE>sb.append(".`").append<MASK><NEW_...
(tableName).append("`");
1,825,130
public static boolean addNode(Properties ctx, String treeType, int Record_ID, String trxName) {<NEW_LINE>// TODO: Check & refactor this<NEW_LINE>// Get Tree<NEW_LINE>int AD_Tree_ID = 0;<NEW_LINE>MClient client = MClient.get(ctx);<NEW_LINE>I_AD_ClientInfo ci = client.getInfo();<NEW_LINE>if (TREETYPE_Activity.equals(tree...
= new MTree_NodePR(tree, Record_ID);
1,769,495
public Protos.TaskInfo constructMesosTaskInfo(Config heronConfig, Config heronRuntime) {<NEW_LINE>// String taskIdStr, BaseContainer task, Offer offer<NEW_LINE>String taskIdStr = this.taskId;<NEW_LINE>Protos.TaskID mesosTaskID = Protos.TaskID.newBuilder().setValue(taskIdStr).build();<NEW_LINE>Protos.TaskInfo.Builder ta...
executorCommand(heronConfig, heronRuntime, containerIndex);
27,521
private static void registerBuiltinsHelpers(final HelperRegistry registry) {<NEW_LINE>registry.registerHelper(WithHelper.NAME, WithHelper.INSTANCE);<NEW_LINE>registry.registerHelper(IfHelper.NAME, IfHelper.INSTANCE);<NEW_LINE>registry.registerHelper(UnlessHelper.NAME, UnlessHelper.INSTANCE);<NEW_LINE>registry.registerH...
EmbeddedHelper.NAME, EmbeddedHelper.INSTANCE);
1,505,583
public static QueryMediaWorkflowListResponse unmarshall(QueryMediaWorkflowListResponse queryMediaWorkflowListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryMediaWorkflowListResponse.setRequestId<MASK><NEW_LINE>List<String> nonExistMediaWorkflowIds = new ArrayList<String>();<NEW_LINE>for (int i = 0; i < _ctx.length...
(_ctx.stringValue("QueryMediaWorkflowListResponse.RequestId"));
386,689
public Map<String, Object> handleJsonRequest(Map<String, ?> input) {<NEW_LINE>if (input == null) {<NEW_LINE>throw new BadRequestException("Malformed JSON");<NEW_LINE>}<NEW_LINE>String registrarId = (String) input.get(ID_PARAM);<NEW_LINE>if (Strings.isNullOrEmpty(registrarId)) {<NEW_LINE>throw new BadRequestException(St...
args, registrarId).toJsonResponse();
1,256,506
private static List<String> convert(File snippetDirectory) {<NEW_LINE>List<String> snippets = new ArrayList<String>();<NEW_LINE>File[] plistFiles = findSnippetFiles(snippetDirectory);<NEW_LINE>if (plistFiles == null)<NEW_LINE>return snippets;<NEW_LINE>for (File plistFile : plistFiles) {<NEW_LINE>try {<NEW_LINE>Map<Stri...
(keyBinding).append("'\n");
225,587
protected SdkFileEntry generateEventStreamHandlerSourceFile(ServiceModel serviceModel, Map.Entry<String, Shape> shapeEntry) throws Exception {<NEW_LINE>Shape shape = shapeEntry.getValue();<NEW_LINE>if (shape.isRequest()) {<NEW_LINE>Template template = velocityEngine.getTemplate("/com/amazonaws/util/awsclientgenerator/v...
Operation op = opEntry.getValue();
1,490,030
private void createRedisTable() throws Exception {<NEW_LINE>// Get the master addresses.<NEW_LINE>Universe universe = Universe.getOrBadRequest(taskParams().universeUUID);<NEW_LINE>String masterAddresses = universe.getMasterAddresses();<NEW_LINE>log.info("Running {}: universe = {}, masterAddress = {}", getName(), taskPa...
ybService.closeClient(client, masterAddresses);
1,039,598
private static String resolveType(String elementTypeName, RefactoringStatus status, IType declaringType, IProgressMonitor pm) throws CoreException {<NEW_LINE>String[][] fqns = declaringType.resolveType(elementTypeName);<NEW_LINE>if (fqns != null) {<NEW_LINE>if (fqns.length == 1) {<NEW_LINE>return JavaModelUtil.concaten...
, BasicElementLabels.getJavaElementName(elementTypeName));
263,383
public Map<Path, Path> normalize(final Map<Path, Path> files) {<NEW_LINE>final Map<Path, Path> normalized = new HashMap<Path, Path>();<NEW_LINE>Iterator<Path> sourcesIter = files.keySet().iterator();<NEW_LINE>Iterator<Path> destinationsIter = files.values().iterator();<NEW_LINE>while (sourcesIter.hasNext()) {<NEW_LINE>...
Path source = sourcesIter.next();
1,509,190
private void handleProperty(EntityType entityType, Class<?> cl, Attribute<?, ?> p) throws NoSuchMethodException, ClassNotFoundException {<NEW_LINE>Class<?> clazz = Object.class;<NEW_LINE>try {<NEW_LINE>clazz = p.getJavaType();<NEW_LINE>} catch (MappingException e) {<NEW_LINE>// ignore<NEW_LINE>}<NEW_LINE>Type propertyT...
get(0), valueType));
1,677,011
private final ExprNode processSetOfAll(TreeNode treeNode, TreeNode[] children, ModuleNode cm) throws AbortException {<NEW_LINE>ExprNode[] ops = new ExprNode[1];<NEW_LINE>int length = (children.length - 3) / 2;<NEW_LINE>FormalParamNode[][] odna = new FormalParamNode[length][0];<NEW_LINE>boolean[] tuples = new boolean[le...
] exprs = new ExprNode[length];
1,847,595
void paint(@Nonnull Graphics2D g) {<NEW_LINE>Rectangle clip = g.getClipBounds();<NEW_LINE>if (clip == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BufferedImage buffer = Registry.is("editor.dumb.mode.available") ? getUserData(BUFFER) : null;<NEW_LINE>if (buffer != null) {<NEW_LINE>Rectangle rect = getContentComponent()...
rect.x, rect.y);
1,409,182
static void run_till_stable(int num_threads, int num_trials, int impl) {<NEW_LINE>Counter C = make_ctr(impl);<NEW_LINE>System.out.printf("=== %10.10s %3d cnts/sec=", C.name(), num_threads);<NEW_LINE>// Number of trials<NEW_LINE>long[] trials = new long[num_trials];<NEW_LINE>// Total ops altogether<NEW_LINE>long total...
System.out.print(" Lossage=");
179,188
// this method is called by its superclass during a read loop<NEW_LINE>@Override<NEW_LINE>protected void readField(long recordsToReadInThisPass) {<NEW_LINE>recordsReadInThisIteration = Math.min(pageReader.pageValueCount - pageReader.valuesRead, recordsToReadInThisPass - valuesReadInCurrentPass);<NEW_LINE>if (recordsReq...
() : pageReader.getValueReader();
1,049,136
final ListPipelineParametersForExecutionResult executeListPipelineParametersForExecution(ListPipelineParametersForExecutionRequest listPipelineParametersForExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPipelineParametersForExecutionRequest);<NEW_LINE>AWSRequestMetrics awsRe...
endClientExecution(awsRequestMetrics, request, response);
1,256,726
public List<ConsumerGroup> findByName(String clusterId, List<String> groups) throws ExecutionException, InterruptedException {<NEW_LINE>Optional<List<String>> consumerGroupRegex = getConsumerGroupFilterRegex();<NEW_LINE>List<String> filteredConsumerGroups = groups.stream().filter(t -> isMatchRegex(consumerGroupRegex, t...
kafkaWrapper.describeTopicsOffsets(clusterId, topics);
1,622,284
public okhttp3.Call updatePetCall(Pet pet, final ApiCallback _callback) throws ApiException {<NEW_LINE>String basePath = null;<NEW_LINE>// Operation Servers<NEW_LINE>String[] localBasePaths = new String[] { "http://petstore.swagger.io/v2", "http://path-server-test.petstore.local/v2" };<NEW_LINE>// Determine Base Path t...
final String[] localVarAccepts = {};
690,585
private void parseFromBtcLockSender(BtcLockSender btcLockSender) {<NEW_LINE>this.protocolVersion = 0;<NEW_LINE>this.rskDestinationAddress = btcLockSender.getRskAddress();<NEW_LINE>this.btcRefundAddress = btcLockSender.getBTCAddress();<NEW_LINE>this.senderBtcAddress = btcLockSender.getBTCAddress();<NEW_LINE>this.senderB...
"[parseFromBtcLockSender] Sender BTC address type: {}", btcLockSender.getTxSenderAddressType());
1,219,955
static public void apply(@NotNull String methodName, @NotNull MethodReference reference, @NotNull ProblemsHolder holder) {<NEW_LINE>if (methodName.equals("will")) {<NEW_LINE>final PsiElement[] arguments = reference.getParameters();<NEW_LINE>if (arguments.length == 1 && arguments[0] instanceof MethodReference) {<NEW_LIN...
= (MethodReference) arguments[0];
687,507
protected int countByC_U(String companyId, String userId) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>session = openSession();<NEW_LINE>StringBuffer query = new StringBuffer();<NEW_LINE>query.append("SELECT COUNT(*) ");<NEW_LINE>query.append("FROM User_ IN CLASS com.liferay.portal....
.setString(queryPos++, userId);
1,208,686
public static TrainEA constructNEATTrainer(final NEATPopulation population, final CalculateScore calculateScore) {<NEW_LINE>final TrainEA result = new TrainEA(population, calculateScore);<NEW_LINE>result.setSpeciation(new OriginalNEATSpeciation());<NEW_LINE>result.setSelection(new TruncationSelection(result, 0.3));<NEW...
, new MutatePerturbLinkWeight(1)));
1,557,324
protected Handlers createHandlers(Config config) {<NEW_LINE>LoggingOptions loggingOptions = new LoggingOptions(config);<NEW_LINE>Tracer tracer = loggingOptions.getTracer();<NEW_LINE>NetworkOptions networkOptions = new NetworkOptions(config);<NEW_LINE>HttpClient.Factory clientFactory = networkOptions.getHttpClientFactor...
UsernameAndPassword uap = secretOptions.getServerAuthentication();
1,173,977
public static void main(String[] args) throws IOException {<NEW_LINE>DataSource video_file = new FileDataSourceImpl("c:/dev/mp4parser2/source_video.h264");<NEW_LINE>DataSource audio_file = new FileDataSourceImpl("c:/dev/mp4parser2/source_audio.aac");<NEW_LINE>int duration = 30472;<NEW_LINE>// supplied duration for the ...
video_file, "eng", 15000, 1001);
773,362
public void printTo(PrintStream out) {<NEW_LINE>if (benchmarkTitle != null) {<NEW_LINE>out.println("Title: " + benchmarkTitle);<NEW_LINE>}<NEW_LINE>out.println("Project dir: " + getProjectDir());<NEW_LINE>out.println("Output dir: " + getOutputDir());<NEW_LINE>out.println("Profiler: " + getProfiler());<NEW_LINE>out.prin...
println("Versions: " + getVersions());
126,378
public Request<ComposeEnvironmentsRequest> marshall(ComposeEnvironmentsRequest composeEnvironmentsRequest) {<NEW_LINE>if (composeEnvironmentsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ComposeEnvironmentsRequest> request = new Default...
request.addParameter("Action", "ComposeEnvironments");
267,042
private static String createIdFieldInitialization(String idPropertyType, String valueVar) {<NEW_LINE>String idField;<NEW_LINE>// PENDING cannot assume that key type is Integer, Long, String, int or long<NEW_LINE>if ("char".equals(idPropertyType)) {<NEW_LINE>idField = valueVar + ".charAt(0);";<NEW_LINE>} else if (PRIMIT...
+ ".class).getAsObject(FacesContext.\n" + "getCurrentInstance(), null, " + valueVar + ")";
1,769,920
private static ExpressionBracket extractExprWithinParenthesis(String workingExpr) {<NEW_LINE>char[<MASK><NEW_LINE>int offsetOpenBracket = workingExpr.indexOf(OPEN_BRACKET);<NEW_LINE>int offsetEnd = offsetOpenBracket + 1;<NEW_LINE>int bracketLevel = 0;<NEW_LINE>boolean closeBrackFound = false;<NEW_LINE>while (!closeBrac...
] caracteres = workingExpr.toCharArray();
1,402,152
protected void updateLocales() {<NEW_LINE>final List<Locale> data;<NEW_LINE>if (CollectionUtils.notEmpty(locales)) {<NEW_LINE>// If locales are limited we use all supported ones from the limitation list<NEW_LINE>data = LanguageManager.getSupportedLocales(locales);<NEW_LINE>} else {<NEW_LINE>// If locales are not explic...
data.add(0, systemLocale);
661,930
public Object visit(Object context1, DeleteOpExpression expr, boolean strict) {<NEW_LINE>ExecutionContext context = (ExecutionContext) context1;<NEW_LINE>Object result = expr.getExpr().accept(context, this, strict);<NEW_LINE>if (!(result instanceof Reference)) {<NEW_LINE>return (true);<NEW_LINE>}<NEW_LINE>Reference ref...
(EnvironmentRecord) ref.getBase();
4,961
private void apply(ClassWriter writer, String moduleInternalName, String lambdaName, NameGenerator registry) throws Exception {<NEW_LINE>Type owner = getController().toJvmType();<NEW_LINE>String methodName = executable.getSimpleName().toString();<NEW_LINE>String methodDescriptor = methodDescriptor();<NEW_LINE>MethodVis...
apply, owner, moduleInternalName, registry);
665,168
final void executeRegisterActivityType(RegisterActivityTypeRequest registerActivityTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerActivityTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEven...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
162,713
public //<NEW_LINE>void onDrawFrame(GL10 glUnused) {<NEW_LINE>// Set the viewport<NEW_LINE>GLES30.glViewport(0, 0, mWidth, mHeight);<NEW_LINE>// Clear the color buffer<NEW_LINE>GLES30.glClear(GLES30.GL_COLOR_BUFFER_BIT);<NEW_LINE>// Use the program object<NEW_LINE>GLES30.glUseProgram(mProgramObject);<NEW_LINE>// Load t...
GLES30.GL_TEXTURE_WRAP_S, GLES30.GL_REPEAT);
123,160
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent sourcePermanent = game.getPermanent(source.getSourceId());<NEW_LINE>if (controller != null && sourcePermanent != null) {<NEW_LINE>Choice abilityChoice = new ChoiceImpl(true);<NEW_L...
= new HashSet<>(3);
1,445,732
public static ListTaskDetailResponse unmarshall(ListTaskDetailResponse listTaskDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTaskDetailResponse.setRequestId(_ctx.stringValue("ListTaskDetailResponse.RequestId"));<NEW_LINE>listTaskDetailResponse.setCode(_ctx.stringValue("ListTaskDetailResponse.Code"));<NEW_LIN...
(_ctx.booleanValue("ListTaskDetailResponse.Success"));
1,287,821
public void parse(XMLStreamReader parser) throws XMLStreamException {<NEW_LINE>for (int i = 0; i < parser.getAttributeCount(); i++) {<NEW_LINE>QName attr = parser.getAttributeName(i);<NEW_LINE>if (attr.getLocalPart().equals("texcoord")) {<NEW_LINE><MASK><NEW_LINE>} else if (attr.getLocalPart().equals("texture")) {<NEW_...
texcoord = parser.getAttributeValue(i);
1,618,188
public boolean occluded(TraceCodeUnit cu, AddressRange range, Range<Long> span) {<NEW_LINE>if (cu == null) {<NEW_LINE>return RangeQueryOcclusion.super.<MASK><NEW_LINE>}<NEW_LINE>AddressSetView known = memSpace.getAddressesWithState(span, s -> s == TraceMemoryState.KNOWN);<NEW_LINE>if (!known.intersects(range.getMinAddr...
occluded(cu, range, span);
951,221
protected Set<Sdk> configuredSdks(Config config, UsesSdk usesSdk) {<NEW_LINE>int appMinSdk = Math.max(usesSdk.getMinSdkVersion(), minKnownSdk.getApiLevel());<NEW_LINE>int appTargetSdk = Math.max(usesSdk.getTargetSdkVersion(), minKnownSdk.getApiLevel());<NEW_LINE>Integer appMaxSdk = usesSdk.getMaxSdkVersion();<NEW_LINE>...
(sdkCollection.getSdk(appTargetSdk));
1,592,636
@SuppressWarnings("unused")<NEW_LINE>public static int onLoad(JNIJavaVM vm, CCharPointer options, @SuppressWarnings("unused") PointerBase reserved) {<NEW_LINE>AgentIsolate.setGlobalIsolate(CurrentIsolate.getIsolate());<NEW_LINE>String optionsString = options.isNonNull() ? fromCString(options) : "";<NEW_LINE>WordPointer...
, JVMTI_EVENT_VM_DEATH, nullHandle()));
176,168
public void onSuccess(Integer timeOfDay, Integer relayStatus, Integer localTemperature, Integer humidityInPercentage, Integer setpoint, Integer unreadEntries) {<NEW_LINE>Map<CommandResponseInfo, Object> responseValues = new LinkedHashMap<>();<NEW_LINE>CommandResponseInfo timeOfDayResponseValue = new CommandResponseInfo...
responseValues.put(setpointResponseValue, setpoint);
905,358
public CoreLabel relationHead() {<NEW_LINE>if (relation.size() == 1) {<NEW_LINE>return relation.get(0);<NEW_LINE>}<NEW_LINE>CoreLabel guess = null;<NEW_LINE><MASK><NEW_LINE>// make sure we don't infinite loop...<NEW_LINE>int iters = 0;<NEW_LINE>while (guess != newGuess && iters < 100) {<NEW_LINE>guess = newGuess;<NEW_L...
CoreLabel newGuess = super.relationHead();
1,672,036
private Stage createStage() {<NEW_LINE>logger.trace("Creating stage for input display");<NEW_LINE>double keyPaneWidth = 225.0;<NEW_LINE>double mousePaneWidth = 100;<NEW_LINE>double spacing = 5;<NEW_LINE>var pane = new AnchorPane();<NEW_LINE>pane.setStyle("-fx-background-color: rgba(0, 0, 0, 0.75); -fx-background-radius...
var tooltipClose = new Tooltip("Display input - double-click to close");
1,007,796
public DescribeImagePermissionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeImagePermissionsResult describeImagePermissionsResult = new DescribeImagePermissionsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu...
class).unmarshall(context));
1,622,956
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String application, String infoId) throws Exception {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>List<Wo> wraps = null;<NEW_LINE>List<HotPictureInfo> hotPictureInfos = null;<NEW_LINE>Cache.CacheCategory cacheCategory = new Cach...
= "list#" + application + "#" + infoId;
1,052,328
private static BaseComponent wander_chances(BlockPos pos, ServerLevel worldIn) {<NEW_LINE>PathfinderMob creature = new ZombifiedPiglin(EntityType.ZOMBIFIED_PIGLIN, worldIn);<NEW_LINE>creature.finalizeSpawn(worldIn, worldIn.getCurrentDifficultyAt(pos), MobSpawnType.NATURAL, null, null);<NEW_LINE>creature.moveTo(pos, 0.0...
= (total_ticks) / 1000 / 20;
410,602
public static Set<Class<? extends Relation>> suggestedRelationsBetween(Inter source, Inter target) {<NEW_LINE>// Check inputs<NEW_LINE>Objects.requireNonNull(source, "Source is null");<NEW_LINE>Objects.requireNonNull(target, "Target is null");<NEW_LINE><MASK><NEW_LINE>Objects.requireNonNull(sig, "Source has no sig");<N...
SIGraph sig = source.getSig();
1,106,043
private void enqueue(String storageId, String taskToken) {<NEW_LINE>BackupStorage storage = mBackupManager.getBackupStorageProvider(storageId).getStorage();<NEW_LINE>BackupTaskConfig config = storage.getTaskConfig(taskToken);<NEW_LINE>if (config == null)<NEW_LINE>return;<NEW_LINE>if (config instanceof SingleBackupTaskC...
(), taskToken, taskToken));
1,402,229
public static long[] decimal2Long(DecimalStructure from) {<NEW_LINE>int bufPos = 0;<NEW_LINE>long x = 0L;<NEW_LINE>int intg, frac;<NEW_LINE>long to;<NEW_LINE>for (intg = from.getIntegers(); intg > 0; intg -= DIG_PER_DEC1) {<NEW_LINE>long y = x;<NEW_LINE>x = x * DIG_BASE - from.getBuffValAt(bufPos++);<NEW_LINE>if (y < (...
long[] { to, E_DEC_OVERFLOW };
353,518
public InsightHealth unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InsightHealth insightHealth = new InsightHealth();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
class).unmarshall(context));
874,110
private static void runAssertion(RegressionEnvironment env, String epl) {<NEW_LINE>env.compileDeploy<MASK><NEW_LINE>sendManyArray(env, "E1", new double[] { 3, 4 }, new int[] { 30, 40 }, 50);<NEW_LINE>assertReceived(env, "E1", "DA2");<NEW_LINE>env.milestone(0);<NEW_LINE>sendManyArray(env, "E2", new double[] { 1, 2 }, ne...
(epl).addListener("s0");
609,867
Type named() {<NEW_LINE>List<String> <MASK><NEW_LINE>for (; ; ) {<NEW_LINE>if (terms.peek().isWordOrNumber()) {<NEW_LINE>segments.add(terms.poll().toString());<NEW_LINE>} else if (terms.peek().is("@")) {<NEW_LINE>terms.poll();<NEW_LINE>// just consume type annotation<NEW_LINE>consumeAnnotation();<NEW_LINE>continue;<NEW...
segments = new ArrayList<>();
1,823,549
void deleteStreams(Transaction t, final Set<Long> streamIds) {<NEW_LINE>if (streamIds.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<UserPhotosStreamMetadataTable.UserPhotosStreamMetadataRow> smRows = new HashSet<>();<NEW_LINE>Multimap<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow, UserPhotosStreamHa...
.UserPhotosStreamMetadataRow.of(streamId));
834,213
public static ZonedDateTime ofStrict(LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone) {<NEW_LINE>Objects.requireNonNull(localDateTime, "localDateTime");<NEW_LINE>Objects.requireNonNull(offset, "offset");<NEW_LINE>Objects.requireNonNull(zone, "zone");<NEW_LINE>ZoneRules rules = zone.getRules();<NEW_LINE>if (...
trans = rules.getTransition(localDateTime);
1,170,846
public TransformInput computeNonIncrementalInputFromFolder() {<NEW_LINE>final List<JarInput> jarInputs = Lists.newArrayList();<NEW_LINE>final List<DirectoryInput> directoryInputs = Lists.newArrayList();<NEW_LINE>for (SubStream subStream : subStreams) {<NEW_LINE>if (subStream.getFormat() == Format.DIRECTORY) {<NEW_LINE>...
, subStream.getScopes()));
617,359
public void initialize() {<NEW_LINE>setLayout(new GridLayout(5, false));<NEW_LINE>Label ipPrototypeLabel = new Label(this, SWT.NONE);<NEW_LINE>ipPrototypeText = new Text(this, SWT.BORDER);<NEW_LINE>Label ipMaskLabel = new Label(this, SWT.NONE);<NEW_LINE>ipMaskCombo = new Combo(this, SWT.NONE);<NEW_LINE>Label hostnameLa...
(getLabel("feeder.random.prototype") + ":");
921,038
public void processElement(@Element KV<BigQueryTable, BigQueryTablePartition> input, PipelineOptions options) {<NEW_LINE>BigQueryTable t = input.getKey();<NEW_LINE>BigQueryTablePartition p = input.getValue();<NEW_LINE>if (t.isPartitioned() && p == null) {<NEW_LINE>throw new IllegalStateException(String.format("No parti...
), p.getPartitionName());
333,702
private void updateOLCands(final I_C_BPartner_Location oldLocation, final I_C_BPartner_Location newLocation) {<NEW_LINE>final BPartnerLocationId oldBPLocationId = BPartnerLocationId.ofRepoId(oldLocation.getC_BPartner_ID(), oldLocation.getC_BPartner_Location_ID());<NEW_LINE>final BPartnerLocationId newBPLocationId = BPa...
I_C_OLCand.COLUMNNAME_C_BPartner_Location_ID, oldBPLocationId, newBPLocationId);
920,701
public Result delete(UUID customerUUID) {<NEW_LINE>Customer customer = Customer.getOrBadRequest(customerUUID);<NEW_LINE>// TODO(API): Let's get rid of raw Json.<NEW_LINE>// Create DeleteBackupReq in form package and bind to that<NEW_LINE>ObjectNode formData = (ObjectNode) request().body().asJson();<NEW_LINE>List<YBPTas...
"Can not delete {} backup as it is not present in the database.", backupUUID.asText());
130,571
public synchronized XGBoostModel<Label> train(Dataset<Label> examples, Map<String, Provenance> runProvenance, int invocationCount) {<NEW_LINE>if (examples.getOutputInfo().getUnknownCount() > 0) {<NEW_LINE>throw new IllegalArgumentException("The supplied Dataset contained unknown Outputs, and this Trainer is supervised....
float) outputInfo.getID(l);
371,529
public final FunctionEx<ExpressionEvalContext, SlidingWindowPolicy> windowPolicyProvider() {<NEW_LINE>QueryParameterMetadata parameterMetadata = ((HazelcastRelOptCluster) getCluster()).getParameterMetadata();<NEW_LINE>RexToExpressionVisitor visitor = new RexToExpressionVisitor(FAILING_FIELD_TYPE_PROVIDER, parameterMeta...
(3).accept(visitor);
410,731
public Entry<Collection<DSMRMeterDescriptor>, List<CosemObject>> detectMeters(P1Telegram telegram) {<NEW_LINE>final Map<DSMRMeterKind, DSMRMeterDescriptor> detectedMeters = new HashMap<>();<NEW_LINE>final List<CosemObject> availableCosemObjects = List.copyOf(telegram.getCosemObjects());<NEW_LINE>final List<CosemObject>...
detectedMeters.get(meterType.meterKind);
1,565,227
/*<NEW_LINE>* @see com.sitewhere.microservice.api.event.IDeviceEventManagement#<NEW_LINE>* addDeviceLocations(com.sitewhere.spi.device.event.IDeviceEventContext,<NEW_LINE>* com.sitewhere.spi.device.event.request.IDeviceLocationCreateRequest[])<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public List<IDeviceLocation> addDevi...
DeviceEventManagementPersistence.deviceLocationCreateLogic(context, request);
725,238
private RepositoryData safeRepositoryData(long repositoryStateId, Map<String, BlobMetadata> rootBlobs) {<NEW_LINE>final long generation = <MASK><NEW_LINE>final long genToLoad;<NEW_LINE>final RepositoryData cached;<NEW_LINE>if (bestEffortConsistency) {<NEW_LINE>genToLoad = latestKnownRepoGen.updateAndGet(known -> Math.m...
latestGeneration(rootBlobs.keySet());
1,377,577
private static List<LintJob> parseInputs(List<File> inputs, Map<InputSource, CharSequence> contents, MessageContext mc, MessageQueue mq) throws IOException {<NEW_LINE>List<LintJob> compUnits = Lists.newArrayList();<NEW_LINE>// Parse each input, and find annotations.<NEW_LINE>for (File inp : inputs) {<NEW_LINE>CharProdu...
src, new FileContent(cp));
1,660,211
public void selectLiquidKeyboard(final int tabIndex) {<NEW_LINE>final LinearLayout symbolInputView = inputRootBinding != null <MASK><NEW_LINE>final LinearLayout mainInputView = inputRootBinding != null ? inputRootBinding.main.mainInput : null;<NEW_LINE>if (symbolInputView != null) {<NEW_LINE>if (tabIndex >= 0) {<NEW_LI...
? inputRootBinding.symbol.symbolInput : null;
276,017
private static BundleEntryComponent observation(RandomNumberGenerator rand, BundleEntryComponent personEntry, Bundle bundle, BundleEntryComponent encounterEntry, Observation observation) {<NEW_LINE>org.hl7.fhir.dstu3.model.Observation observationResource = new org.hl7.fhir.dstu3.model.Observation();<NEW_LINE>observatio...
observation.codes.get(0);
353,706
static public Class<?> loadClass(String classNameOrURI, Class<?> requiredClass) {<NEW_LINE>if (classNameOrURI == null)<NEW_LINE>throw new ARQInternalErrorException("Null classNameorIRI");<NEW_LINE>if (classNameOrURI.startsWith("http:"))<NEW_LINE>return null;<NEW_LINE>if (classNameOrURI.startsWith("urn:"))<NEW_LINE>retu...
ClsLoader.class, "Class not found: " + className);
928,568
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>if (controller != null) {<NEW_LINE>Choice choice = new ChoiceImpl(true);<NEW_LINE>choice.setMessage("Choose mode");<NEW_LINE>choice.setChoices(choices);<NEW_LINE>if (!controller.choose(outcome, choice, game)) {<NEW_LINE>...
getPlayer(source.getControllerId());
285,658
private static long longByResolvingRawKey(String rawText, String key) {<NEW_LINE>long value = 0;<NEW_LINE>int index = rawText.indexOf(key);<NEW_LINE>while ((index > 0) && (!Character.isWhitespace(rawText.charAt(index - 1)))) {<NEW_LINE>index = rawText.indexOf(key, index + 1);<NEW_LINE>}<NEW_LINE>if (index >= 0) {<NEW_L...
substring(equalSign + 1, exclusiveEnd);
255,831
public void marshall(GroupType groupType, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (groupType.getGroupName() != null) {<NEW_LINE>String groupName = groupType.getGroupName();<NEW_LINE>jsonWriter.name("GroupName");<NEW_LINE>jsonWriter.value(groupName);<NEW_LINE>}<NEW_LIN...
String description = groupType.getDescription();
448,194
static List<Advice> mergeInstrumentationAnnotations(List<Advice> advisors, byte[] classBytes, @Nullable ClassLoader loader, String className) {<NEW_LINE>byte[] <MASK><NEW_LINE>if (Bytes.indexOf(classBytes, marker) == -1) {<NEW_LINE>return advisors;<NEW_LINE>}<NEW_LINE>InstrumentationSeekerClassVisitor cv = new Instrume...
marker = "Lorg/glowroot/agent/api/Instrumentation$".getBytes(UTF_8);
1,484,804
public Flux<ReactiveRedisConnection.CommandResponse<PendingRecordsCommand, PendingMessagesSummary>> xPendingSummary(Publisher<PendingRecordsCommand> publisher) {<NEW_LINE>return execute(publisher, command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Key must not be null!");<NEW_LINE>Assert.notNull(command.getGroupNa...
k, command.getGroupName());
523,597
private static Entry medicationAdministration(RandomNumberGenerator rand, Entry personEntry, Bundle bundle, Entry encounterEntry, Medication medication) {<NEW_LINE>MedicationAdministration medicationResource = new MedicationAdministration();<NEW_LINE>medicationResource.setPatient(new ResourceReferenceDt(personEntry.get...
(encounterEntry.getFullUrl()));
1,846,877
/*<NEW_LINE>* Posts proper lost/gain focus events to the event queue.<NEW_LINE>*/<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>public static // provided by the descendant peers<NEW_LINE>boolean // provided by the descendant peers<NEW_LINE>deliverFocus(// provided by the descendant peers<NEW_LINE>Component lightwe...
FOCUS_LOST, false, lightweightChild, cause);
800,110
public void exportFieldRadio(JRPrintElement element) throws IOException {<NEW_LINE>String fieldName = element.<MASK><NEW_LINE>fieldName = fieldName == null || fieldName.trim().length() == 0 ? "FIELD_" + element.getUUID() : fieldName;<NEW_LINE>PdfRadioCheck radioField = pdfProducer.getRadioField(element.getX() + exporte...
getPropertiesMap().getProperty(PDF_FIELD_NAME);
279,342
protected String formatCommand(Command command, String format, ValueFormatter valueFormatter, String... keys) {<NEW_LINE>Object[] values = new String[keys.length];<NEW_LINE>for (int i = 0; i < keys.length; i++) {<NEW_LINE>String value = null;<NEW_LINE>if (keys[i].equals(Command.KEY_UNIQUE_ID)) {<NEW_LINE>value = getUni...
String.format(format, values);
614,702
public static SessionRecord initializeAliceSession(IdentityKeyPair identityKey, ECKeyPair baseKey, IdentityKey theirIdentityKey, ECPublicKey theirSignedPreKey, ECPublicKey theirRatchetKey) {<NEW_LINE>try (NativeHandleGuard identityPrivateGuard = new NativeHandleGuard(identityKey.getPrivateKey());<NEW_LINE>NativeHandleG...
getPublicKey().getPublicKey());
671,238
private static boolean registerServerInstanceFO(FileObject serverInstanceDir, String url, String displayName, String serverRoot, String domainRoot, String domainName, String port, String username, String password, String javaOpts, Version version) {<NEW_LINE>// NOI18N<NEW_LINE>String name = FileUtil.findFreeFileName(se...
setAttribute(WLPluginProperties.DOMAIN_ROOT_ATTR, domainRoot);
1,236,104
final AllocateTransitVirtualInterfaceResult executeAllocateTransitVirtualInterface(AllocateTransitVirtualInterfaceRequest allocateTransitVirtualInterfaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(allocateTransitVirtualInterfaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,497,962
public void cleanupSessionTempBlocks(long sessionId, List<Long> tempBlockIds) {<NEW_LINE>Set<Long> sessionTempBlocks = mSessionIdToTempBlockIdsMap.get(sessionId);<NEW_LINE>// The session's temporary blocks have already been removed.<NEW_LINE>if (sessionTempBlocks == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Lon...
LOG.warn("Blocks still owned by session {} after cleanup.", sessionId);
1,592,739
public void onCompletion(Void result, Exception exception) {<NEW_LINE>long latencyPerBlob = SystemTime.getInstance().milliseconds() - startTimeGetBlobInMs;<NEW_LINE>metricsCollector.updateLatency(latencyPerBlob);<NEW_LINE>logger.trace(" Time taken to delete blob {} in ms {}", blobId, latencyPerBlob);<NEW_LINE>final Ato...
("UnknownException thrown for deletion of " + blobId, exception));
746,134
public // / <param name="level"></param><NEW_LINE>void IncrementCounter(String level) {<NEW_LINE>int otherLevelInt;<NEW_LINE>String otherLevelStr;<NEW_LINE>if (!this.levels.get(level).getCounter().isEncounteredAlready()) {<NEW_LINE>// We haven't encountered this level before,<NEW_LINE>// so check that the lower levels ...
get(level).IncrementCounter();
717,139
public Object decode(Response response, Type type) throws IOException {<NEW_LINE>if (response.status() == 404)<NEW_LINE>return Util.emptyValueOf(type);<NEW_LINE>if (response.body() == null)<NEW_LINE>return null;<NEW_LINE>while (type instanceof ParameterizedType) {<NEW_LINE>ParameterizedType ptype = (ParameterizedType) ...
body().asInputStream());
892,307
public static GetSecretParametersResponse unmarshall(GetSecretParametersResponse getSecretParametersResponse, UnmarshallerContext _ctx) {<NEW_LINE>getSecretParametersResponse.setRequestId(_ctx.stringValue("GetSecretParametersResponse.RequestId"));<NEW_LINE>List<String> invalidParameters = new ArrayList<String>();<NEW_L...
("GetSecretParametersResponse.Parameters[" + i + "].Id"));
569,883
public LastAdminGroupRoomList requestLastAdminRoomsGroups(Long groupId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'groupId' is set<NEW_LINE>if (groupId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'gr...
final String[] localVarContentTypes = {};
597,011
protected void savePreferences(DBPPreferenceStore store) {<NEW_LINE>try {<NEW_LINE>store.setValue(SQLPreferenceConstants.STATEMENT_INVALIDATE_BEFORE_EXECUTE, invalidateBeforeExecuteCheck.getSelection());<NEW_LINE>store.setValue(SQLPreferenceConstants.STATEMENT_TIMEOUT, executeTimeoutText.getSelection());<NEW_LINE>store...
QUERY_REMOVE_TRAILING_DELIMITER, removeTrailingDelimiter.getSelection());
1,382,428
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_set_group_manager);<NEW_LINE>titleBarLayout = <MASK><NEW_LINE>managerCountLabel = findViewById(R.id.set_group_manager_manager_label);<NEW_LINE>managerList = findViewById(R.id.set_g...
findViewById(R.id.set_group_manager_title_bar);
1,107,571
public synchronized int fetchPartitionCount(long timeoutMillis) {<NEW_LINE>int unknownTopicReplyCount = 0;<NEW_LINE>final int maxUnknownTopicReplyCount = 10;<NEW_LINE>int kafkaErrorCount = 0;<NEW_LINE>final int maxKafkaErrorCount = 10;<NEW_LINE>final long endTime = System.currentTimeMillis() + timeoutMillis;<NEW_LINE>w...
throw new RuntimeException("Invalid topic name " + _topic);
1,479,149
public Object calculate(Context ctx) {<NEW_LINE>if (param == null || param.isLeaf()) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("swap" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>if (param.getSubSize() != 2) {<NEW_LINE>MessageManager mm = EngineMessage.get();<N...
MessageManager mm = EngineMessage.get();
935,313
private static void tryAssertionMinMax(RegressionEnvironment env, boolean soda, AtomicInteger milestone) {<NEW_LINE>String[] fields = "maxb,maxu,minb,minu".split(",");<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplDeclare = "@public create table varagg (" + "maxb max(int), maxu maxever(int), m...
new SupportBean("E4", 5));
1,379,287
private void handleAlbertaInfo(@NonNull final OrgId orgId, @NonNull final SyncAdvise syncAdvise, @NonNull final JsonRequestBPartnerUpsertItem requestItem, @NonNull final JsonResponseBPartnerCompositeUpsertItem result) {<NEW_LINE>final <MASK><NEW_LINE>final JsonCompositeAlbertaBPartner compositeAlbertaBPartner = request...
JsonRequestComposite requestBPartnerComposite = requestItem.getBpartnerComposite();
224,069
private JCCompilationUnit doCompile(JavaFileObject input, Iterable<JavaFileObject> files, Context context) throws IOException {<NEW_LINE>JavacTool tool = JavacTool.create();<NEW_LINE>DiagnosticCollector<JavaFileObject> diagnosticsCollector = new DiagnosticCollector<>();<NEW_LINE>ErrorProneOptions errorProneOptions;<NEW...
> trees = task.parse();
1,064,899
private void append4Update(ESMapping mapping, Object pkVal, Map<String, Object> esFieldData) {<NEW_LINE>if (mapping.get_id() != null) {<NEW_LINE>String parentVal = (String) esFieldData.remove("$parent_routing");<NEW_LINE>if (mapping.isUpsert()) {<NEW_LINE>ESUpdateRequest esUpdateRequest = this.esConnection.new ES7xUpda...
(esFieldData).setDocAsUpsert(true);
1,012,357
public final AndExprContext andExpr() throws RecognitionException {<NEW_LINE>AndExprContext _localctx = new AndExprContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 24, RULE_andExpr);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>{<NEW_LINE>setState(234);<NEW_LINE>_lo...
.p = _localctx.eqExpr.p;
579,409
private void copySubIntervals(LayoutInterval sourceInterval, LayoutInterval targetInterval, Map /*<String,String>*/<NEW_LINE>sourceToTargetIds) {<NEW_LINE><MASK><NEW_LINE>while (iter.hasNext()) {<NEW_LINE>LayoutInterval sourceSub = (LayoutInterval) iter.next();<NEW_LINE>LayoutInterval clone = null;<NEW_LINE>if (sourceS...
Iterator iter = sourceInterval.getSubIntervals();
135,108
final DeleteSuppressedDestinationResult executeDeleteSuppressedDestination(DeleteSuppressedDestinationRequest deleteSuppressedDestinationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSuppressedDestinationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
(super.beforeMarshalling(deleteSuppressedDestinationRequest));
59,447
private void doDisplayRun() {<NEW_LINE>// don't add anything to mapView if just one point should be displayed<NEW_LINE>if (mapOptions.coords != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>showProgressHandler.sendEmptyMessage(SHOW_PROGRESS);<NEW_LINE>// display caches<NEW_LINE>final List<Geocache> caches...
= new ArrayList<>(waypoints);
222,557
private void readStateSyncLocked() throws IllegalStateException {<NEW_LINE>FileInputStream in;<NEW_LINE>AtomicFile file = new AtomicFile(mStatePersistFile);<NEW_LINE>try {<NEW_LINE>in = file.openRead();<NEW_LINE>} catch (FileNotFoundException fnfe) {<NEW_LINE>Log.w(LOG_TAG, "No settings state " + mStatePersistFile);<NE...
AtomicFile(statePersistFallbackFile).openRead();
879,767
private void _softDeleteDataMetadata(final String userId, @Nullable final List<String> uris) {<NEW_LINE>if (uris != null && !uris.isEmpty()) {<NEW_LINE>final List<String> paramVariables = uris.stream().map(s -> "?").collect(Collectors.toList());<NEW_LINE>final String[] aUris = uris.toArray(new String[0]);<NEW_LINE>fina...
SQL.SOFT_DELETE_DATA_METADATA, deleteDataMetadatas, colTypes);