idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
281,580
public static String condenseManaCostString(String rawCost) {<NEW_LINE>int total = 0;<NEW_LINE>int index = 0;<NEW_LINE>// Split the string in to an array of numbers and colored mana symbols<NEW_LINE>String[] splitCost = rawCost.replace("{", "").replace("}", " ").split(" ");<NEW_LINE>// Sort alphabetically which will pu...
total += Integer.parseInt(c);
1,023,408
public UpdateRecoveryPointLifecycleResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateRecoveryPointLifecycleResult updateRecoveryPointLifecycleResult = new UpdateRecoveryPointLifecycleResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement...
class).unmarshall(context));
291,007
protected Object[] createItemArray(XYDataset dataset, int series, int item) {<NEW_LINE>Object[] result = new Object[8];<NEW_LINE>result[0] = dataset.<MASK><NEW_LINE>Number x = dataset.getX(series, item);<NEW_LINE>if (getXDateFormat() != null) {<NEW_LINE>result[1] = getXDateFormat().format(new Date(x.longValue()));<NEW_...
getSeriesKey(series).toString();
1,212,524
private void serializeResult(final JsonGenerator g, final List<ShardedResultGroup> result) throws IOException {<NEW_LINE>g.writeStartArray();<NEW_LINE>for (final ShardedResultGroup group : result) {<NEW_LINE>g.writeStartObject();<NEW_LINE>final MetricCollection collection = group.getMetrics();<NEW_LINE>final SeriesValu...
"shard", group.getShard());
1,399,519
public int readUnary() throws IOException {<NEW_LINE>if (ASSERTS)<NEW_LINE>assert fill < 32 : fill + " >= " + 32;<NEW_LINE>int x;<NEW_LINE>if (fill < 16)<NEW_LINE>refill();<NEW_LINE>if (fill != 0) {<NEW_LINE>// Clean up current and check whether it is nonzero<NEW_LINE>final int currentLeftAligned = current << 32 - fill...
Fast.BYTEMSB[currentLeftAligned & 0xFF];
952,036
public Map<String, Object> updateAclConfigFileVersion(String aclFileName, Map<String, Object> updateAclConfigMap) {<NEW_LINE>Object dataVersions = updateAclConfigMap.get(AclConstants.CONFIG_DATA_VERSION);<NEW_LINE>DataVersion dataVersion = new DataVersion();<NEW_LINE>if (dataVersions != null) {<NEW_LINE>List<Map<String...
getCounter().longValue());
440,390
public Tls unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Tls tls = new Tls();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token == null...
int originalDepth = context.getCurrentDepth();
628,360
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "create window RectangleWindow#keepall as (id string, rx double, ry double, rw double, rh double);\n" + "create index MyIndex on RectangleWindow((rx,ry,rw,rh) mxcifquadtree(0,0,100,100));\n" + "insert into RectangleWindow select id, x as rx, y as ry, wi...
53.09747562396894, 17.100976152185034, 1, 1);
564,246
public void run() {<NEW_LINE>Timer = new TimerTask() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>runOnUiThread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>Animation animation;<NEW_LINE>animation = AnimationUtils.loadAnimation(getApplicationContext(), andr...
, (int) (3000));
1,379,795
public Topology buildTopology() {<NEW_LINE>StreamsBuilder builder = new StreamsBuilder();<NEW_LINE>ObjectMapperSerde<WeatherStation> weatherStationSerde = new ObjectMapperSerde<>(WeatherStation.class);<NEW_LINE>ObjectMapperSerde<Aggregation> aggregationSerde = new <MASK><NEW_LINE>KeyValueBytesStoreSupplier storeSupplie...
ObjectMapperSerde<>(Aggregation.class);
730,326
final DescribeInstanceInformationResult executeDescribeInstanceInformation(DescribeInstanceInformationRequest describeInstanceInformationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeInstanceInformationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
false), new DescribeInstanceInformationResultJsonUnmarshaller());
1,823,839
private <T> T call(UfsCallable<T> callable) throws IOException {<NEW_LINE>String methodName = callable.methodName();<NEW_LINE>long startMs = System.currentTimeMillis();<NEW_LINE>long durationMs;<NEW_LINE>LOG.<MASK><NEW_LINE>try (Timer.Context ctx = MetricsSystem.timer(getQualifiedMetricName(methodName)).time()) {<NEW_L...
debug("Enter: {}({})", methodName, callable);
616,888
public void mergeGraph2(Graph2 to, Graph2 from) {<NEW_LINE>String toCount = to.getCount();<NEW_LINE>String fromCount = from.getCount();<NEW_LINE>long[] count = mergeLongValue(toCount, fromCount);<NEW_LINE>to.setCount(StringUtils.join(count, GraphTrendUtil.GRAPH_CHAR_SPLITTER));<NEW_LINE>String toSum = to.getSum();<NEW_...
String fromFails = from.getFails();
1,499,169
public static ClassHierarchy createHierarchy(Map<String, byte[]> classMap) {<NEW_LINE>ClassHierarchy hierarchy = new IncrementalClassHierarchy();<NEW_LINE>for (Map.Entry<String, byte[]> e : classMap.entrySet()) {<NEW_LINE>try {<NEW_LINE>ClassReader reader = new ClassReader(e.getValue());<NEW_LINE>String[] ifaceNames = ...
.getObjectType(ifaceNames[i]);
545,833
public static void initialize(Core core) {<NEW_LINE>ConfigurationManager config = ConfigurationManager.getInstance();<NEW_LINE>if ("az2".equalsIgnoreCase(config.getStringParameter("ui", "az3"))) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int <MASK><NEW_LINE>boolean startAdvanced = userMode > 1;<NEW_LINE>boolean configNeeds...
userMode = COConfigurationManager.getIntParameter("User Mode");
757,013
public void applyParameters(ConstraintSet.Constraint c) {<NEW_LINE>this.mVisibilityMode = c.propertySet.mVisibilityMode;<NEW_LINE>this.mVisibility = c.propertySet.visibility;<NEW_LINE>this.mAlpha = (c.propertySet.visibility != ConstraintSet.VISIBLE && mVisibilityMode == ConstraintSet.VISIBILITY_MODE_NORMAL) ? 0.0f : c....
.mRotationX = c.transform.rotationX;
1,655,434
public JSDynamicObject propertyHandlerInstantiate(JSContext context, JSRealm realm, ObjectTemplate template, JSDynamicObject target, boolean global) {<NEW_LINE>JSDynamicObject handler = JSUncheckedProxyHandler.create(context, realm);<NEW_LINE>JSDynamicObject proxy = JSProxy.create(context, realm, target, handler);<NEW_...
name, value.getValue());
1,180,665
public void paintInstance(InstancePainter painter) {<NEW_LINE>final var g = painter.getGraphics();<NEW_LINE>painter.drawBounds();<NEW_LINE>g.setColor(Color.GRAY);<NEW_LINE>painter.drawPort(IN);<NEW_LINE>painter.drawPort(OUT, "-x", Direction.WEST);<NEW_LINE>painter.drawPort(ERR);<NEW_LINE>final var loc = painter.getLoca...
var x = loc.getX();
478,195
public static QueryCallResponse unmarshall(QueryCallResponse queryCallResponse, UnmarshallerContext context) {<NEW_LINE>queryCallResponse.setRequestId(context.stringValue("QueryCallResponse.RequestId"));<NEW_LINE>queryCallResponse.setSuccess(context.booleanValue("QueryCallResponse.Success"));<NEW_LINE>queryCallResponse...
(context.stringValue("QueryCallResponse.Code"));
1,792,861
private <K, V> int parseMapField(T message, byte[] data, int position, int limit, int bufferPosition, long fieldOffset, Registers registers) throws IOException {<NEW_LINE>final sun.misc.Unsafe unsafe = UNSAFE;<NEW_LINE>Object mapDefaultEntry = getMapFieldDefaultEntry(bufferPosition);<NEW_LINE>Object mapField = unsafe.g...
.forMutableMapData(mapField), registers);
1,689,764
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>Permanent attachedTo = (Permanent) getValue("attachedTo");<NEW_LINE>if (controller != null && sourceObject != null && attache...
).getTopCards(game, amount);
326,445
private synchronized void loadExtensions() {<NEW_LINE>if (contributors == null) {<NEW_LINE>IExtensionRegistry registry = Platform.getExtensionRegistry();<NEW_LINE>IConfigurationElement[] elements = registry.getConfigurationElementsFor(ProjectsPlugin.PLUGIN_ID, EXTENSION_POINT_NAME);<NEW_LINE>// Gather all the configura...
(currentElement.getAttribute(ATTRIBUTE_PRIORITY));
1,073,735
public Request<CreateProvisioningClaimRequest> marshall(CreateProvisioningClaimRequest createProvisioningClaimRequest) {<NEW_LINE>if (createProvisioningClaimRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(CreateProvisioningClaimRequest)");<NEW_LINE>}<NEW_LINE>Request<Cre...
request.setHttpMethod(HttpMethodName.POST);
224,709
// / Creates an event based on the current state.<NEW_LINE>private Map<String, Object> createPlaybackEvent() {<NEW_LINE>final Map<String, Object> event = new HashMap<String, Object>();<NEW_LINE>Long duration = getDuration() == C.TIME_UNSET ? null : (1000 * getDuration());<NEW_LINE>bufferedPosition = player != null ? pl...
event.put("currentIndex", currentIndex);
910,072
final UpdateClusterResult executeUpdateCluster(UpdateClusterRequest updateClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,196,752
public static DescribeFabricConsortiumsResponse unmarshall(DescribeFabricConsortiumsResponse describeFabricConsortiumsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeFabricConsortiumsResponse.setRequestId(_ctx.stringValue("DescribeFabricConsortiumsResponse.RequestId"));<NEW_LINE>describeFabricConsortiumsResponse...
("DescribeFabricConsortiumsResponse.Result[" + i + "].ChannelCount"));
144,384
public boolean execute(Object object) throws ContractExeException {<NEW_LINE>TransactionResultCapsule ret = (TransactionResultCapsule) object;<NEW_LINE>if (Objects.isNull(ret)) {<NEW_LINE>throw new RuntimeException(ActuatorConstant.TX_RESULT_NULL);<NEW_LINE>}<NEW_LINE>long fee = calcFee();<NEW_LINE>AccountStore account...
accountCapsule.setBalance(newBalance + anotherTokenQuant);
846,265
public void listen() {<NEW_LINE>super.listen();<NEW_LINE>if (eventData != null) {<NEW_LINE>if (eventData.shortTime) {<NEW_LINE>job = new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>changeSatisfiedState(true);<NEW_LINE>if (eventData.repeat)<NEW_LINE>handler.postDelayed(<MASK><NEW_LINE...
job, eventData.time * INTERVAL_SECOND);
1,834,806
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,018,655
public static String compare(double sum, int k, int n, int w) {<NEW_LINE>Dirichlet uniformDirichlet, dirichlet;<NEW_LINE>StringBuffer output = new StringBuffer();<NEW_LINE>output.append(sum + "\t" + k + "\t" + n + "\t" + w + "\t");<NEW_LINE>uniformDirichlet = new Dirichlet(k, sum / k);<NEW_LINE>dirichlet = new Dirichle...
sum, uniformDirichlet.nextDistribution());
656,442
boolean checkSaveChanges(ImageData<BufferedImage> imageData) {<NEW_LINE>if (!imageData.isChanged() || isReadOnly())<NEW_LINE>return true;<NEW_LINE>ProjectImageEntry<BufferedImage> entry = getProjectImageEntry(imageData);<NEW_LINE>String name = entry == null ? ServerTools.getDisplayableImageName(imageData.getServer()) :...
"QuPath data files", PathPrefs.getSerializationExtension());
304,858
public void write(org.apache.thrift.protocol.TProtocol prot, getDelegationToken_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (str...
oprot.writeBitSet(optionals, 3);
810,221
private AttributedGraph createGraph(List<RecoveredClass> recoveredClasses) throws CancelledException {<NEW_LINE>GraphType graphType = new GraphTypeBuilder("Class Hierarchy Graph").vertexType(NO_INHERITANCE).vertexType(SINGLE_INHERITANCE).vertexType(MULTIPLE_INHERITANCE).edgeType(NON_VIRTUAL_INHERITANCE).edgeType(VIRTUA...
getClassPath().getPath());
36,565
final GetTopicRuleResult executeGetTopicRule(GetTopicRuleRequest getTopicRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTopicRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,808,146
static void migrate(MigrationContext migrationContext) {<NEW_LINE>final FilesFacade ff = migrationContext.getFf();<NEW_LINE>final Path path = migrationContext.getTablePath();<NEW_LINE>final <MASK><NEW_LINE>try (MemoryMARW rwMemory = migrationContext.getRwMemory()) {<NEW_LINE>path2.concat(TXN_FILE_NAME).$();<NEW_LINE>op...
Path path2 = migrationContext.getTablePath2();
1,618,942
CompletableFuture<Void> completeJob(MasterContext masterContext, Throwable error, long completionTime) {<NEW_LINE>return submitToCoordinatorThread(() -> {<NEW_LINE>// the order of operations is important.<NEW_LINE>List<RawJobMetrics> jobMetrics = masterContext.jobConfig().isStoreMetricsAfterJobCompletion() ? masterCont...
unscheduleJobTimeout(masterContext.jobId());
1,113,387
// ~ Methods ----------------------------------------------------------------<NEW_LINE>public void onMatch(RelOptRuleCall call) {<NEW_LINE>final Aggregate topAggRel = call.rel(0);<NEW_LINE>final Union union = call.rel(1);<NEW_LINE>// If distincts haven't been removed yet, defer invoking this rule<NEW_LINE>if (!union.al...
RelBuilder relBuilder = call.builder();
682,680
public <T extends OAuthClientResponse> T execute(OAuthClientRequest request, Map<String, String> headers, String requestMethod, Class<T> responseClass) throws OAuthSystemException, OAuthProblemException {<NEW_LINE>RequestTemplate req = new RequestTemplate().append(request.getLocationUri()).method(requestMethod).body(re...
), entry.getValue());
360,203
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>runAssertion(env, true, BEAN_TYPENAME, FBEAN, new EPTypeClass(InfraNestedIndexedPropLvl1[].class), InfraNestedIndexedPropLvl1.class.getName(), path);<NEW_LINE>runAssertion(env, true, MAP_TYPENAME, FMAP, new EPType...
+ JSON_TYPENAME + "(l1 " + JSON_TYPENAME + "_1[]);\n";
940,818
public void securedHandler() throws Exception {<NEW_LINE>// tag::securedHandler[]<NEW_LINE>Server server = new Server();<NEW_LINE>// Configure the HttpConfiguration for the clear-text connector.<NEW_LINE>int securePort = 8443;<NEW_LINE>HttpConfiguration httpConfig = new HttpConfiguration();<NEW_LINE>httpConfig.setSecur...
sslContextFactory, http11.getProtocol());
182,197
private boolean addFollowing(DebugInformation debugInfo, SourceLocation location, String script, Set<SourceLocation> visited, Set<JavaScriptLocation> successors) {<NEW_LINE>if (!visited.add(location)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>SourceLocation[] following = debugInfo.getFollowingLines(location);<NEW_LI...
genLocations = debugInfo.getGeneratedLocations(successor);
1,048,925
public void onClick(View view) {<NEW_LINE>if (hoveringMarker.getVisibility() == View.VISIBLE) {<NEW_LINE>// Use the map target's coordinates to make a reverse geocoding search<NEW_LINE>final LatLng mapTargetLatLng = mapboxMap.getCameraPosition().target;<NEW_LINE>// Hide the hovering red hovering ImageView marker<NEW_LI...
hoveringMarker.setVisibility(View.VISIBLE);
1,475,052
public PartitionPlan mapPartitions() throws Exception {<NEW_LINE>int numRecords = ReaderData.outerLoop.length * ReaderData.innerLoop.length;<NEW_LINE>logger.fine("In mapper, # of records = " + numRecords);<NEW_LINE><MASK><NEW_LINE>logger.fine("In mapper, # of partitions = " + numPartitions);<NEW_LINE>PartitionPlanImpl ...
int numPartitions = ReaderData.outerLoop.length;
1,466,254
void checkThreadPoolLeak(ExecutorService e, Exception stackTraceEx) {<NEW_LINE>if (this.detectionLevel == ThreadLeakDetectionLevel.None) {<NEW_LINE>// Not doing anything in this case.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!e.isShutdown()) {<NEW_LINE>log.warn("THREAD POOL LEAK: {} (ShutDown={}, Terminated={}) finaliz...
e.isTerminated(), stackTraceEx);
826,909
private static void fixRange(List<Object> paragraphs, String startElement, String endElement) throws Exception {<NEW_LINE>RangeFinder rt = new RangeFinder(startElement, endElement);<NEW_LINE>new TraversalUtil(paragraphs, rt);<NEW_LINE>for (CTBookmark bm : rt.getStarts()) {<NEW_LINE>try {<NEW_LINE>// Can't just remove t...
(List) mr.getParent();
1,803,364
static private Diagnostic error2Diagnostic(ErrorDescription error, LineDocument lineDocument, int idx) {<NEW_LINE>int s = error.getRange().getBegin().getOffset();<NEW_LINE>int e = error.getRange().getEnd().getOffset();<NEW_LINE>Diagnostic.Builder diagBuilder = Diagnostic.Builder.create(() -> {<NEW_LINE>if (lineDocument...
}, error.getDescription());
1,670,417
public SchemaInfo parse(InputSource in) {<NEW_LINE>// NOI18N<NEW_LINE>Util.THIS.debug("SchemaParser started.");<NEW_LINE>try {<NEW_LINE>depth = 0;<NEW_LINE>XMLReader parser = XMLUtil.createXMLReader(false, true);<NEW_LINE>parser.setContentHandler(this);<NEW_LINE>parser.setErrorHandler(this);<NEW_LINE>UserCatalog catalo...
Util.THIS.debug("SchemaParser stopped.");
913,005
public ListModelsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListModelsResult listModelsResult = new ListModelsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentT...
String currentParentElement = context.getCurrentParentElement();
206,288
public Answer deleteVolume(final DeleteCommand cmd) {<NEW_LINE>final VolumeObjectTO vol = (VolumeObjectTO) cmd.getData();<NEW_LINE>final PrimaryDataStoreTO primaryStore = (PrimaryDataStoreTO) vol.getDataStore();<NEW_LINE>try {<NEW_LINE>final KVMStoragePool pool = storagePoolMgr.getStoragePool(primaryStore.getPoolType()...
getPhysicalDisk(vol.getPath());
669,185
protected WebRtcServiceState handleDropCall(@NonNull WebRtcServiceState currentState, long callId) {<NEW_LINE>Log.i(tag, "handleDropCall(): call_id: " + callId);<NEW_LINE>CallId id = new CallId(callId);<NEW_LINE>RemotePeer callIdPeer = currentState.getCallInfoState().getPeerByCallId(id);<NEW_LINE>RemotePeer activePeer ...
currentState, isActivePeer ? activePeer : callIdPeer);
396,671
public static PipeItemModel create(ItemPipe item, int colorIndex) {<NEW_LINE>TextureAtlasSprite sprite = item.getSprite();<NEW_LINE>if (sprite == null) {<NEW_LINE>sprite = Minecraft.getMinecraft().getTextureMapBlocks().getMissingSprite();<NEW_LINE>}<NEW_LINE>Vec3d center = Utils.VEC_HALF;<NEW_LINE>Vec3d radius = new Ve...
normalf(0, 1, 0);
1,457,285
public DescribeAuditSuppressionResult describeAuditSuppression(DescribeAuditSuppressionRequest describeAuditSuppressionRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAuditSuppressionRequest);<NEW_LINE>AWSRequestMetrics awsReque...
invoke(request, responseHandler, executionContext);
525,969
public static GetRegisterHistoryListResponse unmarshall(GetRegisterHistoryListResponse getRegisterHistoryListResponse, UnmarshallerContext context) {<NEW_LINE>getRegisterHistoryListResponse.setRequestId(context.stringValue("GetRegisterHistoryListResponse.RequestId"));<NEW_LINE>getRegisterHistoryListResponse.setErrorCod...
("GetRegisterHistoryListResponse.Data[" + i + "].Memo"));
402,156
void colorB_actionPerformed(ActionEvent e) {<NEW_LINE>// Fix until Sun's JVM supports more locales...<NEW_LINE>UIManager.put("ColorChooser.swatchesNameText", Local.getString("Swatches"));<NEW_LINE>UIManager.put("ColorChooser.hsbNameText", Local.getString("HSB"));<NEW_LINE>UIManager.put("ColorChooser.rgbNameText", Local...
, Local.getString("B2"));
906,329
final protected void createUI() {<NEW_LINE>backgroundImage = Icons.getIcon("logo.wizard.png");<NEW_LINE>setLayout(new BorderLayout(7, 7));<NEW_LINE>marginPanel.setPreferredSize(new Dimension(150, 400));<NEW_LINE>add(marginPanel, BorderLayout.WEST);<NEW_LINE>marginPanel.setOpaque(false);<NEW_LINE>marginPanel.setEnabled(...
add(marginLabel, BorderLayout.NORTH);
68,775
public static void main(final String[] args) {<NEW_LINE>CommandSpec spec = CommandSpec.create();<NEW_LINE>spec.mixinStandardHelpOptions(true);<NEW_LINE>spec.addOption(OptionSpec.builder("-c", "--count").paramLabel("COUNT").type(int.class).description("number of times to execute").build());<NEW_LINE>spec.addPositional(P...
int processed = commandLine.getExecutionResult();
367,254
void acquireClaimedStream(Promise<Channel> promise) {<NEW_LINE>doInEventLoop(connection.eventLoop(), () -> {<NEW_LINE>if (state != RecordState.OPEN) {<NEW_LINE>String message;<NEW_LINE>// GOAWAY<NEW_LINE>if (state == RecordState.CLOSED_TO_NEW) {<NEW_LINE>message = String.format("Connection %s received GOAWAY with Last ...
Http2StreamChannelBootstrap(connection).open();
958,136
final DeleteEventsConfigurationResult executeDeleteEventsConfiguration(DeleteEventsConfigurationRequest deleteEventsConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEventsConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
false), new DeleteEventsConfigurationResultJsonUnmarshaller());
1,797,640
public void apply(TunerConfiguration config) throws SourceException {<NEW_LINE>if (config != null && config instanceof E4KTunerConfiguration) {<NEW_LINE>E4KTunerConfiguration e4kConfig = (E4KTunerConfiguration) config;<NEW_LINE>try {<NEW_LINE>SampleRate sampleRate = e4kConfig.getSampleRate();<NEW_LINE>setSampleRate(sam...
E4KGain masterGain = e4kConfig.getMasterGain();
1,430,606
// return: read lines from URL, url strings<NEW_LINE>@NonNull<NEW_LINE>static Pair<LinkedHashSet<String>, Set<String>> readLinesFromExtensionFiles(/* input */<NEW_LINE>@NonNull Enumeration<URL> extensionFiles, /* input/output, map url string -> content lines */<NEW_LINE>@NonNull Map<String, LinkedHashSet<String>> redEx...
String>>(mergedLines, stringUrls);
345,637
private void loadSessionsFromRemoteCache(final KeycloakSessionFactory sessionFactory, String cacheName, final int sessionsPerSegment, final int maxErrors) {<NEW_LINE>log.debugf("Check pre-loading sessions from remote cache '%s'", cacheName);<NEW_LINE>KeycloakModelUtils.runJobInTransaction(sessionFactory, new KeycloakSe...
log.debugf("Pre-loading sessions from remote cache '%s' finished", cacheName);
203,025
public void actionPerformed(AnActionEvent e) {<NEW_LINE>final Project project = e.getData(CommonDataKeys.PROJECT);<NEW_LINE>final VirtualFile virtualFile = GraphQLPsiUtil.getPhysicalVirtualFile(e.getData(CommonDataKeys.VIRTUAL_FILE));<NEW_LINE>if (project == null || virtualFile == null) {<NEW_LINE>return;<NEW_LINE>}<NE...
configManager, notification)), project);
1,685,717
public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler) {<NEW_LINE>final ListCalc listCalc = compiler.compileList(call.getArg(0));<NEW_LINE>final IntegerCalc integerCalc = call.getArgCount() > 1 ? compiler.compileInteger(call.getArg(1)) : ConstantCalc.constantInteger(1);<NEW_LINE>if (head) {<NEW_LINE>return...
int savepoint = evaluator.savepoint();
226,735
public void compileRoutes() {<NEW_LINE>if (routes != null) {<NEW_LINE>throw new IllegalStateException("Routes already compiled");<NEW_LINE>}<NEW_LINE>List<Route> routesLocal = new ArrayList<>();<NEW_LINE>allRouteBuilders.forEach(routeBuilder -> {<NEW_LINE>routesLocal.add(routeBuilder.buildRoute(injector));<NEW_LINE>});...
route.getUri() + ".");
508,486
final ListAutomaticTapeCreationPoliciesResult executeListAutomaticTapeCreationPolicies(ListAutomaticTapeCreationPoliciesRequest listAutomaticTapeCreationPoliciesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAutomaticTapeCreationPoliciesRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,096,346
final public Node EmbSubject() throws ParseException {<NEW_LINE>Node o;<NEW_LINE>String iri;<NEW_LINE>switch((jj_ntk == -1) ? jj_ntk_f() : jj_ntk) {<NEW_LINE>case IRIref:<NEW_LINE>case PNAME_NS:<NEW_LINE>case PNAME_LN:<NEW_LINE>{<NEW_LINE>iri = iri();<NEW_LINE>o = createURI(iri, <MASK><NEW_LINE>break;<NEW_LINE>}<NEW_LI...
token.beginLine, token.beginColumn);
323,236
protected ArrowTipView showEducationTipOnViewIfPossible(@Nullable View view) {<NEW_LINE>if (view == null || !ViewCompat.isLaidOut(view)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int[<MASK><NEW_LINE>view.getLocationOnScreen(coords);<NEW_LINE>ArrowTipView arrowTipView = new ArrowTipView(mActivityContext, /* isPointing...
] coords = new int[2];
185,151
public boolean compile() {<NEW_LINE>JavaCompiler javac = ToolProvider.getSystemJavaCompiler();<NEW_LINE>if (javac == null)<NEW_LINE>throw new IllegalStateException("No Java compiler is installed. Please use a JDK context when running.");<NEW_LINE>// file manager, used so that the unit map can have their definitions upd...
null, unitMap.values());
622,046
static ServiceDefinition build(ProcessingEnvironment processingEnv, TypeElement type) {<NEW_LINE>ServiceDefinition serviceDefinition = new ServiceDefinition();<NEW_LINE>serviceDefinition.setCanonicalName(type.toString());<NEW_LINE>serviceDefinition.setCodeSource(getResourceName(type.toString()));<NEW_LINE>Map<String, T...
serviceDefinition.getMethods()::add);
13,710
public RefactoringStatus checkFinalConditions(IProgressMonitor pm) throws CoreException {<NEW_LINE>try {<NEW_LINE>pm.beginTask(RefactoringCoreMessages.ExtractTempRefactoring_checking_preconditions, 4);<NEW_LINE>fCURewrite = new CompilationUnitRewrite(fCu, fCompilationUnitNode);<NEW_LINE>fCURewrite.setFormattingOptions(...
result.merge(checkMatchingFragments());
1,127,234
private void draw() {<NEW_LINE>list = new JList(listModel);<NEW_LINE>list.addListSelectionListener(new javax.swing.event.ListSelectionListener() {<NEW_LINE><NEW_LINE>public void valueChanged(javax.swing.event.ListSelectionEvent evt) {<NEW_LINE>updateSaveButton();<NEW_LINE>}<NEW_LINE>});<NEW_LINE>// bugfix 37941, select...
, 12, 11, 12));
1,804,592
public AnalyticsModelingOMASAPIResponse updateArtifact(String serverName, String userId, String serverCapability, String serverCapabilityGUID, AnalyticsAsset artifact) {<NEW_LINE>String methodName = "updateArtifact";<NEW_LINE>AnalyticsModelingOMASAPIResponse ret;<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCal...
ret = handleErrorResponse(e, methodName);
245,469
private AbstractCacheNode specializeForeignCall(Object[] arguments, AbstractCacheNode head) {<NEW_LINE>AbstractCacheNode newNode = null;<NEW_LINE>int <MASK><NEW_LINE>Object thisObject = JSArguments.getThisObject(arguments);<NEW_LINE>if (isNew(flags) || isNewTarget(flags)) {<NEW_LINE>int skippedArgs = isNewTarget(flags)...
userArgumentCount = JSArguments.getUserArgumentCount(arguments);
1,098,960
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>resp.setHeader(CACHE_CONTROL, NO_CACHE);<NEW_LINE>resp.setContentType(CONTENT_TYPE);<NEW_LINE>Map<MaxwellDiagnostic, CompletableFuture<MaxwellDiagnosticResult.Check>> futureChecks = diagnosticContext.d...
MaxwellDiagnosticResult result = new MaxwellDiagnosticResult(checks);
295,146
private void createP2() {<NEW_LINE>remove(prgCircle);<NEW_LINE>remove(lblSpeed);<NEW_LINE>remove(lblStat);<NEW_LINE>remove(segProgress);<NEW_LINE>remove(lblDet);<NEW_LINE>remove(lblETA);<NEW_LINE>remove(this.panel);<NEW_LINE>titlePanel.remove(closeBtn);<NEW_LINE>titlePanel.remove(minBtn);<NEW_LINE>JPanel p2 = new JPane...
(StringResource.get("MSG_OK"));
674,240
private void createRecorder() {<NEW_LINE>@SuppressWarnings("rawtypes")<NEW_LINE>Class recorderClass = loadClientClass("simianarmy.client.recorder.class");<NEW_LINE>if (recorderClass != null && recorderClass.equals(RDSRecorder.class)) {<NEW_LINE>String dbDriver = configuration().getStr("simianarmy.recorder.db.driver");<...
configuration().getStr("simianarmy.recorder.db.user");
1,811,542
public void run() {<NEW_LINE>// Record how long it takes to build the graph, purely for informational purposes.<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>// Check all graph builder inputs, and fail fast to avoid waiting until the build process<NEW_LINE>// advances.<NEW_LINE>for (GraphBuilderModule ...
long endTime = System.currentTimeMillis();
683,863
public void ListProducts() {<NEW_LINE>PersistenceManagerFactory pmf = new JDOPersistenceManagerFactory(pumd, null);<NEW_LINE>PersistenceManager pm = pmf.getPersistenceManager();<NEW_LINE>Transaction tx = pm.currentTransaction();<NEW_LINE>try {<NEW_LINE>tx.begin();<NEW_LINE>Query q = pm.newQuery("SELECT FROM " + Product...
Product p = iter.next();
1,735,954
private Mono<Response<Flux<ByteBuffer>>> cancelWithResponseAsync(String resourceGroupName, String accountName, String pipelineJobName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot ...
getApiVersion(), accept, context);
978,875
private void visit(GraphQLSchemaElement n, Set<GraphQLSchemaElement> tempMarked, Set<GraphQLSchemaElement> permMarked, Set<GraphQLSchemaElement> notPermMarked, List<GraphQLSchemaElement> result, Map<GraphQLSchemaElement, List<GraphQLSchemaElement>> reverseDependencies) {<NEW_LINE>if (permMarked.contains(n)) {<NEW_LINE>...
permMarked, notPermMarked, result, reverseDependencies);
135,071
protected Map<Integer, ParameterContext> buildInsertParams() {<NEW_LINE>Map<Integer, ParameterContext> params = new HashMap<>(15);<NEW_LINE>int index = 0;<NEW_LINE>MetaDbUtil.setParameter(++index, params, ParameterMethod.setString, this.tableSchema);<NEW_LINE>MetaDbUtil.setParameter(++index, params, ParameterMethod.set...
ParameterMethod.setString, this.columnName);
407,454
public void execute(Agent<?, ?> agent, Action action) {<NEW_LINE>if (action == ACTION_MOVE_RIGHT) {<NEW_LINE>envState.setAgentLocation(agent, LOCATION_B);<NEW_LINE>updatePerformanceMeasure(agent, -1);<NEW_LINE>} else if (action == ACTION_MOVE_LEFT) {<NEW_LINE>envState.setAgentLocation(agent, LOCATION_A);<NEW_LINE>updat...
currLocation = envState.getAgentLocation(agent);
4,444
public void menuShown(MenuEvent e) {<NEW_LINE>MenuItem sidebarMenuItem = MenuFactory.findMenuItem(viewMenu, PREFIX_V3 + ".view.sidebar");<NEW_LINE>if (sidebarMenuItem != null) {<NEW_LINE>MultipleDocumentInterface mdi = UIFunctionsManager.getUIFunctions().getMDI();<NEW_LINE>if (mdi != null) {<NEW_LINE>sidebarMenuItem.se...
UIToolBarManager tb = UIToolBarManagerImpl.getInstance();
1,238,105
protected RubyArray rbEncCodePointLen(Object string, RubyEncoding encoding, @CachedLibrary(limit = "LIBSTRING_CACHE") RubyStringLibrary strings, @Cached RopeNodes.BytesNode bytesNode, @Cached RopeNodes.CalculateCharacterLengthNode calculateCharacterLengthNode, @Cached RopeNodes.CodeRangeNode codeRangeNode, @Cached Cond...
cr, new Bytes(bytes));
395,953
private void initColumnsData() {<NEW_LINE>// Width of the first column fits to width<NEW_LINE>columnWidths = new int[columnCount - 1];<NEW_LINE>columnNames = new String[columnCount];<NEW_LINE>columnToolTips = new String[columnCount];<NEW_LINE>columnRenderers = new javax.swing.table.TableCellRenderer[columnCount];<NEW_L...
columnWidths[2 - 1] = maxWidth;
942,590
ActionResult<List<NameValueCountPair>> execute(EffectivePerson effectivePerson, String applicationFlag) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<NameValueCountPair>> result = new ActionResult<>();<NEW_LINE>Business busi...
asc(wraps, false, "name");
867,715
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next(...
().equals("1"));
1,733,846
public List<Filter> createFilterList(Optional<String> argumentString, List<Filter> filters, String errorMessage, boolean exclusive) {<NEW_LINE>for (String filterString : Splitter.on(";").trimResults().omitEmptyStrings().split(argumentString.or(""))) {<NEW_LINE>try {<NEW_LINE>// filter based on annotations<NEW_LINE>if (...
= new JavadocLikePackageFilter(filterString, exclusive);
689,258
@Override<NEW_LINE>public AuthenticationDetails login(Credentials credentials) throws LoginException {<NEW_LINE>if (!(credentials instanceof AnonymousUserCredentials)) {<NEW_LINE>throw new ClassCastException("Credentials cannot be cast to AnonymousUserCredentials");<NEW_LINE>}<NEW_LINE>AnonymousUserCredentials anonymou...
UserSession anonymousSession = anonymousSessionHolder.getAnonymousSession();
1,446,611
public static DescribeVSwitchesResponse unmarshall(DescribeVSwitchesResponse describeVSwitchesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVSwitchesResponse.setRequestId(_ctx.stringValue("DescribeVSwitchesResponse.RequestId"));<NEW_LINE>describeVSwitchesResponse.setTotalCount(_ctx.longValue("DescribeVSwitches...
("DescribeVSwitchesResponse.VSwitchs[" + i + "].Bid"));
1,020,886
public void saveSaleOrderPDFAsAttachment(SaleOrder saleOrder) throws AxelorException {<NEW_LINE>if (saleOrder.getPrintingSettings() == null) {<NEW_LINE>if (saleOrder.getCompany().getPrintingSettings() != null) {<NEW_LINE>saleOrder.setPrintingSettings(saleOrder.getCompany().getPrintingSettings());<NEW_LINE>} else {<NEW_...
.generate().getFileLink();
668,897
private List<NameValueCountPair> listActivityNamePair(Business business, Predicate p) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(ReadCompleted.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(String.class);<NEW_LI...
.toString(s2, ""));
1,218,740
private static ClassNode loadClassNode(String className) throws IOException {<NEW_LINE>InputStream classStream = ResourceList.getInstance(TestGenerationContext.getInstance().getClassLoaderForSUT()).getClassAsStream(className);<NEW_LINE>if (classStream == null) {<NEW_LINE>// This used to throw an IOException that leads ...
logger.info("Could not find class file: " + className);
1,512,916
protected HyperParameters samplingHyperParameters(HyperParameters hyperParameters, DenseMatrix factors, DenseVector normalMu0, double normalBeta0, DenseMatrix WishartScale0, double WishartNu0) throws LibrecException {<NEW_LINE>int numRows = factors.rowSize();<NEW_LINE>int numColumns = factors.columnSize();<NEW_LINE>Den...
(normalBeta0 * numRows / betaPost));
20,524
public NameEnvironmentAnswer findClass(String binaryFileName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly, Predicate<String> moduleNameFilter) {<NEW_LINE>if (this.fs == null) {<NEW_LINE>return super.findClass(binaryFileName, qualifiedPackageName, moduleName, qual...
.moduleName = moduleName.toCharArray();
1,265,239
public void mouseClicked(MouseEvent e) {<NEW_LINE>ProductVar selectedVar = null;<NEW_LINE>if (relatedNode.getUserObject() instanceof ProductVar) {<NEW_LINE>selectedVar = <MASK><NEW_LINE>}<NEW_LINE>if (selectedVar != null) {<NEW_LINE>String selectedVarUnits = selectedVar.getUnits();<NEW_LINE>if (selectedVarUnits != null...
(ProductVar) relatedNode.getUserObject();
349,499
final UpdateGroupResult executeUpdateGroup(UpdateGroupRequest updateGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,850,305
private void renderClassMetadata(List<PreparedClass> classes) {<NEW_LINE>if (classes.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ClassMetadataRequirements metadataRequirements = new ClassMetadataRequirements(context.getDependencyInfo());<NEW_LINE>int start = writer.getOffset();<NEW_LINE>try {<NEW_LINE>writer.appe...
append("]);").newLine();
335,416
private Point parsePoint() {<NEW_LINE>double x = data.getDouble();<NEW_LINE>double y = data.getDouble();<NEW_LINE>double z = Double.NaN;<NEW_LINE>double m = Double.NaN;<NEW_LINE>if (xyzmMode.hasZ()) {<NEW_LINE>z = data.getDouble();<NEW_LINE>}<NEW_LINE>if (xyzmMode.hasM()) {<NEW_LINE>m = data.getDouble();<NEW_LINE>}<NEW...
(0).setM(m);
927,805
public static String signature(Properties props) {<NEW_LINE>StringBuilder os = new StringBuilder();<NEW_LINE>os.append(HybridCorefProperties.DEMONYM_PROP + ":" + props.getProperty(HybridCorefProperties.DEMONYM_PROP, DefaultPaths.DEFAULT_DCOREF_DEMONYM));<NEW_LINE>os.append(HybridCorefProperties.ANIMATE_PROP + ":" + pro...
.ANIMATE_PROP, DefaultPaths.DEFAULT_DCOREF_ANIMATE));