idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,428,835
static void vp8_optimize_mbuv(Macroblock x) {<NEW_LINE>int b;<NEW_LINE>EntropyContextPlanes t_above, t_left;<NEW_LINE>FullAccessIntArrPointer ta;<NEW_LINE>FullAccessIntArrPointer tl;<NEW_LINE>if (x.e_mbd.above_context.get() == null || x.e_mbd.left_context == null)<NEW_LINE>return;<NEW_LINE>t_above = new EntropyContextP...
PlaneType.UV, ta, tl);
795,362
private static void connectScouterCollector() {<NEW_LINE>Logger log = <MASK><NEW_LINE>List<ServerConfig> serverConfigList = ConfigureManager.getConfigure().getServerConfigs();<NEW_LINE>ServerManager srvMgr = ServerManager.getInstance();<NEW_LINE>for (ServerConfig serverConfig : serverConfigList) {<NEW_LINE>scouterx.web...
LoggerFactory.getLogger(WebAppMain.class);
1,733,680
public DeletePlaceIndexResult deletePlaceIndex(DeletePlaceIndexRequest deletePlaceIndexRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePlaceIndexRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsReque...
DeletePlaceIndexRequestMarshaller().marshall(deletePlaceIndexRequest);
265,810
public void authenticate(AuthenticationFlowContext context) {<NEW_LINE>String username = retrieveUsername(context);<NEW_LINE>if (username == null) {<NEW_LINE>context.getEvent().error(Errors.USER_NOT_FOUND);<NEW_LINE>Response challengeResponse = errorResponse(Response.Status.UNAUTHORIZED.getStatusCode(), "invalid_reques...
ServicesLogger.LOGGER.modelDuplicateException(mde);
1,013,199
public void batchCopy(ApiScenarioBatchRequest request) {<NEW_LINE>ServiceUtils.getSelectAllIds(request, request.getCondition(), (query) -> extApiScenarioMapper.selectIdsByQuery(query));<NEW_LINE>List<String> ids = request.getIds();<NEW_LINE>if (CollectionUtils.isEmpty(ids))<NEW_LINE>return;<NEW_LINE>List<ApiScenarioDTO...
setApiScenarioModuleId(request.getApiScenarioModuleId());
679,004
public Request<TagResourceRequest> marshall(TagResourceRequest tagResourceRequest) {<NEW_LINE>if (tagResourceRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(TagResourceRequest)");<NEW_LINE>}<NEW_LINE>Request<TagResourceRequest> request = new DefaultRequest<TagResourceReq...
request.setHttpMethod(HttpMethodName.POST);
1,557,425
static AnnotationBinding createAnnotation(IBinaryAnnotation annotationInfo, LookupEnvironment env, char[][][] missingTypeNames) {<NEW_LINE>// temporary debug for Bug 532176 - [10] NPE during reconcile<NEW_LINE>if (annotationInfo instanceof AnnotationInfo) {<NEW_LINE>RuntimeException ex = ((AnnotationInfo) annotationInf...
() ? env.root : env;
1,739,024
public void executeQuery(KeyNamePair docTypeKNPair, IMiniTable miniTable) {<NEW_LINE>log.info("");<NEW_LINE>int AD_Client_ID = Env.<MASK><NEW_LINE>String sql = "";<NEW_LINE>if (docTypeKNPair.getKey() == MRMA.Table_ID) {<NEW_LINE>sql = getRMASql();<NEW_LINE>} else {<NEW_LINE>sql = getOrderSQL();<NEW_LINE>}<NEW_LINE>log....
getAD_Client_ID(Env.getCtx());
357,915
public static void main(String[] args) {<NEW_LINE>int[] input = { 1, 3, 5, 7, 9, 11 };<NEW_LINE>SegmentTree st = new SegmentTree();<NEW_LINE>Operation sumOp = new SumOperation();<NEW_LINE>Operation minOp = new MinOperation();<NEW_LINE>int[] result = st.createTree(input, sumOp);<NEW_LINE>for (int i = 0; i < result.lengt...
, 1, 6, -1 };
1,167,490
private String infixtopostfix(String expression) {<NEW_LINE>String result = "";<NEW_LINE>Stack<Character> stack = new Stack<>();<NEW_LINE>int i = 0;<NEW_LINE>for (i = 0; i < expression.length(); i++) {<NEW_LINE>char c = expression.charAt(i);<NEW_LINE>if (priority(c) > 0) {<NEW_LINE>// if the topmost operator in the sta...
= result + stack.pop();
73,255
public static DescribeStratetyDetailResponse unmarshall(DescribeStratetyDetailResponse describeStratetyDetailResponse, UnmarshallerContext context) {<NEW_LINE>describeStratetyDetailResponse.setRequestId(context.stringValue("DescribeStratetyDetailResponse.RequestId"));<NEW_LINE>Strategy strategy = new Strategy();<NEW_LI...
= new ArrayList<SubType>();
1,102,200
private Match findInImage(ScreenImage base, Object target) throws IOException {<NEW_LINE>Finder finder = null;<NEW_LINE>Match match = null;<NEW_LINE>boolean findingText = false;<NEW_LINE>Image img = null;<NEW_LINE>if (target instanceof String) {<NEW_LINE>if (((String) target).startsWith("\t") && ((String) target).endsW...
, 0.0, (Pattern) target);
820,609
private static void applyCommonOptions(HttpServerOptions httpServerOptions, HttpBuildTimeConfig buildTimeConfig, HttpConfiguration httpConfiguration, List<String> websocketSubProtocols) {<NEW_LINE>httpServerOptions.setHost(httpConfiguration.host);<NEW_LINE>setIdleTimeout(httpConfiguration, httpServerOptions);<NEW_LINE>...
asBigInteger().intValueExact());
710,636
public ListResiliencyPoliciesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListResiliencyPoliciesResult listResiliencyPoliciesResult = new ListResiliencyPoliciesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1...
String currentParentElement = context.getCurrentParentElement();
1,248,858
private void parseChildren(ParserState<?> theState, String theName, JsonLikeValue theJsonVal, JsonLikeValue theAlternateVal, String theAlternateName, boolean theInArray) {<NEW_LINE>if (theName.equals("id")) {<NEW_LINE>if (!theJsonVal.isString()) {<NEW_LINE>getErrorHandler().incorrectJsonType(null, "id", ValueType.SCALA...
alternateVal.getJsonType(), null);
1,852,619
public UserProject newProjectFromExternalTemplate(String projectName, String zipData) {<NEW_LINE>System.out.println(">>>>> ProjectService newProjectFromExternalTemplate name = " + projectName);<NEW_LINE>UserProject userProject = null;<NEW_LINE>// Convert base64 string to byte[]<NEW_LINE>// NOTE: GWT's Base64Utils uses ...
Level.SEVERE, "I/O Error importing from template project (external)", e);
873,699
public Object eval(Reader reader, ScriptContext ctx) throws ScriptException {<NEW_LINE>ctx.setAttribute(<MASK><NEW_LINE>initFreeMarkerConfiguration(ctx);<NEW_LINE>String fileName = getFilename(ctx);<NEW_LINE>boolean outputAsString = isStringOutputMode(ctx);<NEW_LINE>Writer out;<NEW_LINE>if (outputAsString) {<NEW_LINE>o...
"context", ctx, ScriptContext.ENGINE_SCOPE);
1,115,432
public static void buildApiDoc(ApiConfig config, JavaProjectBuilder javaProjectBuilder) {<NEW_LINE>DocBuilderTemplate builderTemplate = new DocBuilderTemplate();<NEW_LINE>builderTemplate.checkAndInit(config, false);<NEW_LINE>config.setAdoc(false);<NEW_LINE>config.setParamsDataToTree(false);<NEW_LINE>ProjectDocConfigBui...
"AllInOne" + version + ".md", ".md");
1,343,011
public static void main(String[] args) {<NEW_LINE>var vm = new VirtualMachine(new Wizard(45, 7, 11, 0, 0), new Wizard(36, 18, 8, 0, 0));<NEW_LINE>vm.execute(InstructionConverterUtil.convertToByteCode(LITERAL_0));<NEW_LINE>vm.execute<MASK><NEW_LINE>vm.execute(InstructionConverterUtil.convertToByteCode(String.format(HEAL...
(InstructionConverterUtil.convertToByteCode(LITERAL_0));
18,581
final CreateApplicationResult executeCreateApplication(CreateApplicationRequest createApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
false), new CreateApplicationResultJsonUnmarshaller());
1,412,899
public static CreateOrderV2Response unmarshall(CreateOrderV2Response createOrderV2Response, UnmarshallerContext _ctx) {<NEW_LINE>createOrderV2Response.setRequestId<MASK><NEW_LINE>createOrderV2Response.setCode(_ctx.stringValue("CreateOrderV2Response.Code"));<NEW_LINE>createOrderV2Response.setMessage(_ctx.stringValue("Cr...
(_ctx.stringValue("CreateOrderV2Response.RequestId"));
980,147
private void resolveTags(AuxParserResult result) {<NEW_LINE>List<BibEntry> entriesToInsert = new ArrayList<>();<NEW_LINE>for (String key : result.getUniqueKeys()) {<NEW_LINE>if (!result.getGeneratedBibDatabase().getEntryByCitationKey(key).isPresent()) {<NEW_LINE>Optional<BibEntry> entry = masterDatabase.getEntryByCitat...
getUnresolvedKeys().add(key);
1,191,996
public com.amazonaws.services.secretsmanager.model.PublicPolicyException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.secretsmanager.model.PublicPolicyException publicPolicyException = new com.amazonaws.services.secretsmanager.model.PublicPolicyException(null...
JsonToken token = context.getCurrentToken();
758,435
final DeleteBackupResult executeDeleteBackup(DeleteBackupRequest deleteBackupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBackupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
(super.beforeMarshalling(deleteBackupRequest));
1,225,804
public Request<RemoveRoleFromInstanceProfileRequest> marshall(RemoveRoleFromInstanceProfileRequest removeRoleFromInstanceProfileRequest) {<NEW_LINE>if (removeRoleFromInstanceProfileRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<RemoveRol...
request.addParameter("Version", "2010-05-08");
970,223
private void rebuildAllSyncData() {<NEW_LINE>// Delete all tasks not assigned to self<NEW_LINE>taskService.deleteWhere(Criterion.or(Task.USER_ID.neq(0), Task.DELETION_DATE.gt(0)));<NEW_LINE>// Delete user table<NEW_LINE>userDao.deleteWhere(Criterion.all);<NEW_LINE>// Delete comments this user didn't make<NEW_LINE>userA...
taskAttachmentDao.deleteWhere(Criterion.all);
673,526
public boolean process() {<NEW_LINE>int numViews = depths.numRows;<NEW_LINE>int numFeatures = depths.numCols;<NEW_LINE>P.reshape(3 * numViews, 4);<NEW_LINE>X.reshape(4, numFeatures);<NEW_LINE>A.reshape(numViews * 3, numFeatures);<NEW_LINE>B.reshape(numViews * 3, numFeatures);<NEW_LINE>// Scale depths so that they are c...
svd.getV(Vt, true);
97,536
public DescribeBrokerEngineTypesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeBrokerEngineTypesResult describeBrokerEngineTypesResult = new DescribeBrokerEngineTypesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.g...
class).unmarshall(context));
245,457
void buildFilePart(final KeyDataPair pairWithFile, final MultipartEntityBuilder builder) {<NEW_LINE><MASK><NEW_LINE>if (mimeType == null) {<NEW_LINE>mimeType = MimeType.APPLICATION_OCTET_STREAM;<NEW_LINE>}<NEW_LINE>final ContentType contentType = ContentType.create(mimeType);<NEW_LINE>final File file = pairWithFile.get...
String mimeType = pairWithFile.getMimeType();
1,033,603
public static SignalServiceAddress toSignalServiceAddress(@NonNull Context context, @NonNull Recipient recipient) throws IOException {<NEW_LINE>recipient = recipient.resolve();<NEW_LINE>if (!recipient.getServiceId().isPresent() && !recipient.getE164().isPresent()) {<NEW_LINE>throw new AssertionError(recipient.getId() +...
getId() + ". Registered: " + state);
219,289
public Transaction refund(boolean partial, MerchantStore store, Transaction transaction, Order order, BigDecimal amount, IntegrationConfiguration configuration, IntegrationModule module) throws IntegrationException {<NEW_LINE>String apiKey = configuration.getIntegrationKeys().get("secretKey");<NEW_LINE>if (StringUtils....
strAmount.replace(".", "");
160,598
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>insidePanel = new javax.swing.JPanel();<NEW_LINE>xLabel = new javax.swing.JLabel();<NEW_LINE>xField = new javax.swing.JText...
util.ResourceBundle.getBundle("org/netbeans/beaninfo/editors/Bundle");
907,376
boolean tryYearCmpFunc(Item.ItemResult type) {<NEW_LINE>if (type == Item.ItemResult.ROW_RESULT)<NEW_LINE>return false;<NEW_LINE>boolean aisyear = a.fieldType() == FieldTypes.MYSQL_TYPE_YEAR;<NEW_LINE>boolean bisyear = b<MASK><NEW_LINE>if (!aisyear && !bisyear)<NEW_LINE>return false;<NEW_LINE>if (aisyear && bisyear) {<N...
.fieldType() == FieldTypes.MYSQL_TYPE_YEAR;
420,289
void populate(byte[] msg, byte[] headers, byte[] body) throws DBusException {<NEW_LINE>big = (msg[0] == Endian.BIG);<NEW_LINE>type = msg[1];<NEW_LINE>flags = msg[2];<NEW_LINE>protover = msg[3];<NEW_LINE>wiredata[0] = msg;<NEW_LINE>wiredata[1] = headers;<NEW_LINE>wiredata[2] = body;<NEW_LINE>this.body = body;<NEW_LINE>b...
+ headers.length + body.length;
1,845,431
private static Object evalContext(String path, Object ctx) {<NEW_LINE>final String[] parts;<NEW_LINE>if (path == null || path.isEmpty())<NEW_LINE>parts = EMPTY_ARRAY;<NEW_LINE>else<NEW_LINE>parts = path.split("\\.");<NEW_LINE>for (String part : parts) {<NEW_LINE>if (ctx == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_L...
index = Integer.parseInt(part);
1,587,069
public void notifyUserInCharge(@NonNull final ApiAuditConfig apiAuditConfig, @NonNull final ApiRequestAudit apiRequestAudit, final boolean isError) {<NEW_LINE>final Optional<UserGroupId> userGroupToNotify = apiAuditConfig.getUserGroupToNotify(isError);<NEW_LINE>if (!userGroupToNotify.isPresent()) {<NEW_LINE>Loggables.a...
).forEach(notificationBL::send);
905,777
private List<Frame> splitMessageToFrames(Message msg) {<NEW_LINE>byte code = getCode(msg.getCommand());<NEW_LINE>List<Frame> ret = new ArrayList<>();<NEW_LINE>byte[] bytes = msg.getEncoded();<NEW_LINE>int curPos = 0;<NEW_LINE>while (curPos < bytes.length) {<NEW_LINE>int newPos = min(curPos + maxFramePayloadSize, bytes....
copyOfRange(bytes, curPos, newPos);
963,129
private RequestBodySpec sendRequest(WebClient webClient, String logId, Request request, HttpHeaders headers) {<NEW_LINE>//<NEW_LINE>RequestBodySpec //<NEW_LINE>requestBodySpec = webClient.method(HttpMethod.valueOf(request.getMethod().toUpperCase())).uri(builder -> {<NEW_LINE>builder = builder.path(request.getEndpoint()...
getParameters(), body::get);
1,485,491
public OceanBaseConstant castAs(CastType type) {<NEW_LINE>if (isNull()) {<NEW_LINE>return OceanBaseConstant.createNullConstant();<NEW_LINE>}<NEW_LINE>if (type == CastType.SIGNED || type == CastType.UNSIGNED) {<NEW_LINE>String value = this.value;<NEW_LINE>while (value.startsWith(" ") || value.startsWith("\t") || value.s...
val = Long.parseLong(substring);
1,280,507
public void restoreInstanceState(@NonNull Bundle state) {<NEW_LINE>int checkedItem = state.getInt(STATE_CHECKED_ITEM, 0);<NEW_LINE>if (checkedItem != 0) {<NEW_LINE>updateSuspended = true;<NEW_LINE>for (int i = 0, size = items.size(); i < size; i++) {<NEW_LINE>NavigationMenuItem item = items.get(i);<NEW_LINE>if (item in...
View actionView = item.getActionView();
1,843,792
private void refreshView(final Lookup context, boolean immediate) {<NEW_LINE>Runnable r = new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>Project mainProject = OpenProjectList<MASK><NEW_LINE>final Project[] projects = selection(mainProject, context);<NEW_LINE>final String presenterNa...
.getDefault().getMainProject();
348,000
public static CreateContactFlowResponse unmarshall(CreateContactFlowResponse createContactFlowResponse, UnmarshallerContext context) {<NEW_LINE>createContactFlowResponse.setRequestId(context.stringValue("CreateContactFlowResponse.RequestId"));<NEW_LINE>createContactFlowResponse.setSuccess(context.booleanValue("CreateCo...
(context.stringValue("CreateContactFlowResponse.ContactFlow.Type"));
654,931
private boolean createCircularReveal() {<NEW_LINE>if (mColorBg == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int w = mColorBg.getWidth();<NEW_LINE>int h = mColorBg.getHeight();<NEW_LINE>if (ViewCompat.isAttachedToWindow(mColorBg) && w != 0 && h != 0) {<NEW_LINE>Resources resources = getContext2().getResources()...
getDimensionPixelSize(R.dimen.keyline_margin);
640,165
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>List<String> ids = bu...
setIsTop(ext.getIsTop());
873,714
private void deleteVolume(final CascadeAction action, final Completion completion) {<NEW_LINE>final List<<MASK><NEW_LINE>if (volumes == null || volumes.isEmpty()) {<NEW_LINE>completion.success();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<VolumeDeletionMsg> msgs = new ArrayList<VolumeDeletionMsg>();<NEW_LINE>for (Volume...
VolumeDeletionStruct> volumes = volumesFromAction(action);
1,583,580
// Note that some TREC 2018 topics don't properly close the </url> tags.<NEW_LINE>@Override<NEW_LINE>public SortedMap<Integer, Map<String, String>> read(BufferedReader bRdr) throws IOException {<NEW_LINE>SortedMap<Integer, Map<String, String>> map = new TreeMap<>();<NEW_LINE>Map<String, String> fields = new HashMap<>()...
, m.group(1));
1,733,907
public void dump() {<NEW_LINE>String hdr <MASK><NEW_LINE>System.out.println(hdr);<NEW_LINE>if (m_data == null) {<NEW_LINE>System.out.println("----- no data -----");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// raw data<NEW_LINE>for (int i = 0; i < m_data.length; i++) {<NEW_LINE>char data = (char) m_data[i];<NEW_LINE>System....
= "----- " + getName() + " -----";
1,704,732
public void unarchive(final List<Path> selected) {<NEW_LINE>final List<Path> expanded <MASK><NEW_LINE>for (final Path s : selected) {<NEW_LINE>final Archive archive = Archive.forName(s.getName());<NEW_LINE>if (null == archive) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>new OverwriteController(parent).overwrite(archive.ge...
= new ArrayList<Path>();
1,776,236
private void process(JaxbXmlPart part) throws Docx4JException {<NEW_LINE>log.info("/n Processing " + part.getPartName().getName());<NEW_LINE>org.docx4j.openpackaging.packages.OpcPackage pkg = part.getPackage();<NEW_LINE>// Binding is a concept which applies more broadly<NEW_LINE>// than just Word documents.<NEW_LINE>or...
throw new Docx4JException("Problems ensuring integrity", e);
588,253
public BucketPolicy unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BucketPolicy bucketPolicy = new BucketPolicy();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
class).unmarshall(context));
258,615
protected EncounterResult encounter() throws RequestFailedException {<NEW_LINE>EncounterMessage message = EncounterMessage.newBuilder().setEncounterId(pokemon.encounterId).setSpawnPointId(pokemon.spawnPointId).setPlayerLatitude(api.latitude).setPlayerLongitude(api.longitude).build();<NEW_LINE>ServerRequest request = ne...
requestHandler.sendServerRequests(request, true);
432,933
protected void delegateMethod(final RESTRequest request, final RESTResponse response) throws RESTException {<NEW_LINE>final String method = request.getMethod();<NEW_LINE>if (HTTP_METHOD_GET.equals(method)) {<NEW_LINE>setJSONResponse(response, doGET(request, response), HTTP_OK);<NEW_LINE>} else if (HTTP_METHOD_POST.equa...
response, pr.jsonPayload, HTTP_CREATED);
1,351,291
public static String[] splitCommaUnlessInParen(String line) {<NEW_LINE>int nestingLevelParen = 0;<NEW_LINE>int lastComma = -1;<NEW_LINE>List<String> parts = new ArrayList<String>();<NEW_LINE>for (int i = 0; i < line.length(); i++) {<NEW_LINE>char c = line.charAt(i);<NEW_LINE>if (c == '(') {<NEW_LINE>nestingLevelParen++...
line.substring(lastComma + 1);
608,149
public static void doMove(final Module[] modules, final ModuleGroup group, @Nullable final DataContext dataContext) {<NEW_LINE>Project project = modules[0].getProject();<NEW_LINE>for (final Module module : modules) {<NEW_LINE>ModifiableModuleModel model = dataContext != null ? dataContext.<MASK><NEW_LINE>if (model != n...
getData(LangDataKeys.MODIFIABLE_MODULE_MODEL) : null;
1,351,146
final DescribeSpotInstanceRequestsResult executeDescribeSpotInstanceRequests(DescribeSpotInstanceRequestsRequest describeSpotInstanceRequestsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeSpotInstanceRequestsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
(super.beforeMarshalling(describeSpotInstanceRequestsRequest));
341,820
private void writeEventToRelayDispatcher(ConnectionState curState, DbusEvent event, String message) throws InterruptedException, InvalidEventException {<NEW_LINE>boolean success = false;<NEW_LINE>// Create a infinite backoff timer that waits for maximum of 1 sec<NEW_LINE>// for writing the control message to evb<NEW_LI...
"Event:" + event.toString());
1,766,114
private static void applyLValueCondense(AssignmentSimple a1, AssignmentSimple a2, Op03SimpleStatement stm1, Op03SimpleStatement stm2) {<NEW_LINE>Expression r1 = a1.getRValue();<NEW_LINE>Expression r2 = a2.getRValue();<NEW_LINE>LValue l1 = a1.getCreatedLValue();<NEW_LINE>LValue l2 = a2.getCreatedLValue();<NEW_LINE>if (!...
.TODO, l2, newRhs));
1,551,793
public boolean process(DMatrixRMaj P) {<NEW_LINE>if (!svd.decompose(P))<NEW_LINE>return false;<NEW_LINE>svd.getU(Ut, true);<NEW_LINE>svd.getV(V, false);<NEW_LINE>double[] sv = svd.getSingularValues();<NEW_LINE>SingularOps_DDRM.descendingOrder(Ut, true, sv, 3, V, false);<NEW_LINE>// compute W+, which is transposed and n...
, 1.0 / sv[i]);
337,201
public synchronized void nextPanel() {<NEW_LINE>if (current() == selectUriStep) {<NEW_LINE>Map<String, GitBranch> remoteBranches = selectUriStep.getRemoteBranches();<NEW_LINE>Map<String, String> remoteTags = selectUriStep.getRemoteTags();<NEW_LINE>if (remoteBranches != null) {<NEW_LINE>pushBranchesStep.fillRemoteBranch...
pushMapping = (PushMapping.PushBranchMapping) mapping;
745,011
public CreateJobTemplateResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateJobTemplateResult createJobTemplateResult = new CreateJobTemplateResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken...
String currentParentElement = context.getCurrentParentElement();
671,472
public static DeleteSipAgentGroupResponse unmarshall(DeleteSipAgentGroupResponse deleteSipAgentGroupResponse, UnmarshallerContext context) {<NEW_LINE>deleteSipAgentGroupResponse.setRequestId(context.stringValue("DeleteSipAgentGroupResponse.RequestId"));<NEW_LINE>deleteSipAgentGroupResponse.setSuccess<MASK><NEW_LINE>del...
(context.booleanValue("DeleteSipAgentGroupResponse.Success"));
1,608,491
public AuthenticationDetails login(Credentials credentials) throws LoginException {<NEW_LINE>checkNotNullArgument(credentials, "credentials should not be null");<NEW_LINE>SecurityContext previousSecurityContext = AppContext.getSecurityContext();<NEW_LINE>AppContext.setSecurityContext(new SecurityContext(serverSession))...
"Logged in: {}", authenticationDetails.getSession());
1,787,190
public RolePermissionsForm updateRolePermissions(final RolePermissionsForm rolePermissionsForm) {<NEW_LINE>log.debug("updateRolePermissions() - rolePermissionsForm: {}", rolePermissionsForm);<NEW_LINE>final Set<Permission> newPermissions = rolePermissionsForm.getRolePermissions().stream().filter(RolePermissionDto::isSe...
updatedRole = roleService.update(role);
1,745,676
public int decodeNumeric(PackedBits8 data, int bitLocation, int lengthBits) {<NEW_LINE>int length = data.read(bitLocation, lengthBits, true);<NEW_LINE>bitLocation += lengthBits;<NEW_LINE>while (length >= 3) {<NEW_LINE>if (data.size < bitLocation + 10) {<NEW_LINE>if (verbose != null)<NEW_LINE>verbose.printf("overflow: n...
char) (valB + '0'));
735,434
public void attemptAuthentication(final PwmRequest pwmRequest) throws PwmUnrecoverableException {<NEW_LINE>if (!pwmRequest.getDomainConfig().readSettingAsBoolean(PwmSetting.BASIC_AUTH_ENABLED)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (pwmRequest.isAuthenticated()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Optional...
get().getPassword());
1,268,308
void create(Set<String> tableDirs, Manager manager) throws IOException {<NEW_LINE>UniqueNameAllocator namer = manager.getContext().getUniqueNameAllocator();<NEW_LINE>for (ImportedTableInfo.DirectoryMapping dm : tableInfo.directories) {<NEW_LINE>Path exportDir = new Path(dm.exportDir);<NEW_LINE>log.info("Looking for mat...
info("Using import dir: {}", dm.importDir);
214,946
private Collection<ClientMethodInvocation> collectPendingRpcCalls(Collection<ClientConnector> rpcPendingQueue) {<NEW_LINE>List<ClientMethodInvocation> pendingInvocations = new ArrayList<>();<NEW_LINE>for (ClientConnector connector : rpcPendingQueue) {<NEW_LINE>List<ClientMethodInvocation> paintablePendingRpc = connecto...
paintablePendingRpc.get(paintableIndex++));
889,038
private void traceConfig() {<NEW_LINE>writer.println(new StringBuilder(180).append(impl.getClass().getName()).append(' ').append(traceID).append(" = new ").append(impl.getClass().getName()).append("();").toString());<NEW_LINE>try {<NEW_LINE>PropertyDescriptor[] props = Introspector.getBeanInfo(impl.getClass()).getPrope...
writer.println("Unable to read the configuration for " + traceID);
172,395
public static PathValue populate(VirtualPathValue value, DbAccess dbAccess, NodeCursor nodeCursor, RelationshipScanCursor relCursor, PropertyCursor propertyCursor) {<NEW_LINE>if (value instanceof PathValue) {<NEW_LINE>return (PathValue) value;<NEW_LINE>} else {<NEW_LINE>var nodeIds = value.nodeIds();<NEW_LINE>var relId...
dbAccess, nodeCursor, relCursor, propertyCursor);
1,399,665
final void mergeClustersInB() {<NEW_LINE>// Update the labels with merge info for the next iteration<NEW_LINE>for (int i = 0; i < labelsB.size; i++) {<NEW_LINE>int label = labelsB.data[i];<NEW_LINE>if (// See if this cluster got merged<NEW_LINE>label == -1 || merge.data[label] == -1)<NEW_LINE>continue;<NEW_LINE>labelsB...
countsB.data[label] = 0;
1,257,186
private Operation buildEntityOperation(HandlerMethod handlerMethod, DataRestRepository dataRestRepository, OpenAPI openAPI, RequestMethod requestMethod, String operationPath, MethodAttributes methodAttributes, ResourceMetadata resourceMetadata) {<NEW_LINE>Class<?> domainType = null;<NEW_LINE>if (!ControllerType.GENERAL...
methodAttributes, operation, resourceMetadata, dataRestRepository);
1,641,635
private void text(double x, double y, double w, double h, String str, TextAlign align, TextBaseline valign, boolean clip, double rotation) {<NEW_LINE>if (state.fillColor == null) {<NEW_LINE>state.fillColor = convertColor(state.fillColorValue);<NEW_LINE>}<NEW_LINE>if (state.fillColor != null) {<NEW_LINE>x = (state.dx + ...
dy + y) * state.scale;
333,363
private void paintDropShadowText(Graphics g, int w, int h) {<NEW_LINE>if (textImage == null) {<NEW_LINE>textImage = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);<NEW_LINE>dropShadowImage = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);<NEW_LINE>}<NEW_LINE>// Step 1: render the text.<NEW_LINE>Graphics2D t...
blurryImageG.setComposite(AlphaComposite.SrcOver);
1,244,827
final CreateTokenResult executeCreateToken(CreateTokenRequest createTokenRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createTokenRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<CreateTokenRequest> reques...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,482,953
public Map<Short, String> fetchAllSchemaVersionsBySourceName(String databusSourceName) throws NoSuchSchemaException, DatabusException {<NEW_LINE>boolean isDebugEnabled = LOG.isDebugEnabled();<NEW_LINE>Map<Short, String> resultMap = new HashMap<Short, String>();<NEW_LINE>SortedMap<VersionedSchemaId, VersionedSchema> sch...
getSchema().toString());
893,698
public static String dateTimeConvert(String timeValueStr, String inputFormatStr, String outputFormatStr, String outputGranularityStr) {<NEW_LINE>long timeValueMs = new DateTimeFormatSpec(inputFormatStr).fromFormatToMillis(timeValueStr);<NEW_LINE>DateTimeFormatSpec outputFormat = new DateTimeFormatSpec(outputFormatStr);...
timeValueMs, outputFormatter.getZone());
1,131,994
public ListResolversResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListResolversResult listResolversResult = new ListResolversResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
)).unmarshall(context));
374,596
public String display() {<NEW_LINE>StringBuffer sb = new StringBuffer();<NEW_LINE>DecimalFormat f = new java.text.DecimalFormat("' '000");<NEW_LINE>sb.append(AdapterUtil.EOLN).append(this);<NEW_LINE>sb.append(AdapterUtil.EOLN).append("Number of entries: ").append(numEntries);<NEW_LINE>sb.append(AdapterUtil.EOLN).app...
format(previous[i]));
1,151,514
public PlanNode visitQuery(QueryStatement queryStatement, MPPQueryContext context) {<NEW_LINE>PlanBuilder planBuilder = planSelectComponent(queryStatement);<NEW_LINE>if (queryStatement.getWhereCondition() != null) {<NEW_LINE>planBuilder = planQueryFilter(planBuilder, queryStatement.getWhereCondition().getQueryFilter())...
) queryStatement).getFillComponent());
1,525,038
public static void fitCannyEdges(GrayF32 input) {<NEW_LINE>BufferedImage displayImage = new BufferedImage(input.width, input.height, BufferedImage.TYPE_INT_RGB);<NEW_LINE>// Finds edges inside the image<NEW_LINE>CannyEdge<GrayF32, GrayF32> canny = FactoryEdgeDetectors.canny(2, true, true, GrayF32.class, GrayF32.class);...
Random rand = new Random(234);
156,410
private void handle_null_service_context(ServerRequestInfo serverRequestInfo, ORB orb) {<NEW_LINE>if (logger.isLoggable(Level.FINE)) {<NEW_LINE>logger.log(Level.FINE, "No SAS context element found in service context list for operation: " + serverRequestInfo.operation());<NEW_LINE>}<NEW_LINE>ServiceContext serviceContex...
log(Level.FINE, "SecServerRequestInterceptor.receive_request: NO_PERMISSION");
624,826
final CreateReplicationInstanceResult executeCreateReplicationInstance(CreateReplicationInstanceRequest createReplicationInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createReplicationInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
(super.beforeMarshalling(createReplicationInstanceRequest));
1,528,112
public static void main(String[] args) {<NEW_LINE>Exercise24_NonOverlappingIntervalSearch nonOverlappingIntervalSearch = new Exercise24_NonOverlappingIntervalSearch();<NEW_LINE>Interval interval1 = nonOverlappingIntervalSearch.new Interval(1, 1643, 2033);<NEW_LINE>Interval interval2 = nonOverlappingIntervalSearch.new I...
.findInterval(9122) + " Expected: 3");
835,082
protected void handleTextFont(PFont which, float size) {<NEW_LINE>textFont = which;<NEW_LINE>String fontName = which.getName();<NEW_LINE>String fontPsName = which.getPostScriptName();<NEW_LINE>textFontInfo = fontCache.get(fontName, size);<NEW_LINE>if (textFontInfo == null) {<NEW_LINE>Font font = null;<NEW_LINE>if (whic...
put(fontName, size, textFontInfo);
1,587,085
private void checkReviewApprovers(GitHubApi api, String project, PullRequest prData, ImmutableListMultimap.Builder<String, String> labelsBuilder) throws ValidationException, RepoException {<NEW_LINE>if (reviewState == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ImmutableList<Review> reviews = api.getReviews(<MASK><NEW...
project, prData.getNumber());
1,156,189
private boolean refillBufferIfNeeded() throws IOException {<NEW_LINE>if (buffer.readableBytes() == 0) {<NEW_LINE>if (cursor >= objectLen) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>long startRange = cursor;<NEW_LINE>long endRange = Math.min(cursor + bufferSize - 1, objectLen - 1);<NEW_LINE>try {<NEW_LINE>Blob blob = ...
long bytesRead = endRange - startRange + 1;
1,806,161
private void logCommandUsageNoHeader(BaseCommand theCommand) {<NEW_LINE>// This is passed in from the launch script<NEW_LINE>String columnsString = System.getProperty("columns");<NEW_LINE>int columns;<NEW_LINE>try {<NEW_LINE>columns = Integer.parseInt(columnsString);<NEW_LINE>columns = Math.max(columns, 40);<NEW_LINE>c...
WordUtils.wrap(next, columns);
1,141,224
public void onPlayerLevelUp(McMMOPlayerLevelUpEvent event) {<NEW_LINE><MASK><NEW_LINE>PrimarySkillType skill = event.getSkill();<NEW_LINE>McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);<NEW_LINE>// TODO: Handle proper validation at the event level<NEW_LINE>if (mcMMOPlayer == null || !mcMMOPlayer.getProfile().i...
Player player = event.getPlayer();
115,601
public <T extends Ruleset> List<T> findAll(Class<T> rulesetType, RulesetQuery query) {<NEW_LINE>return persistenceService.doReturningTransaction(em -> {<NEW_LINE><MASK><NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>List<ParameterBinder> binders = new ArrayList<>();<NEW_LINE>appendSelectString(sb, rulesetTyp...
LOG.finer("Building: " + query);
1,740,049
private Set<ClassInfoType> processJarFormatInputStreamURL(URL jarURL) throws ClassScannerException {<NEW_LINE>final HashSet<ClassInfoType> citSet = new HashSet<ClassInfoType>();<NEW_LINE>try (JarInputStream jis = new JarInputStream(jarURL.openStream(), false)) {<NEW_LINE>JarEntry jarEntry = null;<NEW_LINE>while ((jarEn...
).replace("/", ".");
13,320
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create " + typeType + " schema EventOne(sbarr SupportBean_S0[])", path);<NEW_LINE>env.compileDeploy("@name('s0') @public insert into EventOne select " + "(select * from SupportBean_S0#ke...
-> assertS0(event, s0One));
1,471,003
private String addLineToPreviousSpace(Fonts.TextMeasurer m, String paragraph, Fonts.Style style, int guess, Size size, boolean first) {<NEW_LINE>do {<NEW_LINE>int next = guess - 1;<NEW_LINE>while (next > 0 && !whitespace().matches(paragraph.charAt(next))) {<NEW_LINE>next--;<NEW_LINE>}<NEW_LINE>if (next == 0) {<NEW_LINE...
), style, size, first);
1,404,164
final TestWirelessDeviceResult executeTestWirelessDevice(TestWirelessDeviceRequest testWirelessDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(testWirelessDeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "TestWirelessDevice");
1,246,332
final CreateConnectAttachmentResult executeCreateConnectAttachment(CreateConnectAttachmentRequest createConnectAttachmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createConnectAttachmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
invoke(request, responseHandler, executionContext);
184,656
public Integer save(ConsumptionInfo info, String operator) {<NEW_LINE>log.debug("begin to save consumption info={}", info);<NEW_LINE>Preconditions.checkNotNull(info, "consumption info cannot be null");<NEW_LINE>Preconditions.checkNotNull(<MASK><NEW_LINE>if (isConsumerGroupExists(info.getConsumerGroup(), info.getId())) ...
info.getTopic(), "consumption topic cannot be empty");
1,548,265
public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler masm) {<NEW_LINE>Register result = asRegister(resultValue);<NEW_LINE>Label done = new Label();<NEW_LINE>Register arrayA = asRegister(arrayAValue);<NEW_LINE>Register arrayB = asRegister(arrayBValue);<NEW_LINE>// add byte offset to array pointers<NEW_...
, asRegister(offsetAValue), done);
635,298
public static ListNodeGroupTransferPacketsResponse unmarshall(ListNodeGroupTransferPacketsResponse listNodeGroupTransferPacketsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listNodeGroupTransferPacketsResponse.setRequestId(_ctx.stringValue("ListNodeGroupTransferPacketsResponse.RequestId"));<NEW_LINE>listNodeGroupTrans...
("ListNodeGroupTransferPacketsResponse.Data.List[" + i + "].GwOwnerAliyunId"));
1,488,134
/* (non-Javadoc)<NEW_LINE>* @see org.mitre.openid.connect.service.MITREidDataServiceExtension#fixExtensionObjectReferences()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void fixExtensionObjectReferences(MITREidDataServiceMaps maps) {<NEW_LINE>for (Long permissionId : permissionToResourceRefs.keySet()) {<NEW_LINE>Lon...
newResourceId = resourceSetOldToNewIdMap.get(oldResourceId);
1,076,997
public static void registerType(final ModelBuilder modelBuilder) {<NEW_LINE>final ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ResourceRole.class, BPMN_ELEMENT_RESOURCE_ROLE).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<ResourceRole>() {<NEW_LINE...
ResourceParameterBinding.class).build();
1,075,735
private void recycle(List<Node> nodes) {<NEW_LINE>List<Node> nodesToRecycle = new ArrayList<>();<NEW_LINE>for (Node candidate : nodes) {<NEW_LINE>if (broken(candidate)) {<NEW_LINE>List<String> unparkedChildren = !candidate.type().isHost() ? List.of() : nodeRepository.nodes().list().childrenOf(candidate).not().state(Nod...
join(", ", unparkedChildren)));