idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,347,742
public boolean execute(@Nonnull PsiFileSystemItem element) {<NEW_LINE>if (!filter.shouldShow(element)) {<NEW_LINE>// skip<NEW_LINE>} else if (element instanceof PsiDirectory) {<NEW_LINE>result.add(new PsiDirectoryNode(project, (PsiDirectory) element, settings, filter) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Coll...
ExtensionSortKey(fileType.getDefaultExtension());
1,797,638
// TODO separate out ours and users models possibly regression vs classification<NEW_LINE>private void addInferenceIngestUsage(GetTrainedModelsStatsAction.Response statsResponse, Map<String, Object> inferenceUsage) {<NEW_LINE>int pipelineCount = 0;<NEW_LINE>StatsAccumulator docCountStats = new StatsAccumulator();<NEW_L...
getStats().getIngestFailedCount());
1,666,495
private long[] createMethods(ClassDescriptor desc, List<MethodResolution> overloads) {<NEW_LINE>int n = overloads.size();<NEW_LINE>long[] overloadPtrs = new long[overloads.size()];<NEW_LINE>for (MethodResolution ov : overloads) {<NEW_LINE>Method method = (Method) ov.executable;<NEW_LINE>// We may already have built a m...
(decl).getMethod(method);
983,869
// keep reading. the caller will decide when to end<NEW_LINE>@Override<NEW_LINE>public int read(byte[] b, int off, int len) throws IOException {<NEW_LINE>if (b == null) {<NEW_LINE>throw new NullPointerException();<NEW_LINE>} else if (off < 0 || len < 0 || len > b.length - off) {<NEW_LINE>throw new IndexOutOfBoundsExcep...
get(b, off, bytesToRead);
1,086,838
private void addPlayerData(Map<String, Object> dataJson, TablePlayer player) {<NEW_LINE>String name = player.getName().orElse(player.getPlayerUUID().toString());<NEW_LINE>String url = (playersPage ? "./player/" : "../player/") + Html.encodeToURL(player.getPlayerUUID().toString());<NEW_LINE>int loginTimes = player.getSe...
? Html.LINK_EXTERNAL : Html.LINK;
1,394,651
public boolean revertSnapshot(SnapshotInfo snapshotInfo) {<NEW_LINE>VolumeInfo volumeInfo = snapshotInfo.getBaseVolume();<NEW_LINE>verifyFormat(volumeInfo);<NEW_LINE>verifyDiskTypeAndHypervisor(volumeInfo);<NEW_LINE>verifySnapshotType(snapshotInfo);<NEW_LINE>SnapshotDataStoreVO snapshotStore = snapshotStoreDao.findBySn...
getId(), DataStoreRole.Primary);
1,295,742
private static void migrate(Context context) throws IOException, RemoteException {<NEW_LINE>int first = 0;<NEW_LINE>String format = context.getString(R.string.msg_migrating);<NEW_LINE>List<ApplicationInfo> listApp = context.getPackageManager().getInstalledApplications(0);<NEW_LINE>// Start migrate<NEW_LINE>PrivacyProvi...
.migrateSettings(context, 0));
270,874
public static ListVirtualHostsResponse unmarshall(ListVirtualHostsResponse listVirtualHostsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listVirtualHostsResponse.setRequestId(_ctx.stringValue("ListVirtualHostsResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setNextToken(_ctx.stringValue("ListVirtu...
("ListVirtualHostsResponse.Data.VirtualHosts[" + i + "].Name"));
625,489
private void parseBytes(byte[] weightBytes) {<NEW_LINE>// 10 ~ 99<NEW_LINE>int bodyage = (int) (weightBytes[17]);<NEW_LINE>// kg<NEW_LINE>float weight = (float) (((weightBytes[2] & 0xFF) << 8) | (weightBytes[3] & 0xFF)) / 100.0f;<NEW_LINE>// %<NEW_LINE>float fat = (float) (((weightBytes[4] & 0xFF) << 8) | (weightBytes[...
5] & 0xFF)) / 10.0f;
1,363,684
protected void handleBadRequest(String message, HttpServletResponse resp) throws IOException {<NEW_LINE>log.debug("handleBadRequest {}", message);<NEW_LINE>// resp.setStatus(HttpServletResponse.SC_BAD_REQUEST);<NEW_LINE>// resp.setHeader("Connection", "Keep-Alive");<NEW_LINE>// resp.setHeader("Cache-Control", "no-cache...
).createConnectionInstance(RTMPTConnection.class);
658,108
protected PackageBinding findPackage(char[] name, ModuleBinding module) {<NEW_LINE>char[][] subpackageCompoundName = CharOperation.arrayConcat(this.compoundName, name);<NEW_LINE>Set<PackageBinding> candidates = new HashSet<>();<NEW_LINE>for (ModuleBinding candidateModule : this.declaringModules) {<NEW_LINE>PackageBindi...
add(iterator.next());
309,513
private void generate(final Instant start, final Instant end, final ResourceId resourceId) {<NEW_LINE>if (start == null || end == null || resourceId == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ResourceType resourceType = getResourceType(resourceId);<NEW_LINE>final TemporalUnit durationUnit = resourceType.getD...
final Duration dailyCapacity = getDailyCapacity(resource);
832,178
private void addState(String checkName, String actionName, String arg, boolean finalized) {<NEW_LINE>context.nodeSubtype.addMethod(MethodSpec.methodBuilder(checkName).addStatement("return (getKeyReference() == $L)", arg).addModifiers(context.publicFinalModifiers()).returns(boolean<MASK><NEW_LINE>var action = MethodSpec...
.class).build());
996,100
private Optional<OspfProcess> toOspfProcess(VirtualRouter vr, Vrf vrf) {<NEW_LINE>OspfVr ospf = vr.getOspf();<NEW_LINE>if (ospf == null || !ospf.isEnable()) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>// Router ID is ensured to be present by the CLI/UI<NEW_LINE>if (ospf.getRouterId() == null) {<NEW_LINE>_w....
"~OSPF_PROCESS_%s", ospf.getRouterId());
1,361,339
public List<MySQLServerVH> fetchMySQLServerDetails(SubscriptionVH subscription) {<NEW_LINE>List<MySQLServerVH> mySqlServerList = new ArrayList<MySQLServerVH>();<NEW_LINE>String accessToken = azureCredentialProvider.getToken(subscription.getTenant());<NEW_LINE>String url = String.format(apiUrlTemplate, URLEncoder.encode...
toString(), HashMap.class);
1,031,555
protected BeanDefinitionBuilder buildBeanDefinition(Element element, ParserContext parserContext) {<NEW_LINE>BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(AmqpChannelFactoryBean.class);<NEW_LINE>String messageDriven = element.getAttribute("message-driven");<NEW_LINE>if (StringUtils.hasText...
setReferenceIfAttributeDefined(builder, element, attribute);
556,038
public SdkType unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SdkType sdkType = new SdkType();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token...
)).unmarshall(context));
1,294
private void pushNALInternal() {<NEW_LINE>if (isStopped()) {<NEW_LINE>Utils.logi(TAG, () -> "decodeLoop Stopped. mStopped==true.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (mAvailableInputs.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>NAL nal = mNalQueue.peek();<NEW_LINE>if (nal == null) {<NEW_LINE>return;<NEW_L...
nal.length + " PresentationTime=" + presentationTime);
957,754
public void buildHandleConfig() {<NEW_LINE>PipelineConfiguration pipelineConfig = getPipelineConfig();<NEW_LINE>HandleConfiguration handleConfig = getHandleConfig();<NEW_LINE>if (null == handleConfig || null == handleConfig.getJobShardingDataNodes()) {<NEW_LINE>RuleAlteredJobConfigurationPreparer preparer = RequiredSPI...
getTarget().getParameter());
1,327,848
private List<Wo> list(Business business, Wi wi, List<Identity> identityList) throws Exception {<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>if (StringUtils.isBlank(wi.getKey()) && (ListTools.isEmpty(wi.getUnitList()) || ListTools.isEmpty(identityList))) {<NEW_LINE>return wos;<NEW_LINE>}<NEW_LINE>EntityManager e...
map = new HashMap<>();
365,179
private Mono<Response<Flux<ByteBuffer>>> redeployWithResponseAsync(String resourceGroupName, String labName, String name, 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."));<...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
489,008
static Map<String, Object> split(final StructuredTextNode thisNode, final Map<String, Object> parameters) throws FrameworkException {<NEW_LINE>final App app = StructrApp.getInstance(thisNode.getSecurityContext());<NEW_LINE>final Integer pos = integerOrDefault(parameters.get("position"), null);<NEW_LINE>if (pos != null)...
String content = thisNode.getContent();
1,395,950
public Iterator<Entry<E, Double>> iterator() {<NEW_LINE>return new Iterator<Entry<E, Double>>() {<NEW_LINE><NEW_LINE>final Iterator<Entry<E, MutableDouble>> inner = map.entrySet().iterator();<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean hasNext() {<NEW_LINE>return inner.hasNext();<NEW_LINE>}<NEW_LINE><NEW_LINE>...
.getValue().doubleValue();
1,074,719
public void show(KrollDict options) {<NEW_LINE>if (this.dialogWrapper == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MaterialAlertDialogBuilder builder = getBuilder();<NEW_LINE>if (builder == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AlertDialog dialog = (AlertDialog) dialogWrapper.getDialog();<NEW_LINE>if (dialog ...
WeakReference<TiBaseActivity>(dialogActivity));
716,227
private List<RexNode> gatherOrderExprs(LogicalView logicalView, SqlNodeList orderBy, RexBuilder rexBuilder, SqlSelect ast) {<NEW_LINE>SqlValidatorImpl validator = getValidatorForScope(ast);<NEW_LINE>final List<RexNode> <MASK><NEW_LINE>final List<SqlNode> orderExprList = new ArrayList<>();<NEW_LINE>for (SqlNode orderByI...
orderByExps = new ArrayList<>();
1,281,116
protected void testProxyConnections() {<NEW_LINE>Proxy proxy = validateProxyConfigFields();<NEW_LINE>if (proxy == null) {<NEW_LINE>appendStatusMessage(R.string.proxy_test_aborted);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mProxyManager.saveProxyInfoToPrefs(proxy, true);<NEW_LINE>mProxyManager.configureSystemProxy();<NEW_LI...
.toString().toUpperCase();
807,389
public static void main(String[] args) throws Exception {<NEW_LINE>// String s = new String(FileUtil.readAll(new File("d:/tmp/sample-query2.sql")), "EUC_KR");<NEW_LINE>// new<NEW_LINE>String s = "select aa_1 ,( a - b) as b from tab";<NEW_LINE>// String(FileUtil.readAll(new<NEW_LINE>// File("d:/tmp/sample-query2.sql")...
long time = System.currentTimeMillis();
1,341,829
public static DescribeEmgNoticeResponse unmarshall(DescribeEmgNoticeResponse describeEmgNoticeResponse, UnmarshallerContext context) {<NEW_LINE>describeEmgNoticeResponse.setRequestId(context.stringValue("DescribeEmgNoticeResponse.RequestId"));<NEW_LINE>describeEmgNoticeResponse.setTotalCount(context.integerValue("Descr...
("DescribeEmgNoticeResponse.EmgVulGroupList[" + i + "].Type"));
1,629,966
public void drawU(UGraphic ug) {<NEW_LINE>final URectangle rect = new URectangle(width, height).rounded(5).ignoreForCompressionOnX();<NEW_LINE>if (UseStyle.useBetaStyle()) {<NEW_LINE>final Style style = getSignature().getMergedStyle(skinParam().getCurrentStyleBuilder());<NEW_LINE>final double shadowing = style.value(<M...
PName.Shadowing).asDouble();
266,780
public static boolean canCastToJson(Type type) {<NEW_LINE>if (type instanceof UnknownType || type instanceof BooleanType || type instanceof TinyintType || type instanceof SmallintType || type instanceof IntegerType || type instanceof BigintType || type instanceof RealType || type instanceof DoubleType || type instanceo...
) type).getElementType());
1,091,241
public static DescribeSynchronizationObjectModifyStatusResponse unmarshall(DescribeSynchronizationObjectModifyStatusResponse describeSynchronizationObjectModifyStatusResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSynchronizationObjectModifyStatusResponse.setRequestId(_ctx.stringValue("DescribeSynchronizationObj...
(_ctx.stringValue("DescribeSynchronizationObjectModifyStatusResponse.PrecheckStatus.Status"));
920,057
private void replaceImportsAndIncludes(XmlObject xmlObject, Map<String, String> urlToFileMap, String baseUrl) throws Exception {<NEW_LINE>XmlObject[] wsdlImports = xmlObject.selectPath("declare namespace s='http://schemas.xmlsoap.org/wsdl/' .//s:import/@location");<NEW_LINE>for (int i = 0; i < wsdlImports.length; i++) ...
(SimpleValue) schemaImports[i]);
1,063,132
public static boolean isAdvancedViewOnly(DownloadManager dm) {<NEW_LINE>Boolean oisUpdate = (Boolean) dm.getUserData("isAdvancedViewOnly");<NEW_LINE>if (oisUpdate != null) {<NEW_LINE>return oisUpdate.booleanValue();<NEW_LINE>}<NEW_LINE>boolean advanced_view = true;<NEW_LINE>if (!dm.getDownloadState().getFlag(DownloadMa...
URL announceURL = torrent.getAnnounceURL();
1,201,929
public static QueryUserGroupListByParentIdResponse unmarshall(QueryUserGroupListByParentIdResponse queryUserGroupListByParentIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryUserGroupListByParentIdResponse.setRequestId(_ctx.stringValue("QueryUserGroupListByParentIdResponse.RequestId"));<NEW_LINE>queryUserGroupList...
("QueryUserGroupListByParentIdResponse.Result[" + i + "].ModifiedTime"));
756,872
private void execute0(Throwable[] death, EObject result) throws ErlangHalt, ThreadDeath, Pausable {<NEW_LINE>try {<NEW_LINE>result = execute1();<NEW_LINE>} catch (NotImplemented e) {<NEW_LINE>log.log(Level.SEVERE, "[fail] exiting " + self_handle(), e);<NEW_LINE>result = e.reason();<NEW_LINE>death[0] = e;<NEW_LINE>} cat...
"[signal] exiting " + self_handle(), e);
1,146,380
public Animator createAnimator(final ViewGroup root, TransitionValues valuesStart, final TransitionValues valuesEnd) {<NEW_LINE>Animator bounds = super.createAnimator(root, valuesStart, valuesEnd);<NEW_LINE>if (valuesStart == null || valuesEnd == null || bounds == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Integ...
valuesEnd.values.get(PROPERTY_RADIUS);
1,392,867
public void saveAction(SaveActionParam data) throws RuntimeException {<NEW_LINE>log.info("----get save action params data: {}", data);<NEW_LINE>log.info("----get empid: {}", data.getEmpId());<NEW_LINE>ActionDO actionDO = new ActionDO();<NEW_LINE>actionDO.setUuid(UUID.randomUUID().toString());<NEW_LINE>actionDO.setStatu...
setCreateTime(data.getCreateTime());
170,234
void update(int pos, int offsetDelta, int base, int entry) {<NEW_LINE>int oldPos = position;<NEW_LINE>position = oldPos + offsetDelta + (oldPos == 0 ? 0 : 1);<NEW_LINE>int newDelta = offsetDelta;<NEW_LINE>if (where == position)<NEW_LINE>newDelta = offsetDelta - gap;<NEW_LINE>else if (where == oldPos)<NEW_LINE>newDelta ...
(byte) (newDelta + base);
407,764
public Texture2D readSampler(int samplerIndex, Texture2D texture) throws IOException {<NEW_LINE>if (samplers == null) {<NEW_LINE>throw new AssetLoadException("No samplers defined");<NEW_LINE>}<NEW_LINE>JsonObject sampler = samplers.<MASK><NEW_LINE>Texture.MagFilter magFilter = getMagFilter(getAsInteger(sampler, "magFil...
get(samplerIndex).getAsJsonObject();
1,797,390
void onWaypointTransition(@NonNull WaypointModel waypointModel, @NonNull final Location location, final int transition, @NonNull final String trigger) {<NEW_LINE>Timber.v("geofence %s/%s transition:%s, trigger:%s", waypointModel.getTst(), waypointModel.getDescription(), transition == Geofence.GEOFENCE_TRANSITION_ENTER ...
waypointsRepo.update(waypointModel, false);
1,533,417
private void createEditorNode() {<NEW_LINE>EventHandler<KeyEvent> keyEventsHandler = t -> {<NEW_LINE>if (t.getCode() == KeyCode.ENTER) {<NEW_LINE>commitHelper(false);<NEW_LINE>} else if (t.getCode() == KeyCode.ESCAPE) {<NEW_LINE>cancelEdit();<NEW_LINE>} else if (t.getCode() == KeyCode.TAB) {<NEW_LINE>commitHelper(false...
getValue(), keyEventsHandler, focusChangeListener);
328,485
private Mono<Response<MoveCollectionInner>> createWithResponseAsync(String resourceGroupName, String moveCollectionName, MoveCollectionInner body, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,222,325
@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Adds a project to a notification rule", response = NotificationRule.class)<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 304, message = "The rule already has the specified project assigned"), @Api...
Status.NOT_MODIFIED).build();
1,334,437
public static int maskArray(@Sensitive byte[] ba, int start, int end, int resume, @Sensitive byte[] masks) {<NEW_LINE>// start is the first valid byte in the array to mask.<NEW_LINE>// end is that last valid byte in the array to mask.<NEW_LINE>// resume holds where we left off masking<NEW_LINE>int i = start;<NEW_LINE>i...
i] ^ masks[index3]);
922,879
final DisassociateMemberFromGroupResult executeDisassociateMemberFromGroup(DisassociateMemberFromGroupRequest disassociateMemberFromGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateMemberFromGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkMail");
428,208
public static void validateSSLOptions(OptionSet options, OptionParser parser, ArgumentAcceptingOptionSpec<String> sslEnabledDatacentersOpt, ArgumentAcceptingOptionSpec<String> sslKeystorePathOpt, ArgumentAcceptingOptionSpec<String> sslKeystoreTypeOpt, ArgumentAcceptingOptionSpec<String> sslTruststorePathOpt, ArgumentAc...
sslEnabledDatacenters = options.valueOf(sslEnabledDatacentersOpt);
403,532
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@Name('context') @public create context SegmentedByString partition by theString from SupportBean", path);<NEW_LINE>String[] fields = new String[] { "val0", "val1" };<NEW_LINE>env.<MASK><NEW_LIN...
compileDeploy("@Name('s0') context SegmentedByString " + "select intPrimitive as val0, prior(1, intPrimitive) as val1 from SupportBean", path);
1,533,159
public boolean visit(Assignment node) {<NEW_LINE>Expression leftHandSide = node.getLeftHandSide();<NEW_LINE>if (!considerBinding(resolveBinding(leftHandSide), leftHandSide)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>checkParent(node);<NEW_LINE>Expression rightHandSide = node.getRightHandSide();<NEW_LINE>if (!fIsField...
, invocation, createGroupDescription(WRITE_ACCESS));
530,455
private void lf_init_lut() {<NEW_LINE>int filt_lvl;<NEW_LINE>short[] kfTHRLut = new short[MAX_LOOP_FILTER + 1];<NEW_LINE>short[] ifTHRLut = new short[MAX_LOOP_FILTER + 1];<NEW_LINE>for (filt_lvl = 0; filt_lvl <= LoopFilterInfoN.MAX_LOOP_FILTER; ++filt_lvl) {<NEW_LINE>if (filt_lvl >= 40) {<NEW_LINE>kfTHRLut[filt_lvl] = ...
.H_PRED, (short) 1);
529,632
Object invoke(String name, Object[] args) {<NEW_LINE>GrpcMethodStub stub = methodStubs.get(name);<NEW_LINE>if (stub == null) {<NEW_LINE>throw Status.INTERNAL.withDescription("gRPC method '" + name + "' does not exist").asRuntimeException();<NEW_LINE>}<NEW_LINE>ClientMethodDescriptor descriptor = stub.descriptor();<NEW_...
unary(args, this::unary);
993,439
public EventLogEntryEntity generateEventLogEntry(CommandContext commandContext) {<NEW_LINE>ActivitiMessageEvent messageEvent = (ActivitiMessageEvent) event;<NEW_LINE>Map<String, Object> data = new HashMap<String, Object>();<NEW_LINE>putInMapIfNotNull(data, Fields.ACTIVITY_ID, messageEvent.getActivityId());<NEW_LINE>put...
MESSAGE_DATA, messageEvent.getMessageData());
1,317,311
public byte[] readPrimitiveBytes(EClassifier classifier, ByteBuffer buffer, QueryInterface query) {<NEW_LINE>if (classifier == EcorePackage.eINSTANCE.getEString()) {<NEW_LINE>int length = buffer.getInt();<NEW_LINE>if (length != -1) {<NEW_LINE>byte[] result = new byte[length];<NEW_LINE>buffer.get(result, 0, length);<NEW...
get(result, 0, 8);
164,765
final GetSubscriptionAttributesResult executeGetSubscriptionAttributes(GetSubscriptionAttributesRequest getSubscriptionAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSubscriptionAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
805,665
private boolean isServiceVulnerable(NetworkService networkService) {<NEW_LINE>HttpHeaders httpHeaders = HttpHeaders.builder().addHeader(com.google.common.net.HttpHeaders.CONTENT_TYPE, MediaType.JSON_UTF_8.toString()).build();<NEW_LINE>ByteString requestBody = ByteString.copyFromUtf8(payloadString);<NEW_LINE>String targ...
).log("Unable to query '%s'.", targetUri);
693,240
public void finalizeEStep(double weight, double prior) {<NEW_LINE>final int dim = covariance.length;<NEW_LINE>this.weight = weight;<NEW_LINE>double f = wsum > Double.MIN_NORMAL && wsum < Double.POSITIVE_INFINITY ? 1. / wsum : 1.;<NEW_LINE>if (prior > 0 && priormatrix != null) {<NEW_LINE>// MAP<NEW_LINE>// Popular defau...
logNorm - getHalfLogDeterminant(this.chol);
210,032
protected Object doExecute(ExecutionEvent event) throws ExecutionException {<NEW_LINE>final String networkURL = getGithubURL();<NEW_LINE>if (networkURL == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// Use View<NEW_LINE>// $NON-NLS-1$<NEW_LINE>final String browserViewerFieldName = "viewer";<NEW_LIN...
BrowserViewer) f.get(obj);
188,078
final ListInvitationsResult executeListInvitations(ListInvitationsRequest listInvitationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listInvitationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
endClientExecution(awsRequestMetrics, request, response);
1,170,621
// submit the map/reduce job.<NEW_LINE>public int run(final String[] args) throws Exception {<NEW_LINE>if (args.length != 5) {<NEW_LINE>return printUsage();<NEW_LINE>}<NEW_LINE>int ret_val = 0;<NEW_LINE>nreducers = Integer<MASK><NEW_LINE>Path y_path = new Path(args[1]);<NEW_LINE>Path x_path = new Path(args[2]);<NEW_LIN...
.parseInt(args[0]);
1,380,416
public TestAttemptContinuation execute() throws InterruptedException, ExecException {<NEW_LINE>SpawnContinuation nextContinuation = null;<NEW_LINE>try {<NEW_LINE>nextContinuation = spawnContinuation.execute();<NEW_LINE>if (!nextContinuation.isDone()) {<NEW_LINE>return new BazelCoveragePostProcessingContinuation(testAct...
BlazeTestStatus.TIMEOUT : BlazeTestStatus.FAILED);
1,833,840
private List<EffigyFieldPair> pairByMinDifference() {<NEW_LINE>List<EffigyFieldPair> fieldPairs = new ArrayList<EffigyFieldPair>();<NEW_LINE>BitSet pairedFromIndices = new BitSet(from.getFields().size());<NEW_LINE>BitSet pairedToIndices = new BitSet(to.getFields().size());<NEW_LINE>int[] maxDiffBackoff = new int[] { 1,...
4, 8, Integer.MAX_VALUE };
1,141,311
public static Object[] optionListsFromValues(Component c, String func, Object... args) {<NEW_LINE>if (args.length == 0) {<NEW_LINE>return args;<NEW_LINE>}<NEW_LINE>Method calledFunc = getMethod(c, func);<NEW_LINE>if (calledFunc == null) {<NEW_LINE>return args;<NEW_LINE>}<NEW_LINE>Annotation[][<MASK><NEW_LINE>int i = 0;...
] paramAnnotations = calledFunc.getParameterAnnotations();
1,343,781
public GetEntitlementsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetEntitlementsResult getEntitlementsResult = new GetEntitlementsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
)).unmarshall(context));
468,663
private Map<String, Object> toJson(Trigger trigger, ZoneId zoneId) throws SchedulerException {<NEW_LINE>Scheduler scheduler = getScheduler();<NEW_LINE>Trigger.TriggerState state = scheduler.getTriggerState(trigger.getKey());<NEW_LINE>Map<String, Object> json = new LinkedHashMap<>();<NEW_LINE>json.put("key", trigger.get...
) trigger).getCronExpression());
1,656,830
public static void downloadUsernotes(String subreddit) {<NEW_LINE>WikiManager manager = new WikiManager(Authentication.reddit);<NEW_LINE>Gson gson = new GsonBuilder().registerTypeAdapter(new TypeToken<Map<String, List<Usernote>>>() {<NEW_LINE>}.getType(), new Usernotes.BlobDeserializer()).create();<NEW_LINE>try {<NEW_L...
"_usernotes_exists", false).apply();
1,193,006
public static String repeat(String string, int count) {<NEW_LINE>// eager for GWT.<NEW_LINE>checkNotNull(string);<NEW_LINE>if (count <= 1) {<NEW_LINE>checkArgument(count >= 0, "invalid count: %s", count);<NEW_LINE>return (count == 0) ? "" : string;<NEW_LINE>}<NEW_LINE>// IF YOU MODIFY THE CODE HERE, you must update Str...
final int size = (int) longSize;
232,749
public List<ImageUrl> parseImages(String html, Chapter chapter) {<NEW_LINE>List<ImageUrl> list = new LinkedList<>();<NEW_LINE>String str = StringUtils.match("cp=\"(.*?)\"", html, 1);<NEW_LINE>if (str != null) {<NEW_LINE>try {<NEW_LINE>str = DecryptionUtils.evalDecrypt(DecryptionUtils.base64Decrypt(str));<NEW_LINE>Strin...
parseLong(comicChapter + "000" + i);
570,468
public Object executeFunction() {<NEW_LINE>ReferenceExpression symb_arg = this.getSymbArgument(0);<NEW_LINE>Object conc_arg = this.getConcArgument(0);<NEW_LINE>ReferenceExpression symb_ret_val = this.getSymbRetVal();<NEW_LINE>String conc_ret_val = (String) this.getConcRetVal();<NEW_LINE>if (conc_arg != null && conc_arg...
$STRING_VALUE, conc_ret_val, symb_non_null_ret_val, strExpr);
63,229
private static <T, S> void register(TestGroup<T> group, Transformer<T, S> transformer, TypeHandler<S> handler) {<NEW_LINE>Output output = new Output(Serializer.BUFFER_SIZE);<NEW_LINE>Input input = new Input(output.getBuffer());<NEW_LINE>//<NEW_LINE>//<NEW_LINE>group.//<NEW_LINE>add(//<NEW_LINE>transformer, new BasicSer...
, SerClass.CLASSES_KNOWN, "class registration, no references (typical usage)"));
215,950
public Map<String, Object> props() {<NEW_LINE>Map<String, Object> props = new LinkedHashMap<>();<NEW_LINE>applyTemplates(props, getResolvedExtraProperties());<NEW_LINE>props.put(KEY_DISTRIBUTION_NAME, name);<NEW_LINE>props.put(KEY_DISTRIBUTION_EXECUTABLE, executable.getName());<NEW_LINE>props.put(KEY_DISTRIBUTION_EXECU...
resolveWindowsExtension(), props, true);
1,291,827
public void restoreXml(Element el, SleighBase trans) {<NEW_LINE>defexp = null;<NEW_LINE>triple = null;<NEW_LINE>flags = 0;<NEW_LINE>hand = XmlUtils.decodeUnknownInt(el.getAttributeValue("index"));<NEW_LINE>reloffset = XmlUtils.decodeUnknownInt(el.getAttributeValue("off"));<NEW_LINE>offsetbase = XmlUtils.decodeUnknownIn...
Element) children.get(1);
1,245,388
public void send(final MailMessage message) throws MailException {<NEW_LINE>final EmailAccount emailAccount = mailAccountService.getDefaultSender();<NEW_LINE>if (emailAccount == null) {<NEW_LINE>super.send(message);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Preconditions.checkNotNull(message, "mail message can't be null");<...
recipients = recipients(message, related);
282,882
private ObjectGroup unmarshalObjectGroup(Node t) throws Exception {<NEW_LINE>ObjectGroup og = null;<NEW_LINE>try {<NEW_LINE>og = <MASK><NEW_LINE>} catch (JAXBException e) {<NEW_LINE>// todo: replace with log message<NEW_LINE>e.printStackTrace();<NEW_LINE>return og;<NEW_LINE>}<NEW_LINE>final int offsetX = getAttribute(t...
unmarshalClass(t, ObjectGroup.class);
1,612,383
public void start(Promise<Void> startPromise) {<NEW_LINE>pool = PgPool.pool(vertx, options, new PoolOptions().setMaxSize(5));<NEW_LINE>pool.query("create table jokes(joke varchar(255))").execute().compose(v -> vertx.fileSystem().readFile("jokes.json")).compose(buffer -> {<NEW_LINE>JsonArray array = new JsonArray(buffer...
mapEmpty().onComplete(startPromise);
1,213,439
protected PwEntry populateNewEntry(PwEntry entry) {<NEW_LINE>PwEntry newEntry;<NEW_LINE>if (entry == null) {<NEW_LINE>newEntry = mEntry.clone(true);<NEW_LINE>} else {<NEW_LINE>newEntry = entry;<NEW_LINE>}<NEW_LINE>Date now = Calendar.getInstance().getTime();<NEW_LINE>newEntry.setLastAccessTime(now);<NEW_LINE>newEntry.s...
.id.entry_comment), db);
1,298,114
public Robot input(String value) {<NEW_LINE>if (highlight) {<NEW_LINE>getFocused().highlight(highlightDuration);<NEW_LINE>}<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>for (char c : value.toCharArray()) {<NEW_LINE>if (Keys.isModifier(c)) {<NEW_LINE>sb.append(c);<NEW_LINE>int[] codes = RobotUtils.KEY_CODES...
.keyPress(codes[1]);
1,050,193
protected void deploy(DeploymentInfo deploymentInfo) {<NEW_LINE>LOG.info("Deploying JAX-RS deployment for protocol instance : " + this);<NEW_LINE>DeploymentManager manager = Servlets.defaultContainer().addDeployment(deploymentInfo);<NEW_LINE>manager.deploy();<NEW_LINE>HttpHandler httpHandler;<NEW_LINE>// Get realm from...
"' for request path: " + deploymentInfo.getContextPath());
1,834,036
public static HAContextID decodeHAID(String haid) throws CSErrorException {<NEW_LINE>if (StringUtils.isBlank(haid)) {<NEW_LINE>throw new CSErrorException(ErrorCode.INVALID_NULL_STRING, "HAIDKey cannot be empty.");<NEW_LINE>}<NEW_LINE>if (!checkHAIDBasicFormat(haid)) {<NEW_LINE>logger.error("Invalid haid : " + haid);<NE...
instance = instanceList.remove(0);
1,144,910
static ThreePartName parse(String theProcName) {<NEW_LINE>String procedurePart = null;<NEW_LINE>String ownerPart = null;<NEW_LINE>String databasePart = null;<NEW_LINE>Matcher matcher;<NEW_LINE>if (null != theProcName) {<NEW_LINE>matcher = THREE_PART_NAME.matcher(theProcName);<NEW_LINE>if (matcher.matches()) {<NEW_LINE>...
procedurePart = matcher.group(2);
1,725,918
public void build(HttpResponse response) {<NEW_LINE>String origin = request.getHttpHeaders().getRequestHeaders().getFirst(ORIGIN_HEADER);<NEW_LINE>if (origin == null) {<NEW_LINE>logger.trace("No origin header ignoring");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!preflight && (allowedOrigins == null || (!allowedOrigins....
, CollectionUtil.join(exposedHeaders));
737,594
private Mono<Response<Object>> generateUpgradedDefinitionWithResponseAsync(String resourceGroupName, String workflowName, GenerateUpgradedDefinitionParameters parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.g...
), parameters, accept, context);
1,469,418
private static void checkForNullValues(String name, Object[] values) {<NEW_LINE>Preconditions.checkNotNull(name, "name is 'null'.");<NEW_LINE>List<Integer> indexes = new LinkedList<Integer>();<NEW_LINE>for (int i = 0; i < values.length; i++) {<NEW_LINE>if (values[i] == null) {<NEW_LINE>indexes.add(i);<NEW_LINE>}<NEW_LI...
int failedIndexCount = indexes.size();
166,958
public void addInternalTriggers(Collection<ITriggerInternal> result, IStatementContainer container) {<NEW_LINE>Pipe<?> pipe = null;<NEW_LINE>TileEntity tile = container.getTile();<NEW_LINE>if (tile instanceof TileGenericPipe) {<NEW_LINE>pipe = ((TileGenericPipe) tile).pipe;<NEW_LINE>}<NEW_LINE>if (pipe == null) {<NEW_L...
TriggerPipeContents.PipeContents.empty.trigger);
1,610,399
protected void paintIcon(Graphics2D gfx) {<NEW_LINE><MASK><NEW_LINE>gfx.setStroke(new BasicStroke(scale(1)));<NEW_LINE>gfx.setColor(Color.GRAY);<NEW_LINE>gfx.drawRect(scale(9), scale(0), wh, wh);<NEW_LINE>gfx.setStroke(new BasicStroke(scale(2)));<NEW_LINE>gfx.setColor(Color.BLUE.darker());<NEW_LINE>final var p = new Ge...
final var wh = scale(3);
1,121,924
CodeTypeElement createDefaultExportProvider(ExportsLibrary libraryExports) {<NEW_LINE>String libraryName = libraryExports.getLibrary().getTemplateType()<MASK><NEW_LINE>CodeTypeElement providerClass = createClass(libraryExports, null, modifiers(PUBLIC, STATIC, FINAL), libraryName + "Provider", null);<NEW_LINE>providerCl...
.getSimpleName().toString();
1,587,778
public void pushEvent(IntVar var, ICause cause, IntEventType evt, int one, int two, int three) {<NEW_LINE>int size_ = size.get();<NEW_LINE>if (nbEntries != size_) {<NEW_LINE>synchronize(size_);<NEW_LINE>}<NEW_LINE>Entry root = rootEntries.get(var);<NEW_LINE>if (root == null) {<NEW_LINE>throw new Error("Unknown variable...
evt, one, root, prev);
118,168
public Mat draw(SegResult result, Mat visualizeMat, ImageBlob imageBlob, int cutoutClass) {<NEW_LINE>int new_h = (int) imageBlob.getNewImageSize()[2];<NEW_LINE>int new_w = (int) <MASK><NEW_LINE>Mat mask = new Mat(new_h, new_w, CvType.CV_32FC(1));<NEW_LINE>float[] scoreData = new float[new_h * new_w];<NEW_LINE>System.ar...
imageBlob.getNewImageSize()[3];
1,365,802
private Prune prune(Node node, List<Tuple> test, double[] importance, Formula formula, IntSet labels) {<NEW_LINE>if (node instanceof DecisionNode) {<NEW_LINE>DecisionNode leaf = (DecisionNode) node;<NEW_LINE>int y = leaf.output();<NEW_LINE>int error = 0;<NEW_LINE>for (Tuple t : test) {<NEW_LINE>if (y != labels.indexOf(...
trueBranch = new ArrayList<>();
527,362
protected OracleSchema convertSchema(Map<String, Object> recordMap) {<NEW_LINE>OracleSchema schema = new OracleSchema();<NEW_LINE>schema.setSchema(safeToString(recordMap.get("USERNAME")));<NEW_LINE>schema.setStatus(OracleSchemaStatus.valueOfCode(safeToString(recordMap.get("ACCOUNT_STATUS"))));<NEW_LINE>schema.setLockDa...
recordMap.get("LOCK_DATE")));
459,296
public Observable<ServiceResponse<Project>> createProjectWithServiceResponseAsync(String name, CreateProjectOptionalParameter createProjectOptionalParameter) {<NEW_LINE>if (this.client.endpoint() == null) {<NEW_LINE>throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null.");<...
? createProjectOptionalParameter.classificationType() : null;
550,520
public static Volume createSecretVolume(String name, String secretName, Map<String, String> items, boolean isOpenshift) {<NEW_LINE>String validName = getValidVolumeName(name);<NEW_LINE>int mode = 0444;<NEW_LINE>if (isOpenshift) {<NEW_LINE>mode = 0440;<NEW_LINE>}<NEW_LINE>List<KeyToPath> keysPaths = new ArrayList<>();<N...
withItems(keysPaths).build();
327,982
protected int apply(Instrumentation instrumentation, BatchAllocator redefinitionBatchAllocator, Listener redefinitionListener, int batch) {<NEW_LINE>Map<List<Class<?>>, Throwable> failures = new HashMap<List<Class<?>>, Throwable>();<NEW_LINE>PrependableIterator prependableIterator = new PrependableIterator(redefinition...
, throwable, this.types));
102,306
public RestoreAddressToClassicResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>RestoreAddressToClassicResult restoreAddressToClassicResult = new RestoreAddressToClassicResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>i...
().unmarshall(context));
1,554,593
public void listen(FieldChangedEvent fieldChangedEvent) {<NEW_LINE>if (preferencesService.getFilePreferences().shouldFulltextIndexLinkedFiles()) {<NEW_LINE>if (fieldChangedEvent.getField().equals(StandardField.FILE)) {<NEW_LINE>List<LinkedFile> oldFileList = FileFieldParser.parse(fieldChangedEvent.getOldValue());<NEW_L...
= new ArrayList<>(newFileList);
781,226
private boolean openCustomEditor(ActionEvent e) {<NEW_LINE>if (getSelectedRowCount() != 1 || getSelectedColumnCount() != 1) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int row = getSelectedRow();<NEW_LINE>if (row < 0)<NEW_LINE>return false;<NEW_LINE>int column = getSelectedColumn();<NEW_LINE>if (column < 0)<NEW_LINE>r...
o = getValueAt(row, column);
680,672
/* Build call for throttlingBlacklistConditionIdGet */<NEW_LINE>private com.squareup.okhttp.Call throttlingBlacklistConditionIdGetCall(String conditionId, String ifNoneMatch, String ifModifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressR...
localVarAuthNames = new String[] {};
154,154
private Window.RexWinAggCall toWindowAggCall(Map<String, Object> jsonAggCall) {<NEW_LINE>final String aggName = (String) jsonAggCall.get("agg");<NEW_LINE>final SqlAggFunction aggregation = <MASK><NEW_LINE>final Boolean distinct = (Boolean) jsonAggCall.get("distinct");<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>fi...
relJson.toAggregation(aggName, jsonAggCall);
1,191,153
Set<Shape> markAndSweep(Model model) {<NEW_LINE>NeighborProvider <MASK><NEW_LINE>MarkerContext context = new MarkerContext(reverseNeighbors, model, sweepFilter);<NEW_LINE>int currentSize;<NEW_LINE>do {<NEW_LINE>currentSize = context.getMarkedForRemoval().size();<NEW_LINE>marker.accept(context);<NEW_LINE>// Find shapes ...
reverseNeighbors = NeighborProvider.reverse(model);
768,355
protected void handleTaskDone(Tag tagTaskDone, IMetaMember member) {<NEW_LINE>Map<String, String> attrs = tagTaskDone.getAttributes();<NEW_LINE>if (attrs.containsKey(ATTR_NMSIZE)) {<NEW_LINE>long nmsize = Long.parseLong(attrs.get(ATTR_NMSIZE));<NEW_LINE>model.addNativeBytes(nmsize);<NEW_LINE>}<NEW_LINE>if (member != nu...
"Unexpected parent of task_done: {}", parent.getName());
671,208
private void initComponentsMore() {<NEW_LINE>contentPanel.setLayout(new GridBagLayout());<NEW_LINE>// NOI18N<NEW_LINE>contentPanel.setBackground(UIManager.getColor("Table.background"));<NEW_LINE>int row = 0;<NEW_LINE>combos = new ArrayList<>(items.size());<NEW_LINE>// NOI18N<NEW_LINE>Font monoSpaced = new Font("Monospa...
Rectangle r = c.getBounds();
1,378,754
public void importDeploymentData(final Path source, final Gson gson) throws FrameworkException {<NEW_LINE>final Path virtualTypesConf = source.resolve("virtual-types.json");<NEW_LINE>if (Files.exists(virtualTypesConf)) {<NEW_LINE>logger.info("Reading {}..", virtualTypesConf);<NEW_LINE>try (final Reader reader = Files.n...
context, VirtualType.class, entry);