idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
45,728
public static void fhirStoreExecuteBundle(String fhirStoreName, String data) throws IOException, URISyntaxException {<NEW_LINE>// String fhirStoreName =<NEW_LINE>// String.format(<NEW_LINE>// FHIR_NAME, "your-project-id", "your-region-id", "your-dataset-id", "your-fhir-id");<NEW_LINE>// String data = "{\"resourceType\"...
"Accept", "application/fhir+json; charset=utf-8").build();
570,250
public static QueryOfficialFileCustomListResponse unmarshall(QueryOfficialFileCustomListResponse queryOfficialFileCustomListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryOfficialFileCustomListResponse.setRequestId(_ctx.stringValue("QueryOfficialFileCustomListResponse.RequestId"));<NEW_LINE>queryOfficialFileCustom...
= new ArrayList<CustomList>();
1,017,939
protected double calcLoss(Tuple3<Double, Double, Vector> labelVector, DenseVector coefVector) {<NEW_LINE>int featDim = coefVector.size() / k1;<NEW_LINE>double[] weights = coefVector.getData();<NEW_LINE>double sumExp = 1;<NEW_LINE>double eta;<NEW_LINE>double loss = 0;<NEW_LINE>int yk = labelVector.f1.intValue();<NEW_LIN...
* featDim + indices[i]];
430,678
public void accumulateMatches(DataType dt, FieldMatcher fieldMatcher, List<DataTypeReference> results) {<NEW_LINE>if (fields.isEmpty()) {<NEW_LINE>DecompilerVariable var = getMatch(dt, fieldMatcher, variable, null);<NEW_LINE>if (var != null) {<NEW_LINE>DataTypeReference ref = createReference(var);<NEW_LINE>results.add(...
ref = createReference(var, next);
1,794,336
public int compare(Template o1, Template o2) {<NEW_LINE>try {<NEW_LINE>Identifier id1 = APILocator.getIdentifierAPI().find(o1.getIdentifier());<NEW_LINE>if (id1.getHostId() == null)<NEW_LINE>id1 = null;<NEW_LINE>Identifier id2 = APILocator.getIdentifierAPI().<MASK><NEW_LINE>if (id2.getHostId() == null)<NEW_LINE>id2 = n...
find(o2.getIdentifier());
144,470
public EJBSystemModule startSystemModule(String moduleName, ClassLoader classLoader, EJBSystemBeanConfig[] ejbs, EJBRemoteRuntime ejbRemoteRuntime) {<NEW_LINE>EJBRuntimeImpl runtime = runtimeSR.getServiceWithException();<NEW_LINE>// Don't bother starting a system module if the server is shutting down<NEW_LINE>if (runti...
.systemModuleNameSpaceBinder = new SystemNameSpaceBinderImpl(ejbRemoteRuntime);
1,283,730
public com.amazonaws.services.kinesis.model.KMSDisabledException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kinesis.model.KMSDisabledException kMSDisabledException = new com.amazonaws.services.kinesis.model.KMSDisabledException(null);<NEW_LINE>int originalD...
String currentParentElement = context.getCurrentParentElement();
863,651
synchronized void tokenTextInsert(TokenItem token, int offset, int length) {<NEW_LINE>List<ExtTokenPosition> posList = getPosList(token);<NEW_LINE><MASK><NEW_LINE>// Add length to all positions after insertion point<NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>ExtTokenPosition etp = (ExtTokenPosition) posList.get(...
int len = posList.size();
860,888
private int writeInlinedSubroutineAbbrev(byte[] buffer, int p, boolean withChildren) {<NEW_LINE>int pos = p;<NEW_LINE>pos = writeAbbrevCode(withChildren ? DwarfDebugInfo.DW_ABBREV_CODE_inlined_subroutine_with_children : DwarfDebugInfo.DW_ABBREV_CODE_inlined_subroutine, buffer, pos);<NEW_LINE>pos = writeTag(DwarfDebugIn...
DwarfDebugInfo.DW_AT_call_file, buffer, pos);
544,255
public void testJPAandJSONB() throws Exception {<NEW_LINE><MASK><NEW_LINE>tx.begin();<NEW_LINE>UserEntity entity = new UserEntity("Foo Bar");<NEW_LINE>em.persist(entity);<NEW_LINE>tx.commit();<NEW_LINE>em.clear();<NEW_LINE>UserEntity findEntity = em.find(UserEntity.class, entity.id);<NEW_LINE>assertNotNull(findEntity);...
Jsonb jsonb = JsonbBuilder.create();
1,113,884
private JMeterProperty transformValueWithJavaRegex(JMeterProperty prop) throws InvalidVariableException {<NEW_LINE>String input = prop.getStringValue();<NEW_LINE>if (input == null) {<NEW_LINE>return prop;<NEW_LINE>}<NEW_LINE>for (Map.Entry<String, String> entry : getVariables().entrySet()) {<NEW_LINE>String key = entry...
.compilePattern(constructPattern(value));
908,800
public int insert(SequenceRecord record) {<NEW_LINE>validate(record);<NEW_LINE>try {<NEW_LINE>DdlMetaLogUtil.logSql(INSERT_SEQ_TABLE, record.buildInsertParams());<NEW_LINE>return MetaDbUtil.insert(INSERT_SEQ_TABLE, <MASK><NEW_LINE>} catch (SQLException e) {<NEW_LINE>String extraMsg = "";<NEW_LINE>if (checkIfDuplicate(e...
record.buildInsertParams(), connection);
938,709
protected Optional<PlanNodeStatsEstimate> doCalculate(FilterNode node, StatsProvider sourceStats, Lookup lookup, Session session, TypeProvider types) {<NEW_LINE>PlanNode nodeSource = lookup.resolve(node.getSource());<NEW_LINE>SemiJoinNode semiJoinNode;<NEW_LINE>if (nodeSource instanceof ProjectNode) {<NEW_LINE>ProjectN...
resolve(projectNode.getSource());
966,049
public DataViewDestinationTypeParams unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DataViewDestinationTypeParams dataViewDestinationTypeParams = new DataViewDestinationTypeParams();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
JsonToken token = context.getCurrentToken();
1,043,758
protected void doExecute(Task task, GetRollupJobsAction.Request request, ActionListener<GetRollupJobsAction.Response> listener) {<NEW_LINE>final ClusterState state = clusterService.state();<NEW_LINE>final DiscoveryNodes nodes = state.nodes();<NEW_LINE>if (nodes.isLocalNodeElectedMaster()) {<NEW_LINE>if (stateHasRollupJ...
(Collections.emptyList()));
627,443
public CreateAddressBookResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateAddressBookResult createAddressBookResult = new CreateAddressBookResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
int originalDepth = context.getCurrentDepth();
1,163,503
private void updateView() {<NEW_LINE>getChildren().removeIf(node <MASK><NEW_LINE>getColumnConstraints().clear();<NEW_LINE>final int columnCounts = getSkinnable().getResources().size();<NEW_LINE>for (int i = 0; i < columnCounts; i++) {<NEW_LINE>T resource = getSkinnable().getResources().get(i);<NEW_LINE>ColumnConstraint...
-> !(node instanceof MarkerLine));
1,446,217
private CoreMap makeTimexMap(TimexNode node, List<CoreLabel> tokens, CoreMap sentence) {<NEW_LINE>CoreMap timexMap = new ArrayCoreMap();<NEW_LINE>timexMap.set(TimeAnnotations.TimexAnnotation.class, node.timex);<NEW_LINE>timexMap.set(CoreAnnotations.TextAnnotation.class, node.contents);<NEW_LINE>timexMap.set(CoreAnnotat...
- 1).index());
1,171,135
public static void livingDropsEvent(LivingDropsEvent event) {<NEW_LINE>EntityLivingBase mob = event.getEntityLiving();<NEW_LINE>if (mob.getEntityData().hasUniqueId(HIT_BY_DIRECT)) {<NEW_LINE>UUID uuid = mob.getEntityData().getUniqueId(HIT_BY_DIRECT);<NEW_LINE>if (uuid != null) {<NEW_LINE>EntityPlayer player = mob.world...
directEnergyCost.get(), false);
476,354
public String top10FailureJobByAllZkCluster() throws SaturnJobConsoleException {<NEW_LINE>List<JobStatistics> jobStatisticsList = new ArrayList<>();<NEW_LINE>Collection<ZkCluster> zkClusterList = registryCenterService.getOnlineZkClusterList();<NEW_LINE>for (ZkCluster zkCluster : zkClusterList) {<NEW_LINE>SaturnStatisti...
10 : jobStatisticsList.size());
1,371,429
private JBList createExportJBList(@NotNull final Editor editor, @NotNull List<ErlangExport> exportList) {<NEW_LINE>DefaultListModel<ErlangExport> model = new DefaultListModel<>();<NEW_LINE>for (ErlangExport export : exportList) {<NEW_LINE>model.addElement(export);<NEW_LINE>}<NEW_LINE>JBList<ErlangExport> exportPopupLis...
0, MAX_EXPORT_STRING_LENGTH - 2) + "...";
1,682,758
void expandRoleGroupMembers(ObjectStoreConnection con, Role role, List<RoleMember> roleMembers, Boolean pending) {<NEW_LINE>List<RoleMember> <MASK><NEW_LINE>for (RoleMember roleMember : roleMembers) {<NEW_LINE>final String memberName = roleMember.getMemberName();<NEW_LINE>int idx = memberName.indexOf(AuthorityConsts.GR...
expandedMembers = new ArrayList<>();
887,037
private VMSnapshot orchestrateCreateVMSnapshot(Long vmId, Long vmSnapshotId, Boolean quiescevm) {<NEW_LINE>UserVmVO userVm = _userVMDao.findById(vmId);<NEW_LINE>if (userVm == null) {<NEW_LINE>throw new InvalidParameterValueException("Create vm to snapshot failed due to vm: " + vmId + " is not found");<NEW_LINE>}<NEW_LI...
VMSnapshotOptions options = new VMSnapshotOptions(quiescevm);
1,731,096
public boolean removeJob(long jobId) {<NEW_LINE>// Execute the following operations within a transaction.<NEW_LINE>return new DdlEngineAccessorDelegate<Boolean>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected Boolean invoke() {<NEW_LINE>int subJobCount = 0;<NEW_LINE>// remove subjob cascade<NEW_LINE>List<SubJobTask...
subJobRecord = engineAccessor.query(subJobId);
438,333
public DataType toDataType() throws DuplicateNameException, IOException {<NEW_LINE>Structure struct = new StructureDataType("method" + (isSmall ? "_small" : "") + "_t", 0);<NEW_LINE>if (isSmall) {<NEW_LINE>String comment = "offset from this address";<NEW_LINE>PointerTypedef strPtrRefDt = new PointerTypedef(null, new Po...
_state.pointerSize, "name", null);
485,731
private void runAssertion(RegressionEnvironment env, AtomicInteger milestone, boolean advanced, String filter) {<NEW_LINE>String epl = "create context MyContext start SupportBean_S0 as s0 end SupportBean_S1;\n" + HOOK + "@name('s0') context MyContext select * from SupportBean(" + filter + ");\n";<NEW_LINE>SupportFilter...
sendSBAssert(env, "abc", false);
1,513,686
private boolean charEquals(int patternIndex, int nameIndex, boolean isIgnoreCase, boolean allowTypos, @Nonnull ErrorState errorState) {<NEW_LINE>char <MASK><NEW_LINE>char nameChar = myName.charAt(nameIndex);<NEW_LINE>if (patternChar == nameChar || isIgnoreCase && (toLowerCase(patternIndex, errorState) == nameChar || to...
patternChar = charAt(patternIndex, errorState);
1,083,688
static void createExampleTable() {<NEW_LINE>try {<NEW_LINE>List<AttributeDefinition> attributeDefinitions = new ArrayList<AttributeDefinition>();<NEW_LINE>attributeDefinitions.add(new AttributeDefinition().withAttributeName("Id").withAttributeType("N"));<NEW_LINE>List<KeySchemaElement> keySchema = new ArrayList<KeySche...
err.println("CreateTable request failed for " + tableName);
825,712
public com.amazonaws.services.ivs.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.ivs.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.ivs.model.ResourceNotFoundException(null);<NEW_LINE>int o...
class).unmarshall(context));
628,084
private void switchToSmallVideoView(int bigBgUid) {<NEW_LINE>HashMap<Integer, SurfaceView> slice = new HashMap<>(1);<NEW_LINE>slice.put(bigBgUid, mUidsList.get(bigBgUid));<NEW_LINE>Iterator<SurfaceView> iterator = mUidsList.values().iterator();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>SurfaceView s = iterator.nex...
this, bigBgUid, slice, mIsLandscape);
1,778,321
private void removeOrphans(final List<AdjacencyMap> maps, final AdjacencyMap curr) {<NEW_LINE>if (!maps.isEmpty()) {<NEW_LINE>final AdjacencyMap prev = maps.get(maps.size() - 1);<NEW_LINE>final Set<Object> prevDestinations = prev.getAllDestinations();<NEW_LINE>final List<Object> <MASK><NEW_LINE>// Build up the list of ...
verticesToRemove = new ArrayList<>();
496,323
public static SearchTmOnsalesResponse unmarshall(SearchTmOnsalesResponse searchTmOnsalesResponse, UnmarshallerContext _ctx) {<NEW_LINE>searchTmOnsalesResponse.setRequestId(_ctx.stringValue("SearchTmOnsalesResponse.RequestId"));<NEW_LINE>searchTmOnsalesResponse.setTotalCount(_ctx.integerValue("SearchTmOnsalesResponse.To...
= new ArrayList<Trademark>();
247,284
private HexagonResult syncShows(Map<Integer, Long> tmdbIdsToShowIds) {<NEW_LINE>boolean <MASK><NEW_LINE>// download shows and apply property changes (if merging only overwrite some properties)<NEW_LINE>HexagonShowSync showSync = new HexagonShowSync(context, hexagonTools);<NEW_LINE>HashMap<Integer, SearchResult> newShow...
hasMergedShows = HexagonSettings.hasMergedShows(context);
494,165
private void iterate(Platform platform, String[] registryNames, Registry registry, Product[] combination, int index, List<Product> products, int start) throws ManagerException {<NEW_LINE>for (int i = start; i < products.size(); i++) {<NEW_LINE>combination[index] = products.get(i);<NEW_LINE>if (index == combination.leng...
1, products, i + 1);
1,181,809
public static void vertical11(Kernel1D_S32 kernel, GrayS16 src, GrayI16 dst) {<NEW_LINE>final short[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel.data...
(dataSrc[indexSrc]) * k9;
518,093
public InferenceResult solveEqualities(Set<TypeVariable> targets, ConstraintMap constraintMap, AnnotatedTypeFactory typeFactory) {<NEW_LINE>final InferenceResult solution = new InferenceResult();<NEW_LINE>do {<NEW_LINE>dirty = false;<NEW_LINE>for (TypeVariable target : targets) {<NEW_LINE>if (solution.containsKey(targe...
solution.put(target, inferred);
1,341,815
public boolean handleResponse(ZWaveController zController, SerialMessage lastSentMessage, SerialMessage incomingMessage) {<NEW_LINE>logger.debug("Got RemoveFailedNode response.");<NEW_LINE>int nodeId = lastSentMessage.getMessagePayloadByte(0);<NEW_LINE>switch(incomingMessage.getMessagePayloadByte(0)) {<NEW_LINE>case FA...
logger.error("NODE {}: Remove failed node failed as not Primary Controller for node!", nodeId);
1,492,969
void decode(ByteBuf payload) {<NEW_LINE>while (payload.isReadable()) {<NEW_LINE>short tokenType = payload.readUnsignedByte();<NEW_LINE>switch(tokenType) {<NEW_LINE>case LOGINACK:<NEW_LINE>payload.skipBytes(payload.readUnsignedShortLE());<NEW_LINE>handleLoginAck();<NEW_LINE>break;<NEW_LINE>case COLMETADATA:<NEW_LINE>han...
+ Integer.toHexString(tokenType));
596,000
PaymentWebhookResult internalProcessWebhook(Transaction transaction, PaymentContext paymentContext) {<NEW_LINE>int retryCount = Integer.parseInt(transaction.getMetadata()<MASK><NEW_LINE>var configuration = loadConfiguration(paymentContext.getPurchaseContext());<NEW_LINE>var paymentStatus = retrievePaymentStatus(configu...
.getOrDefault(RETRY_COUNT, "0"));
741,525
private void loadNode1215() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionsDiagnosticsSummaryType_ClientName_Placeholder_SessionDiagnostics_ClientLastContactTime, new QualifiedName(0, "ClientLastContactTime"), new LocalizedText("en", "ClientLastContactTime"), L...
this.nodeManager.addNode(node);
903,454
public List<String> publishEntities(String serverName, String userId, String entityType, Optional<Date> updatedAfterDate) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, PropertyServerException, UserNotAuthorizedException {<NEW_LINE>String methodName = "publishEntities";<NEW_LINE><MAS...
invalidParameterHandler.validateUserId(methodName, userId);
919,417
private VirtualFile findSingleFile(@NotNull String fileName) {<NEW_LINE>if (PathUtil.isValidFileName(fileName)) {<NEW_LINE>Collection<VirtualFile> files = FilenameIndex.getVirtualFilesByName(myProject, fileName, GlobalSearchScope.allScope(myProject));<NEW_LINE>if (files.size() == 1) {<NEW_LINE>return ContainerUtil.getF...
create(myProject, myModule, null);
1,607,087
static HttpResponse createHttpResponse(HttpRequest request, int statusCode, HttpHeaders headers, String body) {<NEW_LINE>return new HttpResponse(request) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int getStatusCode() {<NEW_LINE>return statusCode;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getHea...
new String(body, charset));
1,503,522
public static DescribeDnsGtmLogsResponse unmarshall(DescribeDnsGtmLogsResponse describeDnsGtmLogsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDnsGtmLogsResponse.setRequestId(_ctx.stringValue("DescribeDnsGtmLogsResponse.RequestId"));<NEW_LINE>describeDnsGtmLogsResponse.setTotalItems(_ctx.integerValue("Describe...
= new ArrayList<Log>();
140,313
public Description matchImport(ImportTree tree, VisitorState state) {<NEW_LINE>Symbol symbol;<NEW_LINE>ImmutableSet<Symbol> symbols;<NEW_LINE>if (!tree.isStatic()) {<NEW_LINE>symbol = getSymbol(tree.getQualifiedIdentifier());<NEW_LINE>if (symbol == null || isAcceptableImport(symbol, BAD_NESTED_CLASSES)) {<NEW_LINE>retu...
symbols = ImmutableSet.of(symbol);
1,417,351
public void delete(final QualifiedName name, final List<String> partitionIds) {<NEW_LINE>validateDeletes(name, partitionIds != null ? partitionIds.size() : 0);<NEW_LINE>final MetacatRequestContext metacatRequestContext = MetacatContextManager.getContext();<NEW_LINE>registry.distributionSummary(this.partitionDeleteDistS...
, this.getTableInfo(name));
1,658,658
private CloseableArray<DeviceMemoryBuffer> allocCompressedBuffers(long numChunks, Cuda.Stream stream) {<NEW_LINE>final long chunksPerBuffer = targetIntermediateBufferSize / maxOutputChunkSize;<NEW_LINE>final long numBuffers = ceilingDivide(numChunks, chunksPerBuffer);<NEW_LINE>if (numBuffers > Integer.MAX_VALUE) {<NEW_...
DeviceMemoryBuffer[(int) numBuffers]);
903,544
private void flushDirtyBlocks() throws IOException {<NEW_LINE>if (dirtyBlocks.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Long[] dirty = (Long[]) dirtyBlocks.toArray(new Long[0]);<NEW_LINE>Arrays.sort(dirty);<NEW_LINE>byte[] blocks = new byte[1024 * blockSize];<NEW_LINE>int dataOffset = 0;<NEW_LINE>long lastBlock...
long blockOffset = blockOffsetLong.longValue();
638,626
public void reset(@Nonnull HttpConfigurable settings) {<NEW_LINE>// default<NEW_LINE>myNoProxyRb.setSelected(true);<NEW_LINE>myAutoDetectProxyRb.setSelected(settings.USE_PROXY_PAC);<NEW_LINE>myPacUrlCheckBox.setSelected(settings.USE_PAC_URL);<NEW_LINE>myPacUrlTextField.setText(settings.PAC_URL);<NEW_LINE>myUseHTTPProxy...
setText(settings.getProxyLogin());
178,393
private TipoDado geraTipoResultante() {<NEW_LINE>TipoDado tipoOpEsquerdo = operandoEsquerdo.getTipoResultante();<NEW_LINE>TipoDado tipoOpDireito = operandoDireito.getTipoResultante();<NEW_LINE>if (tipoOpEsquerdo != tipoOpDireito) {<NEW_LINE>try {<NEW_LINE>return TabelaCompatibilidadeTiposPortugol.INSTANCE.obterTipoReto...
Level.SEVERE, null, ex);
1,701,195
public static void main(String... args) {<NEW_LINE>Main main = new Main();<NEW_LINE>// Exercises the class via Java. Prove that the $outer_this is arriving and being used<NEW_LINE>// properly but doesn't prove whether it is arriving via the raw JS constructor or if it's<NEW_LINE>// actually arriving via a $ctor.<NEW_LI...
(innerJsType.getOuterName()));
983,575
public static Object nodeToObjectModel(Node n, Class declaredType) throws Docx4JException {<NEW_LINE>if (n == null) {<NEW_LINE>throw new Docx4JException("null input");<NEW_LINE>}<NEW_LINE>// if (log.isDebugEnabled() ) {<NEW_LINE>// System.out.println("IN: " + XmlUtils.w3CDomNodeToString(n));<NEW_LINE>// }<NEW_LINE>Obje...
).getName(), e);
736,721
public static boolean writeConfiguration(ApdConfiguration apdConfiguration) throws IOException {<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_DEBUG, "Start"));<NEW_LINE>if (apdConfiguration == null) {<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_ERROR, "apdConfiguration not valid"));<NEW_LINE>retu...
apdConfiguration.getId() + "\"\r\n");
1,256,832
private static Lookup initLookup(Project project, AntProjectHelper projectHelper, PropertyEvaluator projectEvaluator, AuxiliaryConfiguration aux) {<NEW_LINE>final SourceForBinaryQueryImpl sfbq = new <MASK><NEW_LINE>final Classpaths cp = new Classpaths(projectHelper, projectEvaluator, aux, sfbq);<NEW_LINE>return // Clas...
SourceForBinaryQueryImpl(projectHelper, projectEvaluator, aux);
1,151,506
protected void validateAndUpdateApiAndSecretKeyIfNeeded(UpdateUserCmd updateUserCmd, UserVO user) {<NEW_LINE><MASK><NEW_LINE>String secretKey = updateUserCmd.getSecretKey();<NEW_LINE>boolean isApiKeyBlank = StringUtils.isBlank(apiKey);<NEW_LINE>boolean isSecretKeyBlank = StringUtils.isBlank(secretKey);<NEW_LINE>if (isA...
String apiKey = updateUserCmd.getApiKey();
345,267
public Handler<RoutingContext> createSummaryHandler(Map<String, String> configProperties, String rootPath, int removedInterceptorsDecorators) {<NEW_LINE>return new Handler<RoutingContext>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void handle(RoutingContext ctx) {<NEW_LINE>ctx.response().putHeader("Content-Type",...
(entry.getValue()));
1,552,262
void draw(Graphics g) {<NEW_LINE>setBbox(point1, point2, opheight * 2);<NEW_LINE>setVoltageColor(g, volts[0]);<NEW_LINE>drawThickLine(g, in1p[0], in1p[1]);<NEW_LINE>setVoltageColor(g, volts[1]);<NEW_LINE>drawThickLine(g, in2p[0], in2p[1]);<NEW_LINE>setVoltageColor<MASK><NEW_LINE>drawThickLine(g, lead2, point2);<NEW_LIN...
(g, volts[2]);
459,637
public void traverse(ASTVisitor visitor, ClassScope scope) {<NEW_LINE>if (visitor.visit(this, scope)) {<NEW_LINE>if (this.annotations != null) {<NEW_LINE>Annotation[] typeAnnotations = this.annotations[0];<NEW_LINE>for (int i = 0, length = typeAnnotations == null ? 0 : typeAnnotations.length; i < length; i++) {<NEW_LIN...
].traverse(visitor, scope);
606,971
public static DescribeDesktopGroupsResponse unmarshall(DescribeDesktopGroupsResponse describeDesktopGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDesktopGroupsResponse.setRequestId(_ctx.stringValue("DescribeDesktopGroupsResponse.RequestId"));<NEW_LINE>describeDesktopGroupsResponse.setNextToken(_ctx.strin...
("DescribeDesktopGroupsResponse.DesktopGroups[" + i + "].PolicyGroupId"));
270,121
private Builder<HashCode> newVerifyingBuilder(BuildEngineAction action) {<NEW_LINE>Set<BuildRule> deps;<NEW_LINE>if (action instanceof BuildRule) {<NEW_LINE>deps = ((BuildRule) action).getBuildDeps();<NEW_LINE>} else if (action instanceof Action) {<NEW_LINE>deps = ruleFinder.filterBuildRuleInputs(Iterables.transform(((...
usedDep.getBuildTarget(), deps);
140,726
public static BlockHitResult tweakedRaycast(BlockView blockView, RaycastContext context) {<NEW_LINE>if (ModuleGhostHand.INSTANCE.getEnabled()) {<NEW_LINE>var returned = (BlockHitResult) BlockView.raycast(context.getStart(), context.getEnd(), context, (contextx, pos) -> {<NEW_LINE>BlockState blockState = blockView.getBl...
Vec3d vec3d2 = contextx.getEnd();
130,135
protected void addObjectCreateActions(DBRProgressMonitor monitor, DBCExecutionContext executionContext, List<DBEPersistAction> actions, ObjectCreateCommand command, Map<String, Object> options) {<NEW_LINE>final <MASK><NEW_LINE>StringBuilder script = new StringBuilder(String.format("CREATE CONNECTION %s TO ", DBUtils.ge...
ExasolConnection con = command.getObject();
913,904
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* org.springframework.batch.core.configuration.util.MethodInvoker#invokeMethod<NEW_LINE>* (java.lang.Object[])<NEW_LINE>*/<NEW_LINE>@Nullable<NEW_LINE>@Override<NEW_LINE>public Object invokeMethod(Object... args) {<NEW_LINE>Class<?>[<MASK><NEW_LINE>Object[...
] parameterTypes = method.getParameterTypes();
1,415,476
public static void init() {<NEW_LINE>Panel canvasPanel = new Panel();<NEW_LINE>createCanvasPanel(canvasPanel);<NEW_LINE>if (frame != null) {<NEW_LINE>frame.setVisible(false);<NEW_LINE>}<NEW_LINE>frame = new JFrame();<NEW_LINE>frame.add(canvasPanel);<NEW_LINE>canvas.addKeyListener(stdDraw3D);<NEW_LINE>canvas.addMouseLis...
OrbitBehavior.REVERSE_ALL ^ OrbitBehavior.STOP_ZOOM);
1,430,601
public void visitExpression(SExpression userExpressionNode, SemanticScope semanticScope) {<NEW_LINE>Class<?<MASK><NEW_LINE>boolean isVoid = rtnType == void.class;<NEW_LINE>boolean lastSource = semanticScope.getCondition(userExpressionNode, LastSource.class);<NEW_LINE>AExpression userStatementNode = userExpressionNode.g...
> rtnType = semanticScope.getReturnType();
689,984
private String outputMethod(Method method) {<NEW_LINE>try {<NEW_LINE>Class<?>[<MASK><NEW_LINE>Class<?>[] exceptionTypes = method.getExceptionTypes();<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(method.getReturnType().getSimpleName()).append(" ").append(method.getName());<NEW_LINE>sb.append('(');...
] types = method.getParameterTypes();
270,766
final GetJobTaggingResult executeGetJobTagging(GetJobTaggingRequest getJobTaggingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getJobTaggingRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetJobTaggingRequest> request = null;<NE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,161,508
@JSONP<NEW_LINE>@NoCache<NEW_LINE>@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public Response updateContentTypeFieldById(@PathParam("typeId") final String typeId, @PathParam("fieldId") final String fieldId, final String fieldJson, @Context ...
false, req, false, null);
1,602,641
private boolean observeDo(double secs) {<NEW_LINE>if (regionObserver == null) {<NEW_LINE>Debug.error("Region: observe: Nothing to observe (Region might be invalid): " + this.toStringShort());<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (observing) {<NEW_LINE>if (!observingInBackground) {<NEW_LINE>Debug.error("Region:...
Date()).getTime();
1,775,523
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>mUnbinder = ButterKnife.bind(this);<NEW_LINE>View view = findViewById(android.R.id.content);<NEW_LINE>if (view != null) {<NEW_LINE>view.setOnClickListener(v -> Log....
.builder().build();
942,900
public Post updatePost(@PathVariable String id, HttpServletRequest req, HttpServletResponse res) {<NEW_LINE>Map<String, Object> entity = readEntity(req);<NEW_LINE>if (entity.isEmpty()) {<NEW_LINE>badReq("Missing request body.");<NEW_LINE>}<NEW_LINE>String editorid = (String) entity.get("lasteditby");<NEW_LINE>if (!Stri...
HttpStatus.NOT_FOUND.value());
688,024
public List<Issue> validateMetadata(ExtensionVersion extVersion) {<NEW_LINE>var issues = new ArrayList<Issue>();<NEW_LINE>checkVersion(<MASK><NEW_LINE>checkCharacters(extVersion.getDisplayName(), "displayName", issues);<NEW_LINE>checkFieldSize(extVersion.getDisplayName(), DEFAULT_STRING_SIZE, "displayName", issues);<NE...
extVersion.getVersion(), issues);
1,259,660
public void execute(GenshinPlayer sender, List<String> args) {<NEW_LINE>if (sender == null) {<NEW_LINE>CommandHandler.sendMessage(null, "Run this command in-game.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (args.size() < 1) {<NEW_LINE>CommandHandler.sendMessage(sender, "Usage: drop <itemId|itemName> [amount]");<NEW_LIN...
("Dropped %s of %s.", amount, item));
452,615
public static void validateOutputLayer(String layerName, Layer layer) {<NEW_LINE>IActivation activation;<NEW_LINE>ILossFunction loss;<NEW_LINE>long nOut;<NEW_LINE>boolean isLossLayer = false;<NEW_LINE>if (layer instanceof BaseOutputLayer && !(layer instanceof OCNNOutputLayer)) {<NEW_LINE>activation = ((BaseOutputLayer)...
CnnLossLayer) layer).getActivationFn();
466,491
public void robot(String exp) {<NEW_LINE>Variable v = evalKarateExpression(exp);<NEW_LINE>if (robot == null) {<NEW_LINE>Map<String, Object> options = config.getRobotOptions();<NEW_LINE>if (options == null) {<NEW_LINE>options = new HashMap();<NEW_LINE>}<NEW_LINE>if (v.isMap()) {<NEW_LINE>options.putAll(v.getValue());<NE...
throw new RuntimeException(message, e);
870,057
final GetMetricDataResult executeGetMetricData(GetMetricDataRequest getMetricDataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMetricDataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,580,099
public void run() {<NEW_LINE>List<AttributedCharacterIterator> lines = PrintUtils.printDocument(<MASK><NEW_LINE>htmlPrintContainer.addLines(lines);<NEW_LINE>String result = htmlPrintContainer.end();<NEW_LINE>if (toClipboard) {<NEW_LINE>Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(res...
bdoc, lineNumbers, selectionStart, selectionEnd);
1,652,809
final UpdateQuickConnectConfigResult executeUpdateQuickConnectConfig(UpdateQuickConnectConfigRequest updateQuickConnectConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateQuickConnectConfigRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
439,451
public void visualizePerpendicular(Graphics2D g2, double scale, ChessboardCornerClusterFinder<GrayF32> clusterFinder) {<NEW_LINE>g2.setFont(regular);<NEW_LINE>BasicStroke thin = new BasicStroke(2);<NEW_LINE>BasicStroke thick = new BasicStroke(4);<NEW_LINE>// g2.setStroke(new BasicStroke(1));<NEW_LINE>// List<Vertex> ve...
foundCorners.get(vb.index);
1,223,742
public void stop() {<NEW_LINE>synchronized (startStopLock) {<NEW_LINE>if (running) {<NEW_LINE>running = false;<NEW_LINE>taskStatusChecker.shutdownNow();<NEW_LINE>synchronized (taskCountLock) {<NEW_LINE>if (numRunningTasks > 0) {<NEW_LINE>final Iterator<MonitorEntry> iterator = runningTasks.values().iterator();<NEW_LINE...
= entry.runningTask.getId();
1,710,987
public RuleMatch acceptRuleMatch(RuleMatch match, Map<String, String> arguments, int patternTokenPos, AnalyzedTokenReadings[] patternTokens) throws IOException {<NEW_LINE>int posWord = 0;<NEW_LINE>float total = 0;<NEW_LINE>float current = 0;<NEW_LINE>float totalDecimal = 0;<NEW_LINE>float currentDecimal = 0;<NEW_LINE>i...
.getToken().toLowerCase();
729,353
private void processBindingsSheet(Element theBindingsSheet) {<NEW_LINE>NodeList tableList = theBindingsSheet.getElementsByTagName("Table");<NEW_LINE>Element table = (Element) tableList.item(0);<NEW_LINE>NodeList rows = table.getElementsByTagName("Row");<NEW_LINE>Element defRow = (Element) rows.item(0);<NEW_LINE>int col...
myBindingStrengths.put(name, strength);
1,713,267
private void addWaypoint(@Nullable GPXFile gpxFile, @NonNull MapActivity mapActivity) {<NEW_LINE>LatLon latLon = mapActivity.getMapView()<MASK><NEW_LINE>boolean usePredefinedWaypoint = Boolean.parseBoolean(getParams().get(KEY_USE_PREDEFINED_WPT_APPEARANCE));<NEW_LINE>if (usePredefinedWaypoint) {<NEW_LINE>WptPt wptPt = ...
.getCurrentRotatedTileBox().getCenterLatLon();
1,357,776
protected void copyColumnProperties(Column<E> column, Column<E> existingColumn) {<NEW_LINE>column.setCaption(existingColumn.getCaption());<NEW_LINE>column.setVisible(existingColumn.isVisible());<NEW_LINE>column.setCollapsed(existingColumn.isCollapsed());<NEW_LINE>column.setCollapsible(existingColumn.isCollapsible());<N...
setWidth(existingColumn.getWidth());
1,379,187
public Piece next() throws IOException {<NEW_LINE>if (current >= count) {<NEW_LINE>currentPiece = null;<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int cp;<NEW_LINE>if (current == count - 1) {<NEW_LINE>cp = maxCharPos;<NEW_LINE>} else {<NEW_LINE>charPos.position(current * 4);<NEW_LINE>cp = Endian.littleInt(charPos);<NEW_...
encoded, start, cp, true);
498,205
void collect() {<NEW_LINE>ExecutableElement factoryMethodElement = (ExecutableElement) protoclass.sourceElement();<NEW_LINE>Parameterizable element = (Parameterizable) (factoryMethodElement.getKind() == ElementKind.CONSTRUCTOR ? factoryMethodElement.getEnclosingElement() : type.element);<NEW_LINE>for (VariableElement p...
.getSimpleName().toString();
1,382,844
void checkSpecificAccessControl() throws UnauthorizedAccessException {<NEW_LINE>String courseId = getNonNullRequestParamValue(Const.ParamsNames.COURSE_ID);<NEW_LINE>String feedbackSessionName = getNonNullRequestParamValue(Const.ParamsNames.FEEDBACK_SESSION_NAME);<NEW_LINE>FeedbackSessionAttributes feedbackSession = get...
.getId()), feedbackSession);
1,312,966
private void init(Context context, AttributeSet attrs, int defStyleAttr) {<NEW_LINE>mLayoutHelper = new QMUILayoutHelper(<MASK><NEW_LINE>setChangeAlphaWhenPress(false);<NEW_LINE>setChangeAlphaWhenDisable(false);<NEW_LINE>TypedArray array = context.obtainStyledAttributes(attrs, R.styleable.QMUIRadiusImageView2, defStyle...
context, attrs, defStyleAttr, this);
1,299,191
private void sendMail(List<String> toList, List<String> ccList, String subject, String body) {<NEW_LINE>final SMTPConfiguration smtpConfiguration = maybeSmtpConfiguration.get();<NEW_LINE>boolean useAuth = false;<NEW_LINE>if (smtpConfiguration.getUsername().isPresent() && smtpConfiguration.getPassword().isPresent()) {<N...
message.setContent(body, "text/html; charset=utf-8");
1,326,133
public void launchImageLibrary(final ReadableMap options, final Callback callback) {<NEW_LINE>final Activity currentActivity = getCurrentActivity();<NEW_LINE>if (currentActivity == null) {<NEW_LINE>callback.invoke(getErrorMap(errOthers, "Activity error"));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.callback = callback;<...
libraryIntent.addCategory(Intent.CATEGORY_OPENABLE);
152,506
protected void saveEditorValue(Control control, int index, TableItem item) {<NEW_LINE>SQLQueryParameter param = <MASK><NEW_LINE>String newValue = editor.getText();<NEW_LINE>item.setText(2, newValue);<NEW_LINE>param.setValue(newValue);<NEW_LINE>param.setVariableSet(!CommonUtils.isEmpty(newValue));<NEW_LINE>if (param.isN...
(SQLQueryParameter) item.getData();
1,223,938
// </editor-fold>//GEN-END:initComponents<NEW_LINE>@Messages({ "CommandListIngestSettingsPanel_Report_Name_Msg=Please supply a report profile name (letters, digits, and underscore characters only):", "CommandLineIngestSettingPanel_empty_report_name_mgs=Report profile name was empty, no profile created.", "CommandLineIn...
), Bundle.CommandLineIngestSettingPanel_invalid_report_name_mgs());
1,344,161
public void transformJson(HistoryJobEntity job, ObjectNode historicalData, CommandContext commandContext) {<NEW_LINE><MASK><NEW_LINE>String id = getStringFromJson(historicalData, "id");<NEW_LINE>HistoricProcessInstanceEntity historicProcessInstance = historicProcessInstanceEntityManager.findById(id);<NEW_LINE>if (histo...
HistoricProcessInstanceEntityManager historicProcessInstanceEntityManager = processEngineConfiguration.getHistoricProcessInstanceEntityManager();
442,697
@ApiOperation(value = "Message search with relative timerange.", notes = "Search for messages in a relative timerange, specified as seconds from now. " + "Example: 300 means search from 5 minutes ago to now.")<NEW_LINE>@Produces(MoreMediaTypes.TEXT_CSV)<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 400, message ...
offset, fieldList, filter, batchSize);
215,374
private void evaluateJPDA(JPDADebugger debugger, String expression, int threadId, EvaluateResponse response) {<NEW_LINE>Variable variable;<NEW_LINE>try {<NEW_LINE>variable = debugger.evaluate(expression);<NEW_LINE>} catch (InvalidExpressionException ex) {<NEW_LINE>throw ErrorUtilities.createResponseErrorException(ex.ge...
).addObject(threadId, truffleVariable);
595,680
final DescribeTableResult executeDescribeTable(DescribeTableRequest describeTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeTableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
responseHandler, executionContext, cachedEndpoint, null);
868,119
public void stopRequest(BuildResult result, @Nullable Throwable crash, DetailedExitCode detailedExitCode) {<NEW_LINE>Preconditions.checkState((crash == null) || !detailedExitCode.isSuccess());<NEW_LINE>result.setUnhandledThrowable(crash);<NEW_LINE>result.setDetailedExitCode(detailedExitCode);<NEW_LINE>InterruptedExcept...
notifyCommandComplete(env.getReporter());
1,475,813
public void introspect(PrintWriter out) throws Exception {<NEW_LINE>List<InterruptibleThreadObjectStatus> itos = getStatusArray();<NEW_LINE>if (itos.isEmpty() == false) {<NEW_LINE>for (InterruptibleThreadObjectStatus cur : itos) {<NEW_LINE>if (cur != null) {<NEW_LINE>long curThreadId = cur.getThreadId();<NEW_LINE>Strin...
> odis = cur.getOdiStatus();
1,810,626
public void draw(Graphics2D g2, float anchorX, float anchorY, TextAnchor anchor, float rotateX, float rotateY, double angle) {<NEW_LINE>Size2D dim = calculateDimensions(g2);<NEW_LINE>float xAdj = 0.0f;<NEW_LINE>if (anchor.isHorizontalCenter()) {<NEW_LINE>xAdj = (float) -dim.getWidth() / 2.0f;<NEW_LINE>} else if (anchor...
float) -dim.getWidth();
1,495,213
public ElementData asElement() {<NEW_LINE>ElementData ed = new ElementData();<NEW_LINE>// remove all the vars that have been set<NEW_LINE>List<Var> vars = new ArrayList<Var>(valuesTable.keySet());<NEW_LINE>vars.removeAll(valueMap.keySet());<NEW_LINE>if (vars.isEmpty()) {<NEW_LINE>return ed;<NEW_LINE>}<NEW_LINE>vars.for...
builder.add(var, n);