idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
264,278
public void run() {<NEW_LINE>SpinnerDialog spinnerDialog = SpinnerDialog.displayDialog(parent, parent.getResources().getString(R.string.nettest_title_waiting), parent.getResources().getString(R.string.nettest_text_waiting), false);<NEW_LINE>int ret = MoonBridge.testClientConnectivity(CONNECTION_TEST_SERVER, 443, MoonBr...
MoonBridge.stringifyPortFlags(ret, "\n");
701,020
private void runCraft() throws Throwable {<NEW_LINE>if (Tools.LOCAL_RENDERER == null) {<NEW_LINE>Tools.LOCAL_RENDERER = LauncherPreferences.PREF_RENDERER;<NEW_LINE>}<NEW_LINE>Logger.<MASK><NEW_LINE>Logger.getInstance().appendToLog("Info: Launcher version: " + BuildConfig.VERSION_NAME);<NEW_LINE>if (Tools.LOCAL_RENDERER...
getInstance().appendToLog("--------- beggining with launcher debug");
1,390,270
private static void loadFile() throws IOException {<NEW_LINE>kits.clear();<NEW_LINE>NbtCompound rootTag = NbtIo.read(new File(configPath.toFile(), "kits.dat"));<NEW_LINE>if (rootTag == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int currentVersion = SharedConstants.getGameVersion().getWorldVersion();<NEW_LINE>fi...
fileVersion = rootTag.getInt("DataVersion");
1,307,090
private boolean validateFile(File xml) {<NEW_LINE>boolean valid = false;<NEW_LINE>try {<NEW_LINE>// logger.debug("xml = " + xml);<NEW_LINE>String ext = xml.getName().replaceAll(".+(\\..+)", "$1");<NEW_LINE>String xsdFile = schemas.get(ext);<NEW_LINE>// logger.debug("xsdFile = " + xsdFile);<NEW_LINE>File xsd = new File(...
println("ERROR: while validating " + xml + " the following errors were found:");
1,742,370
public JsonMapper jsonMapper(ApplicationContext context) {<NEW_LINE>String preferredMapper = context.getEnvironment().containsProperty(JSON_MAPPER_PROPERTY) ? context.getEnvironment().getProperty(JSON_MAPPER_PROPERTY) : context.<MASK><NEW_LINE>if (StringUtils.hasText(preferredMapper)) {<NEW_LINE>if ("gson".equals(prefe...
getEnvironment().getProperty(PREFERRED_MAPPER_PROPERTY);
1,549,761
public static EObject choose_and_invoke_constructor(EProc self, EObject[] args, Constructor<?>[] cons) {<NEW_LINE>for (int i = 0; i < cons.length; i++) {<NEW_LINE>// TODO: handle reflective invocation of Pausable methods<NEW_LINE>Constructor<?> m = cons[i];<NEW_LINE>Class<?>[] pt = m.getParameterTypes();<NEW_LINE>if (p...
JavaObject.box(self, result);
1,372,993
public synchronized StringBuffer insert(int index, char[] chars) {<NEW_LINE>int currentLength = lengthInternalUnsynchronized();<NEW_LINE>if (0 <= index && index <= currentLength) {<NEW_LINE>move(chars.length, index);<NEW_LINE>if (String.COMPACT_STRINGS) {<NEW_LINE>// Check if the StringBuffer is compressed<NEW_LINE>if ...
value, index, chars.length);
744,748
private void loadOtherHyperlink(Hyperlink link, final boolean hasFreeplaneFileExtension) {<NEW_LINE>URI uri = link.getUri();<NEW_LINE>try {<NEW_LINE>if (!uri.isAbsolute()) {<NEW_LINE>URI absoluteUri = getAbsoluteUri(uri);<NEW_LINE>if (absoluteUri == null) {<NEW_LINE>final MapModel map = Controller.getCurrentController(...
ModeController modeController = Controller.getCurrentModeController();
699,771
File downloadAndUnpackContractsIfRequired(ContractVerifierConfigProperties config, File defaultContractsDir) {<NEW_LINE>String contractsDirFromProp = this.project.getProperties().getProperty(CONTRACTS_DIRECTORY_PROP);<NEW_LINE>File downloadedContractsDir = StringUtils.hasText(contractsDirFromProp) ? new File(contractsD...
info("Will use contracts provided in the folder [" + defaultContractsDir + "]");
1,702,095
public int[] split(int[] domain, int[] nodes) {<NEW_LINE>int[] copies = new int[nodes.length];<NEW_LINE>IntIntMap map = new IntIntHashMap();<NEW_LINE>for (int i = 0; i < nodes.length; ++i) {<NEW_LINE>copies[i] = index++;<NEW_LINE>map.put(nodes[i], copies[i] + 1);<NEW_LINE>int proto = prototypeNodes.get(nodes[i]);<NEW_L...
graph.addEdge(node, succCopy);
653,877
public Button createButton(String name) {<NEW_LINE>Button button = new Button();<NEW_LINE>button.setName("btn" + name);<NEW_LINE>button.setId(name);<NEW_LINE>button.setAttribute(AdempiereIdGenerator.ZK_COMPONENT_PREFIX_ATTRIBUTE, button.getId());<NEW_LINE>String text = Msg.translate(<MASK><NEW_LINE>if (!name.equals(tex...
Env.getCtx(), name);
902,510
public void onViewCreated(View view, Bundle savedInstanceState) {<NEW_LINE><MASK><NEW_LINE>if (getArguments().containsKey(TomahawkFragment.COLLECTION_ID)) {<NEW_LINE>String collectionId = getArguments().getString(TomahawkFragment.COLLECTION_ID);<NEW_LINE>Collection collection = CollectionManager.get().getCollection(col...
super.onViewCreated(view, savedInstanceState);
159,681
public byte[] toByteArray() {<NEW_LINE>if (this.sign == 0) {<NEW_LINE>return new byte[] { 0 };<NEW_LINE>}<NEW_LINE>BigInteger temp = this;<NEW_LINE>int bitLen = bitLength();<NEW_LINE>int iThis = getFirstNonzeroDigit();<NEW_LINE>int bytesLen = (bitLen >> 3) + 1;<NEW_LINE>byte[] bytes = new byte[bytesLen];<NEW_LINE>int f...
--bytesLen] = (byte) digit;
1,522,833
public void calculateWeights() {<NEW_LINE>distribution.clear();<NEW_LINE>VertexAttributes attributes = mesh.getVertexAttributes();<NEW_LINE>int indicesCount = mesh.getNumIndices();<NEW_LINE>int vertexCount = mesh.getNumVertices();<NEW_LINE>int vertexSize = (short) (attributes.vertexSize / 4), positionOffset = (short) (...
= new float[vertexCount * vertexSize];
818,626
public StoredContext stashContext() {<NEW_LINE>final <MASK><NEW_LINE>boolean hasHeadersToCopy = false;<NEW_LINE>if (context.requestHeaders.isEmpty() == false) {<NEW_LINE>for (String header : HEADERS_TO_COPY) {<NEW_LINE>if (context.requestHeaders.containsKey(header)) {<NEW_LINE>hasHeadersToCopy = true;<NEW_LINE>break;<N...
ThreadContextStruct context = threadLocal.get();
165,920
public DescribeProtectionGroupResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeProtectionGroupResult describeProtectionGroupResult = new DescribeProtectionGroupResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
().unmarshall(context));
1,488,280
public static void main(String[] args) throws TwilioRestException {<NEW_LINE>TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);<NEW_LINE>String[] randomMessages = { "Working hard", "Gotta ship this feature", "Someone fucked the system again" };<NEW_LINE>int randomIndex = new Random().nextInt(rando...
new BasicNameValuePair("To", HER_NUMBER));
1,428,775
public void deleteSnapshots(Collection<SnapshotId> snapshotIds, long repositoryStateId, Version repositoryMetaVersion, ActionListener<RepositoryData> listener) {<NEW_LINE>if (isReadOnly()) {<NEW_LINE>listener.onFailure(new RepositoryException(metadata.name(), "cannot delete snapshot from a readonly repository"));<NEW_L...
= blobContainer().listBlobs();
86,232
protected <T> T executeRetrieveObject(final Type returnObjectType, final String uri, final Map<String, String> parameters) throws BigSwitchBcfApiException {<NEW_LINE>checkInvariants();<NEW_LINE>GetMethod gm = (GetMethod) createMethod("get", uri, _port);<NEW_LINE>setHttpHeader(gm);<NEW_LINE>if (parameters != null && !pa...
) returnValue).setTopologySyncRequested(true);
1,402,547
public void createPrivateAccess(final CreateRecordPrivateAccessRequest request) {<NEW_LINE>I_AD_Private_Access accessRecord = queryPrivateAccess(request.getPrincipal(), request.getRecordRef()).create(<MASK><NEW_LINE>if (accessRecord == null) {<NEW_LINE>accessRecord = InterfaceWrapperHelper.newInstance(I_AD_Private_Acce...
).firstOnly(I_AD_Private_Access.class);
1,795,960
private void deleteSearchData(Urn urn, String entityName, AspectSpec aspectSpec, RecordTemplate aspect, Boolean isKeyAspect) {<NEW_LINE>String docId;<NEW_LINE>try {<NEW_LINE>docId = URLEncoder.encode(urn.toString(), "UTF-8");<NEW_LINE>} catch (UnsupportedEncodingException e) {<NEW_LINE>log.error("Failed to encode the u...
searchDocument.get(), docId);
886,928
public Clustering<KMeansModel> run(Relation<NumberVector> relation) {<NEW_LINE>CFTree tree = cffactory.newTree(relation.getDBIDs(), relation);<NEW_LINE>// For efficiency, we also need the mean of each CF:<NEW_LINE>ClusteringFeature[] cfs = new ClusteringFeature[tree.leaves];<NEW_LINE>double[][] cfmeans = new double[tre...
.newArray(weights[i]);
1,407,728
public void onFilterEventDispatched(String sessionId, String uniqueSessionId, String connectionId, String streamId, String filterType, GenericMediaEvent event, Set<Participant> participants, Set<String> subscribedParticipants) {<NEW_LINE>CDR.recordFilterEventDispatched(sessionId, uniqueSessionId, connectionId, streamId...
), ProtocolElements.FILTEREVENTDISPATCHED_METHOD, params);
1,596,152
public void downloadFileViaToken(String token, String range, Boolean genericMimetype, Boolean inline) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'token' is set<NEW_LINE>if (token == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter...
("", "inline", inline));
587,380
private Object callValidation(ActionParam actionParam) {<NEW_LINE>String entityType = actionParam.getEntityType();<NEW_LINE>String entityValue = actionParam.getEntityValue();<NEW_LINE>if (entityType.equals("unknown") || entityValue.equals("unknown")) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Long actionId = actionPar...
Status.EXCEPTION.toString());
672,467
final DeleteExpressionResult executeDeleteExpression(DeleteExpressionRequest deleteExpressionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteExpressionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<D...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
16,010
private void uploadResultsToGcs(String destination) {<NEW_LINE>checkArgument(!<MASK><NEW_LINE>Path bucketWithFolder = Paths.get(destination, createUniqueFolderName());<NEW_LINE>String bucket = bucketWithFolder.getName(0).toString();<NEW_LINE>Path folder = bucketWithFolder.subpath(1, bucketWithFolder.getNameCount());<NE...
destination.isEmpty(), "destination must include at least the bucket name, but is empty");
119,916
public void compact(String tableName, CompactionConfig config) throws AccumuloSecurityException, TableNotFoundException, AccumuloException {<NEW_LINE>EXISTING_TABLE_NAME.validate(tableName);<NEW_LINE>// Ensure compaction iterators exist on a tabletserver<NEW_LINE>final String skviName = SortedKeyValueIterator.class.get...
tableName, config.getWait());
1,395,997
private static PartitionInfo createPartitionInfo(ObjectObjectCursor<String, IndexMetadata> indexMetadataEntry) {<NEW_LINE>var indexName = indexMetadataEntry.key;<NEW_LINE>var indexMetadata = indexMetadataEntry.value;<NEW_LINE>PartitionName <MASK><NEW_LINE>try {<NEW_LINE>MappingMetadata mappingMetadata = indexMetadata.m...
partitionName = PartitionName.fromIndexOrTemplate(indexName);
809,082
private void writeContent(final ITreeWriter writer, final NodeModel node, final NodeStyleModel style, final boolean forceFormatting) throws IOException {<NEW_LINE>if (!NodeWriter.shouldWriteSharedContent(writer))<NEW_LINE>return;<NEW_LINE>if (forceFormatting || style != null) {<NEW_LINE>final XMLElement fontElement = n...
)) : style.isBold();
1,284,151
public void update() {<NEW_LINE>if (canUpdate()) {<NEW_LINE><MASK><NEW_LINE>if (con.isActiveExternalConnection(dir)) {<NEW_LINE>IFilter outputFilter = con.getOutputFilter(dir);<NEW_LINE>IFilter inputFilter = con.getInputFilter(dir);<NEW_LINE>if (outputFilter != null || inputFilter != null) {<NEW_LINE>TileEntity te = Bl...
EnumFacing dir = dirsToCheck.next();
925,639
private void createQtyReportEvent(final IContextAware context, final I_PMM_Product pmmProduct, final SyncProductSupply syncProductSupply) {<NEW_LINE>logger.debug("Creating QtyReport event from {} ({})", syncProductSupply, pmmProduct);<NEW_LINE>final List<String> errors = new ArrayList<>();<NEW_LINE>final I_PMM_QtyRepor...
asTimestamp(syncProductSupply.getDay());
1,472,962
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String test = request.getParameter("testMethod");<NEW_LINE>String fileName = request.getParameter("fileName");<NEW_LINE>PrintWriter out = response.getWriter();<NEW_LINE>try {<NEW_LINE>out.print...
println("<----- " + test + " successful");
704,303
private ComponentAnimation replaceComponents(final Component current, final Component next, final Transition t, boolean wait, boolean dropEvents, Runnable onFinish, int growSpeed, int layoutAnimationSpeed, boolean addAnimtion) {<NEW_LINE>if (!contains(current)) {<NEW_LINE>throw new IllegalArgumentException("Component "...
).addUIMutation(this, anim);
1,458,265
final ListDevicesResult executeListDevices(ListDevicesRequest listDevicesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDevicesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
false), new ListDevicesResultJsonUnmarshaller());
737,948
public List<Handler> createHandlers(EndpointInfo edpInfo, JaxWsInstanceManager instanceMgr) {<NEW_LINE>List<HandlerInfo> handlerInfos = edpInfo.getHandlerChainsInfo().getAllHandlerInfos();<NEW_LINE>Iterator<HandlerInfo<MASK><NEW_LINE>List<Handler> handlers = new ArrayList<Handler>(handlerInfos.size());<NEW_LINE>while (...
> handlerIter = handlerInfos.iterator();
916,922
private void showNotification(BlockInfo info) {<NEW_LINE>String contentTitle = mContext.getString(R.string.dk_block_class_has_blocked, info.timeStart);<NEW_LINE>String contentText = mContext.getString(R.string.dk_block_notification_message);<NEW_LINE>Intent intent = new Intent(mContext, UniversalActivity.class);<NEW_LI...
intent, FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
1,028,921
private void drawAxisLines(GL2 gl, Position bottomLeft, Position topRight) {<NEW_LINE>double offset = 0.001;<NEW_LINE>gl.glLineWidth(5f);<NEW_LINE>gl.glBegin(GL_LINES);<NEW_LINE>// X Axis Line<NEW_LINE>gl.glColor4fv(yAxisColor, 0);<NEW_LINE>gl.glVertex3d(0, bottomLeft.y, offset);<NEW_LINE>gl.glVertex3d(0, topRight.y, o...
0, bottomLeft.y, offset);
147,537
private void _loadRealms() {<NEW_LINE>List<AuthRealm> authRealmConfigs <MASK><NEW_LINE>List<String> goodRealms = new ArrayList<String>();<NEW_LINE>for (AuthRealm authRealm : authRealmConfigs) {<NEW_LINE>List<Property> propConfigs = authRealm.getProperty();<NEW_LINE>Properties props = new Properties();<NEW_LINE>for (Pro...
= getSecurityService().getAuthRealm();
1,393,924
public void invokeAction(String command, Lookup context) throws IllegalArgumentException {<NEW_LINE>if (COMMAND_DELETE.equals(command)) {<NEW_LINE>DefaultProjectOperations.performDefaultDeleteOperation(project);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (ActionProvider.COMMAND_PRIME.equals(command)) {<NEW_LINE>// delegat...
, prjImpl.isProjectPrimingRequired() });
1,701,875
public void densify(List<String> featureList) {<NEW_LINE>// Ensure we have enough space.<NEW_LINE>if (featureList.size() > featureNames.length) {<NEW_LINE>growArray(featureList.size());<NEW_LINE>}<NEW_LINE>int insertedCount = 0;<NEW_LINE>int curPos = 0;<NEW_LINE>for (String curName : featureList) {<NEW_LINE>// If we've...
.compareTo(featureNames[curPos]);
80,186
public int updateRetryByLock(final HmilyTransaction hmilyTransaction) {<NEW_LINE>final int currentVersion = hmilyTransaction.getVersion();<NEW_LINE>String path = node.getHmilyTransactionRealPath(hmilyTransaction.getTransId());<NEW_LINE>try {<NEW_LINE>if (checkPath(path, true)) {<NEW_LINE>return FAIL_ROWS;<NEW_LINE>}<NE...
hmilyTransaction.getRetry() + 1);
724,787
public static Map<String, Object> generateControllerConf(String zkAddress, String clusterName, String controllerHost, String controllerPort, String dataDir, ControllerConf.ControllerMode controllerMode, boolean tenantIsolation) throws SocketException, UnknownHostException {<NEW_LINE>if (StringUtils.isEmpty(zkAddress)) ...
put(ControllerConf.HELIX_CLUSTER_NAME, clusterName);
307,356
private static PartitionMetricSample readV0(ByteBuffer buffer) {<NEW_LINE>MetricDef metricDef = KafkaMetricDef.commonMetricDef();<NEW_LINE>int brokerId = buffer.getInt();<NEW_LINE>int partition = buffer.getInt(45);<NEW_LINE>String topic = new String(buffer.array(), 49, buffer.array().length - 49, UTF_8);<NEW_LINE>Parti...
new TopicPartition(topic, partition));
1,407,442
private void readJoinTable(JoinTable joinTable, DeployBeanPropertyAssocMany<?> prop) {<NEW_LINE>String intTableName = getFullTableName(joinTable);<NEW_LINE>if (intTableName.isEmpty()) {<NEW_LINE>BeanTable localTable = factory.beanTable(descriptor.getBeanType());<NEW_LINE>BeanTable otherTable = factory.beanTable(prop.ge...
inverseDest = destJoin.createInverse(intTableName);
208,693
public Document[] parse(final DigestURL location, final String mimeType, final String charset, final VocabularyScraper scraper, final int timezoneOffset, final InputStream source) throws Parser.Failure, InterruptedException {<NEW_LINE>// construct a document using all cells of the document<NEW_LINE>// the first row is ...
table = getTable(charset, source);
743,390
protected Map<String, Object> applyPreMapping(final Context context, final Map<String, Object> rawData) {<NEW_LINE>if (rawData == null) {<NEW_LINE>throw new RuntimeException("rawData is null");<NEW_LINE>}<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>if (rawData.containsKey(timestampField)) {<NEW_LINE>long t...
"Exception applying premapping function " + e.getMessage());
720,988
public Object call(StarlarkThread thread, Tuple args, Dict<String, Object> kwargs) throws EvalException, InterruptedException, ConversionException {<NEW_LINE>if (!args.isEmpty()) {<NEW_LINE>throw new EvalException("unexpected positional arguments");<NEW_LINE>}<NEW_LINE>BazelStarlarkContext.from(thread<MASK><NEW_LINE>if...
).checkLoadingPhase(getName());
1,015,760
private static <T extends TokenId> void logModification(MutableTokenList<T> tokenList, TokenHierarchyEventInfo eventInfo, boolean updateJoined) {<NEW_LINE>int modOffset = eventInfo.modOffset();<NEW_LINE>int removedLength = eventInfo.removedLength();<NEW_LINE>int insertedLength = eventInfo.insertedLength();<NEW_LINE>Cha...
()).append("\"\n");
30,105
public static void drawParticleLine(ServerPlayer player, Vec3 from, Vec3 to, String main, String accent, int count, double spread) {<NEW_LINE>ParticleOptions accentParticle = getEffect(accent);<NEW_LINE>ParticleOptions mainParticle = getEffect(main);<NEW_LINE>if (accentParticle != null)<NEW_LINE>((ServerLevel) player.l...
spread, spread, spread, 0.0);
1,219,359
// enableNew<NEW_LINE>private void loadWarehouseInfo(int M_Warehouse_ID) {<NEW_LINE>if (M_Warehouse_ID == m_M_Warehouse_ID.getRepoId()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Defaults<NEW_LINE>m_M_Warehouse_ID = null;<NEW_LINE>// m_M_WarehouseName = "";<NEW_LINE>m_M_WarehouseValue = "";<NEW_LINE>m_Separator = ".";<N...
prepareStatement(SQL, ITrx.TRXNAME_None);
1,619,186
public // preprocess any data<NEW_LINE>boolean preProcess(ConfigEntry configEntry) {<NEW_LINE>boolean valid = true;<NEW_LINE>// there is no override, use the default processorData<NEW_LINE>if (configEntry.processorData == null)<NEW_LINE>configEntry.processorData = new Object[BASE_SLOTS];<NEW_LINE>// persistToDisk<NEW_L...
configEntry.properties.get(PROPERTY_DO_NOT_CACHE);
48,019
public static FieldValueGenerator createDayOfWeekValueGeneratorInstance(final CronField cronField, final int year, final int month, final WeekDay mondayDoWValue) {<NEW_LINE>final FieldExpression fieldExpression = cronField.getExpression();<NEW_LINE>if (fieldExpression instanceof On) {<NEW_LINE>return new OnDayOfWeekVal...
cronField, year, month, mondayDoWValue);
359,306
public Manifest buildModuleManifest(JarFile source) throws IOException {<NEW_LINE>Manifest manifest = source.getManifest();<NEW_LINE>if (manifest == null) {<NEW_LINE>manifest = new Manifest();<NEW_LINE>manifest.getMainAttributes().putValue("Manifest-Version", "1.0");<NEW_LINE>}<NEW_LINE>manifest = new Manifest(manifest...
.setToStr(denyImportPackages, MANIFEST_VALUE_SPLIT));
292,169
public static void appendAttributes(StringBuilder buffer, Address startAddr, Address endAddr) {<NEW_LINE>AddressSpace space = startAddr.getAddressSpace();<NEW_LINE>long offset = startAddr.getOffset();<NEW_LINE>long size = endAddr.getOffset() - offset + 1;<NEW_LINE>if (space != endAddr.getAddressSpace()) {<NEW_LINE>thro...
encodeUnsignedIntegerAttribute(buffer, "first", offset);
1,494,273
public void addAttributeToResults(List<Result> results, SleuthkitCase caseDb, CentralRepository centralRepoDb, SearchContext context) throws DiscoveryException, SearchCancellationException {<NEW_LINE>// Get pairs of (object ID, object type name) for all files in the list of files that have<NEW_LINE>// objects detected<...
ObjectDetectedNamesCallback callback = new ObjectDetectedNamesCallback(results);
365,157
public Either<Failure, Void> applyOutputMappings(final BpmnElementContext context, final ExecutableFlowNode element) {<NEW_LINE>final ProcessInstanceRecord record = context.getRecordValue();<NEW_LINE>final long elementInstanceKey = context.getElementInstanceKey();<NEW_LINE>final <MASK><NEW_LINE>final long processInstan...
long processDefinitionKey = record.getProcessDefinitionKey();
477,718
public long[] transformToLongValuesSV(ProjectionBlock projectionBlock) {<NEW_LINE>if (_resultMetadata == LONG_SV_NO_DICTIONARY_METADATA) {<NEW_LINE><MASK><NEW_LINE>if (_longOutputTimes == null || _longOutputTimes.length < length) {<NEW_LINE>_longOutputTimes = new long[length];<NEW_LINE>}<NEW_LINE>if (_dateTimeTransform...
int length = projectionBlock.getNumDocs();
1,612,501
protected Shape clip(@NotNull final Graphics2D g2d, @NotNull final Rectangle bounds, @NotNull final C c, @NotNull final D d, @NotNull final Shape shape) {<NEW_LINE>final Shape clippedShape;<NEW_LINE>final <MASK><NEW_LINE>if (parent instanceof WebBreadcrumb) {<NEW_LINE>final WebBreadcrumb breadcrumb = (WebBreadcrumb) pa...
Container parent = c.getParent();
825,255
void syncByMaster(TextSync textSync) {<NEW_LINE>beforeDocumentModification();<NEW_LINE>ignoreDocModifications++;<NEW_LINE>boolean oldTM = DocumentUtilities.isTypingModification(doc);<NEW_LINE>DocumentUtilities.setTypingModification(doc, false);<NEW_LINE>try {<NEW_LINE>TextRegion<?> masterRegion = textSync.validMasterRe...
int regionStartOffset = region.startOffset();
1,577,393
public void parseConfiguration(List<org.flowable.bpmn.model.FormProperty> formProperties, String formKey, DeploymentEntity deployment, ProcessDefinition processDefinition) {<NEW_LINE>this.deploymentId = deployment.getId();<NEW_LINE>ExpressionManager expressionManager = Context<MASK><NEW_LINE>if (StringUtils.isNotEmpty(...
.getProcessEngineConfiguration().getExpressionManager();
851,635
private static int enumArsc(String pkgname, String type, String name) {<NEW_LINE>Enumeration<URL> urls = null;<NEW_LINE>try {<NEW_LINE>urls = (Enumeration<URL>) Reflex.invokeVirtual(Initiator.getHostClassLoader(), "findResources", "resources.arsc", String.class);<NEW_LINE>} catch (Throwable e) {<NEW_LINE>Log.e(e);<NEW_...
] buf = new byte[4096];
1,599,698
protected View createEmbeddedView(MetaClass meta, String fqnPrefix) {<NEW_LINE>View view = new View(meta.getJavaClass(), false);<NEW_LINE>for (MetaProperty metaProperty : meta.getProperties()) {<NEW_LINE>String fqn = fqnPrefix + "." + metaProperty.getName();<NEW_LINE>if (!managedFields.containsKey(fqn)) {<NEW_LINE>cont...
addProperty(metaProperty.getName());
1,010,510
void sendTransactionData() {<NEW_LINE>ConcurrentHashMap<String, ConcurrentHashMap<String, TransactionData>> transactions = getAndResetTransactions();<NEW_LINE>boolean hasData = false;<NEW_LINE>for (Map<String, TransactionData> entry : transactions.values()) {<NEW_LINE>for (TransactionData data : entry.values()) {<NEW_L...
), data.getName());
1,227,731
public ResponseEntity<Void> createUsersWithListInputWithHttpInfo(List<User> body) throws RestClientException {<NEW_LINE>Object postBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required p...
contentType = apiClient.selectHeaderContentType(contentTypes);
317,955
protected void addChannelDependencies(ChannelConfig channelDeps, @SuppressWarnings("unused") String listenAddressName) {<NEW_LINE>// listenAddressName is used by subclasses<NEW_LINE>channelDeps.set(ZuulDependencyKeys.registry, registry);<NEW_LINE>channelDeps.set(ZuulDependencyKeys.applicationInfoManager, applicationInf...
.rateLimitingChannelHandlerProvider, new NullChannelHandlerProvider());
936,950
public RECIPE fromJson(@Nonnull ResourceLocation recipeId, @Nonnull JsonObject json) {<NEW_LINE>JsonElement leftIngredients = GsonHelper.isArrayNode(json, JsonConstants.LEFT_INPUT) ? GsonHelper.getAsJsonArray(json, JsonConstants.LEFT_INPUT) : GsonHelper.getAsJsonObject(json, JsonConstants.LEFT_INPUT);<NEW_LINE>INGREDIE...
fromJson(json, JsonConstants.OUTPUT);
1,360,991
static Object floor(Object value) {<NEW_LINE>if (value instanceof Double) {<NEW_LINE>return Math.floor((Double) value);<NEW_LINE>}<NEW_LINE>if (value instanceof Float) {<NEW_LINE>return Math<MASK><NEW_LINE>}<NEW_LINE>if (value instanceof BigDecimal) {<NEW_LINE>return ((BigDecimal) value).setScale(0, RoundingMode.FLOOR)...
.floor((Float) value);
1,067,624
public double calculateFitness(TaskRequest taskRequest, VirtualMachineCurrentState targetVM, TaskTrackerState taskTrackerState) {<NEW_LINE>String targetHostAttrVal = AttributeUtilities.getAttrValue(targetVM.getCurrAvailableResources(), hostAttributeName);<NEW_LINE>if (targetHostAttrVal == null || targetHostAttrVal.isEm...
, usedAttribsMap.size()));
440,092
private Block createRawBlock(String defaultName, SectionDefinitionData def) {<NEW_LINE>Block block = new Block();<NEW_LINE>block.setLiquid(def.isLiquid());<NEW_LINE>block.setWater(def.isWater());<NEW_LINE>block.setGrass(def.isGrass());<NEW_LINE>block.<MASK><NEW_LINE>block.setHardness(def.getHardness());<NEW_LINE>block....
setIce(def.isIce());
1,847,883
public AddressSetView flowConstants(final Program program, Address flowStart, AddressSetView flowSet, final SymbolicPropogator symEval, final TaskMonitor monitor) throws CancelledException {<NEW_LINE>// follow all flows building up context<NEW_LINE>// use context to fill out addresses on certain instructions<NEW_LINE>C...
address.getOffset() >> 16;
388,479
private OracleConnectOptions toOracleConnectOptions(DataSourceRuntimeConfig dataSourceRuntimeConfig, DataSourceReactiveRuntimeConfig dataSourceReactiveRuntimeConfig, DataSourceReactiveOracleConfig dataSourceReactiveOracleConfig) {<NEW_LINE>OracleConnectOptions oracleConnectOptions;<NEW_LINE>if (dataSourceReactiveRuntim...
= dataSourceReactiveRuntimeConfig.url.get();
602,822
private void generateWebServiceFromEJB(String wsName, FileObject pkg, Node[] nodes) throws IOException {<NEW_LINE>if (nodes != null && nodes.length == 1) {<NEW_LINE>EjbReference ejbRef = nodes[0].getLookup().lookup(EjbReference.class);<NEW_LINE>if (ejbRef != null) {<NEW_LINE>DataFolder df = DataFolder.findFolder(pkg);<...
templateParent.getFileObject("WebServiceNoOp", "java");
1,215,042
final DeleteDomainResult executeDeleteDomain(DeleteDomainRequest deleteDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
false), new DeleteDomainResultJsonUnmarshaller());
266,567
public GitRevision resolve(@Nullable String reference) throws RepoException, ValidationException {<NEW_LINE>console.progress("Git Origin: Initializing local repo");<NEW_LINE>String ref;<NEW_LINE>if (gitOriginOptions.useGitVersionSelector() && versionSelector != null) {<NEW_LINE>if (generalOptions.isForced() && !Strings...
"Ignoring git.version_selector as %s is being used. Using %s instead.", GeneralOptions.FORCE, reference);
1,224,173
protected void prepare() {<NEW_LINE>ProcessInfoParameter[] para = getParameter();<NEW_LINE>for (int i = 0; i < para.length; i++) {<NEW_LINE>String name = para[i].getParameterName();<NEW_LINE>if (para[i].getParameter() == null)<NEW_LINE>;<NEW_LINE>else if (name.equals("AD_User_ID"))<NEW_LINE>p_AD_User_ID = <MASK><NEW_LI...
para[i].getParameterAsInt();
612,106
public void processView(EventBean[] newData, EventBean[] oldData, boolean isGenerateSynthetic) {<NEW_LINE>Object[] newDataMultiKey = processor.generateGroupKeyArrayView(newData, true);<NEW_LINE>Object[] oldDataMultiKey = processor.generateGroupKeyArrayView(oldData, false);<NEW_LINE>EventBean[] eventsPerStream = new Eve...
isGenerateSynthetic, outputLastUnordGroupOld, null, eventsPerStream);
680,701
public void read(byte[] data) {<NEW_LINE>MySQLMessage mm = new MySQLMessage(data);<NEW_LINE>packetLength = mm.readUB3();<NEW_LINE>packetId = mm.read();<NEW_LINE>clientFlags = mm.readUB4();<NEW_LINE>maxPacketSize = mm.readUB4();<NEW_LINE>charsetIndex = (mm.read() & 0xff);<NEW_LINE>// read extra<NEW_LINE>int current = mm...
), ab, 0, len);
1,281,990
public static ListGatewaySlbResponse unmarshall(ListGatewaySlbResponse listGatewaySlbResponse, UnmarshallerContext _ctx) {<NEW_LINE>listGatewaySlbResponse.setRequestId(_ctx.stringValue("ListGatewaySlbResponse.RequestId"));<NEW_LINE>listGatewaySlbResponse.setHttpStatusCode(_ctx.integerValue("ListGatewaySlbResponse.HttpS...
("ListGatewaySlbResponse.Data[" + i + "].SlbPort"));
235,251
public Mono<PowershellManager> initSession() {<NEW_LINE>ProcessBuilder pb;<NEW_LINE>if (Platform.isWindows()) {<NEW_LINE>pb = new ProcessBuilder("cmd.exe", "/c", "chcp", "65001", ">", "NUL", "&", powershellPath, "-ExecutionPolicy", "Bypass", "-NoExit", "-NoProfile", "-Command", "-");<NEW_LINE>} else {<NEW_LINE>pb = new...
, StandardCharsets.UTF_8), true);
62,804
protected AbstractLayoutCache createLayoutCache() {<NEW_LINE>if (isLargeModel() && getRowHeight() > 0) {<NEW_LINE>return new FixedHeightLayoutCache();<NEW_LINE>}<NEW_LINE>return new VariableHeightLayoutCache() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void setExpandedState(TreePath path, boolean isExpanded) {<NEW_...
super.setExpandedState(path, isExpanded);
963,523
public com.alibaba.alink.operator.batch.dl.ctr.protos.Mmoe.MMoE buildPartial() {<NEW_LINE>com.alibaba.alink.operator.batch.dl.ctr.protos.Mmoe.MMoE result = new com.alibaba.alink.operator.batch.dl.ctr.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (expertsBuilder_ == null) ...
protos.Mmoe.MMoE(this);
264,079
public static ProbCNFGrammar buildTrivialGrammar() {<NEW_LINE>ProbCNFGrammar g = new ProbCNFGrammar();<NEW_LINE>ArrayList<Rule> rules <MASK><NEW_LINE>rules.add(new Rule("S", "NP,VP", (float) 1.0));<NEW_LINE>rules.add(new Rule("NP", "ARTICLE,NOUN", (float) 0.50));<NEW_LINE>rules.add(new Rule("NP", "PRONOUN,ADVERB", (flo...
= new ArrayList<Rule>();
615,996
public byte[] marshall(CreateLiveChannelRequest request) {<NEW_LINE>StringBuffer xmlBody = new StringBuffer();<NEW_LINE>xmlBody.append("<LiveChannelConfiguration>");<NEW_LINE>xmlBody.append("<Description>" + request.getLiveChannelDescription() + "</Description>");<NEW_LINE>xmlBody.append("<Status>" + request.getLiveCha...
target.getFragCount() + "</FragCount>");
1,066,203
public JsMessage createInboundJsMessage(byte[] rawMessage, int offset, int length, Object conn) throws MessageDecodeFailedException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "createInboundJsMessage", new Object[] <MASK><NEW_LINE>CommsConnection commsConnection ...
{ rawMessage, offset, length });
935,014
public WorkProcessor.ProcessState<WorkProcessor<Page>> process() {<NEW_LINE>// wait for build side to be completed before fetching any probe data<NEW_LINE>// TODO: fix support for probe short-circuit: https://github.com/trinodb/trino/issues/3957<NEW_LINE>if (waitForBuild && !lookupSourceProvider.isDone()) {<NEW_LINE>re...
.ofResult(joinUnspilledPages(partition));
652,090
private ConfirmEmailInitResponse sendConfirm(AuthenticatedUser aUser, boolean sendEmail) throws ConfirmEmailException {<NEW_LINE>// delete old tokens for the user<NEW_LINE>ConfirmEmailData oldToken = findSingleConfirmEmailDataByUser(aUser);<NEW_LINE>if (oldToken != null) {<NEW_LINE>em.remove(oldToken);<NEW_LINE>}<NEW_L...
, confirmEmailData, optionalConfirmEmailAddonMsg(aUser));
613,158
public DescribeFleetMetricResult describeFleetMetric(DescribeFleetMetricRequest describeFleetMetricRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFleetMetricRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionCont...
awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
368,172
private static boolean determineIf64Bit() {<NEW_LINE>String s = System.getProperty("sun.arch.data.model");<NEW_LINE>if (s != null) {<NEW_LINE>boolean b = s.equals("64");<NEW_LINE>TDB.logInfo.debug("System architecture: " + (b ? "64 bit" : "32 bit"));<NEW_LINE>return b;<NEW_LINE>}<NEW_LINE>// Not a SUN VM<NEW_LINE><MASK...
s = System.getProperty("java.vm.info");
1,143,226
private Set<String> parseBeanMethods(TypeElement entity, CompilationController controller) {<NEW_LINE>List<ExecutableElement> methods = ElementFilter.methodsIn(controller.getElements().getAllMembers(entity));<NEW_LINE>Set<String> result <MASK><NEW_LINE>Map<String, TypeMirror> getAttrs = new HashMap<String, TypeMirror>(...
= new HashSet<String>();
1,841,645
public void initializeDatastream(Datastream stream, List<Datastream> allDatastreams) throws DatastreamValidationException {<NEW_LINE>Validate.notNull(stream);<NEW_LINE>Validate.notNull(allDatastreams);<NEW_LINE>LOG.info(<MASK><NEW_LINE>String sourceDirectoryPath = stream.getSource().getConnectionString();<NEW_LINE>vali...
"validating datastream " + stream.toString());
371,293
private void loadNode34() {<NEW_LINE>UaMethodNode node = new UaMethodNode(this.context, Identifiers.AlarmConditionType_ShelvingState_Unshelve, new QualifiedName(0, "Unshelve"), new LocalizedText("en", "Unshelve"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), true, true);<NEW_LINE>node.addReferenc...
this.nodeManager.addNode(node);
290,472
public BatchListIndex unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchListIndex batchListIndex = new BatchListIndex();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
)).unmarshall(context));
1,523,919
final DisassociateConnectionFromLagResult executeDisassociateConnectionFromLag(DisassociateConnectionFromLagRequest disassociateConnectionFromLagRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateConnectionFromLagRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Fie...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
857,681
public TimelineModel<Order, Truck> newModelWithNumber(int n) {<NEW_LINE>TimelineModel<Order, Truck> <MASK><NEW_LINE>int orderNumber = 1;<NEW_LINE>for (int j = 1; j <= n; j++) {<NEW_LINE>model.addGroup(new TimelineGroup<Truck>("id" + j, new Truck(String.valueOf(9 + j))));<NEW_LINE>LocalDateTime referenceDate = LocalDate...
model = new TimelineModel<>();
1,136,499
public static String detectDataDirectory() {<NEW_LINE>String dataPath = System.getProperty(JBOSS_SERVER_DATA_DIR);<NEW_LINE>if (dataPath != null) {<NEW_LINE>// we assume jboss.server.data.dir is managed externally so just use it as is.<NEW_LINE>File dataDir = new File(dataPath);<NEW_LINE>if (!dataDir.exists() || !dataD...
throw new IOException("Could not create directory " + tmpDataDir);
1,796,604
private void addBufferPoints(List<Coordinate> points, Quadtree tree, double lon0, double lat0, double lon1, double lat1, boolean addLast, boolean checkNeighbours, double bufferSize) {<NEW_LINE>double dx = (lon0 - lon1);<NEW_LINE>double dy = (lat0 - lat1);<NEW_LINE>double normLength = Math.sqrt((dx * dx) + (dy * dy));<N...
dx2, lat1 - dy2, checkNeighbours);
152,506
protected void saveEditorValue(Control control, int index, TableItem item) {<NEW_LINE>SQLQueryParameter param = (SQLQueryParameter) item.getData();<NEW_LINE>String newValue = editor.getText();<NEW_LINE>item.setText(2, newValue);<NEW_LINE>param.setValue(newValue);<NEW_LINE>param.setVariableSet(!CommonUtils.isEmpty(newVa...
!CommonUtils.isEmpty(newValue));
1,406,779
void registerForNavigationUpdates(long id) {<NEW_LINE>final NextDirectionInfo baseNdi = new NextDirectionInfo();<NEW_LINE>IRoutingDataUpdateListener listener = () -> {<NEW_LINE>if (aidlCallbackListener != null) {<NEW_LINE>ADirectionInfo directionInfo = new ADirectionInfo(-1, -1, false);<NEW_LINE>RoutingHelper rh = app....
e.getMessage(), e);
1,803,147
// Implement JSCoder.decode<NEW_LINE>public Object decode(byte[] frame, int offset, int indirect, JMFMessageData msg) throws JMFMessageCorruptionException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>JmfTr.entry(this, tc, "decode", new Object[] { frame, offset, indirect, msg });<...
this, tc, "decode", result);