idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
355,204
private Map<JobId, List<Job>> jobsToRun(Map<InstanceName, Change> changes, boolean eagerTests) {<NEW_LINE>Map<JobId, List<Job>> <MASK><NEW_LINE>changes.forEach((instance, change) -> productionJobs.putAll(productionJobs(instance, change, eagerTests)));<NEW_LINE>Map<JobId, List<Job>> testJobs = testJobs(productionJobs);<...
productionJobs = new LinkedHashMap<>();
810,500
private void exportCSV(String separator, ExportDataDumper eDD) {<NEW_LINE>// Header<NEW_LINE>StringBuffer result = new StringBuffer();<NEW_LINE>// NOI18N<NEW_LINE>String newLine = "\r\n";<NEW_LINE>// NOI18N<NEW_LINE>String quote = "\"";<NEW_LINE>for (int i = 0; i < (columnNames.length); i++) {<NEW_LINE>result.append(qu...
(quote).append(separator);
382,008
private ContentValues mapStory(Map<String, Object> map, Story.FILTER filter, Integer rank) {<NEW_LINE>ContentValues storyValues = new ContentValues();<NEW_LINE>try {<NEW_LINE>String by = (String) map.get("by");<NEW_LINE>Long id = (Long) map.get("id");<NEW_LINE>String type = (String) map.get("type");<NEW_LINE>Long time ...
d(ex.getMessage());
519,423
public void find(FindingsListener findingsListener) {<NEW_LINE>List<Invocation> unusedStubs = new LinkedList<>(this.baseUnusedStubs);<NEW_LINE>List<InvocationMatcher> allInvocations = new LinkedList<>(this.baseAllInvocations);<NEW_LINE>Iterator<Invocation> unusedIterator = unusedStubs.iterator();<NEW_LINE>while (unused...
> unstubbedIterator = allInvocations.iterator();
1,356,106
private AgentActiveThreadDump create2(TActiveThreadLightDump tActiveThreadLightDump) {<NEW_LINE>Objects.requireNonNull(tActiveThreadLightDump, "tActiveThreadLightDump");<NEW_LINE><MASK><NEW_LINE>AgentActiveThreadDump.Builder builder = new AgentActiveThreadDump.Builder();<NEW_LINE>builder.setThreadId(activeThreadDump.ge...
TThreadLightDump activeThreadDump = tActiveThreadLightDump.getThreadDump();
649,051
/* (non-Javadoc)<NEW_LINE>* @see tlc2.tool.liveness.AbstractDiskGraph#toDotViz(tlc2.tool.liveness.OrderOfSolution)<NEW_LINE>*/<NEW_LINE>public final String toDotViz(final OrderOfSolution oos) {<NEW_LINE>final int slen = oos.getCheckState().length;<NEW_LINE>final int alen = oos.getCheckAction().length;<NEW_LINE>// The f...
printError(EC.SYSTEM_DISKGRAPH_ACCESS, e);
757,728
public void probe() {<NEW_LINE>while (true) {<NEW_LINE>long ygc = youngGcMBean.getCollectionCount();<NEW_LINE>if (ygc == lastYoungCount) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long ogc = oldGcMBean.getCollectionCount();<NEW_LINE>long yt = youngGcMBean.getCollectionTime();<NEW_LINE>if (youngGcMBean.getCollectionCount() ...
System.out.println(sb);
1,181,317
protected void updateOKStatus() {<NEW_LINE>IStatus status = null;<NEW_LINE>if (selectRemoteButton.getSelection()) {<NEW_LINE>ISelection selection = tv.getSelection();<NEW_LINE>if (selection != null && !selection.isEmpty() && manualEurekaURL.getText() != null && manualEurekaURL.getText().length() > 0) {<NEW_LINE>status ...
String manualURL = manualEurekaURL.getText();
632,942
final DeleteProgramResult executeDeleteProgram(DeleteProgramRequest deleteProgramRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteProgramRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,384,633
private void interpolateTop(boolean topLeftAvailable, boolean topRightAvailable, byte[] topLeft, byte[] topLine, int blkX, int blkY, byte[] out) {<NEW_LINE>int a = topLeftAvailable ? topLeft[blkY >> 2] : topLine[blkX];<NEW_LINE>out[0] = (byte) ((a + (topLine[blkX] << 1) + topLine[blkX + 1] + 2) >> 2);<NEW_LINE>int i;<N...
] = topLine[blkX + 7];
922,417
public static void processAnnotation(LoggingFramework framework, AnnotationValues<?> annotation, JavacNode annotationNode) {<NEW_LINE>deleteAnnotationIfNeccessary(annotationNode, framework.getAnnotationClass());<NEW_LINE>JavacNode typeNode = annotationNode.up();<NEW_LINE>switch(typeNode.getKind()) {<NEW_LINE>case TYPE:...
framework.getAnnotationAsString() + " requires a topic.");
172,810
private void initComponents() {<NEW_LINE>// GEN-BEGIN:initComponents<NEW_LINE>scrollPane = new javax.swing.JScrollPane();<NEW_LINE>scriptPane = new javax.swing.JEditorPane();<NEW_LINE>hintsArea = new javax.swing.JTextArea();<NEW_LINE>setLayout(new java.awt.BorderLayout(0, 11));<NEW_LINE>scrollPane.setPreferredSize(new ...
(204, 204, 204));
953,791
private void addTransferOutTransaction() {<NEW_LINE>DocumentType type = new DocumentType("Depotbuchung \\- Belastung", isJointAccount);<NEW_LINE>this.addDocumentTyp(type);<NEW_LINE>Block block = new Block("^Depotbuchung \\- Belastung$");<NEW_LINE>type.addBlock(block);<NEW_LINE>Transaction<BuySellEntry> pdfTransaction =...
).wrap(BuySellEntryItem::new);
672,579
public Node initialize(Node node, Supplier<String> idGenerator) {<NEW_LINE>List<Slot> slots = new ArrayList<>();<NEW_LINE>addSlots(slots, idGenerator);<NEW_LINE>node.setSlots(slots.toArray(new Slot[0]));<NEW_LINE>node.getEditorSettings().setTypeLabel(getTypeLabel());<NEW_LINE>node.getEditorSettings(<MASK><NEW_LINE>List...
).setNodeColor(getColor());
256,192
public Set<DataObject> instantiate() throws IOException {<NEW_LINE>FileObject targetFolder = Templates.getTargetFolder(wiz);<NEW_LINE>TestNGSupport.findTestNGSupport(FileOwnerQuery.getOwner(targetFolder)).configureProject(targetFolder);<NEW_LINE>String targetName = Templates.getTargetName(wiz);<NEW_LINE>DataFolder df =...
template = Templates.getTemplate(wiz);
537,075
private void rewriteNewArrayTree(WorkingCopy copy, TreeMaker mk, TreePath natPath, TypeMirror compType) {<NEW_LINE>NewArrayTree nat = (NewArrayTree) natPath.getLeaf();<NEW_LINE>TypeMirror existing = copy.getTrees().getTypeMirror(natPath);<NEW_LINE>int existingDim = numberOfDimensions(existing);<NEW_LINE>int newDim = nu...
copyComments(nat, replacement, false);
1,541,410
public AccessRules unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AccessRules accessRules = new AccessRules();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
class).unmarshall(context));
703,282
public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>if (group == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>app = requiredMyApplication();<NEW_LINE>selectedGpxHelper = app.getSelectedGpxHelper();<NEW_LINE>mapMarkersHelper = app.getMapMarkersHelper();<NEW_LINE>items.add(new TitleItem(getCategoryName(app,...
.add(createShowOnMapItem(selectedGpxFile));
68,573
private static void addToPool(ResourceLocation pool, ResourceLocation toAdd, int weight) {<NEW_LINE>StructureTemplatePool old = BuiltinRegistries.TEMPLATE_POOL.get(pool);<NEW_LINE>// Fixed seed to prevent inconsistencies between different worlds<NEW_LINE>List<StructurePoolElement> shuffled;<NEW_LINE>if (old != null)<NE...
ResourceLocation name = old.getName();
714,897
private static void applyDiffOptions(String[] lines1, String[] lines2, BuiltInDiffProvider.Options options) {<NEW_LINE>if (options.ignoreLeadingAndtrailingWhitespace && options.ignoreInnerWhitespace) {<NEW_LINE>for (int i = 0; i < lines1.length; i++) {<NEW_LINE>lines1[i] = spaces.matcher(lines1[i]).replaceAll("");<NEW_...
lines2[i].toUpperCase();
226,738
private File retrolambda(File userDir, BuildRequest request, File classDir, boolean rename) throws Exception {<NEW_LINE>File output = new File(classDir.getParentFile(), classDir.getName() + "_retrolamda");<NEW_LINE>output.mkdir();<NEW_LINE>HashMap<String, String> env = new HashMap<String, String>();<NEW_LINE>String ret...
separator + "java").getAbsolutePath();
756,947
private static LastInvoiceInfo extractLastSalesInvoiceInfo(@Nullable final I_C_BPartner_Product_Stats_Invoice_Online_V record) {<NEW_LINE>if (record == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final InvoiceId invoiceId = InvoiceId.ofRepoId(record.getC_Invoice_ID());<NEW_LINE>if (// shall not happen<NEW_LINE>in...
ofRepoIdOrNull(record.getC_Currency_ID());
1,731,231
private void checkContentLanguageHeaderNorwegian(String detectedLanguage, String detectedLanguageName, String detectedLanguageCode) throws SAXException {<NEW_LINE>if ("".equals(httpContentLangHeader) || httpContentLangHeader.contains(",")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>String contentLangCode = ...
String lowerCaseContentLang = httpContentLangHeader.toLowerCase();
280,111
public int execute(String fullCommand, CommandLine cl, Shell shellState) throws Exception {<NEW_LINE>if (cl.hasOption(enable.getOpt())) {<NEW_LINE>extensions = ServiceLoader.load(ShellExtension.class);<NEW_LINE>for (ShellExtension se : extensions) {<NEW_LINE>loadedExtensions.add(se.getExtensionName());<NEW_LINE>String ...
shellState.commandGrouping.remove(header);
741,120
public void start() {<NEW_LINE>if (hasRedissonInstance) {<NEW_LINE>redisson = Redisson.create(config);<NEW_LINE>}<NEW_LINE>retrieveAddresses();<NEW_LINE>if (config.getRedissonNodeInitializer() != null) {<NEW_LINE>config.getRedissonNodeInitializer().onStartup(this);<NEW_LINE>}<NEW_LINE>int mapReduceWorkers = config.getM...
(name).registerWorkers(options);
1,779,789
public Set<K> keySet() {<NEW_LINE>return new AbstractSet<K>() {<NEW_LINE><NEW_LINE>final List<String<MASK><NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Iterator<K> iterator() {<NEW_LINE>return new Iterator<K>() {<NEW_LINE><NEW_LINE>final Iterator<String> it = keys.iterator();<NEW_LINE><NEW_LINE>String lastEncodedKey;<N...
> keys = data.getPropertyKeys();
828,644
public Object importMoveLine(Object bean, Map<String, Object> values) throws AxelorException {<NEW_LINE>assert bean instanceof MoveLine;<NEW_LINE>MoveLine moveLine = (MoveLine) bean;<NEW_LINE>String accountId = (String) values.get("account_importId");<NEW_LINE>Account account = getAccount(accountId);<NEW_LINE>if (accou...
setTaxRate(taxLine.getValue());
1,383,731
protected void trainModel() throws LibrecException {<NEW_LINE>MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder().iterations(1).updater(Updater.NESTEROVS).learningRate(learningRate).weightInit(WeightInit.XAVIER_UNIFORM).optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT).regularization(t...
autoRecModel.fit(trainSet, trainSet);
1,347,922
private void applyOffsetToItem(CompoundTag item, Point3i offset) {<NEW_LINE>if (item == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CompoundTag tag = Helper.tagFromCompound(item, "tag");<NEW_LINE>if (tag == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String id = Helper.stringFromCompound(item, "id", "");<NEW_LINE>swi...
Helper.tagFromCompound(blockEntityTag, "Items");
610,233
public ListenableFuture<?> execute(DropColumn statement, TransactionManager transactionManager, Metadata metadata, AccessControl accessControl, Session session, List<Expression> parameters, WarningCollector warningCollector) {<NEW_LINE>QualifiedObjectName tableName = createQualifiedObjectName(session, statement, statem...
getValue().toLowerCase(ENGLISH);
154,056
public static void createThumbnailPdf(Context context, String localPath, MegaApiAndroid megaApi, long handle) {<NEW_LINE>logDebug(<MASK><NEW_LINE>MegaNode pdfNode = megaApi.getNodeByHandle(handle);<NEW_LINE>if (pdfNode == null) {<NEW_LINE>logWarning("Pdf is NULL");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int pageNumber = ...
"createThumbnailPdf: " + localPath + " : " + handle);
661,440
public void allocatePorts(int start, PortAllocBridge from) {<NEW_LINE>if (start == 0)<NEW_LINE>start = BASEPORT;<NEW_LINE>int offset = 0;<NEW_LINE>if (getHttp() == null) {<NEW_LINE>if (requireSpecificPorts) {<NEW_LINE>allocatedSearchPort = <MASK><NEW_LINE>} else {<NEW_LINE>allocatedSearchPort = from.allocatePort("http"...
from.requirePort(start, "http");
575,477
final SendEmailResult executeSendEmail(SendEmailRequest sendEmailRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(sendEmailRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<SendEmailRequest> request = null;<NEW_LINE>Response<SendEmai...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,021,534
// Turtle [16] NumericLiteral<NEW_LINE>final public Node NumericLiteral() throws ParseException {<NEW_LINE>Token t;<NEW_LINE>switch((jj_ntk == -1) ? jj_ntk_f() : jj_ntk) {<NEW_LINE>case INTEGER:<NEW_LINE>{<NEW_LINE>t = jj_consume_token(INTEGER);<NEW_LINE>{<NEW_LINE>if ("" != null)<NEW_LINE>return createLiteralInteger(t...
t.beginLine, t.beginColumn);
1,081,984
public void validate(final AccountDimension accountDimension) {<NEW_LINE>final Set<String> mandatoryFieldsNotFilled = new HashSet<>();<NEW_LINE>//<NEW_LINE>// Validate C_AcctSchema_ID<NEW_LINE>if (AcctSchemaId.equals(accountDimension.getAcctSchemaId(), acctSchemaId)) {<NEW_LINE>throw new AdempiereException("C_AcctSchem...
throw new FillMandatoryException(true, mandatoryFieldsNotFilled);
527,797
private static void analyzeTags(String key, Extractor extractor) throws IOException {<NEW_LINE>System.out.println("Tag: " + key);<NEW_LINE>Map<String, Tag> parsedMap = new LinkedHashMap<>();<NEW_LINE>List<Tag> failed = new ArrayList<>();<NEW_LINE>int count = 0;<NEW_LINE>for (Tag tag : loadTags(key)) {<NEW_LINE>count +=...
existing = parsedMap.get(normalized);
1,062,270
public static byte[] createOIDFiltersExtension(Hashtable filters) throws IOException {<NEW_LINE>ByteArrayOutputStream buf = new ByteArrayOutputStream();<NEW_LINE>// Placeholder for length<NEW_LINE>TlsUtils.writeUint16(0, buf);<NEW_LINE>if (null != filters) {<NEW_LINE>Enumeration keys = filters.keys();<NEW_LINE>while (k...
]) filters.get(certificateExtensionOID);
1,268,962
public final /*<NEW_LINE>Can't use @Messages, as the package is shared with startup.base; generated Bundle<NEW_LINE>files would overwrite each other.<NEW_LINE>@Messages({<NEW_LINE>"MSG_start_load_cache=Loading cached objects...",<NEW_LINE>"MSG_end_load_cache=Loading cached objects...done."<NEW_LINE>})<NEW_LINE>*/<NEW_L...
Level.WARNING, "Ignoring cache of layers", ex);
1,353,693
public static DataWriter create(FileSystemContext context, long blockId, long blockSize, WorkerNetAddress address, OutStreamOptions options) throws IOException {<NEW_LINE>AlluxioConfiguration alluxioConf = context.getClusterConf();<NEW_LINE>boolean shortCircuit = alluxioConf.getBoolean(PropertyKey.USER_SHORT_CIRCUIT_EN...
info("Creating UFS-fallback short circuit output stream for block {} @ {}", blockId, address);
764,515
private void addLabelAndReference(Program program, Instruction switchInstruction, Address target, String label) {<NEW_LINE>program.getReferenceManager().addMemoryReference(switchInstruction.getMinAddress(), target, RefType.COMPUTED_JUMP, SourceType.ANALYSIS, CodeUnit.MNEMONIC);<NEW_LINE>// put switch table cases into n...
).getNamespace(switchName, null);
656,507
private void openInviteDialog(Activity activity, final OnInviteListener onInviteListener) {<NEW_LINE>// build request<NEW_LINE>GameRequestContent.Builder builder = new GameRequestContent.Builder();<NEW_LINE>builder.setMessage(mMessage);<NEW_LINE>builder.setData(mData);<NEW_LINE>builder.setTo(mTo);<NEW_LINE>if (mSuggest...
GameRequestContent gameRequestContent = builder.build();
1,585,118
public boolean apply(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Receiver receiver, ValueNode iterations, ValueNode condition) {<NEW_LINE>// This directive has an actual definition that only works well if the bytecode<NEW_LINE>// parser inlines it, so also provide this plugin equivalent to its definition:<N...
double probability = 1. - 1. / iterationsConstant;
948,381
public static ListAnsInstancesResponse unmarshall(ListAnsInstancesResponse listAnsInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAnsInstancesResponse.setRequestId(_ctx.stringValue("ListAnsInstancesResponse.RequestId"));<NEW_LINE>listAnsInstancesResponse.setHttpCode(_ctx.stringValue("ListAnsInstancesRespons...
("ListAnsInstancesResponse.Data[" + i + "].Enabled"));
889,860
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see com.aptana.editor.js.parsing.ast.JSTreeWalker#visit(com.aptana.editor.js.parsing.ast.JSConstructNode)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void visit(JSConstructNode node) {<NEW_LINE>checkCancellation();<NEW_LINE>IParseNode child = node.getExpression();<NEW_LINE>if ...
types = this.getTypes(child);
732,031
public void padIcon(Icon icon, int percent) {<NEW_LINE>for (String id : icon.getIds()) {<NEW_LINE>// Calculate padding percentage<NEW_LINE>int w = images.get(id).getWidth();<NEW_LINE>int h = images.get(id).getHeight();<NEW_LINE>int wPad = (int) ((percent / 100.0) * w);<NEW_LINE>int hPad = (int) (<MASK><NEW_LINE>Buffere...
(percent / 100.0) * h);
376,854
private void buildTypeConstants(final Index index, FileScopeImpl fileScope, final List<Occurence> occurences) {<NEW_LINE>if (CancelSupport.getDefault().isCancelled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Collection<? extends TypeElement> types = resolveTypes(index, elementInfo);<NEW_LINE>if (!types.isEmpty()) {<NEW_L...
buildStaticConstantInvocations(elementInfo, fileScope, cachedOccurences);
1,718,429
// @see https://gist.github.com/viperwarp/2beb6bbefcc268dee7ad<NEW_LINE>public static WritableMap convertJsonToMap(JSONObject jsonObject) throws JSONException {<NEW_LINE>WritableMap map = new WritableNativeMap();<NEW_LINE>Iterator<String> iterator = jsonObject.keys();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>Stri...
(key, (Integer) value);
1,412,989
private List<Collection<AnchorURL>> extractPdfLinks(final PDDocument pdf) {<NEW_LINE>List<Collection<AnchorURL>> linkCollections = new ArrayList<>(pdf.getNumberOfPages());<NEW_LINE>for (PDPage page : pdf.getPages()) {<NEW_LINE>final Collection<AnchorURL> pdflinks = new ArrayList<AnchorURL>();<NEW_LINE>try {<NEW_LINE>Li...
String uristr = pdflinkuri.getURI();
1,216,147
final CopyFpgaImageResult executeCopyFpgaImage(CopyFpgaImageRequest copyFpgaImageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(copyFpgaImageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,480,208
public static boolean isExecutable(IPath path) {<NEW_LINE>if (path == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (file == null || !file.exists() || file.isDirectory()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// OK, file exists<NEW_LINE>try {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>Method m = Fi...
File file = path.toFile();
1,278,603
public Optional<Map<String, String>> extractCustomSplitInfo(FileSplit split) {<NEW_LINE>if (split instanceof RealtimeBootstrapBaseFileSplit) {<NEW_LINE>ImmutableMap.Builder<String, String> customSplitInfo = ImmutableMap.builder();<NEW_LINE>RealtimeBootstrapBaseFileSplit hudiSplit = (RealtimeBootstrapBaseFileSplit) spli...
, hudiSplit.getDeltaLogPaths()));
583,046
public Result evaluate(Environment environment) {<NEW_LINE>for (BooleanExpr subroutine : _subroutines) {<NEW_LINE>Result subroutineResult = subroutine.evaluate(environment);<NEW_LINE>if (subroutineResult.getExit()) {<NEW_LINE>// Reached an exit/terminal action. Return regardless of boolean value<NEW_LINE>return subrout...
String defaultPolicy = environment.getDefaultPolicy();
81,711
public void testMinute() {<NEW_LINE>final String method = "testMinute";<NEW_LINE>if (svLogger.isLoggable(Level.FINER)) {<NEW_LINE>svLogger.entering(CLASSNAME, method);<NEW_LINE>}<NEW_LINE>if (svLogger.isLoggable(Level.FINEST)) {<NEW_LINE>svLogger.logp(Level.<MASK><NEW_LINE>}<NEW_LINE>TimerConfig tc = new TimerConfig();...
FINEST, CLASSNAME, method, "testing invalid minute in ScheduleExpression");
1,572,577
public void addImpassableRoad(@Nullable final MapActivity mapActivity, @NonNull final LatLon loc, final boolean showDialog, final boolean skipWritingSettings, @Nullable final String appModeKey) {<NEW_LINE>final Location ll = new Location("");<NEW_LINE>ll.setLatitude(loc.getLatitude());<NEW_LINE>ll.setLongitude(loc.getL...
(int) point.x));
1,564,638
public ListIdentityPoolsResult listIdentityPools(ListIdentityPoolsRequest listIdentityPoolsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listIdentityPoolsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAws...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
225,014
private void meetingEnded(MeetingEnded message) {<NEW_LINE>Meeting m = getMeeting(message.meetingId);<NEW_LINE>if (m != null) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>m.setEndTime(now);<NEW_LINE>Map<String, Object> logData = new HashMap<>();<NEW_LINE>logData.put("meetingId", m.getInternalId());<NEW_LI...
logData.put("description", "Meeting has ended.");
1,038,302
ActionResult<Wo> execute(EffectivePerson effectivePerson, String processId, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>Work work = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().creat...
setId(work.getId());
873,124
public String debugLocksState() {<NEW_LINE><MASK><NEW_LINE>if (!(this.usedInit())) {<NEW_LINE>s += "unused";<NEW_LINE>return s;<NEW_LINE>}<NEW_LINE>s += "used, ";<NEW_LINE>if (!(segmentIndexInit())) {<NEW_LINE>s += "segment uninitialized";<NEW_LINE>return s;<NEW_LINE>}<NEW_LINE>s += ("segment " + (segmentIndex())) + ",...
String s = (this) + ": ";
591,487
protected void onBindPreferenceViewHolder(Preference preference, PreferenceViewHolder holder) {<NEW_LINE>super.onBindPreferenceViewHolder(preference, holder);<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR2) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String key = preference.getKey();<NEW_LINE>if (RO...
findViewById(R.id.device_image);
980,567
private void checkSQLServerTables() throws SQLException {<NEW_LINE>LOGGER.entering(CLASSNAME, "checkSQLServerTables");<NEW_LINE>setCreateSQLServerStringsMap();<NEW_LINE>createTableIfNotExists(tableNames.get(CHECKPOINT_TABLE_KEY), SQLServerCreateStrings.get(SQLSERVER_CREATE_TABLE_CHECKPOINTDATA));<NEW_LINE>createTableIf...
LOGGER.exiting(CLASSNAME, "checkSQLServerTables");
772,456
public void project(double camX, double camY, double camZ, Point2D_F64 output) {<NEW_LINE>// angle between incoming ray and principle axis<NEW_LINE>// Principle Axis = (0,0,z)<NEW_LINE>// Incoming Ray = (x,y,z)<NEW_LINE>// uses dot product<NEW_LINE>double theta = Math.acos(camZ / UtilPoint3D_F64.norm(camX, camY, camZ...
Math.atan2(camY, camX);
1,845,524
static ReportSettings readSettingsFromConfig(final AppConfig config) {<NEW_LINE>final SortedMap<DomainID, List<UserPermission>> searchFilters = Collections.unmodifiableSortedMap(new TreeMap<>(config.getDomainConfigs().values().stream().collect(Collectors.toMap(DomainConfig::getDomainID, domainConfig -> domainConfig.rea...
config.readSettingAsLong(PwmSetting.REPORTING_JOB_TIME_OFFSET);
1,176,849
public WebResourceResponse onShouldInterceptRequest(Object request) {<NEW_LINE>String url = request instanceof String ? (String) request : null;<NEW_LINE>String method = "GET";<NEW_LINE>Map<String, String> headers = null;<NEW_LINE>boolean hasGesture = false;<NEW_LINE>boolean isForMainFrame = true;<NEW_LINE>boolean isRe...
Integer) res.get("statusCode");
617,541
private void addPartialType(SourceBuilder code) {<NEW_LINE>code.addLine("").addLine("private static final class %s %s {", datatype.getPartialType().declaration(), datatype.getRebuildableType().map(rebuildable -> extending(rebuildable, false)).orElse(extending(datatype.getType(), datatype.isInterfaceType())));<NEW_LINE>...
code, datatype, generatorsByProperty, true);
1,452,289
private static final <E, D> EntryList of(Iterable<E> elements, StaticArrayEntry.GetColVal<E, D> getter, StaticArrayEntry.DataHandler<D> datahandler) {<NEW_LINE>Preconditions.checkArgument(elements != null && getter != null && datahandler != null);<NEW_LINE>int num = 0;<NEW_LINE>int datalen = 0;<NEW_LINE>EntryMetaData[]...
(getter.getValue(element));
18,423
private static List<List<String>> doParse(String appliesTo) {<NEW_LINE>boolean quoted = false;<NEW_LINE>int index = 0;<NEW_LINE>List<String> entry = new ArrayList<String>();<NEW_LINE>List<List<String>> result = new ArrayList<MASK><NEW_LINE>for (int i = 0; i < appliesTo.length(); i++) {<NEW_LINE>char c = appliesTo.charA...
<List<String>>();
519,292
public void marshall(ImportFileTaskInformation importFileTaskInformation, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (importFileTaskInformation == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(importFil...
importFileTaskInformation.getInputS3Key(), INPUTS3KEY_BINDING);
522,172
final ListOnPremisesInstancesResult executeListOnPremisesInstances(ListOnPremisesInstancesRequest listOnPremisesInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listOnPremisesInstancesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListOnPremisesInstances");
1,126,031
public void push(File hostSource, String deviceDestination) {<NEW_LINE>checkState(hostSource.exists());<NEW_LINE>String path = hostSource.getAbsolutePath();<NEW_LINE>if (hostSource.isFile()) {<NEW_LINE>// Some version of adb opens file with O_NOFOLLOW FLAG.<NEW_LINE>// That means symbolic link doesn't work, resolve it ...
logger.info("IO Exception:" + ex);
507,691
public UnifyResult apply(UnifyRuleCall call) {<NEW_LINE>// Child of projectTarget is equivalent to child of filterQuery.<NEW_LINE>try {<NEW_LINE>// TODO: make sure that constants are ok<NEW_LINE>final MutableProject target = (MutableProject) call.target;<NEW_LINE>final RexShuttle shuttle = getRexShuttle(target);<NEW_LI...
getNamedProjects(), newFilter, shuttle);
839,902
private double pseudoRandom(final long seed, int input) {<NEW_LINE>// Default constants from "man drand48"<NEW_LINE>final long mult = 0x5DEECE66DL;<NEW_LINE>final long add = 0xBL;<NEW_LINE>// 48 bit<NEW_LINE>final long mask = (1L << 48) - 1;<NEW_LINE>// Produce an initial seed each<NEW_LINE>final long i1 = (input ^ see...
) (l2 >>> 21);
89,669
static IsNewStrategy basedOn(Neo4jPersistentEntity<?> entityMetaData) {<NEW_LINE><MASK><NEW_LINE>IdDescription idDescription = entityMetaData.getIdDescription();<NEW_LINE>Class<?> valueType = entityMetaData.getRequiredIdProperty().getType();<NEW_LINE>if (idDescription.isExternallyGeneratedId() && valueType.isPrimitive(...
Assert.notNull(entityMetaData, "Entity meta data must not be null.");
459,344
public BLangNode transform(UnionTypeDescriptorNode unionTypeDescriptorNode) {<NEW_LINE>List<TypeDescriptorNode> nodes = flattenUnionType(unionTypeDescriptorNode);<NEW_LINE>List<TypeDescriptorNode> finiteTypeElements = new ArrayList<>();<NEW_LINE>List<List<TypeDescriptorNode>> unionTypeElementsCollection = new ArrayList...
(BLangFiniteTypeNode) TreeBuilder.createFiniteTypeNode();
628,109
protected void onPostExecute(String response) {<NEW_LINE>LiveUpdatesFragment f = fragment.get();<NEW_LINE>if (response != null && f != null) {<NEW_LINE>TextViewEx descriptionTime = f.descriptionTime;<NEW_LINE>if (descriptionTime != null) {<NEW_LINE>SimpleDateFormat source = new SimpleDateFormat("yyyy-MM-dd HH:mm", Loca...
parsed = source.parse(response);
849,537
private void onDemandOnce(PRestriction restriction, boolean category, PRestriction result, OnDemandResult oResult, Spinner spOnce) {<NEW_LINE>oResult.once = true;<NEW_LINE>// Get duration<NEW_LINE>String value = <MASK><NEW_LINE>if (value == null)<NEW_LINE>result.time = new Date().getTime() + PrivacyManager.cRestriction...
(String) spOnce.getSelectedItem();
1,688,670
// @Override<NEW_LINE>// protected Coordinate[] shiftCoordinates(Coordinate[] array) {<NEW_LINE>// array = super.shiftCoordinates(array);<NEW_LINE>//<NEW_LINE>// for (int i = 0; i < array.length; i++) {<NEW_LINE>// array[i] = new Coordinate(xOffset + index*this.instanceSeparation, yOffset, zOffset);<NEW_LINE>// array[i...
0, body.getLength());
414,951
public RayTraceResult rayTraceBlocks(Location start, Vector direction, double maxDistance, FluidCollisionMode mode, boolean ignorePassableBlocks) {<NEW_LINE>Validate.notNull(start, "Start location equals null");<NEW_LINE>Validate.isTrue(this.equals(start.getWorld()), "Start location a different world");<NEW_LINE>start....
toMc(mode), null));
1,051,096
private boolean findUseTemplates(SaasMethod m, Authenticator authenticator, SaasBean.SessionKeyAuthentication.UseTemplates skUseTemplates) throws IOException {<NEW_LINE>if (authenticator == null)<NEW_LINE>throw new IOException("No authentication element inside sessionkey element in saas-metadata.");<NEW_LINE>if (authen...
UseTemplates useTemplates = authenticator.getUseTemplates();
1,738,989
public List<FileSystemAction> determineFileSystemActions(MemoryDatabase winnersDatabase, boolean cleanupOccurred, List<PartialFileHistory> localFileHistoriesWithLastVersion) throws Exception {<NEW_LINE>this.assembler = new Assembler(config, localDatabase, winnersDatabase);<NEW_LINE>List<FileSystemAction> fileSystemActi...
log(Level.INFO, "- Determine filesystem actions ...");
674,388
public static GetUserInstanceResponse unmarshall(GetUserInstanceResponse getUserInstanceResponse, UnmarshallerContext context) {<NEW_LINE>getUserInstanceResponse.setRequestId<MASK><NEW_LINE>getUserInstanceResponse.setCode(context.integerValue("GetUserInstanceResponse.Code"));<NEW_LINE>getUserInstanceResponse.setMessage...
(context.stringValue("GetUserInstanceResponse.RequestId"));
1,798,720
public void deleteAttachmentFilesForViewOnceMessage(long mmsId) {<NEW_LINE>Log.d(TAG, "[deleteAttachmentFilesForViewOnceMessage] mmsId: " + mmsId);<NEW_LINE>SQLiteDatabase database = databaseHelper.getSignalWritableDatabase();<NEW_LINE>Cursor cursor = null;<NEW_LINE>try {<NEW_LINE>cursor = database.query(TABLE_NAME, ne...
(DATA_HASH, (String) null);
85,869
public ListenerResult listen(WorkflowContext context) throws WorkflowListenerException {<NEW_LINE>LOGGER.info("Create sort config for context={}", context);<NEW_LINE>ProcessForm form = context.getProcessForm();<NEW_LINE>if (form instanceof UpdateGroupProcessForm) {<NEW_LINE>UpdateGroupProcessForm updateGroupProcessForm...
LOGGER.warn("Sink not found by groupId={}", groupId);
837,284
public void afterPush(File[] files, String[] changesets, String hookUsageName) {<NEW_LINE>if (files.length == 0) {<NEW_LINE>// NOI18N<NEW_LINE>LOG.warning("calling after push for zero files");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File file = files[0];<NEW_LINE>// NOI18N<NEW_LINE>LOG.log(Level.FINE, "push hook start for...
Level.FINE, "push hook end for {0}", file);
751,159
protected void parseMetadata(Metadata metadata) {<NEW_LINE>if (metadata == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Directory directory : metadata.getDirectories()) {<NEW_LINE>if (directory instanceof PsdHeaderDirectory) {<NEW_LINE>parsedInfo.format = ImageFormat.PSD;<NEW_LINE>if (((PsdHeaderDirectory) directo...
).getInteger(PsdHeaderDirectory.TAG_IMAGE_HEIGHT);
1,249,346
public void initUserDirs() throws IOException {<NEW_LINE>File _userDirFile = null;<NEW_LINE>String _userDir = null;<NEW_LINE>// NOI18N<NEW_LINE>String ioUserDir = System.getProperty("user.home");<NEW_LINE>// NOI18N<NEW_LINE>String <MASK><NEW_LINE>if (username != null) {<NEW_LINE>for (int i = 0; i < username.length(); i...
username = environment.get("USERNAME");
776,730
public Optional<TransactionWebhookPayload> parseTransactionPayload(String body, String signature, Map<String, String> additionalInfo, PaymentContext paymentContext) {<NEW_LINE>try {<NEW_LINE>var stripeEvent = Webhook.constructEvent(body, signature, getWebhookSignatureKey<MASK><NEW_LINE>String eventType = stripeEvent.ge...
(paymentContext.getConfigurationLevel()));
413,067
public Request<CopyDBClusterParameterGroupRequest> marshall(CopyDBClusterParameterGroupRequest copyDBClusterParameterGroupRequest) {<NEW_LINE>if (copyDBClusterParameterGroupRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<CopyDBClusterPara...
(copyDBClusterParameterGroupRequest.getTargetDBClusterParameterGroupDescription()));
99,893
private static void optimizeOperator(int operator, ASTNode tk, ASTNode tkOp, ASTLinkedList astLinkedList, ASTLinkedList optimizedAst, ParserContext pCtx) {<NEW_LINE>switch(operator) {<NEW_LINE>case Operator.REGEX:<NEW_LINE>optimizedAst.addTokenNode(new RegExMatchNode(tk, astLinkedList.nextNode(), pCtx));<NEW_LINE>break...
"Condition of ternary operator is not of type boolean. Found " + tk.getEgressType());
463,823
private static void onCreate(@NonNull Context context, @NonNull NotificationManager notificationManager) {<NEW_LINE>NotificationChannelGroup messagesGroup = new NotificationChannelGroup(CATEGORY_MESSAGES, context.getResources().getString(R.string.NotificationChannel_group_chats));<NEW_LINE>notificationManager.createNot...
.NotificationChannel_other), NotificationManager.IMPORTANCE_LOW);
163,037
public static Renderable documentJavaElement(SourceLinks sourceLinks, IJavaProject project, IJavaElement je) {<NEW_LINE>Builder<Renderable> renderableBuilder = ImmutableList.builder();<NEW_LINE>if (je instanceof IMember) {<NEW_LINE>IMember member = (IMember) je;<NEW_LINE>renderableBuilder.add(Renderables.lineBreak());<...
add(Renderables.lineBreak());
566,338
public synchronized void createUser(String principal, AuthenticationToken token) throws AccumuloSecurityException {<NEW_LINE>if (!(token instanceof KerberosToken)) {<NEW_LINE>throw new UnsupportedOperationException("Expected a KerberosToken but got a " + token.<MASK><NEW_LINE>}<NEW_LINE>try {<NEW_LINE>createUserNodeInZ...
getClass().getSimpleName());
583,016
private static void doOpen(@Nonnull File _dir, @Nullable File _toSelect) throws IOException, ExecutionException {<NEW_LINE>String dir = FileUtil.toSystemDependentName(FileUtil.toCanonicalPath(_dir.getPath()));<NEW_LINE>String toSelect = _toSelect != null ? FileUtil.toSystemDependentName(FileUtil.toCanonicalPath(_toSele...
debug("opening " + dir + " via desktop API");
1,665,091
public void add(RetryMessage retryMessage) {<NEW_LINE>Objects.requireNonNull(retryMessage, "retryMessage");<NEW_LINE>if (!retryMessage.isRetryAvailable()) {<NEW_LINE>logger.warn("discard retry message({}).", retryMessage);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int retryCount = retryMessage.getRetryCount();<NEW_LINE>if (...
warn("discard retry message({}). queue-maxRetryCount:{}", retryMessage, maxRetryCount);
1,763,985
public static MWMResponse extractFromIntent(@SuppressWarnings("unused") final Context context, final Intent intent) {<NEW_LINE>final MWMResponse response = new MWMResponse();<NEW_LINE>// parse point<NEW_LINE>final double lat = intent.<MASK><NEW_LINE>final double lon = intent.getDoubleExtra(Const.EXTRA_MWM_RESPONSE_POIN...
getDoubleExtra(Const.EXTRA_MWM_RESPONSE_POINT_LAT, INVALID_LL);
1,274,111
public final void normalize() throws ReadOnlyException {<NEW_LINE>checkReadOnly();<NEW_LINE>try {<NEW_LINE>getChildNodes().getEventManager().setFirePolicy(TreeEventManager.FIRE_LATER);<NEW_LINE>for (int i = 0; true; i++) {<NEW_LINE>TreeChild child = item(i);<NEW_LINE>if (child instanceof TreeElement) {<NEW_LINE>((TreeE...
child2 = item(i + 1);
600,530
private void initFreeMarkerConfiguration(ScriptContext ctx) {<NEW_LINE>if (conf == null) {<NEW_LINE>synchronized (this) {<NEW_LINE>if (conf != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Object cfg = ctx.getAttribute(FREEMARKER_CONFIG);<NEW_LINE>if (cfg instanceof Configuration) {<NEW_LINE>conf = (Configuration) cfg;<...
FileObject ? (FileObject) tfo : null;
533,763
public static DescribeImageGatewayConfigResponse unmarshall(DescribeImageGatewayConfigResponse describeImageGatewayConfigResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeImageGatewayConfigResponse.setRequestId(_ctx.stringValue("DescribeImageGatewayConfigResponse.RequestId"));<NEW_LINE>Imagegw imagegw = new Imageg...
("DescribeImageGatewayConfigResponse.Imagegw.Locations[" + i + "].RemoteType"));
1,765,868
final RegisterUsageResult executeRegisterUsage(RegisterUsageRequest registerUsageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerUsageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,308,966
public boolean clear(int index, boolean send) {<NEW_LINE>if (this.slots.containsKey(index)) {<NEW_LINE>Item item = new ItemBlock(Block.get(BlockID<MASK><NEW_LINE>Item old = this.slots.get(index);<NEW_LINE>InventoryHolder holder = this.getHolder();<NEW_LINE>if (holder instanceof Entity) {<NEW_LINE>EntityInventoryChangeE...
.AIR), null, 0);
682,771
private static RouterFunction<?> routingFunction() {<NEW_LINE>return route(GET("/test"), serverRequest -> ok().body(fromValue("helloworld"))).andRoute(POST("/login"), serverRequest -> serverRequest.body(toFormData()).map(MultiValueMap::toSingleValueMap).map(formData -> {<NEW_LINE>System.out.println("form data: " + form...
"Before handler invocation: " + request.path());