idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,782,456
public static int readLengthEncodedInteger(MySQLMessage mm) {<NEW_LINE>int result = 0;<NEW_LINE>byte b = mm.read();<NEW_LINE>int b1 = b & 0xff;<NEW_LINE>if (b1 < 0xfb) {<NEW_LINE>result = b1 & 0xff;<NEW_LINE>} else if (b1 == 0xfc) {<NEW_LINE>byte b2 = mm.read();<NEW_LINE>byte b3 = mm.read();<NEW_LINE>result = ((b3 & 0x...
8) | (b2 & 0xff);
1,573,119
public String[] parse(final String[] args) {<NEW_LINE>parsed = new HashMap<String, String>(options.size());<NEW_LINE>ArrayList<String> unparsed = null;<NEW_LINE>for (int i = 0; i < args.length; i++) {<NEW_LINE>final String arg = args[i];<NEW_LINE>String[] opt = options.get(arg);<NEW_LINE>if (opt != null) {<NEW_LINE>// ...
.add(args[i]);
1,211,680
protected void channelRead0(ChannelHandlerContext ctx, HttpRequest msg) {<NEW_LINE>FullHttpResponse response;<NEW_LINE>if (!ALLOWED_METHODS.contains(msg.method())) {<NEW_LINE>response = new DefaultFullHttpResponse(HTTP_1_1, METHOD_NOT_ALLOWED);<NEW_LINE>} else if (Strings.isNullOrEmpty(msg.headers().get(HOST))) {<NEW_L...
, HSTS_MAX_AGE.getSeconds()));
1,817,899
protected Field createEntityField(InputParameter parameter) {<NEW_LINE>MetaClass metaClass = metadata.getClassNN(parameter.getEntityClass());<NEW_LINE>Action lookupAction = actions.create(LookupAction.ID);<NEW_LINE>Action clearAction = actions.create(ClearAction.ID);<NEW_LINE>if (persistenceManagerService.useLookupScre...
createCollectionContainer(parameter.getEntityClass());
1,767,798
public Value emitParameterLoad(ParameterNode paramNode, int index) {<NEW_LINE>Logger.traceBuildLIR(Logger.BACKEND.SPIRV, "emitParameterLoad: stamp=%s", paramNode.stamp(NodeView.DEFAULT));<NEW_LINE>LIRKind lirKind = generator.getLIRKind(paramNode.stamp(NodeView.DEFAULT));<NEW_LINE>SPIRVKind spirvKind = (SPIRVKind) lirKi...
parameterToVariable.put(paramNode, result);
1,619,957
public static DescribeBlackholeStatusResponse unmarshall(DescribeBlackholeStatusResponse describeBlackholeStatusResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBlackholeStatusResponse.setRequestId(_ctx.stringValue("DescribeBlackholeStatusResponse.RequestId"));<NEW_LINE>List<BlackholeStatusItem> blackholeStatus =...
("DescribeBlackholeStatusResponse.BlackholeStatus[" + i + "].EndTime"));
1,740,104
public void visitToken(DetailAST ast) {<NEW_LINE>final DetailAST leftCurly = findLeftCurly(ast);<NEW_LINE>if (leftCurly != null) {<NEW_LINE>if (option == BlockOption.STATEMENT) {<NEW_LINE>final boolean emptyBlock;<NEW_LINE>if (leftCurly.getType() == TokenTypes.LCURLY) {<NEW_LINE>final DetailAST nextSibling = leftCurly....
.getType() != TokenTypes.SWITCH_RULE;
720,662
public void createPlaylist(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>request = wrapRequest(request, true);<NEW_LINE>String username = securityService.getCurrentUsername(request);<NEW_LINE>Integer playlistId = getIntParameter(request, "playlistId");<NEW_LINE>String name = requ...
ErrorCode.NOT_FOUND, "Playlist not found: " + playlistId);
1,256,451
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabelName = new javax.swing.JLabel();<NEW_LINE>jTextFieldName = new javax.swing.JTextField();<NEW_LINE>jLabelJarFiles = <M...
new javax.swing.JLabel();
713,847
public List<PluginSummaryBean> listPlugins() throws StorageException {<NEW_LINE>beginTx();<NEW_LINE>try {<NEW_LINE>EntityManager entityManager = getActiveEntityManager();<NEW_LINE>String sql = "SELECT p.id, p.artifact_id, p.group_id, p.version, p.classifier, p.type, p.name, p.description, p.created_by, p.created_on" + ...
t.getMessage(), t);
542,499
public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not val...
resourceGroupName, accountName, streamingPolicyName, context);
465,027
public void loadAdditinalData(long stime, long etime, final boolean reverse) {<NEW_LINE>collectObj();<NEW_LINE>Iterator<Integer> serverIds = serverObjMap.keySet().iterator();<NEW_LINE>final TreeSet<XLogData> tempSet = new TreeSet<XLogData>(new XLogDataComparator());<NEW_LINE>int limit = PManager.getInstance().getInt(Pr...
param.put("etime", etime);
186,120
private <T> BindingImpl<TypeLiteral<T>> createTypeLiteralBinding(Key<TypeLiteral<T>> key, Errors errors) throws ErrorsException {<NEW_LINE>Type typeLiteralType = key.getTypeLiteral().getType();<NEW_LINE>if (!(typeLiteralType instanceof ParameterizedType)) {<NEW_LINE>throw errors.cannotInjectRawTypeLiteral().toException...
cannotInjectTypeLiteralOf(innerType).toException();
105,181
public CommandResult parse(@NotNull String commandString) {<NEW_LINE>commandString = commandString.trim();<NEW_LINE>// Verify if the result is cached<NEW_LINE>{<NEW_LINE>final CommandResult cachedResult = cache.getIfPresent(commandString);<NEW_LINE>if (cachedResult != null) {<NEW_LINE>return cachedResult;<NEW_LINE>}<NE...
CommandResult.Type.UNKNOWN, commandName);
940,053
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<UUID> perms = new ArrayList<>();<NEW_LINE>filter.add(TargetController.YOU.getControllerPredicate());<NEW_LINE>for (U...
permanent = game.getPermanent(permID);
1,621,499
public void attach(EventType parentEventType, ViewForgeEnv viewForgeEnv) throws ViewParameterException {<NEW_LINE>ExprNode[] validated = ViewForgeSupport.validate("Trend spotter view", parentEventType, viewParameters, false, viewForgeEnv);<NEW_LINE>String message = "Trend spotter view accepts a single integer or double...
EPTypePremade.LONGBOXED.getEPType());
1,426,191
private static Map<String, Object> convertBeans(List<Map<String, Object>> contextBeans) {<NEW_LINE>Map<String, Object> convertedContexts = contextBeans.stream().map((context) -> {<NEW_LINE>String contextName = (String) context.get("context");<NEW_LINE>String parentId = (<MASK><NEW_LINE>// SB 1.x /beans child applicatio...
String) context.get("parent");
1,019,017
public void flatMap(Tuple2<Long, Object> value, Collector<Tuple2<Long, Object>> out) throws Exception {<NEW_LINE>if (value.f0 == Long.MAX_VALUE) {<NEW_LINE>out.collect(Tuple2.of((long) -(int) value.f1, false));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Tuple2<Integer, double[]> val = buffer.get(value.f0);<NEW_LINE>Tuple2<In...
= val.f1.length / 2;
1,335,307
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>output.writeMessage(1, getResourceAttributes());<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>output.writeMessage(2, getNonRe...
writeString(output, 6, uid_);
1,853,000
public void add(IntVar[] vars, IntIterableRangeSet[] ranges) {<NEW_LINE>if (XParameters.INTERVAL_TREE) {<NEW_LINE>SignedClause cl = new SignedClause(vars, ranges);<NEW_LINE>attach(new Watcher(cl.<MASK><NEW_LINE>attach(new Watcher(cl.pos[1], cl));<NEW_LINE>if (model.getSolver().getEngine().isInitialized()) {<NEW_LINE>th...
pos[0], cl));
1,485,186
public Collection<PlotItem> arrange(VisualizerContext context) {<NEW_LINE>List<PlotItem> layout = new ArrayList<>(1 + dmax);<NEW_LINE>List<VisualizationTask> tasks = context.getVisTasks(this);<NEW_LINE>if (!tasks.isEmpty()) {<NEW_LINE>final double xoff = (dmax > 1) ? .1 : 0.;<NEW_LINE>final double hheight = .5;<NEW_LIN...
lheight, 1., hheight, proj);
877,244
public com.amazonaws.services.databasemigrationservice.model.InvalidCertificateException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.databasemigrationservice.model.InvalidCertificateException invalidCertificateException = new com.amazonaws.services.<MASK><NE...
databasemigrationservice.model.InvalidCertificateException(null);
910,807
public static String determineClasspathSeleniumVersion() {<NEW_LINE>Set<String> seleniumVersions = new HashSet<>();<NEW_LINE>try {<NEW_LINE>ClassLoader classLoader = Thread.currentThread().getContextClassLoader();<NEW_LINE>Enumeration<URL> manifests = classLoader.getResources("META-INF/MANIFEST.MF");<NEW_LINE>while (ma...
.iterator().next();
460,518
public static Suggest fromXContent(XContentParser parser) throws IOException {<NEW_LINE>ensureExpectedToken(XContentParser.Token.START_OBJECT, parser.currentToken(), parser);<NEW_LINE>List<Suggestion<? extends Entry<? extends Option>>> <MASK><NEW_LINE>while ((parser.nextToken()) != XContentParser.Token.END_OBJECT) {<NE...
suggestions = new ArrayList<>();
73,713
private static Pair<String, String> offsetROR(final long offset, final ITranslationEnvironment environment, final List<ReilInstruction> instructions, final String registerNodeValue1, final String registerNodeValue2, final String immediateNodeValue) {<NEW_LINE>final <MASK><NEW_LINE>final String index = environment.getNe...
String address = environment.getNextVariableString();
47,150
public void handle(PacketWrapper wrapper) throws Exception {<NEW_LINE>String channel = wrapper.get(Type.STRING, 0);<NEW_LINE>if (channel.equals("minecraft:trader_list") || channel.equals("trader_list")) {<NEW_LINE>// Passthrough Window ID<NEW_LINE>wrapper.passthrough(Type.INT);<NEW_LINE>int size = <MASK><NEW_LINE>for (...
wrapper.passthrough(Type.UNSIGNED_BYTE);
652,210
private void loadFromDB() throws Exception {<NEW_LINE>Query query = new Query(HugeType.VERTEX);<NEW_LINE>query.capacity(this.verticesCapacityHalf * 2L);<NEW_LINE>query.limit(Query.NO_LIMIT);<NEW_LINE>Iterator<Vertex> vertices = this.graph.vertices(query);<NEW_LINE>// switch concurrent loading here<NEW_LINE>boolean conc...
(HugeEdge) adjEdges.next();
1,141,667
protected void deleteResource(IPackageFragmentRoot root, IClasspathEntry rootEntry) throws JavaModelException {<NEW_LINE>final char[][] exclusionPatterns = ((ClasspathEntry) rootEntry).fullExclusionPatternChars();<NEW_LINE>IResource rootResource = ((JavaElement) root).resource();<NEW_LINE>if (rootEntry.getEntryKind() !...
[] nestedFolders = getNestedFolders(root);
1,556,998
public void loadSettings(DBWHandlerConfiguration configuration) {<NEW_LINE>if (isCertificatesSupported()) {<NEW_LINE>if (caCertPath != null) {<NEW_LINE>caCertPath.setText(CommonUtils.notEmpty(configuration.getStringProperty(SSLHandlerTrustStoreImpl.PROP_SSL_CA_CERT)));<NEW_LINE>}<NEW_LINE>clientCertPath.setText(CommonU...
getStringProperty(SSLHandlerTrustStoreImpl.PROP_SSL_CLIENT_KEY)));
765,896
public void invoke(Request request, Response response) throws IOException, ServletException {<NEW_LINE>log.trace("*********************** SAML ************");<NEW_LINE>CatalinaHttpFacade facade = new CatalinaHttpFacade(response, request);<NEW_LINE>SamlDeployment deployment = deploymentContext.resolveDeployment(facade);...
CatalinaSamlEndpoint(facade, deployment, tokenStore);
630,668
public static void vertical7(Kernel1D_S32 kernel, GrayS16 input, GrayI16 output, int skip) {<NEW_LINE>final short[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final i...
(dataSrc[indexSrc]) * k7;
819,066
protected void halt(final AbstractRunningQuery q) {<NEW_LINE>boolean interrupted = false;<NEW_LINE>lock.lock();<NEW_LINE>try {<NEW_LINE>// notify listener(s)<NEW_LINE>try {<NEW_LINE>fireEvent(q);<NEW_LINE>} catch (Throwable t) {<NEW_LINE>if (InnerCause.isInnerCause(t, InterruptedException.class)) {<NEW_LINE>// Defer im...
), q.getFuture());
425,623
public void reset() {<NEW_LINE>suspendEvents = true;<NEW_LINE>try {<NEW_LINE>if (legacy instanceof JTextComponent) {<NEW_LINE>((JTextComponent) legacy).setText(enh.getAsText());<NEW_LINE>} else if (legacy instanceof JComboBox) {<NEW_LINE>if (((JComboBox) legacy).isEditable()) {<NEW_LINE>if (((JComboBox) legacy).getEdit...
setItem(enh.getValue());
192,736
private void addTilesForExternalServices(Map<String, Object> properties) {<NEW_LINE>for (String key : properties.keySet()) {<NEW_LINE>if (key.endsWith(LINK_NAME)) {<NEW_LINE>if (key.length() > LINK_NAME.length()) {<NEW_LINE>// get prefix from link name<NEW_LINE>String linkname = key.substring(0, key.length(<MASK><NEW_L...
) - LINK_NAME.length());
848,198
private static Object readUnmodifiableMapFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, boolean graph, Object map, boolean sm) throws IOException {<NEW_LINE>if (graph) {<NEW_LINE>// update the actual reference.<NEW_LINE>((GraphInput) input).updateLast(map, owner);<NEW_LINE>}<NEW_LINE><MASK><NEW_...
final Wrapper wrapper = new Wrapper();
1,423,067
private boolean isProductContainedAtLevelInProductInstance(int m_product_id, int level, DefaultMutableTreeNode rootProductInstance) {<NEW_LINE>log.fine("In isProductContainedAtLevelInProductInstance");<NEW_LINE>log.fine("looking for m_product_id: " + m_product_id + " at level: " + level);<NEW_LINE>log.fine(<MASK><NEW_L...
"rootProductInstance.getDepth: " + rootProductInstance.getDepth());
103,652
public void appendInterfaceInfo(HystrixCommandMetrics metrics) {<NEW_LINE>InterfaceInfo interfaceInfo = new InterfaceInfo();<NEW_LINE>int windowTime = metrics.getProperties().metricsRollingStatisticalWindowInMilliseconds().get() / CONVERSION;<NEW_LINE>long successCount = metrics.getRollingCount(HystrixEventType.SUCCESS...
metrics.getRollingCount(HystrixEventType.FAILURE);
731,375
static Stream<String> splitNameservers(String ns) {<NEW_LINE>Matcher matcher = FORMAT_BRACKETS.matcher(ns);<NEW_LINE>if (!matcher.matches()) {<NEW_LINE>checkArgument(!ns.contains("[") && !ns.contains("]"), "Could not parse square brackets in %s", ns);<NEW_LINE>return ImmutableList.of(ns).stream();<NEW_LINE>}<NEW_LINE>I...
(matcher.group(3));
1,135,204
public void visit(ReturnStatement node) {<NEW_LINE>Expression expression = node.getExpression();<NEW_LINE>if (expression instanceof Variable) {<NEW_LINE>OccurencesSupport occurencesSupport = model.getOccurencesSupport(expression.getStartOffset() + 1);<NEW_LINE>Occurence occurence = occurencesSupport.getOccurence();<NEW...
> gotoDeclarations = occurence.gotoDeclarations();
876,789
public static BinaryPartAbstractImage createImagePart(OpcPackage opcPackage, Part sourcePart, File imageFile) throws Exception {<NEW_LINE>final byte[] locByte = new byte[1];<NEW_LINE>// We are in the case that image is not load (no byte Array) so isLoad is false<NEW_LINE>ImageInfo info = ensureFormatIsSupported(imageFi...
ContentTypeManager ctm = opcPackage.getContentTypeManager();
1,639,616
private void buildCrossReferences(LibraryInfo libraryInfo, Map<String, Type> typesByName) {<NEW_LINE>for (TypeInfo typeInfo : libraryInfo.getTypeList()) {<NEW_LINE>Type type = typesByName.get(libraryInfo.getTypeMap(typeInfo.getTypeId()));<NEW_LINE>String superClassName = libraryInfo.<MASK><NEW_LINE>Type superClass = ty...
getTypeMap(typeInfo.getExtendsType());
381,109
final DeleteDistributionResult executeDeleteDistribution(DeleteDistributionRequest deleteDistributionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDistributionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
(super.beforeMarshalling(deleteDistributionRequest));
662,120
public void finalizeZipFileWithoutValidations(ZipModel zipModel, OutputStream outputStream, Charset charset) throws IOException {<NEW_LINE>if (zipModel == null || outputStream == null) {<NEW_LINE>throw new ZipException("input parameters is null, cannot finalize zip file without validations");<NEW_LINE>}<NEW_LINE>try (B...
zipModel, byteArrayOutputStream, rawIO, charset);
1,598,576
public static DrawTextRegion createFromString(String string) {<NEW_LINE>String[] sp = string.split(",");<NEW_LINE>int c = 0;<NEW_LINE>int x = Integer.parseInt(sp[c++]);<NEW_LINE>int y = Integer.parseInt(sp[c++]);<NEW_LINE>int width = Integer.parseInt(sp[c++]);<NEW_LINE>int height = Integer.<MASK><NEW_LINE>int mode = In...
parseInt(sp[c++]);
489,980
private void run(String[] args) throws UnsupportedAudioFileException, IOException, IllegalArgumentException, LineUnavailableException {<NEW_LINE>PitchEstimationAlgorithm algo = PitchEstimationAlgorithm.FFT_YIN;<NEW_LINE>String inputFile = args[0];<NEW_LINE>String outputFile = null;<NEW_LINE>String combinedFile = null;<...
fromFile(audioFile, size, overlap);
879,047
public List<DiscoveryIncomingMessage> call() throws IOException {<NEW_LINE>final DatagramSocket socket = new DatagramSocket(0, address);<NEW_LINE>List<DiscoveryIncomingMessage> ret = new ArrayList<DiscoveryIncomingMessage>();<NEW_LINE>try {<NEW_LINE>socket.setSoTimeout(timeout);<NEW_LINE>logHandler.debug(address + "-->...
= new byte[AbstractDiscoveryMessage.MAX_MSG_SIZE];
1,719,094
// rejectIt<NEW_LINE>@Override<NEW_LINE>public String completeIt() {<NEW_LINE>// Re-Check<NEW_LINE>if (!m_justPrepared) {<NEW_LINE>String status = prepareIt();<NEW_LINE>if (!IDocument.STATUS_InProgress.equals(status))<NEW_LINE>return status;<NEW_LINE>}<NEW_LINE>m_processMsg = ModelValidationEngine.get().fireDocValidate...
confirm.save(get_TrxName());
71,205
private void internalPaintComponent(Graphics2D g) {<NEW_LINE>AntialiasingManager.activateAntialiasing(g);<NEW_LINE>// Paint a roll over fade out.<NEW_LINE>FadeTracker fadeTracker = FadeTracker.getInstance();<NEW_LINE>float visibility = this.getModel().isRollover() ? 1.0f : 0.0f;<NEW_LINE>if (fadeTracker.isTracked(this,...
g.setColor(getBackground());
843,828
public EntityRef build() {<NEW_LINE>if (id.isPresent() && !entityManager.registerId(id.get())) {<NEW_LINE>return EntityRef.NULL;<NEW_LINE>}<NEW_LINE>long finalId = id.orElse(entityManager.createEntity());<NEW_LINE>components.values().forEach(c -> entityManager.getComponentStore().put(finalId, c));<NEW_LINE><MASK><NEW_L...
entityManager.assignToPool(finalId, pool);
54,679
private void initialise(AttributeSet attrs) {<NEW_LINE>TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.BootstrapDropDown);<NEW_LINE>try {<NEW_LINE>this.roundedCorners = a.getBoolean(<MASK><NEW_LINE>this.showOutline = a.getBoolean(R.styleable.BootstrapDropDown_showOutline, false);<NEW_LINE>int dire...
R.styleable.BootstrapDropDown_roundedCorners, false);
889,804
private static DescribeModelResponse createModelResponse(ModelManager modelManager, String modelName, Model model) {<NEW_LINE>DescribeModelResponse resp = new DescribeModelResponse();<NEW_LINE>resp.setModelName(modelName);<NEW_LINE>resp.setModelUrl(model.getModelUrl());<NEW_LINE>resp.setBatchSize(model.getBatchSize());...
getModel().getModelVersion());
1,618,006
protected void removeCache(String cacheRegion, Serializable key) {<NEW_LINE>String cacheName = cacheRegion;<NEW_LINE>// TODO 6.1 ehcache 3 Make sure this is adding correctly<NEW_LINE>if (key.getClass().getName().equals("org.hibernate.cache.internal.CacheKeyImplementation")) {<NEW_LINE>// Since CacheKeyImplementation is...
createNameKey(cacheRegion, cacheName, key);
591,314
final CreateSchemaResult executeCreateSchema(CreateSchemaRequest createSchemaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSchemaRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<CreateSchemaRequest> request = null;<NEW_LINE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
360,759
public T loadCheckpoint() {<NEW_LINE>final File checkpointFile = checkpointFile();<NEW_LINE>final File backupFile = backupFile();<NEW_LINE>if (!checkpointFile.exists() && !backupFile.exists()) {<NEW_LINE>LOG.warn("Checkpoint file and backup file does not exist, return null for now");<NEW_LINE>return null;<NEW_LINE>}<NE...
(Files.toByteArray(backupFile));
1,418,503
private void appendNode(Node root, String[] featureCols, StringBuilder sbd) {<NEW_LINE>if (root.isLeaf()) {<NEW_LINE>if (!isRegressionTree) {<NEW_LINE>double max = 0.0;<NEW_LINE>int maxIndex = -1;<NEW_LINE>for (int j = 0; j < root.getCounter().getDistributions().length; ++j) {<NEW_LINE>if (max < root.getCounter().getDi...
getDistributions()[0]));
1,266,405
final CreateCostCategoryDefinitionResult executeCreateCostCategoryDefinition(CreateCostCategoryDefinitionRequest createCostCategoryDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCostCategoryDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
675,497
protected HikariDataSource createDataSource() {<NEW_LINE>// get the configured datasources<NEW_LINE>dataSourceMap = Config.getInstance().getJsonMapConfig(DATASOURCE);<NEW_LINE>// get the requested datasource<NEW_LINE>Map<String, Object> mainParams = (Map<String, Object>) dataSourceMap.get(getDsName());<NEW_LINE>Map<Str...
) mainParams.get("jdbcUrl"));
715,999
public static void apply(PPrBase source, PPrBase destination) {<NEW_LINE>// PPrBase as a Base class isn't instantiated<NEW_LINE>if (!isEmpty((PPrBase) source)) {<NEW_LINE>destination.setPStyle(apply(source.getPStyle(), destination.getPStyle()));<NEW_LINE>destination.setKeepNext(apply(source.getKeepNext(), destination.g...
, destination.getJc()));
1,070,962
public void deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missin...
format("The resource ID '%s' is not valid. Missing path segment 'tracks'.", id)));
1,324,130
public ConsumptionConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ConsumptionConfiguration consumptionConfiguration = new ConsumptionConfiguration();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
int originalDepth = context.getCurrentDepth();
367,087
private OperationResult applyCommand(long index, long sequence, long timestamp, PrimitiveOperation operation, RaftSession session) {<NEW_LINE><MASK><NEW_LINE>Commit<byte[]> commit = new DefaultCommit<>(index, operation.id(), operation.value(), session, timestamp);<NEW_LINE>OperationResult result;<NEW_LINE>try {<NEW_LIN...
long eventIndex = session.getEventIndex();
121,292
/*<NEW_LINE>* Creates Document instance from domain.xml<NEW_LINE>* @param domainScriptFilePath Path to domain.xml<NEW_LINE>*/<NEW_LINE>private Document loadDomainScriptFile(String domainScriptFilePath) {<NEW_LINE>InputStreamReader reader = null;<NEW_LINE>try {<NEW_LINE>DocumentBuilderFactory dbFactory = DocumentBuilder...
.setEntityResolver(new InnerResolver());
1,057,058
public static void addPolicyManagementCertificateAsync() {<NEW_LINE>String endpoint = System.getenv("ATTESTATION_ISOLATED_URL");<NEW_LINE>AttestationAdministrationClientBuilder attestationBuilder = new AttestationAdministrationClientBuilder();<NEW_LINE>AttestationAdministrationAsyncClient client = attestationBuilder.en...
X509Certificate isolatedCertificate = SampleCollateral.getIsolatedSigningCertificate();
1,625,966
final DeleteStateMachineResult executeDeleteStateMachine(DeleteStateMachineRequest deleteStateMachineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteStateMachineRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteStateMach...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,093,514
public int compareTo(Node o) {<NEW_LINE>double normH1 = a1 * (1 - h1 / n);<NEW_LINE>double normH2 = a2 * h2 / MAX_DIST;<NEW_LINE>double normH3 = a3 * h3 / MAX_DIST_H3;<NEW_LINE>double otherNormH1 = a1 * (<MASK><NEW_LINE>double otherNormH2 = a2 * o.h2 / MAX_DIST;<NEW_LINE>double otherNormH3 = a3 * o.h3 / MAX_DIST_H3;<NE...
1 - o.h1 / n);
1,236,790
private void updateSelection(boolean notifyListener) {<NEW_LINE>OsmandSettings settings = getSettings();<NEW_LINE>MapMarkersMode mode = settings.MAP_MARKERS_MODE.get();<NEW_LINE>boolean distIndEnabled = settings.MARKERS_DISTANCE_INDICATION_ENABLED.get();<NEW_LINE>int count = settings.DISPLAYED_MARKERS_WIDGETS_COUNT.get...
mode.isWidgets() && distIndEnabled);
906,800
private LogicalSchema rebuildWithPseudoAndKeyColsInValue(final boolean windowedKey, final int pseudoColumnVersion, final boolean forPullOrScalablePushQuery) {<NEW_LINE>final Map<Namespace, List<Column>> byNamespace = byNamespace();<NEW_LINE>final List<Column> key = byNamespace.get(Namespace.KEY);<NEW_LINE>final List<Co...
> builder = ImmutableList.builder();
472,786
public com.amazonaws.services.iotfleethub.model.LimitExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.iotfleethub.model.LimitExceededException limitExceededException = new com.amazonaws.services.iotfleethub.model.LimitExceededException(null);<NE...
String currentParentElement = context.getCurrentParentElement();
1,166,460
public void dump(Appendable out, String indent) throws IOException {<NEW_LINE>List<String> keys;<NEW_LINE>List<SelectorUpdate> updates;<NEW_LINE>Selector selector = _selector;<NEW_LINE>if (selector != null && selector.isOpen()) {<NEW_LINE>DumpKeys dump = new DumpKeys();<NEW_LINE>String updatesAt = DateTimeFormatter.ISO...
format(ZonedDateTime.now());
953,291
public void merge(ConfigurationChanges diffs, CompressionRules prevRules, CompressionRules rules, String parentDN) throws NamingException {<NEW_LINE>for (CompressionRule prevRule : prevRules) {<NEW_LINE>String cn = prevRule.getCommonName();<NEW_LINE>if (rules == null || rules.findByCommonName(cn) == null) {<NEW_LINE>St...
dnOf("cn", cn, parentDN);
1,080,746
private Map<String, Object> folderMap(Folder f) throws DotDataException, DotSecurityException {<NEW_LINE>UserWebAPI userWebAPI = WebAPILocator.getUserWebAPI();<NEW_LINE>HostAPI hostAPI = APILocator.getHostAPI();<NEW_LINE>Map<String, Object> folderMap = new HashMap<String, Object>();<NEW_LINE><MASK><NEW_LINE>folderMap.p...
folderMap.put("type", "folder");
702,692
private void generatePlannedOutputIcons() {<NEW_LINE>for (String s : plannedOutput) {<NEW_LINE>IFlexibleRecipe<ItemStack> recipe = <MASK><NEW_LINE>if (recipe != null) {<NEW_LINE>CraftingResult<ItemStack> result = recipe.craft(this, true);<NEW_LINE>if (result != null && result.usedItems != null && result.usedItems.size(...
AssemblyRecipeManager.INSTANCE.getRecipe(s);
365,621
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cards cards = new CardsImpl(player.getLibrary().getTopCards(game, 6));<NEW_LINE>TargetCardInLibrary target = new TargetCardInLibr...
cards, game, source, false);
1,323,022
private void readReplicaVersions() {<NEW_LINE>InternalPartitionServiceImpl partitionService = getService();<NEW_LINE>OperationService operationService <MASK><NEW_LINE>PartitionReplicaVersionManager versionManager = partitionService.getPartitionReplicaVersionManager();<NEW_LINE>UrgentPartitionRunnable<Void> gatherReplic...
= getNodeEngine().getOperationService();
1,037,612
<T> T runWithoutExternalEvents(final File repository, String commandName, Callable<T> callable) throws Exception {<NEW_LINE>assert repository != null;<NEW_LINE>try {<NEW_LINE>if (repository != null) {<NEW_LINE><MASK><NEW_LINE>commandLogger.lockedInternally(repository, commandName);<NEW_LINE>}<NEW_LINE>return callable.c...
gitFolderEventsHandler.enableEvents(repository, false);
155,083
private void createGeneratedResources(Project project, CollectionDesc.Builder builder) throws IOException, CompileExceptionError {<NEW_LINE>for (EmbeddedInstanceDesc desc : builder.getEmbeddedInstancesList()) {<NEW_LINE>byte[] data = desc.getData().getBytes();<NEW_LINE>long hash = MurmurHash.hash64(data, data.length);<...
uniqueResources.put(hash, genResource);
504,521
private List<ESRTransaction> iterateTransactionDetails(@NonNull final ReportEntry2 ntry, @NonNull final EntryDetails1 ntryDtl) {<NEW_LINE>final List<ESRTransaction> transactions = new ArrayList<>();<NEW_LINE>int countQRR = 0;<NEW_LINE>for (final EntryTransaction2 txDtl : ntryDtl.getTxDtls()) {<NEW_LINE>final ESRTransac...
).extractAndSetType(txDtl, trxBuilder);
531,704
protected BlockingQueueConsumer createBlockingQueueConsumer() {<NEW_LINE>BlockingQueueConsumer consumer;<NEW_LINE>String[] queues = getQueueNames();<NEW_LINE>// There's no point prefetching less than the tx size, otherwise the consumer will stall because the broker<NEW_LINE>// didn't get an ack for delivered messages<N...
consumer.setFailedDeclarationRetryInterval(getFailedDeclarationRetryInterval());
269,299
public void exceptionRaised(Throwable throwable) {<NEW_LINE>assert isCurrent();<NEW_LINE>final Ruby runtime = getRuntime();<NEW_LINE>if (throwable instanceof Error || throwable instanceof MainExitException) {<NEW_LINE>exitingException = throwable;<NEW_LINE>Helpers.throwException(throwable);<NEW_LINE>return;<NEW_LINE>}<...
getMainThread().raise(rubyException);
319,105
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "p0,p1".split(",");<NEW_LINE>env.compileDeploy("@name('flow') create dataflow MyDataFlow " + "Emitter -> outstream<MyOAEventType> {name:'src1'}" + "DefaultSupportCaptureOp(outstream) {}");<NEW_LINE>DefaultSupportCaptureOp<Object> captureOp = new De...
{ { "E3", 30 } });
1,310,917
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String stmtOrigText = "@name('split') @public on SupportBean " + "insert into AStream34 select theString||'_1' as theString where intPrimitive=10 " + "insert into BStream34 select theString||'_2' as theString wher...
, path).addListener("s2");
1,187,633
public com.amazonaws.services.iotthingsgraph.model.ResourceAlreadyExistsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.iotthingsgraph.model.ResourceAlreadyExistsException resourceAlreadyExistsException = new com.amazonaws.services.iotthingsgraph.model...
String currentParentElement = context.getCurrentParentElement();
79,378
private void initComponents() {<NEW_LINE>jbCopy = new JButton(res.getString("DViewCertificateFingerprint.jbCopy.text"));<NEW_LINE>PlatformUtil.setMnemonic(jbCopy, res.getString("DViewCertificateFingerprint.jbCopy.mnemonic").charAt(0));<NEW_LINE>jbCopy.setToolTipText(res.getString("DViewCertificateFingerprint.jbCopy.too...
new JPanel(new BorderLayout());
1,292,470
public static ZonedDateTime actionZDTPlusMinusTimePeriod(ZonedDateTime zdt, int factor, TimePeriod tp) {<NEW_LINE>if (tp == null) {<NEW_LINE>return zdt;<NEW_LINE>}<NEW_LINE>if (tp.getYears() != null) {<NEW_LINE>zdt = zdt.plus(factor * tp.getYears(), ChronoUnit.YEARS);<NEW_LINE>}<NEW_LINE>if (tp.getMonths() != null) {<N...
getMinutes(), ChronoUnit.MINUTES);
973,358
public String decodeToPayload(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf) throws InterruptedException, ZabbixErrorProtocolException {<NEW_LINE>int readable = byteBuf.readableBytes();<NEW_LINE><MASK><NEW_LINE>if (readable < HEADER_LEN) {<NEW_LINE>byteBuf.readerIndex(baseIndex);<NEW_LINE>return null;<NE...
int baseIndex = byteBuf.readerIndex();
854,907
public void gera(NoDeclaracaoVetor vetor, PrintWriter saida, VisitanteASA visitor, int nivelEscopo, boolean podeInicializar) throws ExcecaoVisitaASA {<NEW_LINE>String nome = vetor.getNome();<NEW_LINE>String tipo = Utils.getNomeTipoJava(vetor.getTipoDado());<NEW_LINE>saida.<MASK><NEW_LINE>if (podeInicializar || vetor.co...
format("%s %s[]", tipo, nome);
1,124,867
public static int rob(int[] nums) {<NEW_LINE>int len = nums.length;<NEW_LINE>if (len == 0)<NEW_LINE>return 0;<NEW_LINE>if (len == 1)<NEW_LINE>return nums[0];<NEW_LINE>if (len == 2)<NEW_LINE>return Math.max(nums[0], nums[1]);<NEW_LINE>int[] memo = new int[len];<NEW_LINE>memo[0] = nums[0];<NEW_LINE>memo[1] = Math.max(num...
0], nums[1]);
840,539
public final void accept(Context<?> ctx) {<NEW_LINE>// [#4292] Some dialects accept constant expressions in GROUP BY<NEW_LINE>// Note that dialects may consider constants as indexed field<NEW_LINE>// references, as in the ORDER BY clause!<NEW_LINE>if (EMULATE_EMPTY_GROUP_BY_CONSTANT.contains(ctx.dialect()))<NEW_LINE>ct...
))).sql(')');
967,221
final GetSpotPlacementScoresResult executeGetSpotPlacementScores(GetSpotPlacementScoresRequest getSpotPlacementScoresRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSpotPlacementScoresRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
792,705
protected void appendComponentSlot(XStringBuilder xsb, JsonStringBuilder jsb, SofaTracerSpan span) {<NEW_LINE>Map<String, String> tagWithStr = span.getTagsWithStr();<NEW_LINE>Map<String, Number> tagWithNum = span.getTagsWithNumber();<NEW_LINE>// protocol<NEW_LINE>xsb.append(tagWithStr.get(CommonSpanTags.PROTOCOL));<NEW...
.get(CommonSpanTags.REMOTE_HOST));
1,337,631
// add a structure from a specified path<NEW_LINE>private void addFromFile(J9DDRStructureStore store) throws IOException, StructureMismatchError {<NEW_LINE>String directoryName = opts.get("-d");<NEW_LINE>String structureName = opts.get("-f");<NEW_LINE>String <MASK><NEW_LINE>String supersetName = opts.get("-s");<NEW_LIN...
keyString = opts.get("-k");
867,032
public static ManifestInfo merge(final ManifestInfo manifestInfo1, final ManifestInfo manifestInfo2) {<NEW_LINE>final ManifestInfoBuilder builder = new ManifestInfoBuilder();<NEW_LINE>builder.objectType = UtilMethods.isSet(manifestInfo2.objectType) ? manifestInfo2.objectType : manifestInfo1.objectType;<NEW_LINE>builder...
? manifestInfo2.siteId : manifestInfo1.siteId;
757,491
public BaseOptionModifier deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext context) throws JsonParseException {<NEW_LINE>if (!jsonElement.isJsonPrimitive()) {<NEW_LINE>JsonObject jsonObject = jsonElement.getAsJsonObject();<NEW_LINE>if (1 == jsonObject.entrySet().size()) {<NEW_LINE>BaseOptionMo...
setType(BaseOptionModifier.ModifierType.ADD);
1,255,336
public <T> T send(final HttpRequest<T> request) {<NEW_LINE>HttpURLConnection connection = null;<NEW_LINE>InputStream inputStream = null;<NEW_LINE>try {<NEW_LINE>URL url = new URL(request.getUrl());<NEW_LINE>final String basicAuth;<NEW_LINE>if (url.getUserInfo() != null) {<NEW_LINE>basicAuth = getBasicAuthFromUserInfo(u...
e1.getMessage(), e1);
7,845
protected List<? extends JComponent> createPreviewElements() {<NEW_LINE>final JToggleButton basic = new JToggleButton("", true);<NEW_LINE>basic.putClientProperty(StyleId.STYLE_PROPERTY, getStyleId());<NEW_LINE>UILanguageManager.registerComponent(basic, getExampleLanguageKey("plain.text.basic"));<NEW_LINE>final JToggleB...
(icon, getExampleLanguageKey("plain.text.icon"));
995,358
private void createTableViewer(Composite composite) {<NEW_LINE>tableViewer = new TableViewer(composite, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);<NEW_LINE>tableColumnLayout = new TableColumnLayout();<NEW_LINE>composite.setLayout(tableColumnLayout);<NEW_LINE>createColumns();<NEW_LINE>final Table table = tableViewer....
Object o = sel.getFirstElement();
334,351
public void mapReferenceClock(ArrayList<String> args, int scalar) {<NEW_LINE>try {<NEW_LINE>mPacketHandler.sendByte(mCommandsProto.WAVEGEN);<NEW_LINE>mPacketHandler.sendByte(mCommandsProto.MAP_REFERENCE);<NEW_LINE>int channel = 0;<NEW_LINE>if (args.contains("SQR1"))<NEW_LINE>channel |= 1;<NEW_LINE>if (args.contains("SQ...
) 128e6 / (1 << scalar);
1,215,754
protected boolean acceptResult(Util.FSTPath<Pair<Long, BytesRef>> path) {<NEW_LINE>BytesRef output = path.output.output2;<NEW_LINE>int payloadSepIndex;<NEW_LINE>if (path.payload != -1) {<NEW_LINE>payloadSepIndex = path.payload;<NEW_LINE>spare.copyUTF8Bytes(output.bytes, output.offset, payloadSepIndex);<NEW_LINE>} else ...
collector.seenSurfaceForms.add(key);
456,846
public void updateConfiguration(WatchedUpdateResult watchedUpdateResult) {<NEW_LINE>Map<String, Object<MASK><NEW_LINE>if (adds != null) {<NEW_LINE>for (String add : adds.keySet()) {<NEW_LINE>if (add.startsWith(CONFIG_CSE_PREFIX)) {<NEW_LINE>String key = CONFIG_SERVICECOMB_PREFIX + add.substring(add.indexOf(".") + 1);<N...
> adds = watchedUpdateResult.getAdded();
295,770
private Optional<ConfiguredStatement<CreateAsSelect>> forCreateAsStatement(final ConfiguredStatement<CreateAsSelect> statement) {<NEW_LINE>final CreateAsSelect csStmt = statement.getStatement();<NEW_LINE>final CreateSourceAsProperties properties = csStmt.getProperties();<NEW_LINE>// Don't need to inject schema if no ke...
statement.getStatementText(), e);