idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
528,556
public void sendCustomEventsAsync() {<NEW_LINE>// BEGIN: com.azure.messaging.eventgrid.EventGridPublisherAsyncClient#CreateCustomEventClient<NEW_LINE>// Create a client to send events of custom event<NEW_LINE>EventGridPublisherAsyncClient<BinaryData> customEventPublisherClient = // make sure it accepts custom events<NE...
randomUUID().toString());
1,267,261
protected IntermediateResultsBlock mergeResults() throws Exception {<NEW_LINE>long numRowsCollected = 0;<NEW_LINE>int numOperatorsFinished = 0;<NEW_LINE>long endTimeMs = _queryContext.getEndTimeMs();<NEW_LINE>while (numRowsCollected < _limit && numOperatorsFinished < _numOperators) {<NEW_LINE>IntermediateResultsBlock r...
SelectionOperatorUtils.getDataTableFromRows(rows, dataSchema);
240,354
public void drawU(UGraphic ug) {<NEW_LINE>final StringBounder stringBounder = ug.getStringBounder();<NEW_LINE>final Dimension2D dimTotal = calculateDimension(stringBounder);<NEW_LINE>final Point2D p1 = getP1(stringBounder);<NEW_LINE>if (p1 == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Point2D p2 = getP2(stringB...
withLabel(back, arrowHorizontalAlignment());
1,693,050
public static Config readConfig(DatasourceConfig datasourceConfig) {<NEW_LINE>Config config = new Config();<NEW_LINE>try (Ds ds = Ds.create(datasourceConfig);<NEW_LINE>Connection rawConnection = ds.getConnection()) {<NEW_LINE>rawConnection.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);<NEW_LINE>rawConnec...
-> new HashMap<>());
421,551
static Geometry symmetricDifference(Geometry geometry_a, Geometry geometry_b, SpatialReference spatial_reference, ProgressTracker progress_tracker) {<NEW_LINE>int dim_a = geometry_a.getDimension();<NEW_LINE>int dim_b = geometry_b.getDimension();<NEW_LINE>if (geometry_a.isEmpty() && geometry_b.isEmpty())<NEW_LINE><MASK>...
return dim_a > dim_b ? geometry_a : geometry_b;
1,182,633
private static void pack_h_B(ByteList result, ByteList lCurElemString, int occurrences) {<NEW_LINE>int currentByte = 0;<NEW_LINE>int padLength = 0;<NEW_LINE>if (occurrences > lCurElemString.length()) {<NEW_LINE>padLength = (occurrences - lCurElemString.length()) / 2 + (occurrences + lCurElemString.length()) % 2;<NEW_LI...
.charAt(i++) & 1;
1,273,374
private static final String formatCSV0(Object value, CSVFormat format) {<NEW_LINE>// [#2741] TODO: This logic will be externalised in new SPI<NEW_LINE>// [#4746] Escape null and empty strings<NEW_LINE>if (value == null)<NEW_LINE>return format.nullString();<NEW_LINE>if ("".equals(value.toString()))<NEW_LINE>return forma...
format0(value, false, false);
1,025,515
public Record genRecord(long position) {<NEW_LINE>// This method is supposed to generate random records deterministically,<NEW_LINE>// so that results can be reproduced by running the same scenario a second time.<NEW_LINE>// We need to initiate a Random object for each position to make the record deterministic<NEW_LINE...
hashLong(position).asLong();
318,191
protected void allocateVnet(Network network, NetworkVO implemented, long dcId, long physicalNetworkId, String reservationId) throws InsufficientVirtualNetworkCapacityException {<NEW_LINE>if (network.getBroadcastUri() == null) {<NEW_LINE>String vnet = _dcDao.allocateVnet(dcId, physicalNetworkId, network.getAccountId(), ...
(network.getAccountId()));
213,665
public boolean accept() {<NEW_LINE>if (delegate == null && getElementHandle() != null) {<NEW_LINE>try {<NEW_LINE>JavaCompletionProvider.JavaCompletionQuery.javadocBreak.set(true);<NEW_LINE>ParserManager.parse(Collections.singletonList(source), new UserTask() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(Resul...
scopeHolder, CompilationInfo.CacheClearPolicy.ON_CHANGE);
683,636
public ResponseEntity<UserDTO> updateUser(@Valid @RequestBody UserDTO userDTO) {<NEW_LINE>log.debug("REST request to update User : {}", userDTO);<NEW_LINE>Optional<User> existingUser = userRepository.findOneByEmailIgnoreCase(userDTO.getEmail());<NEW_LINE>if (existingUser.isPresent() && (!existingUser.get().getId().equa...
updatedUser = userService.updateUser(userDTO);
734,664
private static <T> Class<? extends T> generateGroupedStateClass(Class<T> clazz, Map<String, Type> fieldTypes, DynamicClassLoader classLoader) {<NEW_LINE>ClassDefinition definition = new ClassDefinition(a(PUBLIC, FINAL), makeClassName("Grouped" + clazz.getSimpleName()), type(AbstractGroupedAccumulatorState.class), type(...
.declareConstructor(a(PUBLIC));
12,321
/*<NEW_LINE>* mlpg: generate sequence of speech parameter vector maximizing its output probability for given pdf sequence<NEW_LINE>*/<NEW_LINE>public void mlpg(HMMData htsData, boolean useGV) {<NEW_LINE>if (htsData.getUseContextDependentGV())<NEW_LINE>logger.info("Context-dependent global variance optimization: gvLengt...
, wuw[x].length);
1,284,484
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup...
Utils.getValueFromIdByName(id, "hubs");
1,197,375
private static void fmlPreInit() {<NEW_LINE>enabled = BCEnergyConfig.christmasEventStatus.isEnabled(MonthDay.of(Month.DECEMBER, 25));<NEW_LINE>if (isEnabled()) {<NEW_LINE>setColours(0xC0_75_34, 0x5A_1D_0c, BCEnergyFluids.crudeOil);<NEW_LINE>setColours(0xD4_82_39, 0xD8_7D_33, BCEnergyFluids.oilResidue);<NEW_LINE>setColo...
0xD6_C9_90, 0xCF_BF_8E, BCEnergyFluids.fuelGaseous);
1,405,550
private void createBugCategoriesGroup(Composite parent, final IProject project) {<NEW_LINE>Group checkBoxGroup = new Group(parent, SWT.SHADOW_ETCHED_OUT);<NEW_LINE>checkBoxGroup.setText(getMessage("property.categoriesGroup"));<NEW_LINE>checkBoxGroup.setLayout(new GridLayout(1, true));<NEW_LINE>checkBoxGroup.setLayoutDa...
(origFilterSettings.containsCategory(category));
334,815
public static GImageGray wrap(ImageGray image) {<NEW_LINE>if (image.getClass() == GrayU8.class)<NEW_LINE>return new GSingle_U8((GrayU8) image);<NEW_LINE>else if (image.getClass() == GrayS8.class)<NEW_LINE>return new GSingle_S8((GrayS8) image);<NEW_LINE>else if (image.getClass() == GrayU16.class)<NEW_LINE>return new GSi...
"Unknown image type: " + image.getClass());
1,535,857
public static DescribeSqlServerInstancesResponse unmarshall(DescribeSqlServerInstancesResponse describeSqlServerInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSqlServerInstancesResponse.setRequestId(_ctx.stringValue("DescribeSqlServerInstancesResponse.RequestId"));<NEW_LINE>describeSqlServerInstancesRe...
(_ctx.integerValue("DescribeSqlServerInstancesResponse.PageNumber"));
1,087,637
public void testTimerAccessFromTimeoutAfterCancel() throws Exception {<NEW_LINE>NpTimedObjectTimerLocal timerBean;<NEW_LINE>// --------------------------------------------------------------------<NEW_LINE>// Create a BMT Stateless Bean to test it<NEW_LINE>// -------------------------------------------------------------...
svLogger.info("Creating a CMT RequiresNew Stateless Bean to execute test ..." + NL);
1,542,377
public static void main(String[] args) {<NEW_LINE>String d = "{\"ip\":\"50.112.119.64\",\"count\":27}$$${\\\"ip\\\":\\\"50.112.119.64\\\",\\\"count\\\":27}";<NEW_LINE>String e1 = "{\"ip\":\"11.112.119.64\",\"count\":27}";<NEW_LINE>String e2 = "{\"ip\":\"22.111.112.62\",\"count\":27}";<NEW_LINE>String e3 = "{\"ip\":\"33...
events = new ArrayList<>();
137,009
public void placeObject(ChunkManager level, int x, int y, int z, NukkitRandom random) {<NEW_LINE>this.treeHeight = random.nextBoundedInt(4) + 6;<NEW_LINE>int topSize = this.getTreeHeight() - (1 + random.nextBoundedInt(2));<NEW_LINE>int lRadius = <MASK><NEW_LINE>this.placeTrunk(level, x, y, z, random, this.getTreeHeight...
2 + random.nextBoundedInt(2);
1,236,985
public void initialize(Context context, TimePickerController controller) {<NEW_LINE>if (mIsInitialized) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Resources res = context.getResources();<NEW_LINE>int colorRes = controller.isThemeDark() ? R.color.mdtp_circle_background_dark_theme : R.color.mdtp_circle_color;...
Log.e(TAG, "CircleView may only be initialized once.");
844,835
protected void loadEntities() {<NEW_LINE>log.debug("Loading entities");<NEW_LINE>entitiesManual = new HashMap<>();<NEW_LINE>entitiesAuto = new HashMap<>();<NEW_LINE>Transaction tx = persistence.createTransaction();<NEW_LINE>try {<NEW_LINE>EntityManager em = persistence.getEntityManager();<NEW_LINE>TypedQuery<LoggedEnti...
loggedEntity.getName(), attributes);
1,439,483
public static void renderOrder(Graphics2D g2, @Nullable Point2Transform2_F32 transform, double scale, List<PointIndex2D_F64> points) {<NEW_LINE>g2.setStroke(new BasicStroke(5));<NEW_LINE>Point2D_F32 adj0 = new Point2D_F32();<NEW_LINE>Point2D_F32 adj1 = new Point2D_F32();<NEW_LINE>Line2D.Double l = new Line2D.Double();<...
x, scale * p1.y);
960,828
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storage.CSIDriverList other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1beta1Storage.CSIDriverList.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasMetadata()) {<NEW_LINE>mergeMetadata(other.getMetadata());<NEW_LINE>}<NEW_LINE>if (ite...
.alwaysUseFieldBuilders ? getItemsFieldBuilder() : null;
231,737
void collectDbStats(ArrayList<SQLiteDebug.DbStats> dbStatsList) {<NEW_LINE>// Get information about the main database.<NEW_LINE>int lookaside = nativeGetDbLookaside(mConnectionPtr);<NEW_LINE>long pageCount = 0;<NEW_LINE>long pageSize = 0;<NEW_LINE>try {<NEW_LINE>pageCount = executeForLong("PRAGMA page_count;", null, nu...
CursorWindow window = new CursorWindow("collectDbStats");
397,633
private static QPatch[] parsePatches(List<String> list, Queue q) {<NEW_LINE>List<QPatch> patches = new ArrayList<QPatch>(list.size());<NEW_LINE>// NOI18N<NEW_LINE>Pattern p = Pattern.compile("^\\s*(\\b\\d+)\\s([AU])\\s([^:]+?):\\s?(.*)$");<NEW_LINE>for (String line : list) {<NEW_LINE>Matcher m = p.matcher(line);<NEW_LI...
status = m.group(2);
934,171
private Node inlineReturnValue(Reference ref, Node fnNode) {<NEW_LINE>Node callNode = ref.callNode;<NEW_LINE>Node block = fnNode.getLastChild();<NEW_LINE>// NOTE: As the normalize pass guarantees globals aren't being<NEW_LINE>// shadowed and an expression can't introduce new names, there is<NEW_LINE>// no need to check...
NodeUtil.markFunctionsDeleted(callNode, compiler);
1,115,934
private Collection<String> identifyPolicies(ShapeNodeEditPart editPart) {<NEW_LINE>List<String> policies = new ArrayList<String>();<NEW_LINE>EObject domainElement = ((View) editPart.getModel()).getElement();<NEW_LINE>EClass domainElementClass = domainElement.eClass();<NEW_LINE>EPackage qosPackage = EPackage.Registry.IN...
ClassesFinder.findDerived(ref, openddsPackage);
741,927
public void onSuccess(Void data) {<NEW_LINE>for (String id : idList) {<NEW_LINE>String conversationId = TUIConstants.TUIConversation.CONVERSATION_C2C_PREFIX + id;<NEW_LINE>HashMap<String, Object> param = new HashMap<>();<NEW_LINE>param.put(<MASK><NEW_LINE>param.put(TUIConstants.TUIChat.CHAT_ID, id);<NEW_LINE>param.put(...
TUIConstants.TUIConversation.CONVERSATION_ID, conversationId);
628,915
private Date calculateNextTimeout(Date lastExecution, Date timerCreationTime) {<NEW_LINE>// For 'expiration' based timers, return one of the following:<NEW_LINE>// 1 - first expiration if timer has never run<NEW_LINE>// 2 - null for single action timers that have run<NEW_LINE>// 3 - last scheduled time + interval<NEW_L...
set(GregorianCalendar.MILLISECOND, 0);
1,453,802
private Map<String, Object> data(Entity pc, Map<String, Map<String, Object>> colors, String weightproperty, String[] exportproperties) {<NEW_LINE>if (pc instanceof Node) {<NEW_LINE>Node n = (Node) pc;<NEW_LINE>String labels = Util.labelString(n);<NEW_LINE>Map<String, Object> attributes = map("label", caption(n), "TYPE"...
(r.getProperties(exportproperties));
74,542
/*<NEW_LINE>* @see com.ibm.wsspi.http.channel.compression.CompressionHandler#finish()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public List<WsByteBuffer> finish() {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, "finish");<NEW_LINE>}<NEW_LINE>List<WsByteBuffer> list <MAS...
= new LinkedList<WsByteBuffer>();
1,563,639
private void appendImageInfo(Map<String, Object> result) {<NEW_LINE>try {<NEW_LINE>List<Map<String, Object>> list = new ArrayList<>();<NEW_LINE>Map<String, Object> checkPoint = new HashMap<>();<NEW_LINE>Storage storage = new Storage(Config.meta_dir + "/image");<NEW_LINE><MASK><NEW_LINE>checkPoint.put("Value", storage.g...
checkPoint.put("Name", "Version");
1,739,750
private LocalTask restoreVcsContext(LocalTask task) {<NEW_LINE>if (!isVcsEnabled()) {<NEW_LINE>return task;<NEW_LINE>}<NEW_LINE>List<ChangeListInfo> changeLists = task.getChangeLists();<NEW_LINE>if (!changeLists.isEmpty()) {<NEW_LINE>ChangeListInfo info = changeLists.get(0);<NEW_LINE>LocalChangeList changeList = myChan...
multiMap = new MultiMap<>();
1,415,328
private static void registerSHAPlugins(InvocationPlugins plugins, GraalHotSpotVMConfig config, Replacements replacements) {<NEW_LINE>boolean useMD5 = config.md5ImplCompressMultiBlock != 0L;<NEW_LINE>boolean useSha1 = config.useSHA1Intrinsics();<NEW_LINE>boolean useSha256 = config.useSHA256Intrinsics();<NEW_LINE>boolean...
Registration(plugins, "sun.security.provider.SHA3", replacements);
1,109,934
private static File findPath() {<NEW_LINE>String classResourcePath = WorkPath.class.getName().replaceAll("\\.", "/") + ".class";<NEW_LINE>URL resource = ClassLoader.getSystemClassLoader().getResource(classResourcePath);<NEW_LINE>if (resource != null) {<NEW_LINE>String urlString = resource.toString();<NEW_LINE><MASK><NE...
LOGGER.debug("The beacon class location is {}.", urlString);
791,450
public static String decodeString(String s) {<NEW_LINE>int pos_amp = s.indexOf('&');<NEW_LINE>if (pos_amp == -1)<NEW_LINE>return s;<NEW_LINE>int pos_sc;<NEW_LINE>int pos_a;<NEW_LINE>StringBuilder buf = new StringBuilder(s.substring(0, pos_amp));<NEW_LINE>char replace;<NEW_LINE>while (true) {<NEW_LINE>pos_sc = s.indexOf...
.substring(pos_sc + 1));
514,314
private void verificarCaracteresAposEscopoPrograma(String codigoFonte) {<NEW_LINE>Matcher m = padraoEscopoPrograma.matcher(codigoFonte);<NEW_LINE>if (m.find()) {<NEW_LINE>int escopo = 1;<NEW_LINE>int posicao = -1;<NEW_LINE>for (int i = m.end(); i < codigoFonte.length(); i++) {<NEW_LINE>if (codigoFonte.charAt(i) == '{')...
tempTexto.replace("\n", "");
575,792
public HoodieWriteMetadata<HoodieData<WriteStatus>> execute(HoodieData<HoodieRecord<T>> inputRecords) {<NEW_LINE>// Cache the tagged records, so we don't end up computing both<NEW_LINE>// TODO: Consistent contract in HoodieWriteClient regarding preppedRecord storage level handling<NEW_LINE>JavaRDD<HoodieRecord<T>> <MAS...
inputRDD = HoodieJavaRDD.getJavaRDD(inputRecords);
1,734,524
private void handleWatchedModuleChange(Path filePath, FileEvent fileEvent, ProjectPair projectPair) {<NEW_LINE>String fileName = filePath.getFileName().toString();<NEW_LINE>switch(fileEvent.getType()) {<NEW_LINE>case Created:<NEW_LINE>// When adding a new module, it requires search and adding new docs and test docs als...
).resolve(ProjectConstants.BALLERINA_TOML);
1,382,690
private void checkIsAssignableFrom(final InsnList insns, Extension extraStack) {<NEW_LINE>LabelNode objectIsNull = new LabelNode();<NEW_LINE>LabelNode checkComplete = new LabelNode();<NEW_LINE>// Swap the values (we duped the ref above) and check for null. If<NEW_LINE>// the reference is null, load FALSE per the contra...
new InsnNode(Opcodes.DUP));
1,004,428
public List<OCRResult> createDocumentsWithResults(BufferedImage[] bis, String[] filenames, String[] outputbases, List<ITesseract.RenderedFormat> formats, int pageIteratorLevel) throws TesseractException {<NEW_LINE>if (bis.length != filenames.length || bis.length != outputbases.length) {<NEW_LINE>throw new RuntimeExcept...
e.getMessage(), e);
521,384
public List<MetadataChangeProposalWrapper> asMetadataEvents() {<NEW_LINE>DataFlowUrn flowUrn = LineageUtils.flowUrn(getMaster(), getAppName());<NEW_LINE>ArrayList<MetadataChangeProposalWrapper> mcps = new ArrayList<MetadataChangeProposalWrapper>();<NEW_LINE>if (this.pipelineConfig.hasPath(PLATFORM_INSTANCE_KEY)) {<NEW_...
error(s.toString());
847,667
public static ListPersonsResponse unmarshall(ListPersonsResponse listPersonsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listPersonsResponse.setRequestId(_ctx.stringValue("ListPersonsResponse.RequestId"));<NEW_LINE>listPersonsResponse.setMessage(_ctx.stringValue("ListPersonsResponse.Message"));<NEW_LINE>listPersonsRe...
(_ctx.stringValue("ListPersonsResponse.Data.TotalCount"));
546,685
public void computeFromStartDateTime(ActionRequest request, ActionResponse response) {<NEW_LINE>Event event = request.getContext().asType(Event.class);<NEW_LINE>LOG.debug("event : {}", event);<NEW_LINE>if (event.getStartDateTime() != null) {<NEW_LINE>if (event.getDuration() != null && event.getDuration() != 0) {<NEW_LI...
().plus(duration));
541,410
public void run() {<NEW_LINE>try {<NEW_LINE>if (nodeHandler != null) {<NEW_LINE>nodeHandler.getNodeStatistics().rlpxConnectionAttempts.add();<NEW_LINE>logger.debug("Trying node connection: " + nodeHandler);<NEW_LINE>Node node = nodeHandler.getNode();<NEW_LINE>peerClient.connect(node.getHost(), node.getPort(), Hex.encod...
logger.debug("Terminated node connection: " + nodeHandler);
1,016,479
private void repairBoundSdts() throws Docx4JException {<NEW_LINE>// We need to lookup the XPaths part.<NEW_LINE>// In principle, that part should be identical in both<NEW_LINE>// openDopePkg and instancePkg.<NEW_LINE>// We'll get it from instancePkg<NEW_LINE>XPathsPart xPathsPart = ((WordprocessingMLPackage) instancePk...
getRPrOrAliasOrLock().add(sdttextWrapped);
1,117,228
static ShapeFill parse(JsonReader reader, LottieComposition composition) throws IOException {<NEW_LINE>AnimatableColorValue color = null;<NEW_LINE>boolean fillEnabled = false;<NEW_LINE>AnimatableIntegerValue opacity = null;<NEW_LINE>String name = null;<NEW_LINE>int fillTypeInt = 1;<NEW_LINE>boolean hidden = false;<NEW_...
AnimatableValueParser.parseInteger(reader, composition);
455,848
public void configureOutputJobProperties(TableDesc tableDesc, Map<String, String> map) {<NEW_LINE><MASK><NEW_LINE>// For Tez, setting the committer here is enough to make sure it'll be part of the jobConf<NEW_LINE>map.put("mapred.output.committer.class", HiveIcebergOutputCommitter.class.getName());<NEW_LINE>// For MR, ...
overlayTableProperties(conf, tableDesc, map);
1,237,233
private static void convertExternalDecimalToPackedDecimal_(byte[] externalDecimal, int externalOffset, byte[] packedDecimal, int packedOffset, int precision, int decimalType) {<NEW_LINE>boolean isNegative = isExternalDecimalSignNegative(externalDecimal, externalOffset, precision, decimalType);<NEW_LINE>if (decimalType ...
packedDecimal[end] |= CommonData.PACKED_MINUS;
1,771,792
final DeleteRobotApplicationResult executeDeleteRobotApplication(DeleteRobotApplicationRequest deleteRobotApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRobotApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.SERVICE_ID, "RoboMaker");
371,670
public static byte[] toJson(OsVersionChange change) {<NEW_LINE>var slime = new Slime();<NEW_LINE>var object = slime.setObject();<NEW_LINE>var targetsObject = object.setArray(TARGETS_FIELD);<NEW_LINE>change.targets().forEach((nodeType, target) -> {<NEW_LINE>var targetObject = targetsObject.addObject();<NEW_LINE>targetOb...
, instant.toEpochMilli()));
421,550
public void testQueueNameQUEUE_B(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContext = jmsQCFBindings.createContext();<NEW_LINE>Queue <MASK><NEW_LINE>JMSProducer jmsProducer = jmsContext.createProducer();<NEW_LINE>String text = "testQueueNameQUEUE_B";<NEW_LINE>jms...
queue = jmsContext.createQueue("QUEUE/queue");
1,089,476
public List<Route> listRouteWithParallel(String id) throws Exception {<NEW_LINE>List<Route> list = new ArrayList<>();<NEW_LINE>CacheCategory cacheCategory = new CacheCategory(Route.class);<NEW_LINE>CacheKey cacheKey = new CacheKey(id, Parallel.class.getName());<NEW_LINE>Optional<?> optional = CacheManager.get(cacheCate...
cq.from(Route.class);
641,752
public void readFields(Object object, JsonValue jsonMap) {<NEW_LINE>Class type = object.getClass();<NEW_LINE>OrderedMap<String, FieldMetadata> fields = getFields(type);<NEW_LINE>for (JsonValue child = jsonMap.child; child != null; child = child.next) {<NEW_LINE>FieldMetadata metadata = fields.get(child.name().replace("...
getName() + ")", ex);
1,205,551
public okhttp3.Call connectOptionsNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespa...
HashMap<String, Object>();
23,323
public void pick(ReadableMap args, Promise promise) {<NEW_LINE>Activity currentActivity = getCurrentActivity();<NEW_LINE>this.promise = promise;<NEW_LINE>this.copyTo = args.hasKey(OPTION_COPY_TO) ? args.getString(OPTION_COPY_TO) : null;<NEW_LINE>if (currentActivity == null) {<NEW_LINE>sendError(E_ACTIVITY_DOES_NOT_EXIS...
E_UNABLE_TO_OPEN_FILE_TYPE, e.getLocalizedMessage());
598,053
private Mono<PagedResponse<VaultUsageInner>> listByVaultsSinglePageAsync(String resourceGroupName, String vaultName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_L...
this.client.mergeContext(context);
1,761,437
public void onFetchPage(@Nonnull final Downloader downloader) throws IOException, ExtractionException {<NEW_LINE>final String html = downloader.get(getLinkHandler().<MASK><NEW_LINE>document = Jsoup.parse(html);<NEW_LINE>albumJson = getAlbumInfoJson(html);<NEW_LINE>trackInfo = albumJson.getArray("trackinfo");<NEW_LINE>t...
getUrl()).responseBody();
19,956
private CaseAnalysis analyzeCaseOne() throws ExprValidationException {<NEW_LINE>// Case 1 expression example:<NEW_LINE>// case when a=b then x [when c=d then y...] [else y]<NEW_LINE>//<NEW_LINE>ExprNode[] children = this.getChildNodes();<NEW_LINE>if (children.length < 2) {<NEW_LINE>throw new ExprValidationException("Ca...
whenExpr = children[i << 1];
1,453,180
public void gridValueChanged(final Info_Column infoColumn, final int rowIndexModel, final Object value) {<NEW_LINE>if (rowIndexModel < 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int <MASK><NEW_LINE>if (rowId <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final IHUPackingAwareBL huPackingAwareBL = Services.get(IHUPac...
rowId = parent.getRecordId(rowIndexModel);
373,959
public static void drawTouchPlate(GL2 gl, GLUT glut, Position at, double inset, double size, Position offsets, double bumpThickness, double plateThickness, Side X, Side Y) {<NEW_LINE>gl.glPushMatrix();<NEW_LINE>gl.glTranslated(at.x + X.side(size - 2 * inset) / 2, at.y + Y.side(size - 2 * inset) / 2, at.z + Math.signum(...
1, 1, 1, 1);
1,130,819
public ClassTree Class(ModifiersTree modifiers, CharSequence simpleName, List<? extends TypeParameterTree> typeParameters, Tree extendsClause, List<? extends Tree> implementsClauses, List<? extends Tree> memberDecls) {<NEW_LINE>ListBuffer<JCTypeParameter> typarams = new ListBuffer<JCTypeParameter>();<NEW_LINE>for (Type...
), defs.toList());
1,449,894
public InetAddress findFirstNonLoopbackAddress() {<NEW_LINE>InetAddress result = null;<NEW_LINE>try {<NEW_LINE>int lowest = Integer.MAX_VALUE;<NEW_LINE>for (Enumeration<NetworkInterface> nics = NetworkInterface.getNetworkInterfaces(); nics.hasMoreElements(); ) {<NEW_LINE>NetworkInterface ifc = nics.nextElement();<NEW_L...
"Found non-loopback interface: " + ifc.getDisplayName());
463,866
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see<NEW_LINE>* com.aptana.editor.js.parsing.ast.JSTreeWalker#visit(com.aptana.editor.js.parsing.ast.JSBinaryBooleanOperatorNode<NEW_LINE>* )<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void visit(JSBinaryBooleanOperatorNode node) {<NEW_LINE>// Wrap the node with a generic expr...
int endingOffset = topNode.getEndOffset();
287,335
private long computeNextScheduledExecutionTimeStartingAt(long startTime) {<NEW_LINE>if (startTime <= 0) {<NEW_LINE>// has never been run<NEW_LINE>return mStartDate;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>LocalDateTime nextScheduledExecution = LocalDateTime.fromDateFields(new Date(startTime));<NEW_LINE>switch(mRecurrence.g...
int multiplier = mRecurrence.getMultiplier();
1,237,230
public Annotation annotate(File file, String revision) throws IOException {<NEW_LINE>ArrayList<String> argv = new ArrayList<>();<NEW_LINE>ensureCommand(CMD_PROPERTY_KEY, CMD_FALLBACK);<NEW_LINE>argv.add(RepoCommand);<NEW_LINE>argv.add("annotate");<NEW_LINE>argv.add("-n");<NEW_LINE>if (!this.isHandleRenamedFiles()) {<NE...
revision.indexOf(':')));
532,798
public float[] toNormalMatrix(boolean invert) {<NEW_LINE>double a = m[0], d = m[1], g = m[2], b = m[4], e = m[5], h = m[6], c = m[8], f = m[9<MASK><NEW_LINE>double ek = e * k, fh = f * h, fg = f * g, dk = d * k, dh = d * h, eg = e * g;<NEW_LINE>double det = (invert ? -1 : 1) / (a * (ek - fh) + b * (fg - dk) + c * (dh -...
], k = m[10];
1,528,508
private boolean revise(VAR xi, VAR xj, Constraint<VAR, VAL> constraint, CSP<VAR, VAL> csp, DomainLog<VAR, VAL> log) {<NEW_LINE>Domain<VAL> currDomain = csp.getDomain(xi);<NEW_LINE>List<VAL> newValues = new ArrayList<>(currDomain.size());<NEW_LINE>Assignment<VAR, VAL> assignment = new Assignment<>();<NEW_LINE>for (VAL v...
new Domain<>(newValues));
428,208
public static void validateSSLOptions(OptionSet options, OptionParser parser, ArgumentAcceptingOptionSpec<String> sslEnabledDatacentersOpt, ArgumentAcceptingOptionSpec<String> sslKeystorePathOpt, ArgumentAcceptingOptionSpec<String> sslKeystoreTypeOpt, ArgumentAcceptingOptionSpec<String> sslTruststorePathOpt, ArgumentAc...
throw new Exception("Lack of SSL arguments " + opt);
713,251
private void addCrusherQuartzRecipes(Consumer<FinishedRecipe> consumer, String basePath) {<NEW_LINE>// Quartz Block -> Smooth Quartz Block<NEW_LINE>ItemStackToItemStackRecipeBuilder.crushing(IngredientCreatorAccess.item().from(Tags.Items.STORAGE_BLOCKS_QUARTZ), new ItemStack(Blocks.SMOOTH_QUARTZ)).build(consumer, Mekan...
.rl(basePath + "smooth_to_bricks"));
1,166,121
public synchronized void onServiceConnected(ComponentName name, IBinder service) {<NEW_LINE>if (wasUnbound()) {<NEW_LINE>Log.w(TAG, "Connection have been used already.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>binder = IRemoteJobService.Stub.asInterface(service);<NEW_LINE>Set<JobInvocation> startedJobs = new HashSet<>();...
entry.getKey(), remoteException);
574,647
protected String[] readPackageActionPath(final Class actionClass) {<NEW_LINE>Package actionPackage = actionClass.getPackage();<NEW_LINE>final String actionPackageName = actionPackage.getName();<NEW_LINE>// 1 - read annotations first<NEW_LINE>String packageActionPathFromAnnotation;<NEW_LINE>mainloop: while (true) {<NEW_...
ndx = newPackage.lastIndexOf('.');
1,017,547
protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>monitor.beginTask("Load Batch Stack....", IProgressMonitor.UNKNOWN);<NEW_LINE>final String stackText = getStackData(serverId, objHash, key);<NEW_LINE>if (stackText == null) {<NEW_LINE>return Status.CANCEL_STATUS;<NEW_LINE>}<NEW_LINE>ExUtil.exec(Display.getDefau...
(serverId), IWorkbenchPage.VIEW_ACTIVATE);
1,573,011
static SortedMap<String, NamedClusterPrivilege> sortByAccessLevel(Collection<NamedClusterPrivilege> privileges) {<NEW_LINE>// How many other privileges does this privilege imply. Those with a higher count are considered to be a higher privilege<NEW_LINE>final Map<String, Long> impliesCount = Maps.newMapWithExpectedSize...
= new TreeMap<>(compare);
1,366,897
private boolean tryImplicitReceiver(final Expression origin, final Expression message, final Expression arguments, final MethodCallerMultiAdapter adapter, final boolean safe, final boolean spreadSafe) {<NEW_LINE>Object implicitReceiver = origin.getNodeMetaData(StaticTypesMarker.IMPLICIT_RECEIVER);<NEW_LINE>if (implicit...
) origin).isSafe());
998,961
public static Map<BwaMemAlignment, String> createSATags(final List<BwaMemAlignment> alignments, final List<String> refNames) {<NEW_LINE>final int nAlignments = alignments.size();<NEW_LINE>if (nAlignments < 2)<NEW_LINE>return Collections.emptyMap();<NEW_LINE>final String[<MASK><NEW_LINE>for (int idx = 0; idx != nAlignme...
] selfTags = new String[nAlignments];
1,206,547
public ArrayList<ContentProviderOperation> toInsertOperationList() {<NEW_LINE>ArrayList<ContentProviderOperation> ops = new ArrayList<>();<NEW_LINE>ContentProviderOperation.Builder op = ContentProviderOperation.newInsert(RawContacts.CONTENT_URI).withValue(RawContacts.ACCOUNT_TYPE, null).withValue(RawContacts.ACCOUNT_NA...
add(op.build());
712,826
public ProcessorProperties merge(ProcessorProperties child, NamespaceProperties parent) {<NEW_LINE>ProcessorProperties properties = new ProcessorProperties();<NEW_LINE>if (child == null && parent == null) {<NEW_LINE>return properties;<NEW_LINE>}<NEW_LINE>if (child == null) {<NEW_LINE>child = new ProcessorProperties();<...
).to(properties::setConnectionString);
38,009
/*<NEW_LINE>* Computes the paths of projects and jars that the hierarchy on the given type could contain.<NEW_LINE>* This is a super set of the project and jar paths once the hierarchy is computed.<NEW_LINE>*/<NEW_LINE>private IPath[] computeProjectsAndJars(IType type) throws JavaModelException {<NEW_LINE>HashSet set =...
IPath[set.size()];
310,112
public void doGlobalReport(GlobalSession globalSession, String xid, GlobalStatus globalStatus) throws TransactionException {<NEW_LINE>if (GlobalStatus.Committed.equals(globalStatus)) {<NEW_LINE>SessionHelper.removeAllBranch(globalSession, false);<NEW_LINE>SessionHelper.endCommitted(globalSession);<NEW_LINE>LOGGER.info(...
"Global[{}] committed", globalSession.getXid());
1,388,470
private void updateProcessStatus(UAVHttpMessage data) {<NEW_LINE>String ntfkey = data.getRequest(NCConstant.NTFKEY);<NEW_LINE>long startTime_gui = DataConvertHelper.toLong(data.getRequest(NCConstant.NTFTime), -1);<NEW_LINE>String stateDataStr = eventStatusManager.getEventCache(ntfkey);<NEW_LINE>// no exist the cache va...
put(NCConstant.NCEventParam, event);
410,423
public Tuple2<String, String> emergencyApplySignatureToPayoutTxFrom2of2MultiSig(String unsignedTxHex, String redeemScriptHex, String buyerSignatureAsHex, String sellerSignatureAsHex, boolean hashedMultiSigOutputIsLegacy) throws AddressFormatException, SignatureDecodeException {<NEW_LINE>Transaction payoutTx = new Trans...
(buyerSignatureAsHex), true, true);
756,778
public StemmerOverrideItem write(final StemmerOverrideItem oldItem) {<NEW_LINE>try {<NEW_LINE>if ((item == null) || (item.getId() != oldItem.getId()) || !item.isUpdated()) {<NEW_LINE>writer.write(oldItem.toLineString());<NEW_LINE>writer.write(Constants.LINE_SEPARATOR);<NEW_LINE>return oldItem;<NEW_LINE>}<NEW_LINE>if (!...
writer.write(Constants.LINE_SEPARATOR);
1,040,559
public long createSecret(String name, String ownerName, String encryptedSecret, String hmac, String creator, Map<String, String> metadata, long expiry, String description, @Nullable String type, @Nullable Map<String, String> generationOptions) {<NEW_LINE>return dslContext.transactionResult(configuration -> {<NEW_LINE>/...
secretSeriesDAO = secretSeriesDAOFactory.using(configuration);
1,318,078
public static boolean isJavaEE5orHigher(Project project) {<NEW_LINE>if (project == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>J2eeModuleProvider j2eeModuleProvider = project.getLookup(<MASK><NEW_LINE>if (j2eeModuleProvider != null) {<NEW_LINE>J2eeModule j2eeModule = j2eeModuleProvider.getJ2eeModule();<NEW_LINE>...
).lookup(J2eeModuleProvider.class);
1,825,928
public ResultStatus handleOrderDetail(OrderDO orderDO, OrderHandleBaseDTO orderHandleBaseDTO, String userName) {<NEW_LINE>OrderExtensionApplyTopicDTO orderExtensionDTO = JSONObject.parseObject(orderDO.<MASK><NEW_LINE>OrderHandleTopicDTO orderHandleDTO = JSONObject.parseObject(orderHandleBaseDTO.getDetail(), OrderHandle...
getExtensions(), OrderExtensionApplyTopicDTO.class);
948,764
private static Map.Entry<String, ObjectClassifier<BufferedImage>> tryToSave(Project<BufferedImage> project, Collection<ClassifierWrapper<BufferedImage>> wrappers, String name) {<NEW_LINE>try {<NEW_LINE>var composite = tryToBuild(wrappers);<NEW_LINE>if (composite == null)<NEW_LINE>return null;<NEW_LINE>name = name == nu...
null : GeneralTools.stripInvalidFilenameChars(name);
1,778,824
final UpdateJourneyResult executeUpdateJourney(UpdateJourneyRequest updateJourneyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateJourneyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateJourney");
938,925
public void addAuthTokens(@NotNull WebAuthInfo... tokens) throws DBException {<NEW_LINE>WebUser newUser = null;<NEW_LINE>for (WebAuthInfo authInfo : tokens) {<NEW_LINE>if (newUser != null && newUser != authInfo.getUser()) {<NEW_LINE>throw new DBException("Different users specified in auth tokens: " <MASK><NEW_LINE>}<NE...
+ Arrays.toString(tokens));
1,458,297
public boolean processIt(String processAction, String docAction) {<NEW_LINE>message = null;<NEW_LINE>action = null;<NEW_LINE>// Std User Workflows - see MWFNodeNext.isValidFor<NEW_LINE>if (// WF Selection first<NEW_LINE>isValidAction(processAction))<NEW_LINE>action = processAction;<NEW_LINE>else //<NEW_LINE>if (// User...
" - Invalid Actions: Process=" + processAction + ", Doc=" + docAction);
801,884
public double optionPrice(OptionFunction function, LatticeSpecification lattice, double spot, double volatility, double interestRate, double dividendRate) {<NEW_LINE>int nSteps = function.getNumberOfSteps();<NEW_LINE>double timeToExpiry = function.getTimeToExpiry();<NEW_LINE>double dt = timeToExpiry / (double) nSteps;<...
isTrue(downProbability > 0d, "downProbability should be greater than 0");
1,508,548
protected void extractRow() throws Exception {<NEW_LINE>Resource _graph = null;<NEW_LINE>Resource _subject = subject;<NEW_LINE>URI _predicate = predicate;<NEW_LINE>Value _object = object;<NEW_LINE>Object val = null;<NEW_LINE>try {<NEW_LINE>if (col_g != -1) {<NEW_LINE>val = v_rs.getObject(col_g);<NEW_LINE>_graph = (Reso...
RepositoryException("Unexpected resource type encountered. Was expecting URI: " + val, ccex);
66,996
public void defineFieldsOfClassDef(BLangClassDefinition classDefinition, SymbolEnv env) {<NEW_LINE>SymbolEnv typeDefEnv = SymbolEnv.createClassEnv(classDefinition, classDefinition.symbol.scope, env);<NEW_LINE>BObjectTypeSymbol tSymbol = (BObjectTypeSymbol) classDefinition.symbol;<NEW_LINE>BObjectType <MASK><NEW_LINE>if...
objType = (BObjectType) tSymbol.type;
1,202,747
protected void writeTemplate(String name, Object... additionalOptions) throws IOException {<NEW_LINE>Map<String, Object> options = new HashMap<String, Object>(Options.getOptions());<NEW_LINE>options.put("maxOrdinal", Integer.valueOf(maxOrdinal));<NEW_LINE>options.put("maxLexStates", Integer.valueOf(maxLexStates));<NEW_...
options.put("cu_name", cu_name);
1,720,082
public void handleChunkUnload(ChunkEvent.Unload event) {<NEW_LINE>if (!onchunkgenerate)<NEW_LINE>return;<NEW_LINE>IWorld w = event.getWorld();<NEW_LINE>if (!(w instanceof ServerWorld))<NEW_LINE>return;<NEW_LINE>IChunk c = event.getChunk();<NEW_LINE>if (c != null) {<NEW_LINE>ForgeWorld fw = getWorld((IServerWorld) w, fa...
int x = cp.x << 4;
1,206,908
private void applyTouchFeedback(Integer rippleColor) {<NEW_LINE>// Do not continue if there is no view to modify.<NEW_LINE>if (this.nativeView == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Fetch default ripple color if given null.<NEW_LINE>if (rippleColor == null) {<NEW_LINE>Context context = proxy.getActivity();<...
null ? new ShapeDrawable() : null;
918,786
private Pair<List<SecurityGroupJoinVO>, Integer> listSecurityGroupRulesByVM(long vmId, long pageInd, long pageSize) {<NEW_LINE>Filter sf = new Filter(SecurityGroupVMMapVO.class, null, true, pageInd, pageSize);<NEW_LINE>Pair<List<SecurityGroupVMMapVO>, Integer> sgVmMappingPair = _securityGroupVMMapDao.listByInstanceId(v...
sgs = _securityGroupJoinDao.searchByIds(sgIds);
220,458
private void resizeTable(int objectColumn, int locationColumn) {<NEW_LINE>// Try/catch is fix for LH where we are strangely getting an ArrayIndexOutOfBounds exception<NEW_LINE>// Not entirely sure how it's happening: https://aptana.lighthouseapp.com/projects/35272/tickets/2017<NEW_LINE>try {<NEW_LINE>fProposalTable.set...
().getSize().y;