idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
665
public static void main(String[] args) {<NEW_LINE>Exercise36_Neighbors neighbors = new Exercise36_Neighbors();<NEW_LINE>EdgeWeightedDigraph edgeWeightedDigraph1 = new EdgeWeightedDigraph(4);<NEW_LINE>edgeWeightedDigraph1.addEdge(new DirectedEdge(0, 1, 20));<NEW_LINE>edgeWeightedDigraph1.addEdge(new DirectedEdge(0, 2, 5...
(5, 6, 1));
131,571
private void send(List<String> metricLines) {<NEW_LINE>String endpoint = config.uri();<NEW_LINE>if (!isValidEndpoint(endpoint)) {<NEW_LINE>logger.warn("Invalid endpoint, skipping export... ({})", endpoint);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>logger.debug("Sending {} lines to {}", metricLines.size(), en...
throwable.getMessage(), throwable);
1,620,456
private void writeRequest(CounterRequest childRequest, float executionsByRequest, boolean allChildHitsDisplayed) throws IOException, DocumentException {<NEW_LINE>final PdfPCell defaultCell = getDefaultCell();<NEW_LINE><MASK><NEW_LINE>final Paragraph paragraph = new Paragraph(defaultCell.getLeading() + cellFont.getSize(...
defaultCell.setHorizontalAlignment(Element.ALIGN_LEFT);
30,578
public static Vec3 lookAt(Vec3 vec, Vec3 fwd) {<NEW_LINE>fwd = fwd.normalize();<NEW_LINE>Vec3 up = new Vec3(0, 1, 0);<NEW_LINE>double dot = fwd.dot(up);<NEW_LINE>if (Math.abs(dot) > 1 - 1.0E-3)<NEW_LINE>up = new Vec3(0, 0, dot > 0 ? 1 : -1);<NEW_LINE>Vec3 right = fwd.cross(up).normalize();<NEW_LINE>up = right.cross(fwd...
+ vec.z * fwd.x;
664,543
private Map<String, Object> convertToMap(String pid) throws IOException {<NEW_LINE>Map<String, Object> map = new HashMap<String, Object>();<NEW_LINE>try {<NEW_LINE>Configuration[] configs = configAdmin.listConfigurations("(" + Constants.<MASK><NEW_LINE>if (configs != null && configs.length != 0) {<NEW_LINE>Configuratio...
SERVICE_PID + "=" + pid + ")");
837,903
private boolean execNotifyApplicationReady(CallbackContext callbackContext) {<NEW_LINE>if (this.codePushPackageManager.isBinaryFirstRun()) {<NEW_LINE>// Report first run of a binary version app<NEW_LINE>this.codePushPackageManager.saveBinaryFirstRunFlag();<NEW_LINE>try {<NEW_LINE>String appVersion = Utilities.getAppVer...
getAndClearFailedReport(), this.mainWebView);
322,208
public void unlock(Object lockName, Locker locker) {<NEW_LINE>synchronized (lockTable) {<NEW_LINE>Object <MASK><NEW_LINE>if (o == null || o == locker) {<NEW_LINE>// ----------------------------------------------------------<NEW_LINE>// Fastpath: no conflicts, the given locker was only holder,<NEW_LINE>// nothing to do....
o = lockTable.remove(lockName);
1,327,903
public boolean safePowerOff(int shutdownWaitMs) throws Exception {<NEW_LINE>if (getResetSafePowerState() == VirtualMachinePowerState.POWERED_OFF)<NEW_LINE>return true;<NEW_LINE>if (isVMwareToolsRunning()) {<NEW_LINE>try {<NEW_LINE>String vmName = getName();<NEW_LINE>s_logger.info("Try gracefully shut down VM " + vmName...
long startTick = System.currentTimeMillis();
1,530,801
public boolean contains(Object candidateObject) {<NEW_LINE>if (candidateObject == null) {<NEW_LINE>// System.out.println("NonIntern: Candidate [ " + candidateObject + " ] [ false (null) ]");<NEW_LINE>return false;<NEW_LINE>} else if (!(candidateObject instanceof String)) {<NEW_LINE>// System.out.println("NonIntern: Can...
intern(candidateString, Util_InternMap.DO_NOT_FORCE);
81,904
public Request decodeRequest(Object packet) throws Exception {<NEW_LINE>Request request = new RpcRequest();<NEW_LINE>DubboPacket dubboPacket = (DubboPacket) packet;<NEW_LINE>request.setCorrelationId(dubboPacket.getHeader().getCorrelationId());<NEW_LINE>// check if it is heartbeat request<NEW_LINE>byte flag = dubboPacke...
), entry.getValue());
752,331
public static int createTopicIfNotExists(String topic, short replicationFactor, double partitionToBrokerRatio, int minPartitionNum, Properties topicConfig, AdminClient adminClient) throws ExecutionException, InterruptedException {<NEW_LINE>try {<NEW_LINE>if (adminClient.listTopics().names().get().contains(topic)) {<NEW...
"CreateTopicsResult: {}.", result.values());
1,125,627
protected static float A_safe(int x, int y, GrayF32 flow) {<NEW_LINE>float u0 = safe(x - 1, y, flow);<NEW_LINE>float u1 = safe(<MASK><NEW_LINE>float u2 = safe(x, y - 1, flow);<NEW_LINE>float u3 = safe(x, y + 1, flow);<NEW_LINE>float u4 = safe(x - 1, y - 1, flow);<NEW_LINE>float u5 = safe(x + 1, y - 1, flow);<NEW_LINE>f...
x + 1, y, flow);
1,853,072
public static String parseTranslation(final String adLanguage, final String text) {<NEW_LINE>if (text == null || text.length() == 0) {<NEW_LINE>return text;<NEW_LINE>}<NEW_LINE>String inStr = text;<NEW_LINE>String token;<NEW_LINE>final StringBuilder outStr = new StringBuilder();<NEW_LINE>int i = inStr.indexOf('@');<NEW...
(translate(adLanguage, token));
974,985
private void validateLayouts() {<NEW_LINE>new Thread(() -> {<NEW_LINE>int n = 0;<NEW_LINE>int total = layouts.size() * 4;<NEW_LINE>int[] results = new int[3];<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>for (Layout layout : layouts) {<NEW_LINE>validateLayout(layout, OPTIMIZATION_STANDARD);<NEW_LINE>if (s...
getModel()).updateResults();
516,965
private static Element toXML(RelationTriple triple, String curNS) {<NEW_LINE>Element top = new Element("triple", curNS);<NEW_LINE>top.addAttribute(new Attribute("confidence", triple.confidenceGloss()));<NEW_LINE>// Create the subject<NEW_LINE>Element subject = new Element("subject", curNS);<NEW_LINE>subject.addAttribut...
objectTokenSpan().first)));
747,600
public void visit(BLangConstant constant, AnalyzerData data) {<NEW_LINE>if (constant.typeNode != null && !types.isAllowedConstantType(constant.typeNode.getBType())) {<NEW_LINE>if (types.isAssignable(constant.typeNode.getBType(), symTable.anydataType) && !types.isNeverTypeOrStructureTypeWithARequiredNeverMember(constant...
annotationAttachment.accept(this, data);
574,719
private ResultImplementation<String> filterGroupIds(final String prefix, final ResultImpl<String> result, final List<RepositoryInfo> repos, final boolean skipUnIndexed) {<NEW_LINE>final Set<String> groups = new TreeSet<String>(result.getResults());<NEW_LINE>final List<RepositoryInfo> slowCheck = new ArrayList<Repositor...
> all = context.getAllGroups();
1,395,622
// Search Jobs using custom rankings.<NEW_LINE>public static void searchCustomRankingJobs(String projectId, String tenantId) throws IOException {<NEW_LINE>// Initialize client that will be used to send requests. This client only needs to be created<NEW_LINE>// once, and can be reused for multiple requests. After comple...
"Job name: %s%n", job.getName());
642,729
public void receive(DatagramSocket localSocket, T packet) {<NEW_LINE>final InetSocketAddress remoteSocketAddress = (InetSocketAddress) packet.getSocketAddress();<NEW_LINE>final InetAddress remoteAddress = remoteSocketAddress.getAddress();<NEW_LINE>if (isIgnoreAddress(remoteAddress)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LI...
, PacketUtils.dumpDatagramPacket(packet));
804,448
private Request.Builder prepareRequest() {<NEW_LINE>final Request.Builder builder = new Request.Builder();<NEW_LINE>// Uri<NEW_LINE>final String finalUri = uriBase <MASK><NEW_LINE>final HttpUrl.Builder urlBuilder = Objects.requireNonNull(HttpUrl.parse(finalUri)).newBuilder();<NEW_LINE>if (!uriParams.isEmpty()) {<NEW_LI...
== null ? uri : uriBase + uri;
1,704,523
public static GetLindormInstanceResponse unmarshall(GetLindormInstanceResponse getLindormInstanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>getLindormInstanceResponse.setRequestId(_ctx.stringValue("GetLindormInstanceResponse.RequestId"));<NEW_LINE>getLindormInstanceResponse.setVpcId(_ctx.stringValue("GetLindormInst...
(_ctx.stringValue("GetLindormInstanceResponse.ExpireTime"));
1,265,499
public ProvisionedBandwidth unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ProvisionedBandwidth provisionedBandwidth = new ProvisionedBandwidth();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_...
XMLEvent xmlEvent = context.nextEvent();
488,847
protected void isMarked(String[] args, Context context, PrintStream out) throws DDRInteractiveCommandException {<NEW_LINE>try {<NEW_LINE>long address = CommandUtils.parsePointer(args[1], J9BuildFlags.env_data64);<NEW_LINE>J9ObjectPointer object = J9ObjectPointer.cast(address);<NEW_LINE>MarkedObject result = markMap.que...
result.relocatedObject.getHexAddress());
7,491
private boolean readLog(ServerConfiguration conf, ReadLogFlags flags) throws Exception {<NEW_LINE>long logId = flags.entryLogId;<NEW_LINE>if (logId == -1 && flags.filename != null) {<NEW_LINE>File f = new File(flags.filename);<NEW_LINE><MASK><NEW_LINE>if (!name.endsWith(".log")) {<NEW_LINE>LOG.error("Invalid entry log ...
String name = f.getName();
55,064
final double calculateRMin(double lat, double lon, int paddingTiles) {<NEW_LINE>int x = indexStructureInfo.getKeyAlgo().x(lon);<NEW_LINE>int y = indexStructureInfo.<MASK><NEW_LINE>double minLat = graph.getBounds().minLat + (y - paddingTiles) * indexStructureInfo.getDeltaLat();<NEW_LINE>double maxLat = graph.getBounds()...
getKeyAlgo().y(lat);
469,158
public ContextIDValue createContextIDValue(ContextID contextID) throws CSErrorException {<NEW_LINE>logger.info("Start to createContextIDValue of ContextID({}) ", contextID.getContextId());<NEW_LINE>if (contextMapPersistence == null) {<NEW_LINE>throw new CSErrorException(97001, "Failed to get proxy of contextMapPersiste...
logger.error("Failed to register listener: ", e);
1,722,093
void doCommand() throws Exception {<NEW_LINE>final LocalDB localDB = this.cliEnvironment.getLocalDB();<NEW_LINE>final LocalDBStoredQueue logQueue = LocalDBStoredQueue.createLocalDBStoredQueue(null, localDB, LocalDB.DB.EVENTLOG_EVENTS);<NEW_LINE>if (logQueue.isEmpty()) {<NEW_LINE>out("no logs present");<NEW_LINE>return;...
logEvent = PwmLogEvent.fromEncodedString(loopString);
1,664,091
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2,c3,c4,c5".split(",");<NEW_LINE>SupportEvalBuilder builder = new SupportEvalBuilder("SupportBean_ST0_Container");<NEW_LINE>builder.expression(fields[0], "contained.firstOf(x => p00 = 9)");<NEW_LINE>builder.expression(fields[1], "contained....
(fields[4], "contained.firstOf( (x, i, s) => p00 = 9 and i >= 1 and s > 2)");
53,406
public void onReceiveUnlock(Context context, Intent intent) {<NEW_LINE>Log.i(TAG, String.format("%s#onReceive(%s)", getClass().getSimpleName(), intent.getAction()));<NEW_LINE>long scheduledTime = getNextScheduledExecutionTime(context);<NEW_LINE>AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context...
scheduledTime = onAlarm(context, scheduledTime);
196,934
public Map<K, ValueHolder<V>> bulkComputeIfAbsent(Set<? extends K> keys, final Function<Iterable<? extends K>, Iterable<? extends Map.Entry<? extends K, ? extends V>>> mappingFunction) throws StoreAccessException {<NEW_LINE>Map<K, ValueHolder<V>> result = new HashMap<>(keys.size());<NEW_LINE>for (K key : keys) {<NEW_LI...
> result1 = iterator.next();
311,140
public void loadData() {<NEW_LINE>if (!isAdded()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mService = PublicizeTable.getService(mServiceId);<NEW_LINE>if (mService == null) {<NEW_LINE>ToastUtils.showToast(getActivity(<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>setTitle(mService.getLabel());<NEW_LINE>// disable the ability...
), R.string.error_generic);
1,580,170
public Uni<SecurityIdentity> attemptAuthentication(RoutingContext routingContext) {<NEW_LINE>String pathSpecificMechanism = pathMatchingPolicy.isResolvable() ? pathMatchingPolicy.get().getAuthMechanismName(routingContext) : null;<NEW_LINE>Uni<HttpAuthenticationMechanism> <MASK><NEW_LINE>if (matchingMechUni == null) {<N...
matchingMechUni = findBestCandidateMechanism(routingContext, pathSpecificMechanism);
1,410,840
private void searchForIdsWithAndOr(SearchQueryBuilder theSearchSqlBuilder, QueryStack theQueryStack, @Nonnull SearchParameterMap theParams, RequestDetails theRequest) {<NEW_LINE>myParams = theParams;<NEW_LINE>// Remove any empty parameters<NEW_LINE>theParams.clean();<NEW_LINE>// For DSTU3, pull out near-distance first ...
paramNames.add(Constants.PARAM_TAG);
1,107,784
/*<NEW_LINE>* Skill Stat Calculations<NEW_LINE>*/<NEW_LINE>public static String[] calculateLengthDisplayValues(Player player, float skillValue, PrimarySkillType skill) {<NEW_LINE>int maxLength = mcMMO.p.getSkillTools().getSuperAbilityMaxLength(mcMMO.p.getSkillTools().getSuperAbility(skill));<NEW_LINE>int abilityLengthV...
(int) (skillValue / abilityLengthVar);
1,514,187
public Void visitMemberDeclaration(final MemberDeclarationContext ctx) {<NEW_LINE>ClassNode classNode = ctx.getNodeMetaData(CLASS_DECLARATION_CLASS_NODE);<NEW_LINE>Objects.requireNonNull(classNode, "classNode should not be null");<NEW_LINE>if (asBoolean(ctx.methodDeclaration())) {<NEW_LINE>ctx.methodDeclaration().putNo...
).putNodeMetaData(CLASS_DECLARATION_CLASS_NODE, classNode);
1,179,572
final RetryDataReplicationResult executeRetryDataReplication(RetryDataReplicationRequest retryDataReplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(retryDataReplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
712,150
public void onCreate(Bundle icicle) {<NEW_LINE>super.onCreate(icicle);<NEW_LINE>setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);<NEW_LINE>Window window = getWindow();<NEW_LINE>window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);<NEW_LINE>setContentView(RhoExtManager.getResourceId("layout"...
D(LOGTAG, "Intent Camera index: " + camera_index);
318,497
public void visit(BLangPackage pkgNode) {<NEW_LINE>if (pkgNode.completedPhases.contains(CompilerPhase.COMPILER_PLUGIN)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (CompilerPlugin compilerPlugin : pluginList) {<NEW_LINE>executePluginSafely(pkgNode, compilerPlugin, <MASK><NEW_LINE>}<NEW_LINE>for (CompilerPlugin compilerP...
pkgNode.packageID, compilerPlugin::pluginExecutionStarted);
884,122
public void update2(final VariantContext eval, final VariantContext comp, final VariantEvalContext context) {<NEW_LINE>if (eval == null || (getEngine().getVariantEvalArgs().ignoreAC0Sites() && eval.isMonomorphicInSamples()))<NEW_LINE>return;<NEW_LINE>final Type type = getType(eval);<NEW_LINE>if (type == null)<NEW_LINE>...
allVariantCounts.inc(type, ALL);
297,942
final DeleteHsmResult executeDeleteHsm(DeleteHsmRequest deleteHsmRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteHsmRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
458,092
synchronized void issue(LeasePermitHandler leasePermitHandler) {<NEW_LINE>if (this.isDisposed) {<NEW_LINE>leasePermitHandler.handlePermitError(this.t);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int availableRequests = this.availableRequests;<NEW_LINE>final Lease l = this.currentLease;<NEW_LINE>final boolean leaseRecei...
Throwable t = new MissingLeaseException(message);
467,629
private void handleStart(Intent intent) {<NEW_LINE>NotificationManager notificationManager = (NotificationManager) this.getApplicationContext().getSystemService(NOTIFICATION_SERVICE);<NEW_LINE>int id = intent.getIntExtra(ConstantStrings.SESSION, 0);<NEW_LINE>String session_date;<NEW_LINE>Session session = realmRepo.get...
.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION));
1,587,780
protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) {<NEW_LINE>boolean calculate = !(tabPlacement == TOP || tabPlacement == BOTTOM);<NEW_LINE>// HTML<NEW_LINE>if (getTextViewForTab(tabIndex) != null)<NEW_LINE>calculat...
title.substring(pos + 1);
585,792
@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>public JSONArray initNetwork(@FormDataParam(CoordConsts.SVC_KEY_API_KEY) String apiKey, @FormDataParam(CoordConsts.SVC_KEY_VERSION) String clientVersion, @FormDataParam(CoordConsts.SVC_KEY_NETWORK_NAME) String networkName, @FormDataParam(CoordConsts.SVC_KEY_NETWORK_PREFIX)...
).authorizeContainer(apiKey, outputNetworkName);
685,082
public void savePreset(PreviewPreset preset) {<NEW_LINE>int exist = -1;<NEW_LINE>for (int i = 0; i < presets.size(); i++) {<NEW_LINE>PreviewPreset p = presets.get(i);<NEW_LINE>if (p.getName().equals(preset.getName())) {<NEW_LINE>exist = i;<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (exist == -1) {<NEW_LINE>addPr...
setOutputProperty(OutputKeys.ENCODING, "UTF-8");
300,165
public boolean solvePositionConstraints(SolverData data) {<NEW_LINE>Vec2 cA = data.positions[m_indexA].c;<NEW_LINE>float aA = data.positions[m_indexA].a;<NEW_LINE>Vec2 cB = data.positions[m_indexB].c;<NEW_LINE>float aB = data.positions[m_indexB].a;<NEW_LINE>final Rotation qA = pool.popRot();<NEW_LINE>final Rotation qB ...
abs(C) <= JBoxSettings.linearSlop;
1,598,237
public void addAll(List<SourceSpan> other) {<NEW_LINE>if (other.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (sourceSpans == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (sourceSpans.isEmpty()) {<NEW_LINE>sourceSpans.addAll(other);<NEW_LINE>} else {<NEW_LINE>int lastIndex = sourceSpans.size() - 1;<NEW_LINE>So...
sourceSpans = new ArrayList<>();
960,356
private Map<String, DependencyInfo> parseDepsFiles() throws IOException {<NEW_LINE>DepsFileRegexParser depsParser = createDepsFileParser();<NEW_LINE>Map<String, DependencyInfo> <MASK><NEW_LINE>for (SourceFile file : deps) {<NEW_LINE>if (!shouldSkipDepsFile(file)) {<NEW_LINE>List<DependencyInfo> depInfos = depsParser.pa...
depsFiles = new LinkedHashMap<>();
1,284,701
public void mergeWithRight(MeasureStack rightStack) {<NEW_LINE>// Merge the measures, part by part<NEW_LINE>for (int ip = 0; ip < rightStack.measures.size(); ip++) {<NEW_LINE>measures.get(ip).mergeWithRight(rightStack.measures.get(ip));<NEW_LINE>}<NEW_LINE>// Merge the stacks data<NEW_LINE>right = rightStack.right;<NEW...
slots.addAll(rightStack.slots);
576,755
public // ---------//<NEW_LINE>void process(SIGraph sig) {<NEW_LINE>final Sheet sheet = sig.getSystem().getSheet();<NEW_LINE>final int bracketGrowth = 2 * sheet.getInterline();<NEW_LINE>// Use a COPY of vertices, to reduce risks of concurrent modifications (but not all...)<NEW_LINE>Set<Inter> copy = new LinkedHashSet<>...
Rectangle bounds = inter.getBounds();
106,775
private boolean doFlow() {<NEW_LINE>int pushToken = getNextPushToken();<NEW_LINE>List<FlowAction> actions = new ArrayList<>();<NEW_LINE>for (int i = 0; i < Math.min(maxFlowsPerTick, getConduits().size()); i++) {<NEW_LINE>if (lastFlowIndex >= getConduits().size()) {<NEW_LINE>lastFlowIndex = 0;<NEW_LINE>}<NEW_LINE>flowFr...
toEmpty = new ArrayList<>();
775,953
public final EscapableStrContext escapableStr() throws RecognitionException {<NEW_LINE>EscapableStrContext _localctx = new EscapableStrContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 478, RULE_escapableStr);<NEW_LINE>try {<NEW_LINE>setState(3120);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(_input.LA(1)) ...
_errHandler.recover(this, re);
1,712,900
protected void createControlsBefore(Composite group) {<NEW_LINE>copyHeaderCheck = UIUtils.createCheckbox(group, "Copy header", null, <MASK><NEW_LINE>copyRowsCheck = UIUtils.createCheckbox(group, "Copy row numbers", null, copySettings.isCopyRowNumbers(), 2);<NEW_LINE>quoteCellsCheck = UIUtils.createCheckbox(group, "Quot...
copySettings.isCopyHeader(), 2);
1,604,308
public void applyGcodeParser(GcodeParser parser) throws Exception {<NEW_LINE>logger.log(Level.INFO, "Applying new parser filters.");<NEW_LINE>if (this.processedGcodeFile == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File settingsDir = SettingsFactory.getSettingsDirectory();<NEW_LINE>File applyDir = new File(settingsD...
processedGcodeFile.getName() + ".apply.gcode");
705,415
final GetBucketStatisticsResult executeGetBucketStatistics(GetBucketStatisticsRequest getBucketStatisticsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBucketStatisticsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
invoke(request, responseHandler, executionContext);
107,092
public boolean unplugNic(final Network network, final NicTO nic, final VirtualMachineTO vm, final ReservationContext context, final DeployDestination dest) throws ConcurrentOperationException, ResourceUnavailableException {<NEW_LINE>boolean result = true;<NEW_LINE>final VMInstanceVO router = _vmDao.findById(vm.getId())...
s_logger.warn("Unable to unplug nic from router " + router);
28,700
private RemotingCommand processReplyMessageRequest(final ChannelHandlerContext ctx, final RemotingCommand request, final SendMessageContext sendMessageContext, final SendMessageRequestHeader requestHeader) {<NEW_LINE>final RemotingCommand response = RemotingCommand.createResponseCommand(SendMessageResponseHeader.class)...
setStoreHost(this.getStoreHost());
597,219
public ModelAndView authsave(HttpServletRequest request, @Valid String id, @Valid String menus) {<NEW_LINE>Organ organData = organRepository.findByIdAndOrgi(<MASK><NEW_LINE>List<OrganRole> organRoleList = organRoleRes.findByOrgiAndOrgan(super.getOrgi(), organData);<NEW_LINE>organRoleRes.delete(organRoleList);<NEW_LINE>...
id, super.getOrgi());
268,290
public static DeleteUserResponse unmarshall(DeleteUserResponse deleteUserResponse, UnmarshallerContext _ctx) {<NEW_LINE>deleteUserResponse.setRequestId(_ctx.stringValue("DeleteUserResponse.RequestId"));<NEW_LINE>deleteUserResponse.setCode(_ctx.stringValue("DeleteUserResponse.Code"));<NEW_LINE>deleteUserResponse.setData...
(_ctx.stringValue("DeleteUserResponse.Message"));
1,438,611
public SDVariable defineLayer(SameDiff sd, SDVariable layerInput, Map<String, SDVariable> paramTable, SDVariable mask) {<NEW_LINE>SDVariable weights = paramTable.get(DefaultParamInitializer.WEIGHT_KEY);<NEW_LINE>SDVariable logits = sd.tensorMmul(layerInput, weights, new int[] { 2 }, new int[] { 0 });<NEW_LINE>SDVariabl...
sd.sum(weightedInput, 2);
595,044
private void createTextDrawInfo(final BinaryMapDataObject o, RenderingRuleSearchRequest render, RenderingContext rc, TagValuePair pair, final float xMid, float yMid, Path path, final PointF[] points, String name, String tagName) {<NEW_LINE>render.setInitialTagValueZoom(pair.tag, pair.value, rc.zoom, o);<NEW_LINE>render...
bounds.height() / 2);
268,941
private RelRoot replaceIsTrue(final RelDataTypeFactory typeFactory, RelRoot root) {<NEW_LINE>final RexShuttle callShuttle = new RexShuttle() {<NEW_LINE><NEW_LINE>RexBuilder builder = new RexBuilder(typeFactory);<NEW_LINE><NEW_LINE>public RexNode visitCall(RexCall call) {<NEW_LINE>call = (RexCall) super.visitCall(call);...
collation, Collections.emptyList());
528,319
public final Object invoke(Object proxy, Method method, Object[] args) throws Throwable {<NEW_LINE>String methodName = method.getName();<NEW_LINE>Class<?>[] parameterTypes = method.getParameterTypes();<NEW_LINE>boolean sslEngineVariant = (parameterTypes.length > 0) && SSLEngine.class.equals(parameterTypes[parameterType...
(SSLEngine) args[2]);
1,116,032
// Loads properties from the specified resource. The properties are of<NEW_LINE>// the form <code>key=value</code>, one property per line.<NEW_LINE>@CallerSensitive<NEW_LINE>public static Hashtable loadMessages(String resourceName) throws IOException {<NEW_LINE>InputStream resourceStream;<NEW_LINE>String language, regi...
loader.getResourceAsStream(resourceName + ".properties");
239,559
public void push(Yaml.Block block) {<NEW_LINE>if (key == null && block instanceof Yaml.Scalar) {<NEW_LINE>key = (Yaml.Scalar) block;<NEW_LINE>} else {<NEW_LINE>String keySuffix = block.getPrefix();<NEW_LINE>block = block.withPrefix(keySuffix.substring(commentAwareIndexOf(':', keySuffix) + 1));<NEW_LINE>// Begin moving ...
entryPrefix = originalKeyPrefix.substring(entryPrefixStartIndex);
1,659,233
private Document updateOrCreateIndexNonSuperColumnFamily(EntityMetadata metadata, final MetamodelImpl metaModel, Object entity, String parentId, Class<?> clazz, boolean isUpdate, boolean isEmbeddedId, Object rowKey) {<NEW_LINE>Document document = new Document();<NEW_LINE>// Add entity class, PK info into document<NEW_L...
getIdAttribute().getBindableJavaType());
1,685,281
public com.amazonaws.services.polly.model.MarksNotSupportedForFormatException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.polly.model.MarksNotSupportedForFormatException marksNotSupportedForFormatException = new com.amazonaws.services.polly.model.MarksNotSup...
String currentParentElement = context.getCurrentParentElement();
757,473
public void plot(Staff staff) {<NEW_LINE>final <MASK><NEW_LINE>final String frameTitle = sheet.getId() + " header staff#" + staff.getId();<NEW_LINE>final ChartPlotter plotter = new ChartPlotter(frameTitle, "Abscissae - staff interline:" + staff.getSpecificInterline(), "Counts");<NEW_LINE>// Draw time sig portion<NEW_LI...
Sheet sheet = system.getSheet();
1,364,370
public OperationResult executeCommand(long index, long sequence, long timestamp, RaftSession session, PrimitiveOperation operation) {<NEW_LINE>// If the service has been deleted then throw an unknown service exception.<NEW_LINE>if (deleted) {<NEW_LINE><MASK><NEW_LINE>throw new RaftException.UnknownService("Service " + ...
log.warn("Service {} has been deleted by another process", serviceName);
1,702,595
public void marshall(CreateOpsItemRequest createOpsItemRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createOpsItemRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createOpsItemRequest.get...
e.getMessage(), e);
1,816,053
public StatisticsTaskResult call() throws Exception {<NEW_LINE>checkStatisticsDesc();<NEW_LINE>List<TaskResult<MASK><NEW_LINE>for (StatisticsDesc statsDesc : statsDescs) {<NEW_LINE>StatsCategory category = statsDesc.getStatsCategory();<NEW_LINE>StatsGranularity granularity = statsDesc.getStatsGranularity();<NEW_LINE>Ta...
> taskResults = Lists.newArrayList();
1,223,942
private static void download(String url, File saveTo, Runnable onFinish) throws Exception {<NEW_LINE>BCV.log("Downloading from: " + url);<NEW_LINE>BytecodeViewer.showMessage("Downloading the jar in the background, when it's finished you will be alerted with another message box." + nl + nl + "Expect this to take several...
"Download successful! You can find the updated program at " + saveTo.getAbsolutePath());
719,745
private void onAddNext() {<NEW_LINE>if (btnAddNext.isDisabled())<NEW_LINE>return;<NEW_LINE>lblCreationWarning.setText("");<NEW_LINE>String url = txtServerUrl.getText();<NEW_LINE>nextPane.showSpinner();<NEW_LINE>addServerPane.setDisable(true);<NEW_LINE>Task.runAsync(() -> {<NEW_LINE>serverBeingAdded = AuthlibInjectorSer...
setText(serverBeingAdded.getUrl());
1,009,005
static CompletableFuture<byte[]> sendrecv(InetSocketAddress local, InetSocketAddress remote, Message query, byte[] data, Duration timeout) {<NEW_LINE>CompletableFuture<byte[]> f = new CompletableFuture<>();<NEW_LINE>try {<NEW_LINE>final Selector selector = selector();<NEW_LINE>long endTime = System.nanoTime() + timeout...
channel.pendingTransactions.add(t);
929,513
public SubmissionCCLicenseUrlRest findByRightsByQuestions() {<NEW_LINE>ServletRequest servletRequest = requestService.getCurrentRequest().getServletRequest();<NEW_LINE>Map<String, String[]> requestParameterMap = servletRequest.getParameterMap();<NEW_LINE>Map<String, String> parameterMap = new HashMap<>();<NEW_LINE>Stri...
parameterMap.put(field, answer);
1,465,772
private String substBindings(String query, BindingSet bindings) {<NEW_LINE>StringBuffer buf = new StringBuffer();<NEW_LINE>String delim = " ,)(;.";<NEW_LINE>int i = 0;<NEW_LINE>char ch;<NEW_LINE>int qlen = query.length();<NEW_LINE>while (i < qlen) {<NEW_LINE>ch <MASK><NEW_LINE>if (ch == '\\') {<NEW_LINE>buf.append(ch);...
= query.charAt(i++);
608,218
public void displayErrorMessage() {<NEW_LINE>if (error == null)<NEW_LINE>return;<NEW_LINE>if (errorAnnotation == null)<NEW_LINE>errorAnnotation = new org.openide.text.Annotation() {<NEW_LINE><NEW_LINE>public String getAnnotationType() {<NEW_LINE>// NOI18N<NEW_LINE>return "xml-j2ee-annotation";<NEW_LINE>}<NEW_LINE><NEW_...
getMessage(XMLJ2eeDataObject.class, "HINT_XMLErrorDescription");
1,355,489
public static void drawNumbers(Graphics2D g2, List<PointIndex2D_F64> points, @Nullable Point2Transform2_F32 transform, double scale) {<NEW_LINE>Font regular = new Font("Serif", Font.PLAIN, 16);<NEW_LINE>g2.setFont(regular);<NEW_LINE>Point2D_F32 adj = new Point2D_F32();<NEW_LINE>AffineTransform origTran = g2.getTransfor...
g2.setColor(Color.GREEN);
1,031,498
public static com.hazelcast.cache.impl.CacheEventDataImpl decode(ClientMessage.ForwardFrameIterator iterator) {<NEW_LINE>// begin frame<NEW_LINE>iterator.next();<NEW_LINE>ClientMessage.Frame initialFrame = iterator.next();<NEW_LINE>int cacheEventType = decodeInt(initialFrame.content, CACHE_EVENT_TYPE_FIELD_OFFSET);<NEW...
decodeBoolean(initialFrame.content, OLD_VALUE_AVAILABLE_FIELD_OFFSET);
1,484,311
public ConfigHolder<T> call() {<NEW_LINE>if (!started) {<NEW_LINE>watchedConfigs.put(key, new ConfigHolder<T>(null, serde));<NEW_LINE>} else {<NEW_LINE>try {<NEW_LINE>// Multiple of these callables can be submitted at the same time, but the callables themselves<NEW_LINE>// are executed serially, so double check that it...
watchedConfigs.put(key, holder);
912,993
default Duration computeDelay(ExecutionContext<R> context) {<NEW_LINE>DelayablePolicyConfig<R> config = getConfig();<NEW_LINE>Duration computed = null;<NEW_LINE>if (context != null && config.getDelayFn() != null) {<NEW_LINE><MASK><NEW_LINE>Throwable exception = context.getLastException();<NEW_LINE>R delayResult = confi...
R result = context.getLastResult();
1,198,302
final GetRestApisResult executeGetRestApis(GetRestApisRequest getRestApisRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRestApisRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,536,239
public void run() {<NEW_LINE>for (int loop = 1; loop < 3; loop++) {<NEW_LINE>try {<NEW_LINE>event = Integer.valueOf(loop);<NEW_LINE>// Add event to the buffer.<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "Adding event: " + event, this);<NEW_LINE>}<NEW_LINE>bufferMgr...
Tr.audit(tc, "This is an audit message");
1,009,684
private CommandSpec buildCommand(boolean reuseExisting, Element element, final Context context, final RoundEnvironment roundEnv) {<NEW_LINE>debugElement(element, "@Command");<NEW_LINE>CommandSpec result = null;<NEW_LINE>if (reuseExisting) {<NEW_LINE>// #1440 subcommands should create separate instances<NEW_LINE>result ...
processEnclosedElements(context, roundEnv, enclosedElements);
1,705,863
public void sendJson(HttpServletRequest req, HttpServletResponse resp) {<NEW_LINE>HollowHistoricalState historicalState = ui.getHistory().getHistoricalState(Long.parseLong(<MASK><NEW_LINE>List<HistoryStateTypeChangeSummary> typeChanges = new ArrayList<HistoryStateTypeChangeSummary>();<NEW_LINE>for (Map.Entry<String, Ho...
req.getParameter("version")));
1,198,255
public void mediate() {<NEW_LINE>while (!Thread.currentThread().isInterrupted()) {<NEW_LINE>ZMQ.Poller items = ctx.createPoller(1);<NEW_LINE>items.register(socket, ZMQ.Poller.POLLIN);<NEW_LINE>if (items.poll(HEARTBEAT_INTERVAL) == -1)<NEW_LINE>// Interrupted<NEW_LINE>break;<NEW_LINE>if (items.pollin(0)) {<NEW_LINE>ZMsg...
msg = ZMsg.recvMsg(socket);
217,701
public void addLine(String line) {<NEW_LINE>if (styled_text.isDisposed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>line = HTMLUtils.expand(line);<NEW_LINE>Object[] url_details = HTMLUtils.getLinks(line);<NEW_LINE>String modified_line = (String) url_details[0];<NEW_LINE>styled_text.append(modified_line + "\...
= (List) url_details[1];
40,673
public Symlinks asSymlinks() {<NEW_LINE>return new SymlinkPack(ImmutableList.<Symlinks>builder().addAll(getModules().values().stream().map(PythonComponents::asSymlinks).collect(ImmutableList.toImmutableList())).addAll(getResources().values().stream().map(PythonComponents::asSymlinks).collect(ImmutableList.toImmutableLi...
(nsp.getSourcePath()));
1,038,675
// ------------------ Serialization<NEW_LINE>public Slime toSlime(Application application) {<NEW_LINE>Slime slime = new Slime();<NEW_LINE>Cursor root = slime.setObject();<NEW_LINE>root.setString(idField, application.id().serialized());<NEW_LINE>root.setLong(createdAtField, application.createdAt().toEpochMilli());<NEW_L...
, jiraIssueId.value()));
100,103
protected WebRtcServiceState handleOutgoingCall(@NonNull WebRtcServiceState currentState, @NonNull RemotePeer remotePeer, @NonNull OfferMessage.Type offerType) {<NEW_LINE>Log.i(TAG, "handleOutgoingCall():");<NEW_LINE>GroupCall groupCall = currentState.getCallInfoState().requireGroupCall();<NEW_LINE>currentState = WebRt...
getVideoState().requireCamera());
1,849,841
public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>supportingFiles.add(new SupportingFile("ApiException.mustache", toSrcPath(invokerPackage, srcBasePath), "ApiException.php"));<NEW_LINE>supportingFiles.add(new SupportingFile("Configuration.mustache", toSrcPath(invokerPackage, srcBasePath), "Configuratio...
invokerPackage, srcBasePath), "HeaderSelector.php"));
1,297,826
protected WebRtcServiceState handleGroupJoinedMembershipChanged(@NonNull WebRtcServiceState currentState) {<NEW_LINE>Log.i(tag, "handleGroupJoinedMembershipChanged():");<NEW_LINE>GroupCall groupCall = currentState.getCallInfoState().requireGroupCall();<NEW_LINE>PeekInfo peekInfo = groupCall.getPeekInfo();<NEW_LINE>if (...
sentJoinedMessage(true).build();
1,180,290
private static <U1 extends Comparable<? super U1>, U2 extends Comparable<? super U2>, U3 extends Comparable<? super U3>> int compareTo(Tuple3<?, ?, ?> o1, Tuple3<?, ?, ?> o2) {<NEW_LINE>final Tuple3<U1, U2, U3> t1 = (Tuple3<U1, U2, U3>) o1;<NEW_LINE>final Tuple3<U1, U2, U3> t2 = (Tuple3<U1, U2, U3>) o2;<NEW_LINE>final ...
_3.compareTo(t2._3);
474,758
public void submitMethodEntryBreakpoint(DebuggerCommand debuggerCommand) {<NEW_LINE>// method entry breakpoints are limited per class, so we must<NEW_LINE>// install a first line breakpoint into each method in the class<NEW_LINE>KlassRef[] klasses = debuggerCommand.getRequestFilter().getKlassRefPatterns();<NEW_LINE>Lis...
lineIs(line).build();
1,186,858
public void confirmOfflinePayment(Event event, String reservationId, String username) {<NEW_LINE>TicketReservation ticketReservation = findById(reservationId).orElseThrow(IllegalArgumentException::new);<NEW_LINE>ticketReservationRepository.lockReservationForUpdate(reservationId);<NEW_LINE>Validate.isTrue(ticketReservat...
event, reservationId, PaymentProxy.OFFLINE);
753,965
private void testClassLevelPermitAll(final String baseUri) throws Exception {<NEW_LINE>LOG.entering(clz, "entered testClassLevelPermitAll");<NEW_LINE>String url = baseUri + "/ClassPermitAll";<NEW_LINE>// create the resource instance to interact with<NEW_LINE>LOG.info("testClassLevelPermitAll about to invoke the resourc...
ClientBuilder cb = ClientBuilder.newBuilder();
1,745,990
public void codeSuccess(final MessageFrame frame, final OperationTracer operationTracer) {<NEW_LINE>final Bytes contractCode = frame.getOutputData();<NEW_LINE>final Gas depositFee = gasCalculator.codeDepositGasCost(contractCode.size());<NEW_LINE>if (frame.getRemainingGas().compareTo(depositFee) < 0) {<NEW_LINE>LOG.trac...
setState(MessageFrame.State.EXCEPTIONAL_HALT);
276,064
ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> <MASK><NEW_LINE>Business business = new Business(emc);<NEW_LINE>Statement statement = emc.flag(flag, Stateme...
result = new ActionResult<>();
559,252
private Mono<Response<IdentityInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, IdentityInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>retu...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,720,397
public FillPrepareResult prepare(int availableHeight) {<NEW_LINE>FillPrepareResult result = null;<NEW_LINE>JRComponentElement element = fillContext.getComponentElement();<NEW_LINE>if (template == null) {<NEW_LINE>template = new JRTemplateGenericElement(fillContext.getElementOrigin(), fillContext.getDefaultStyleProvider...
(int) (wRatio * realHeight);