idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,525,203
public CommandDataVersions generateCustomCommandData(Player player) {<NEW_LINE>if (!this.testPermission(player)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>CommandData customData = this.commandData.clone();<NEW_LINE>customData.aliases = this.getAliases();<NEW_LINE>customData.description = player.getServer().getLanguag...
getPermission()) ? "any" : "false";
434,300
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndAllElementsNotNull(sources, 3);<NEW_LINE>final List<Map<String, Object>> data = new LinkedList<>();<NEW_LINE>final String url = (String) sources[0];<NEW...
collection = database.getCollection(coll);
456,703
private void init() {<NEW_LINE>exceptionUnmarshallers.add(new MissingCustomsExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers<MASK><NEW_LINE>exceptionUnmarshallers.add(new MultipleRegionsExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new CreateJobQuotaExceededExceptionUnmarshaller());<NEW_LINE>ex...
.add(new InvalidVersionExceptionUnmarshaller());
921,812
public AccessLog unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>AccessLog accessLog = new AccessLog();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>while (true)...
XMLEvent xmlEvent = context.nextEvent();
1,752,010
public void init() throws SipPeerUnavailableException {<NEW_LINE>// Create the SIP stack<NEW_LINE>try {<NEW_LINE>// Set the path so we'll create the correct stack<NEW_LINE>SipFactory.getInstance().setPathName("com.ibm.ws");<NEW_LINE>SipPropertiesMap properties = PropertiesStore.getInstance().getProperties();<NEW_LINE>t...
traceDebug(this, "init", "SipStack service was not set");
633,588
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.impetus.kundera.client.Client#delete(java.lang.Object,<NEW_LINE>* java.lang.Object)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void delete(Object entity, Object pKey) {<NEW_LINE>HttpResponse response = null;<NEW_LINE>try {<NEW_LINE>EntityMetadata entityMeta...
embeddableType, entityMetadata.getTableName());
93,891
protected ServerConnector createHttpsConnector(Server server, String bindAddress, HttpsSettings httpsSettings, JettySettings jettySettings, NetworkTrafficListener listener) {<NEW_LINE>// Added to support Android https communication.<NEW_LINE>SslContextFactory sslContextFactory = buildSslContextFactory();<NEW_LINE>sslCo...
= new SslConnectionFactory(sslContextFactory, "http/1.1");
1,458,927
protected static void doMiniLeftShift(DecimalStructure dec, int shift, int beg, int last) {<NEW_LINE>int fromPos = roundUp(beg + 1) - 1;<NEW_LINE>int endPos = roundUp(last) - 1;<NEW_LINE>int cShift = DIG_PER_DEC1 - shift;<NEW_LINE>if (beg % DIG_PER_DEC1 < shift) {<NEW_LINE>dec.setBuffValAt(fromPos - 1, dec.getBuffValAt...
dec.getBuffValAt(fromPos + 1);
784,375
public Class<?> defineClass(String name, byte[] bytes) {<NEW_LINE>System.out.println("defineClass: name: " + name);<NEW_LINE>DexOptions dexOptions = new DexOptions();<NEW_LINE>DexFile dexFile = new DexFile(dexOptions);<NEW_LINE>DirectClassFile classFile = new DirectClassFile(bytes, name.replace('.', '/') + ".class", tr...
classFile.setAttributeFactory(StdAttributeFactory.THE_ONE);
571,342
// -------//<NEW_LINE>// paint //<NEW_LINE>// -------//<NEW_LINE>@Override<NEW_LINE>protected void paint(Graphics2D g, Params p, Point2D location, Alignment alignment) {<NEW_LINE>if (decorated) {<NEW_LINE>// Draw a dot (using composite) on the top<NEW_LINE>Point2D loc = alignment.translatedPoint(TOP_CENTER, p.rect, loc...
AREA_CENTER, p.rect, location);
1,722,924
// snapshot<NEW_LINE>public static WritableMap dataSnapshotToMap(String name, String path, DataSnapshot dataSnapshot) {<NEW_LINE>WritableMap data = Arguments.createMap();<NEW_LINE>data.putString("key", dataSnapshot.getKey());<NEW_LINE>data.putBoolean("exists", dataSnapshot.exists());<NEW_LINE>data.putBoolean("hasChildr...
data.putString("priority", null);
1,186,621
final ListAuditFindingsResult executeListAuditFindings(ListAuditFindingsRequest listAuditFindingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAuditFindingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
invoke(request, responseHandler, executionContext);
426,337
private static void addFields(ClassWriter cw, String servantDescriptor) {<NEW_LINE>FieldVisitor fv;<NEW_LINE>// d576626<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>// -----------------------------------------------------------------------<NEW_LINE>// private <servant class> target;...
"target", servantDescriptor, null, null);
604,416
void connectStopsToStreetNetwork() {<NEW_LINE><MASK><NEW_LINE>FlagEncoder footEncoder = em.getEncoder("foot");<NEW_LINE>final EdgeFilter filter = new DefaultSnapFilter(new FastestWeighting(footEncoder), em.getBooleanEncodedValue(Subnetwork.key("foot")));<NEW_LINE>for (Stop stop : feed.stops.values()) {<NEW_LINE>if (sto...
EncodingManager em = graph.getEncodingManager();
300,170
public void read(org.apache.thrift.protocol.TProtocol prot, FrontendRequest struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(4);<NEW_LINE>if (incoming.get(0)) {...
struct.announcementRequest = new AnnouncementRequest();
921,198
public synchronized static void loadAgent() throws RuntimeException {<NEW_LINE>if (alreadyLoaded) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.info("dynamically loading javaagent");<NEW_LINE>String nameOfRunningVM = ManagementFactory.getRuntimeMXBean().getName();<NEW_LINE>int p = nameOfRunningVM.indexOf('@');<NEW_LINE...
+ " " + cause.getMessage();
65,534
public MutableSet<T> without(T element) {<NEW_LINE>if (Comparators.nullSafeEquals(element, this.element1)) {<NEW_LINE>return new TripletonSet<T>(this.element2, <MASK><NEW_LINE>}<NEW_LINE>if (Comparators.nullSafeEquals(element, this.element2)) {<NEW_LINE>return new TripletonSet<T>(this.element1, this.element3, this.elem...
this.element3, this.element4);
930,072
private void checkMethods(RuntimeResource resource) {<NEW_LINE>final List<ResourceMethod> resourceMethods = new ArrayList<>(resource.getResourceMethods());<NEW_LINE>resourceMethods.addAll(resource.getResourceLocators());<NEW_LINE>if (resourceMethods.size() >= 2) {<NEW_LINE>for (ResourceMethod m1 : resourceMethods.subLi...
getHttpMethod(), m1, m2);
598,792
public static void main(String[] args) {<NEW_LINE>Exercise38_Sensitivity sensitivity = new Exercise38_Sensitivity();<NEW_LINE>EdgeWeightedDigraph edgeWeightedDigraph1 = new EdgeWeightedDigraph(6);<NEW_LINE>edgeWeightedDigraph1.addEdge(new DirectedEdge(0, 1, 2));<NEW_LINE>edgeWeightedDigraph1.addEdge(new DirectedEdge(1,...
(1, 0, 2));
148,207
public void serialize(MockSpan mockSpan, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {<NEW_LINE>jsonGenerator.writeStartObject();<NEW_LINE>jsonGenerator.writeStringField("spanId", mockSpan.<MASK><NEW_LINE>jsonGenerator.writeStringField("traceId", mockSpan.context().toTraceId()...
context().toSpanId());
846,382
private void configuraLoader() {<NEW_LINE>boolean usandoTemaDark = Configuracoes.getInstancia().isTemaDark();<NEW_LINE>String caminhoIcone = String.format("/br/univali/ps/ui/icones/%s/grande/load.gif", usandoTemaDark ? "Dark" : "Portugol");<NEW_LINE>Icon icone = new ImageIcon(getClass().getResource(caminhoIcone));<NEW_...
instalando.setForeground(ColorController.COR_LETRA);
1,311,029
public // whatever reason, releasePrecreatedComponent is called.<NEW_LINE>RADVisualComponent precreateVisualComponent(final ClassSource classSource) throws Exception {<NEW_LINE><MASK><NEW_LINE>if (compClass == null) {<NEW_LINE>// classloading failed, already reported to user // NOI18N<NEW_LINE>throw new Exception("Clas...
final Class compClass = prepareClass(classSource);
1,616,526
public FormRepresentation saveForm(String formId, FormSaveRepresentation saveRepresentation) {<NEW_LINE><MASK><NEW_LINE>Model model = modelService.getModel(formId);<NEW_LINE>String formKey = saveRepresentation.getFormRepresentation().getKey();<NEW_LINE>ModelKeyRepresentation modelKeyInfo = modelService.validateModelKey...
String user = SecurityUtils.getCurrentUserId();
1,054,227
private void processStdOutConsistently(final String text, final Key outputType) {<NEW_LINE>final int textLength = text.length();<NEW_LINE>if (textLength == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>synchronized (myStdOutChunks) {<NEW_LINE>myStdOutChunks.add(new OutputChunk(outputType, text));<NEW_LINE>}<NEW_LINE>final ...
text.charAt(textLength - 1);
766,588
private static Mono<VoiceStateUpdateEvent> voiceStateUpdateDispatch(DispatchContext<VoiceStateUpdateDispatch, VoiceStateData> context) {<NEW_LINE><MASK><NEW_LINE>Optional<VoiceStateData> oldVoiceStateData = context.getOldState();<NEW_LINE>VoiceStateUpdateDispatch voiceStateUpdate = context.getDispatch();<NEW_LINE>Voice...
GatewayDiscordClient gateway = context.getGateway();
1,707,869
public void process(ActionRequest req, ActionResponse res, String path) throws IOException, ServletException {<NEW_LINE>ActionRequestImpl reqImpl = (ActionRequestImpl) req;<NEW_LINE>ActionResponseImpl resImpl = (ActionResponseImpl) res;<NEW_LINE>HttpServletRequest httpReq = reqImpl.getHttpServletRequest();<NEW_LINE>Htt...
req.getAttribute(WebKeys.JAVAX_PORTLET_CONFIG);
408,245
private void initDefaultRoutes(Router router) {<NEW_LINE>router.add(GET, "/", RootTask.class);<NEW_LINE>router.add(GET, "", RootRedirectTask.class);<NEW_LINE>router.add(POST, "/reset", ResetTask.class);<NEW_LINE>router.add(GET, "/mappings", GetAllStubMappingsTask.class);<NEW_LINE>router.add(POST, "/mappings", CreateStu...
GET, "/settings", GetGlobalSettingsTask.class);
229,353
public static void updateGridOrListIcon(ImageView gridList, int libraryMode) {<NEW_LINE>if (gridList == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int stringId = R.string.list;<NEW_LINE>if (libraryMode == AppState.MODE_LIST) {<NEW_LINE>gridList.setImageResource(R.drawable.glyphicons_114_justify);<NEW_LINE>stringId = ...
setImageResource(R.drawable.glyphicons_156_show_big_thumbnails);
1,423,036
public static String encodeParameters(Request<?> request) {<NEW_LINE>AmazonPollyCustomRequest<?> customRequest = (AmazonPollyCustomRequest<?>) request;<NEW_LINE>final Map<String, List<String>> parametersWithList = customRequest.getParametersWithList();<NEW_LINE>if (parametersWithList.isEmpty()) {<NEW_LINE>return null;<...
URLEncoder.encode(value, DEFAULT_ENCODING);
1,022,591
public int loadConnections(InputStream in, long delta) throws IOException {<NEW_LINE>boolean clear = true;<NEW_LINE>int count = 0;<NEW_LINE>long startNanos = ClockUtil.nanoRealtime();<NEW_LINE>DataStreamReader reader = new DataStreamReader(in);<NEW_LINE>long progressNanos = startNanos;<NEW_LINE>try {<NEW_LINE>Connectio...
"{}reading failed after {} connections", tag, count, ex);
884,622
private static io.vertx.core.cli.Option createOption(Method method) {<NEW_LINE>TypedOption opt = new TypedOption();<NEW_LINE>// Option<NEW_LINE>Option option = method.getAnnotation(Option.class);<NEW_LINE>opt.setLongName(option.longName()).setShortName(option.shortName()).setMultiValued(option.acceptMultipleValues()).s...
(convertedBy.value()));
256,821
public ServiceResponse serviceImpl(Query post, HttpServletResponse response, Authorization user, final JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>int cognitionsCount = Math.min(10, post.get("cognitions", 10));<NEW_LINE>String date = post.get("date", null);<NEW_LINE>boolean isValidDate = (date != ...
(i).getJSON());
645,746
public static void validate(long struct) {<NEW_LINE>byte referenceList0EntryCount = nreferenceList0EntryCount(struct);<NEW_LINE>if (referenceList0EntryCount != 0) {<NEW_LINE>long pReferenceList0Entries = <MASK><NEW_LINE>check(pReferenceList0Entries);<NEW_LINE>validate(pReferenceList0Entries, referenceList0EntryCount, V...
memGetAddress(struct + VkVideoEncodeH265ReferenceListsEXT.PREFERENCELIST0ENTRIES);
370,949
public Map<Object, List<MsgInfo>> grouperBatch(List<MsgInfo> batch) {<NEW_LINE>Map<Object, List<MsgInfo>> ret = new HashMap<>();<NEW_LINE>// optimize fieldGrouping & customGrouping<NEW_LINE>if (GrouperType.shuffle.equals(groupType)) {<NEW_LINE>// random, but the random is different from none<NEW_LINE>ret.put(shuffer.gr...
msg = batch.get(i);
175,511
private static PwmSecurityKey makeAppSecurityKey(final AppConfig appConfig) {<NEW_LINE>try {<NEW_LINE>final PasswordData configValue = <MASK><NEW_LINE>if (configValue == null || configValue.getStringValue().isEmpty()) {<NEW_LINE>final String errorMsg = "Security Key value is not configured, will generate temp value for...
appConfig.readSettingAsPassword(PwmSetting.PWM_SECURITY_KEY);
785,470
public String smallestFromLeaf(TreeNode root) {<NEW_LINE>final List<String> paths = new ArrayList<>();<NEW_LINE>Map<Integer, Character> map = new HashMap<>();<NEW_LINE>map.put(0, 'a');<NEW_LINE>map.put(1, 'b');<NEW_LINE>map.put(2, 'c');<NEW_LINE><MASK><NEW_LINE>map.put(4, 'e');<NEW_LINE>map.put(5, 'f');<NEW_LINE>map.pu...
map.put(3, 'd');
933,424
private Node tryFoldStringSubstr(Node n, Node stringNode, Node arg1) {<NEW_LINE><MASK><NEW_LINE>checkArgument(stringNode.isStringLit());<NEW_LINE>checkArgument(arg1 != null);<NEW_LINE>int start;<NEW_LINE>int length;<NEW_LINE>String stringAsString = stringNode.getString();<NEW_LINE>Double maybeStart = getSideEffectFreeN...
checkArgument(n.isCall());
1,765,949
public static Area createLine(int width, Point2D... points) {<NEW_LINE>if (points.length < 2) {<NEW_LINE>throw new IllegalArgumentException("Must supply at least two points");<NEW_LINE>}<NEW_LINE>List<Point2D> bottomList = new ArrayList<Point2D>(points.length);<NEW_LINE>List<Point2D> topList = new ArrayList<Point2D>(po...
angle + delta / 2) % 360;
485,723
final DescribeOrganizationConformancePacksResult executeDescribeOrganizationConformancePacks(DescribeOrganizationConformancePacksRequest describeOrganizationConformancePacksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOrganizationConformancePacksRequest);<NEW_LINE>AWSRequestMet...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Config Service");
265,172
final RegisterEventTopicResult executeRegisterEventTopic(RegisterEventTopicRequest registerEventTopicRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerEventTopicRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
(super.beforeMarshalling(registerEventTopicRequest));
811,949
protected void publish() {<NEW_LINE>for (Meter meter : getMeters()) {<NEW_LINE>meter.match(this::trackGauge, this::trackCounter, this::trackTimer, this::trackDistributionSummary, this::trackLongTaskTimer, this::trackTimeGauge, this::trackFunctionCounter, this::trackFunctionTimer, this::trackMeter).forEach(telemetry -> ...
"failed to track metric " + meter.getId());
1,472,426
public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) {<NEW_LINE>Permanent sourcePermanent = source.getSourcePermanentIfItStillExists(game);<NEW_LINE>if (sourcePermanent == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Permanent permanent = game.getPermanent(sourcePermanent.getAttachedTo(...
source.getSourceId(), game);
724,428
public boolean visit(MySqlShowWarningsStatement x) {<NEW_LINE>final List<SqlNode> operands = new LinkedList<>();<NEW_LINE>if (x.isCount()) {<NEW_LINE>operands.add(new SqlBasicCall(SqlStdOperatorTable.COUNT, SqlParserUtil.toNodeArray(ImmutableList.<SqlNode>of(SqlIdentifier.star(SqlParserPos.ZERO))), SqlParserPos<MASK><N...
.ZERO, false, null));
1,709,339
public static void main(String[] args) {<NEW_LINE>// Instantiate a client that will be used to call the service.<NEW_LINE>TextAnalyticsAsyncClient client = new TextAnalyticsClientBuilder().credential(new AzureKeyCredential("{key}")).endpoint("{endpoint}").buildAsyncClient();<NEW_LINE>// The document that needs be analy...
TimeUnit.SECONDS.sleep(5);
1,568,114
private void parseList(String ipList) {<NEW_LINE>ArrayList ips = new ArrayList(2);<NEW_LINE>ArrayList masks = new ArrayList(2);<NEW_LINE>ArrayList subnets = new ArrayList(2);<NEW_LINE>StringTokenizer ipListTokenizer = new StringTokenizer(ipList, ",");<NEW_LINE>String token = null;<NEW_LINE>int index = -1;<NEW_LINE>whil...
(i)).intValue();
1,440,961
public BLangNode transform(RetryStatementNode retryStatementNode) {<NEW_LINE>BLangRetrySpec retrySpec = createRetrySpec(retryStatementNode);<NEW_LINE>Location pos = getPosition(retryStatementNode);<NEW_LINE>StatementNode retryBody = retryStatementNode.retryBody();<NEW_LINE>if (retryBody.kind() == SyntaxKind.TRANSACTION...
(BLangRetry) TreeBuilder.createRetryNode();
640,524
private static void filenameGenerators(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {<NEW_LINE>String remoteFileNameGenerator = element.getAttribute("filename-generator");<NEW_LINE>String remoteFileNameGeneratorExpression = element.getAttribute("filename-generator-expression");<NEW_LINE>...
BeanDefinitionBuilder.genericBeanDefinition(DefaultFileNameGenerator.class);
1,154,810
public static DateValue parseDate(String s) {<NEW_LINE>Matcher matcher = suTimeDateFormat.<MASK><NEW_LINE>if (matcher.matches()) {<NEW_LINE>String yS = matcher.group(1), mS = matcher.group(2), dS = matcher.group(3);<NEW_LINE>int y = -1, m = -1, d = -1;<NEW_LINE>if (!(yS == null || yS.isEmpty() || yS.contains("X")))<NEW...
matcher(s.toUpperCase());
1,382,759
void updateProgress() {<NEW_LINE>try {<NEW_LINE>if (bundleProcessOperation.hasFailed()) {<NEW_LINE>grpcWriteOperation.abortWait();<NEW_LINE>}<NEW_LINE>ProcessBundleProgressResponse processBundleProgressResponse = MoreFutures.get(bundleProcessOperation.getProcessBundleProgress());<NEW_LINE>final List<MonitoringInfo> mon...
String bundleId = bundleProcessOperation.getCurrentProcessBundleInstructionId();
1,135,386
protected Set<Id> adjacentVertices(Id sourceV, Set<Id> vertices, Directions dir, Id label, Set<Id> excluded, long degree, long limit) {<NEW_LINE>if (limit == 0) {<NEW_LINE>return ImmutableSet.of();<NEW_LINE>}<NEW_LINE>Set<MASK><NEW_LINE>for (Id source : vertices) {<NEW_LINE>Iterator<Edge> edges = this.edgesOfVertex(sou...
<Id> neighbors = newIdSet();
1,663,218
public static void copyEmptyNodes(SemanticGraph source, SemanticGraph target) {<NEW_LINE>for (IndexedWord node : source.vertexSet()) {<NEW_LINE>if (isEmptyNode(node)) {<NEW_LINE>target.addVertex(node);<NEW_LINE>System.<MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>// remove all orphan dependencies<NEW_LINE>for (SemanticGraphEdg...
err.println("added vertex" + node);
476,094
private void processAlertRecord(Record record, Connection connection, DTLSContext epochContext) {<NEW_LINE>AlertMessage alert = (AlertMessage) record.getFragment();<NEW_LINE>Handshaker handshaker = connection.getOngoingHandshake();<NEW_LINE>HandshakeException error = null;<NEW_LINE>LOGGER.trace("Processing {} ALERT fro...
connectionStore.remove(connection, true);
1,222,435
public ListVocabularyFiltersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListVocabularyFiltersResult listVocabularyFiltersResult = new ListVocabularyFiltersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE...
JsonToken token = context.getCurrentToken();
759,806
private List<MoveInDn> prepareMoveInDns(DrainNodeInfo drainNodeInfo, List<DnDiskInfo> dnDiskInfo, String schemaName) {<NEW_LINE>List<MoveInDn> moveInDnList;<NEW_LINE>List<GroupDetailInfoExRecord> detailInfoExRecords = TableGroupLocation.getOrderedGroupList(schemaName);<NEW_LINE>Set<String> storageIds = detailInfoExReco...
TddlRuntimeException(ErrorCode.ERR_INVALID_DDL_PARAMS, "no available data-node to move in");
1,789,810
public void actionPerformed(@Nonnull AnActionEvent e) {<NEW_LINE>VirtualFile[] files = getContextFiles(e, file -> OverrideFileTypeManager.getInstance().getFileValue(file) == null);<NEW_LINE>if (files.length == 0)<NEW_LINE>return;<NEW_LINE>DefaultActionGroup group = new DefaultActionGroup();<NEW_LINE>// although well-be...
getPlugin(type.getClass());
1,053,896
private static <L> MXCIFQuadTreeNode<Object> subdivide(MXCIFQuadTreeNodeLeaf<Object> leaf, MXCIFQuadTree<Object> tree) {<NEW_LINE>double w = (leaf.getBb().getMaxX() - leaf.getBb().getMinX()) / 2d;<NEW_LINE>double h = (leaf.getBb().getMaxY() - leaf.getBb().getMinY()) / 2d;<NEW_LINE>double minx = leaf.getBb().getMinX();<...
) + 1, null, 0);
349,159
private void writeBand(JRBand band, String bandName) {<NEW_LINE>if (band != null) {<NEW_LINE><MASK><NEW_LINE>write("JRDesignBand " + bandName + " = new JRDesignBand();\n");<NEW_LINE>write(bandName + ".setHeight({0, number, #});\n", band.getHeight());<NEW_LINE>write(bandName + ".setSplitType({0});\n", band.getSplitTypeV...
write("//band name = " + bandName + "\n\n");
900,215
public static boolean allTablesWithIdenticalPartitionColumns(String schemaName, String tgName, int actualPartitionCols) {<NEW_LINE>PartitionInfoManager partInfoMgr = OptimizerContext.getContext(schemaName).getPartitionInfoManager();<NEW_LINE>TableGroupInfoManager tgMgr = OptimizerContext.getContext(schemaName).getTable...
tblNameList = new ArrayList<>();
54,781
public void paintInstance(InstancePainter painter) {<NEW_LINE>Bounds bds = painter.getOffsetBounds();<NEW_LINE>BitWidth width = painter.getAttributeValue(StdAttr.WIDTH);<NEW_LINE>long longValue = painter.getAttributeValue(ATTR_VALUE);<NEW_LINE>Value v = Value.createKnown(width, longValue);<NEW_LINE>Location loc = paint...
g.setColor(Color.BLACK);
1,207,795
protected boolean renameFolder(Folder folder, String newName, User user, boolean respectFrontEndPermissions) throws DotDataException, DotSecurityException {<NEW_LINE>// checking if already exists<NEW_LINE>final Identifier ident = APILocator.getIdentifierAPI().loadFromDb(folder.getIdentifier());<NEW_LINE>final String id...
removeFromCacheByInode(folder.getInode());
1,438,275
public RangeValue read(StringCharReader reader) {<NEW_LINE>boolean started = false;<NEW_LINE>char symbol;<NEW_LINE>boolean hadPointAlready = false;<NEW_LINE>StringBuffer buffer = new StringBuffer();<NEW_LINE>while (reader.hasMore()) {<NEW_LINE>symbol = reader.next();<NEW_LINE>if (started && isDelimeter(symbol)) {<NEW_L...
("Cannot parse range value: \"%s\"", doubleText), e);
1,731,591
protected void onPostExecute(GpxSelectionHelper.GpxDisplayItem gpxItem) {<NEW_LINE>MapActivity activity = activityRef.get();<NEW_LINE>if (activity != null) {<NEW_LINE>if (progressDialog != null && AndroidUtils.isActivityNotDestroyed(activity)) {<NEW_LINE>progressDialog.dismiss();<NEW_LINE>}<NEW_LINE>if (gpxItem != null...
list = new ArrayList<>();
1,135,923
public void endActivity() {<NEW_LINE>if (Thread.currentThread() != mainThread || activityStack.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ActivityInfo oldActivity = activityStack.pop();<NEW_LINE>long endTime = timer.getRealTimeInMs();<NEW_LINE>long totalTime = (oldActivity.resumeTime > 0) ? oldActivity.ownTime +...
.getRuntime().freeMemory();
859,176
private void sendBroadcastDownloadFinished(DownloadFileOperation download, RemoteOperationResult downloadResult, String unlinkedFromRemotePath) {<NEW_LINE>Intent end <MASK><NEW_LINE>end.putExtra(EXTRA_DOWNLOAD_RESULT, downloadResult.isSuccess());<NEW_LINE>end.putExtra(ACCOUNT_NAME, download.getAccount().name);<NEW_LINE...
= new Intent(getDownloadFinishMessage());
439,135
private static ReferenceListAwareDescriptor createReferenceListAwareDescriptor(final Class<? extends ReferenceListAwareEnum> clazz) {<NEW_LINE>try {<NEW_LINE>final Method ofCodeMethod = getMethodOrNull(clazz, "ofCode", String.class);<NEW_LINE>if (ofCodeMethod == null) {<NEW_LINE>throw <MASK><NEW_LINE>}<NEW_LINE>final i...
Check.newException("No static method ofCode(String) found for " + clazz);
1,347,548
public void onMethodCall(@NonNull MethodCall call, @NonNull final MethodChannel.Result result) {<NEW_LINE>switch(call.method) {<NEW_LINE>case "setEnabled":<NEW_LINE>{<NEW_LINE>Boolean enabled = (Boolean) call.argument("enabled");<NEW_LINE>setEnabled(enabled);<NEW_LINE>}<NEW_LINE>result.success(true);<NEW_LINE>break;<NE...
Integer) call.argument("size");
1,614,331
protected void buildUI() {<NEW_LINE>SignatureValidationStatus signatureValidationStatus = new SignatureValidationStatus(messageBundle, signatureWidgetAnnotation, signatureValidator);<NEW_LINE>setTitle(messageBundle.getString("viewer.annotation.signature.validation.dialog.title"));<NEW_LINE>// simple close<NEW_LINE>fina...
GridBagConstraints constraints = validityPanel.getConstraints();
802,828
private static void resolveEdge(LIR lir, GlobalLivenessInfo livenessInfo, TraceGlobalMoveResolver moveResolver, AbstractBlockBase<?> fromBlock, AbstractBlockBase<?> toBlock) {<NEW_LINE>assert verifyEdge(fromBlock, toBlock);<NEW_LINE>if (SSAUtil.isMerge(toBlock)) {<NEW_LINE>// PHI<NEW_LINE>JumpOp blockEnd = SSAUtil.phiO...
locTo = livenessInfo.getInLocation(toBlock);
1,397,758
public static <T, F, R1, R2, R3> Identity<R3> forEach(Identity<T> id, Function<? super T, ? extends Identity<R1>> value2, Function<? super Tuple2<? super T, ? super R1>, ? extends Identity<R2>> value3, Function<? super Tuple3<? super T, ? super R1, ? super R2>, ? extends Identity<R3>> value4) {<NEW_LINE>return id.flatM...
a = value2.apply(in);
1,655,366
public Request<RevokeClientVpnIngressRequest> marshall(RevokeClientVpnIngressRequest revokeClientVpnIngressRequest) {<NEW_LINE>if (revokeClientVpnIngressRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<RevokeClientVpnIngressRequest> reques...
request.addParameter("Action", "RevokeClientVpnIngress");
1,164,435
public int delete(PartialPath originalPath, PartialPath devicePath, long startTimestamp, long endTimestamp) {<NEW_LINE>int deletedPointsNumber = 0;<NEW_LINE>Iterator<Entry<String, IWritableMemChunk>> iter = memChunkMap.entrySet().iterator();<NEW_LINE>while (iter.hasNext()) {<NEW_LINE>Entry<String, IWritableMemChunk<MAS...
> entry = iter.next();
524,166
private void startNonGui(String testFile, String logFile, CLOption remoteStart, boolean generateReportDashboard) throws IllegalUserActionException, ConfigurationException {<NEW_LINE>// add a system property so samplers can check to see if JMeter<NEW_LINE>// is running in NonGui mode<NEW_LINE>// $NON-NLS-1$<NEW_LINE><MA...
System.setProperty(JMETER_NON_GUI, "true");
1,026,662
// Create a binary tree by taking input level wise<NEW_LINE>public static Node createBinaryTree() {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>System.out.print("Enter root node value or -1 to exit: ");<NEW_LINE>int rootData = sc.nextInt();<NEW_LINE>Node root = null;<NEW_LINE>if (rootData != -1) {<NEW_LINE>r...
Node temp = tree.remove();
152,933
public float interpolateFirstDerivative(float t) {<NEW_LINE>// Handle the boundary cases.<NEW_LINE>final int n = mT.size();<NEW_LINE>if (Float.isNaN(t)) {<NEW_LINE>return t;<NEW_LINE>}<NEW_LINE>t = MathHelper.clamp(t, mT.get(0), mT.get(n - 1));<NEW_LINE>// Find the index 'i' of the last point with smaller X.<NEW_LINE>/...
u + h * mM[i];
501,063
public DescriptiveUrl toDownloadUrl(final Path file, final Void options, final PasswordCallback callback) throws BackgroundException {<NEW_LINE>try {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug(String.format("Create temporary link for %s", file));<NEW_LINE>}<NEW_LINE>// This link will expire in four hours a...
(file)).getLink();
1,642,647
public Node apply(Node node) {<NEW_LINE>if (!node.isLiteral())<NEW_LINE>return node;<NEW_LINE>if (!node.getLiteralDatatype().isValid(node.getLiteralLexicalForm()))<NEW_LINE>// Invalid lexical form for the datatype - do nothing.<NEW_LINE>return node;<NEW_LINE>RDFDatatype dt = node.getLiteralDatatype();<NEW_LINE>Node n2;...
handler = dispatch.get(dt);
477,479
final CreateRegexPatternSetResult executeCreateRegexPatternSet(CreateRegexPatternSetRequest createRegexPatternSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRegexPatternSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
573,489
@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>public JsonObject verifyInjectedJTI(@QueryParam("jti") String jwtID) {<NEW_LINE>boolean pass = false;<NEW_LINE>String msg;<NEW_LINE>// jti<NEW_LINE>String jtiValue = jti.getValue();<NEW_LINE>if (jtiValue == null || jtiValue.length() == 0) {<NEW_LINE>msg = Claims.jti.name()...
"msg", msg).build();
295,124
void checkGaugeAndHeartbeatAlertsAsync(String agentId, String agentDisplay, long endTime) throws InterruptedException {<NEW_LINE>List<AlertConfig> alertConfigs;<NEW_LINE>try {<NEW_LINE>if (isCurrentlyDisabled(agentId)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>alertConfigs = configRepository.getAlertConfigs(agentId);<NEW_...
AlertCondition condition = alertConfig.getCondition();
327,908
public ThreadPoolStats stats() {<NEW_LINE>List<ThreadPoolStats.Stats> stats = new ArrayList<>();<NEW_LINE>for (ExecutorHolder holder : executors.values()) {<NEW_LINE>final String name = holder.info.getName();<NEW_LINE>// no need to have info on "same" thread pool<NEW_LINE>if ("same".equals(name)) {<NEW_LINE>continue;<N...
.getQueue().size();
113,997
public synchronized int memcpySync(Pointer dst, Pointer src, long size, int flags, Pointer reserved) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("memcpySync(" + dst + ", " + src + ", " + size + ", " + flags + ")");<NEW_LINE>}<NEW_LINE>int i = -1;<NEW_LINE>if (flags == 3 || (flags == 0 && src.limit() <= 0 ...
throw new RuntimeException("veo_read_mem(): error " + i);
1,745,196
public BlockChainImpl loadBlockchain() {<NEW_LINE>BlockDifficulty totalDifficulty;<NEW_LINE>Block bestBlock = blockStore.getBestBlock();<NEW_LINE>if (bestBlock == null) {<NEW_LINE>logger.info("DB is empty - adding Genesis");<NEW_LINE>bestBlock = genesis;<NEW_LINE>totalDifficulty = genesis.getCumulativeDifficulty();<NEW...
(bestBlock.getStateRoot()));
1,488,932
private Mono<PagedResponse<VolumeGroupInner>> listByNetAppAccountSinglePageAsync(String resourceGroupName, String accountName, 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....
this.client.mergeContext(context);
922,537
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {<NEW_LINE>synchronized (getClassLoadingLock0(name)) {<NEW_LINE>// First, check if the class has already been loaded<NEW_LINE>Class<?> clazz = findLoadedClass(name);<NEW_LINE>if (clazz == null) {<NEW_LINE>if (onLoadClass(name)) {<N...
clazz = parent.loadClass(name);
679,976
void bind(@NonNull Field field, @NonNull GlideRequests glideRequests, boolean selectable) {<NEW_LINE>value.setMaxLines(field.maxLines);<NEW_LINE>value.setText(field.value);<NEW_LINE>label.setText(field.label);<NEW_LINE>icon.setImageResource(field.iconResId);<NEW_LINE>if (field.iconUri != null) {<NEW_LINE>avatar.setVisi...
circleCrop().into(avatar);
742,419
private GenQueryResult executeQuery(RuleContext ruleContext, QueryOptions queryOptions, Collection<Label> scope, String query, HashFunction hashFunction) throws InterruptedException {<NEW_LINE>SkyFunction.Environment env = ruleContext.getAnalysisEnvironment().getSkyframeEnv();<NEW_LINE>Pair<ImmutableMap<PackageIdentifi...
= new PreloadedMapPackageProvider(packageMap, validTargetsMap);
451,421
public static void main(String[] args) {<NEW_LINE>final String USAGE = "\n" + "Usage:\n" + " <bucketARN> <roleARN> <streamName> \n\n" + "Where:\n" + " bucketARN - the ARN of the Amazon S3 bucket where the data stream is written. \n\n" + " roleARN - the ARN of the IAM role that has the permissions that Kinesis ...
firehoseClient, bucketARN, roleARN, streamName);
835,829
private static void arraycopy(Object[] A1, int offset1, Object[] A2, int offset2, int length) {<NEW_LINE>if (A1 == null || A2 == null)<NEW_LINE>throw new NullPointerException();<NEW_LINE>if (offset1 >= 0 && offset2 >= 0 && length >= 0 && length <= A1.length - offset1 && length <= A2.length - offset2) {<NEW_LINE>// Chec...
] = A1[offset1 + i];
747,742
public void keyPressed(KeyEvent e) {<NEW_LINE>Point p = getViewport().getViewLocation();<NEW_LINE>int dy = getFont().getFontData()[0].getHeight();<NEW_LINE>int dx = dy * 3 / 2;<NEW_LINE>boolean mirrored = (e.widget.getStyle() & SWT.MIRRORED) != 0;<NEW_LINE>if (e.keyCode == SWT.ARROW_DOWN) {<NEW_LINE>scrollToY(p.y + dy ...
p.y - dy * 2);
1,611,134
public static DescribeIpControlsResponse unmarshall(DescribeIpControlsResponse describeIpControlsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeIpControlsResponse.setRequestId(_ctx.stringValue("DescribeIpControlsResponse.RequestId"));<NEW_LINE>describeIpControlsResponse.setTotalCount(_ctx.integerValue("Describe...
(_ctx.integerValue("DescribeIpControlsResponse.PageSize"));
1,353,129
public static AutogenQueryDatasetComponentDiff fromProto(ai.verta.modeldb.versioning.QueryDatasetComponentDiff blob) {<NEW_LINE>if (blob == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>AutogenQueryDatasetComponentDiff obj = new AutogenQueryDatasetComponentDiff();<NEW_LINE>{<NEW_LINE>Function<ai.verta.modeldb.versi...
(f.apply(blob));
919,971
final ListDashboardsResult executeListDashboards(ListDashboardsRequest listDashboardsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDashboardsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
202,197
private void updateUi() {<NEW_LINE>Integer solution = getSolution();<NEW_LINE>String solutionString = solution == null ? "" : solution.toString();<NEW_LINE>_tvSolution.setText(solutionString);<NEW_LINE>if (_captcha == null) {<NEW_LINE>findViewById(R.id.llCaptcha).setVisibility(View.INVISIBLE);<NEW_LINE>_pbWait.setVisib...
length() == _captcha.length);
1,403,890
final CreateDiskSnapshotResult executeCreateDiskSnapshot(CreateDiskSnapshotRequest createDiskSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDiskSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
endClientExecution(awsRequestMetrics, request, response);
1,449,468
public ArrayList<Character> transaction(int[] data, int listen, int timeout) throws IOException {<NEW_LINE>packetHandler.sendByte(commandsProto.NRFL01);<NEW_LINE>packetHandler.sendByte(commandsProto.NRF_TRANSACTION);<NEW_LINE>packetHandler.sendByte(data.length);<NEW_LINE>packetHandler.sendInt(timeout);<NEW_LINE>for (in...
int numBytes = packetHandler.getByte();
1,460,027
static // No error checking<NEW_LINE>CompactSketch // may not be compacted, ordered or unordered, may be null<NEW_LINE>componentsToCompact(// may not be compacted, ordered or unordered, may be null<NEW_LINE>final long thetaLong, // may not be compacted, ordered or unordered, may be null<NEW_LINE>final int curCount, // ...
(thetaLong == Long.MAX_VALUE));
1,693,133
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] bytes) throws IllegalClassFormatException {<NEW_LINE>try {<NEW_LINE>if (GlobalConfiguration.isRuntimeLogging && log.isLoggable(Level.INFO)) {<NEW_LINE>log.info("> (loader=" + loader + " ...
? "null" : bytes.length));
426,028
private static Stack<Type> updateStack(StackEffectSwitch sw, Stack<Type> st) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Stack<Type> clone = (Stack<Type>) st.clone();<NEW_LINE>final Type[] remove_types = sw.remove_types;<NEW_LINE>if (remove_types != null) {<NEW_LINE>if (remove_types.length > clone.size()) {<NEW_...
(type).append(" ");
662,463
private // context if skipContext is true.<NEW_LINE>ByteBuf readJSONString(boolean skipContext) throws TException {<NEW_LINE>ByteBuf arr = ByteBufAllocator.DEFAULT.buffer(DEF_STRING_SIZE);<NEW_LINE>if (!skipContext) {<NEW_LINE>context_.read();<NEW_LINE>}<NEW_LINE>readJSONSyntaxChar(QUOTE);<NEW_LINE>while (true) {<NEW_L...
off = ESCAPE_CHARS.indexOf(ch);
1,373,830
protected DataType readDataType(CachedRow columnMetadataResultSet, Column column, Database database) throws DatabaseException {<NEW_LINE>// For an explanation of the information encoded in the column length, please see<NEW_LINE>// https://www.ibm.com/support/knowledgecenter/SSGU8G_11.50.0/com.ibm.sqlr.doc/ids_sqr_027.h...
(), typeName, colLength));