idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
345,094
private void sortTransportStopRoutes(List<TransportStopRoute> routes) {<NEW_LINE>Collections.sort(routes, new Comparator<TransportStopRoute>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(TransportStopRoute o1, TransportStopRoute o2) {<NEW_LINE>// int radEqual = 50;<NEW_LINE>// int dist1 = o1.distance / r...
o1.route.getRef());
704,286
static public void loopbackNegativeFeedbackTest1() {<NEW_LINE>CellSink<Double> currentLevel = new CellSink<>(0.0);<NEW_LINE>CellSink<Double> anotherCell = new CellSink<>(1.2345);<NEW_LINE>double thresholdDifference = 0.01;<NEW_LINE>Transaction.runVoid(() -> {<NEW_LINE>CellLoop<Double> feedbackLevel = new CellLoop<>();<...
a - b, currentLevel, feedbackLevel);
1,619,140
public OResultSet executeSimple(OCommandContext ctx) {<NEW_LINE>OInternalResultSet result = new OInternalResultSet();<NEW_LINE>String operation = this.operation.getStringValue();<NEW_LINE>Object key = this.key.execute(new OResultInternal(), ctx);<NEW_LINE>if (key == null) {<NEW_LINE>key <MASK><NEW_LINE>}<NEW_LINE>Objec...
= this.key.getDefaultAlias();
572,328
public void initialiseView() throws Exception {<NEW_LINE>setLayout(new BorderLayout());<NEW_LINE>hierarchyProvider = new HierarchyProviderWrapper();<NEW_LINE>tree = new OWLModelManagerTree<>(getOWLEditorKit(), hierarchyProvider);<NEW_LINE>tree.setCellRenderer(new CountingOWLObjectTreeCellRenderer<>(getOWLEditorKit(), t...
handleMove(child, fromParent, toParent);
995,286
public void scan(int index, GradPair left, GradPair right) {<NEW_LINE>if (numClass == 2 || multiClassMultiTree) {<NEW_LINE>((BinaryGradPair) left).plusBy(gradients[index], hessians[index]);<NEW_LINE>((BinaryGradPair) right).subtractBy(gradients[index], hessians[index]);<NEW_LINE>} else if (!fullHessian) {<NEW_LINE>Mult...
] rightHess = rightMulti.getHess();
771,851
protected boolean onCreateCustomFromTag(XmlPullParser parser, Preference parentPreference, AttributeSet attrs) throws XmlPullParserException {<NEW_LINE>final String tag = parser.getName();<NEW_LINE>if (tag.equals(PreferenceInflater.INTENT_TAG_NAME)) {<NEW_LINE>Intent intent = null;<NEW_LINE>try {<NEW_LINE>intent = pars...
XmlPullParserException ex = new XmlPullParserException("Error parsing preference");
103,175
private void submitForm(boolean fromConfirmAccount) {<NEW_LINE>logDebug("fromConfirmAccount - " + fromConfirmAccount + " email: " + this.emailTemp + "__" + this.passwdTemp);<NEW_LINE>lastEmail = this.emailTemp;<NEW_LINE>lastPassword = this.passwdTemp;<NEW_LINE>imm.hideSoftInputFromWindow(et_user.getWindowToken(), 0);<N...
serversBusyText.setVisibility(View.GONE);
1,404,425
protected void load(Map _map, boolean _verify) throws IOException {<NEW_LINE>map = _map;<NEW_LINE>hash = (byte[]) map.get("hash");<NEW_LINE>sig = (byte[]) map.get("sig");<NEW_LINE>Long l_size = (Long) map.get("size");<NEW_LINE>Map details = (Map) map.get("details");<NEW_LINE>if (details == null || hash == null || sig =...
== null ? null : anon == 1;
90,154
public static SqlShowSlow create(SqlParserPos pos, boolean isFull, boolean isPhysical, SqlNode where, SqlNode orderBy, SqlNode limit) {<NEW_LINE>List<SqlSpecialIdentifier> specialIdentifiers = new LinkedList<>();<NEW_LINE>if (isFull) {<NEW_LINE>specialIdentifiers.add(SqlSpecialIdentifier.FULL);<NEW_LINE>if (null == ord...
specialIdentifiers.add(SqlSpecialIdentifier.PHYSICAL_SLOW);
1,445,963
public static OnsTrendTopicInputTpsResponse unmarshall(OnsTrendTopicInputTpsResponse onsTrendTopicInputTpsResponse, UnmarshallerContext _ctx) {<NEW_LINE>onsTrendTopicInputTpsResponse.setRequestId<MASK><NEW_LINE>onsTrendTopicInputTpsResponse.setHelpUrl(_ctx.stringValue("OnsTrendTopicInputTpsResponse.HelpUrl"));<NEW_LINE...
(_ctx.stringValue("OnsTrendTopicInputTpsResponse.RequestId"));
1,235,063
public void wrapKeyUnwrapKey() {<NEW_LINE>CryptographyClient cryptographyClient = createClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.keys.cryptography.CryptographyClient.wrapKey#KeyWrapAlgorithm-byte<NEW_LINE>byte[] key = new byte[100];<NEW_LINE>new Random(0x1234567L).nextBytes(key);<NEW_LINE>WrapResult wra...
] keyContent = new byte[100];
1,122,447
/*<NEW_LINE>* Low-level API performing the actual compilation<NEW_LINE>*/<NEW_LINE>public void performCompilation() {<NEW_LINE>this.startTime = System.currentTimeMillis();<NEW_LINE>FileSystem environment = getLibraryAccess();<NEW_LINE>try {<NEW_LINE>this.compilerOptions = new CompilerOptions(this.options);<NEW_LINE>th...
.compilerOptions.verbose = this.verbose;
1,436,759
public ResultSet executeQuery(String sql) throws SQLException {<NEW_LINE>try {<NEW_LINE>int id = getNextId(TraceObject.RESULT_SET);<NEW_LINE>if (isDebugEnabled()) {<NEW_LINE>debugCodeAssign("ResultSet", TraceObject.RESULT_SET, id, "executeQuery(" <MASK><NEW_LINE>}<NEW_LINE>synchronized (session) {<NEW_LINE>checkClosed(...
+ quote(sql) + ')');
578,959
public DescribeChannelModeratorResult describeChannelModerator(DescribeChannelModeratorRequest describeChannelModeratorRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeChannelModeratorRequest);<NEW_LINE>AWSRequestMetrics awsReque...
new JsonResponseHandler<DescribeChannelModeratorResult>(unmarshaller);
1,059,207
public void buildSearchResponse(Operation operation, HandlerMethod handlerMethod, OpenAPI openAPI, MethodResourceMapping methodResourceMapping, Class<?> domainType, MethodAttributes methodAttributes, ResourceMetadata resourceMetadata, DataRestRepository dataRestRepository) {<NEW_LINE>MethodParameter methodParameterRetu...
returnType = findSearchReturnType(methodResourceMapping, domainType);
1,217,250
// Adds exportProperty() of the test function name on the prototype object<NEW_LINE>private void exportTestFunctionAsProperty(Node fullyQualifiedFunctionName, Node node) {<NEW_LINE>checkState(fullyQualifiedFunctionName.isGetProp(), fullyQualifiedFunctionName);<NEW_LINE>String testFunctionName = NodeUtil.getPrototypePro...
), fullyQualifiedFunctionName.cloneTree());
1,352,646
private Map<String, ObjectNode> _getMetadataMap(@Nullable final List<?> keys, final String sql) {<NEW_LINE>final Map<String, ObjectNode> result = Maps.newHashMap();<NEW_LINE>if (keys == null || keys.isEmpty()) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>final List<String> paramVariables = keys.stream().map(s -> "?")....
log.error(message, e);
1,814,762
protected void parseURI(String requestURI, HttpServletRequest request, HttpServletResponse response) throws IOException {<NEW_LINE>// Split a task URI without allocating a list and unnecessary strings<NEW_LINE>// Example: /v1/task/async/{taskId}/results/{bufferId}/{token}<NEW_LINE>TaskId taskId = null;<NEW_LINE>Output...
indexOf('/', previousIndex + 1);
863,563
public void resolve(Type t, Type declaredType, Type sigType, SootMethodRef callee, SootMethod container, ChunkedQueue<SootMethod> targets, boolean appOnly) {<NEW_LINE>if (declaredType instanceof ArrayType) {<NEW_LINE>declaredType = RefType.v("java.lang.Object");<NEW_LINE>}<NEW_LINE>if (sigType instanceof ArrayType) {<N...
t = RefType.v("java.lang.Object");
304,779
public Flux<Theme> updateThemePolicies(Application application, Map<String, Policy> themePolicyMap, boolean addPolicyToObject) {<NEW_LINE>Flux<Theme> applicationThemes = themeRepository.getApplicationThemes(application.getId(), READ_THEMES);<NEW_LINE>if (StringUtils.hasLength(application.getEditModeThemeId())) {<NEW_LI...
).flatMapMany(themeRepository::saveAll);
315,105
void initialize() {<NEW_LINE>// Get the config if it's not been injected<NEW_LINE>if (configuration == null) {<NEW_LINE>configuration = locator.getService(MicroprofileConfigConfiguration.class);<NEW_LINE>}<NEW_LINE>// Register an event listener<NEW_LINE>if (events != null) {<NEW_LINE>events.register(this);<NEW_LINE>}<N...
configuration.getConfigSourceConfigurationByType(configClass)));
11,918
private void applyEnabled(MacroOption.EnabledOption enabledOption, String argumentOrigin) {<NEW_LINE>Path imageJarsDirectory = enabledOption.getOption().getOptionDirectory();<NEW_LINE>if (imageJarsDirectory == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BuildConfiguration config = nativeImage.config;<NEW_LINE>enabledO...
forEachPropertyValue(config, "Args", args);
1,622,371
public DruidExpression toDruidExpression(final PlannerContext plannerContext, final RowSignature rowSignature, final RexNode rexNode) {<NEW_LINE>return OperatorConversions.convertCallBuilder(plannerContext, rowSignature, rexNode, inputExpressions -> {<NEW_LINE>final DruidExpression arg = inputExpressions.get(0);<NEW_LI...
Math.pow(10, digits);
686,318
public void configureFromWebApp(WebApp webApp) throws UnableToAdaptException {<NEW_LINE>Map<String, ConfigItem<IFilterConfig>> filterMap = configurator.getConfigItemMap("filter");<NEW_LINE>ConfigItem<IFilterConfig> existedFilter = filterMap.get(CDIWebConstants.CDI_CONVERSATION_FILTER);<NEW_LINE>IFilterConfig filterConf...
setFilterClassName(filterClass.getName());
1,306,610
protected Dialog onCreateDialog(int id) {<NEW_LINE>if (id == DIALOG_ADDSEEDBOX) {<NEW_LINE>// Open dialog to pick one of the supported seedbox providers (or a normal server)<NEW_LINE>String[] seedboxes = new String[SeedboxProvider.activeProviders().length + 2];<NEW_LINE>seedboxes[0] = getString(R.string.pref_addserver_...
getString(R.string.pref_seedbox_xirvikviaqr);
927,425
public DomainResponse newDomainResponse(ResponseView view, EnumSet<DomainDetails> details, DomainJoinVO domain) {<NEW_LINE>DomainResponse domainResponse = new DomainResponse();<NEW_LINE>domainResponse.setDomainName(domain.getName());<NEW_LINE>domainResponse.setId(domain.getUuid());<NEW_LINE>domainResponse.setLevel(doma...
setParentDomainName(domain.getParentName());
1,378,987
void draw(Graphics g) {<NEW_LINE>setBbox(point1, point2, 16);<NEW_LINE>setPowerColor(g, true);<NEW_LINE>// draw collector<NEW_LINE>setVoltageColor(g, volts[1]);<NEW_LINE>drawThickLine(g, coll[0], coll[1]);<NEW_LINE>drawThickLine(g, coll2[0], coll2[1]);<NEW_LINE>drawThickLine(g, coll[0], coll2[0]);<NEW_LINE>// draw emit...
g, base, point1, curcount_b);
674,073
public Observable<ServiceResponse<DeletedSasDefinitionBundle>> deleteSasDefinitionWithServiceResponseAsync(String vaultBaseUrl, String storageAccountName, String sasDefinitionName) {<NEW_LINE>if (vaultBaseUrl == null) {<NEW_LINE>throw new IllegalArgumentException("Parameter vaultBaseUrl is required and cannot be null."...
).join("{vaultBaseUrl}", vaultBaseUrl);
1,461,239
private String[] parseLine(final byte[] line) {<NEW_LINE>if (getWordCount() == 0) {<NEW_LINE>calculateWordCount(line);<NEW_LINE>}<NEW_LINE>final String[] parts <MASK><NEW_LINE>boolean delimiter = true;<NEW_LINE>int index = 0;<NEW_LINE>int start = 0;<NEW_LINE>try {<NEW_LINE>for (int i = 0; i < line.length; i++) {<NEW_LI...
= new String[getWordCount()];
643,216
final GetAssociatedEnclaveCertificateIamRolesResult executeGetAssociatedEnclaveCertificateIamRoles(GetAssociatedEnclaveCertificateIamRolesRequest getAssociatedEnclaveCertificateIamRolesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAssociatedEnclaveCertificateIamRolesRequest);<NEW_LIN...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetAssociatedEnclaveCertificateIamRoles");
1,741,987
private // from Amy William et al: http:// dl.acm.org/citation.cfm?id=1198748<NEW_LINE>boolean lineIntersectsAABB(PVector orig, PVector dir, float w, float h, float d) {<NEW_LINE>float minx = -w / 2;<NEW_LINE>float miny = -h / 2;<NEW_LINE>float minz = -d / 2;<NEW_LINE>float maxx = +w / 2;<NEW_LINE>float maxy = +h / 2;<...
bby - orig.y) * idy;
926,345
private String cloneVMforVvols(VmwareContext context, VmwareHypervisorHost hyperHost, TemplateObjectTO template, VirtualMachineMO vmTemplate, VolumeObjectTO volume, DatacenterMO dcMo, DatastoreMO dsMo) throws Exception {<NEW_LINE>ManagedObjectReference morDatastore = dsMo.getMor();<NEW_LINE><MASK><NEW_LINE>ManagedObjec...
ManagedObjectReference morPool = hyperHost.getHyperHostOwnerResourcePool();
37,181
protected void doAction(Action a, AssemblyParseToken tok, Set<AssemblyParseMachine> results, Deque<AssemblyParseMachine> visited) {<NEW_LINE>try (DbgCtx dc = DBG.start("Action: " + a)) {<NEW_LINE>if (a instanceof ShiftAction) {<NEW_LINE>AssemblyParseMachine m = copy();<NEW_LINE>m.stack.push(((ShiftAction) a).newStateNu...
AssemblyParseMachine n = m.copy();
127,716
public void help(@ConsoleParameter(name = "command", description = "Command to receive help") String iCommand) {<NEW_LINE>if (iCommand == null || iCommand.trim().isEmpty()) {<NEW_LINE>// GENERIC HELP<NEW_LINE>message("\nAVAILABLE COMMANDS:\n");<NEW_LINE>for (Method m : getConsoleMethods().keySet()) {<NEW_LINE>ConsoleCo...
description() + "." + "\r\n\r\nSYNTAX: ");
1,398,725
public Address parseAddress(JsonObject json) {<NEW_LINE>JsonArray results = json.getJsonArray("results");<NEW_LINE>if (results.size() > 0) {<NEW_LINE>JsonObject result = results.getJsonObject(0);<NEW_LINE>Address address = new Address();<NEW_LINE>if (json.containsKey("formatted")) {<NEW_LINE>address.setFormattedAddress...
("country_code").toUpperCase());
1,482,252
public void startDumb() {<NEW_LINE>if (ApplicationManager.getApplication().isHeadlessEnvironment())<NEW_LINE>return;<NEW_LINE>if (!Registry.is("editor.dumb.mode.available"))<NEW_LINE>return;<NEW_LINE>putUserData(BUFFER, null);<NEW_LINE>Rectangle rect = ((JViewport) myEditorComponent.getParent()).getViewRect();<NEW_LINE...
.x, -rect.y);
1,836,475
protected void channelRead0(ChannelHandlerContext ctx, StreamResponse response) throws Exception {<NEW_LINE>final Map<String, String> headers = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);<NEW_LINE>headers.putAll(response.getHeaders());<NEW_LINE>final Map<String, String> wireAttrs = WireAttributeHelper.removeWireAttri...
channel().remoteAddress());
113,491
public void frameworkEvent(FrameworkEvent frameworkEvent) {<NEW_LINE>final String topic = getTopic(frameworkEvent);<NEW_LINE>// Bail quickly if the event is one that should be ignored<NEW_LINE>if (topic == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Event properties<NEW_LINE>Map<String, Object> eventProperties = ne...
put(EventConstants.BUNDLE, bundle);
1,545,162
private static void initializeBuiltinClassSpecialMethodSlots(Python3Core core, PythonBuiltinClass klass) {<NEW_LINE>CompilerAsserts.neverPartOfCompilation();<NEW_LINE>if (klass.specialMethodSlots != null) {<NEW_LINE>// Already initialized<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// First initialize the base class' slots<NE...
klass, slot.getName());
280,582
private static void validateLocationAndFrame(LanguageInfo viewLanguage, Node location, Frame frame) {<NEW_LINE>RootNode rootNode = location.getRootNode();<NEW_LINE>if (rootNode == null) {<NEW_LINE>throw PolyglotEngineException.illegalArgument(String.format("The location '%s' does not have a RootNode.", location));<NEW_...
LanguageInfo nodeLocation = rootNode.getLanguageInfo();
1,486,921
private static Set<String> scanBootstrapClasses() throws Exception {<NEW_LINE>int vmVersion = VMUtil.getVmVersion();<NEW_LINE>Set<String> classes = new LinkedHashSet<>(4096, 1F);<NEW_LINE>if (vmVersion < 9) {<NEW_LINE>Method method = ClassLoader.class.getDeclaredMethod("getBootstrapClassPath");<NEW_LINE>method.setAcces...
Field.class.getDeclaredField("modifiers");
1,343,190
public List<WumpusAction> planShot(Set<Room> possibleWumpus, Set<Room> allowed) {<NEW_LINE>Set<AgentPosition> shootingPositions = new LinkedHashSet<>();<NEW_LINE>for (Room room : possibleWumpus) {<NEW_LINE>int x = room.getX();<NEW_LINE>int y = room.getY();<NEW_LINE>for (int i = 1; i <= kb.getCaveXDimension(); i++) {<NE...
, AgentPosition.Orientation.FACING_SOUTH));
1,838,144
public void deleteFileIfExistsCodeSnippets() {<NEW_LINE>// BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteFileIfExists#String<NEW_LINE>boolean result = client.deleteFileIfExists(fileName);<NEW_LINE>System.out.println("Delete request completed: " + result);<NEW_LINE>// END: com.azure.storage.file....
DataLakePathDeleteOptions().setRequestConditions(requestConditions);
30,663
public boolean visit(SQLCastExpr x) {<NEW_LINE>SqlLiteral functionQualifier = null;<NEW_LINE>SqlNode sqlNode = convertToSqlNode(x.getExpr());<NEW_LINE>SQLDataType dataType = x.getDataType();<NEW_LINE>String typeName = dataType.getName().toUpperCase();<NEW_LINE>if (dataType.nameHashCode64() == FnvHash.Constants.INT) {<N...
SqlParserPos.ZERO, false, functionQualifier);
205,987
public void drawTimeAxis(UGraphic ug) {<NEW_LINE>ug = ug.apply(new UStroke(2.0)).apply(black());<NEW_LINE>final double tickHeight = 5;<NEW_LINE>final ULine line = ULine.vline(tickHeight);<NEW_LINE>final double firstTickPosition = getPosInPixelInternal(getFirstPositiveOrZeroValue().doubleValue());<NEW_LINE>int nb = 0;<N...
nb - 1) * tickIntervalInPixels));
76,688
public final void typeIdentifier() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>PascalAST typeIdentifier_AST = null;<NEW_LINE>switch(LA(1)) {<NEW_LINE>case IDENT:<NEW_LINE>{<NEW_LINE>identifier();<NEW_LINE>astFactory.addASTChild(cur...
astFactory.addASTChild(currentAST, tmp49_AST);
944,166
static PythonAbstractObject doNativeObject(@SuppressWarnings("unused") CExtContext cextContext, Object object, @SuppressWarnings("unused") @Cached IsForeignObjectNode isForeignObjectNode, @Cached ConditionProfile newRefProfile, @Cached ConditionProfile validRefProfile, @Cached ConditionProfile resurrectProfile, @Cached...
resurrectProfile, getRefCntNode, addRefCntNode, attachLLVMTypeNode);
1,305,915
final DescribeModelPackageGroupResult executeDescribeModelPackageGroup(DescribeModelPackageGroupRequest describeModelPackageGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeModelPackageGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
false), new DescribeModelPackageGroupResultJsonUnmarshaller());
694,673
public static BlockPaintedPressurePlate create(@Nonnull IModObject modObject) {<NEW_LINE>BlockPaintedPressurePlate result = new BlockPaintedPressurePlate(modObject);<NEW_LINE>result.init(modObject);<NEW_LINE>MachineRecipeRegistry.instance.registerRecipe(MachineRecipeRegistry.PAINTER, new PressurePlatePainterTemplate(re...
(), Blocks.LIGHT_WEIGHTED_PRESSURE_PLATE));
1,484,713
public void asyncFlush() {<NEW_LINE>flushQueryLock.writeLock().lock();<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug(FLUSH_QUERY_WRITE_LOCKED, storageGroupName, tsFileResource.getTsFile().getName());<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (workMemTable == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logg...
).getName(), e);
630,409
public static BlockStateData parse(Material material, String state) throws InvalidBlockStateException {<NEW_LINE>if (state == null || state.trim().isEmpty() || state.trim().equals("*")) {<NEW_LINE>return new BlockStateData();<NEW_LINE>}<NEW_LINE>BlockStateReader reader = getReader(material);<NEW_LINE>if (material == nu...
trim().split(",");
1,679,441
public static void onClientTick(TickEvent.ClientTickEvent event) {<NEW_LINE>EntityPlayerSP player <MASK><NEW_LINE>if (NullHelper.untrust(player) == null) {<NEW_LINE>// Log.warn("(in TickEvent.ClientTickEvent) net.minecraft.client.Minecraft.player is marked @Nonnull but it is null.");<NEW_LINE>return;<NEW_LINE>}<NEW_LIN...
= Minecraft.getMinecraft().player;
1,177,520
final GetStreamingDistributionConfigResult executeGetStreamingDistributionConfig(GetStreamingDistributionConfigRequest getStreamingDistributionConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getStreamingDistributionConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
344,831
public static void processJoinResultCodegen(ResultSetProcessorRowPerGroupForge forge, CodegenClassScope classScope, CodegenMethod method, CodegenInstanceAux instance) {<NEW_LINE>CodegenMethod generateGroupKeyArrayJoin = generateGroupKeyArrayJoinTakingMapCodegen(forge, classScope, instance);<NEW_LINE>CodegenMethod gener...
"keysAndEvents"), constantFalse()));
1,597,361
private void importFromMediationTicket(String tradeId) {<NEW_LINE>clearInputFields();<NEW_LINE>Optional<Dispute> optionalDispute = mediationManager.findDispute(tradeId);<NEW_LINE>if (optionalDispute.isPresent()) {<NEW_LINE>Dispute dispute = optionalDispute.get();<NEW_LINE>depositTxHex.setText(dispute.getDepositTxId());...
getSellerPayoutAmount().toPlainString());
1,425,068
private List<Element> dictionaryExpandAbbrev(List<Element> match, String abbrev) {<NEW_LINE>Document doc = ((Element) match.get(0)).getOwnerDocument();<NEW_LINE>ArrayList<Element> exp = new ArrayList<Element>();<NEW_LINE>String[] value = (String[]) abbrevDict.get(abbrev);<NEW_LINE>// inflection info<NEW_LINE>String fle...
sb.charAt(0)));
964,893
final DeletePlaybackConfigurationResult executeDeletePlaybackConfiguration(DeletePlaybackConfigurationRequest deletePlaybackConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePlaybackConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,741,227
private boolean updateHostsInCluster(final UpdateHostPasswordCmd command) {<NEW_LINE>// get all the hosts in this cluster<NEW_LINE>final List<HostVO> hosts = _resourceMgr.listAllHostsInCluster(command.getClusterId());<NEW_LINE>String userNameWithoutSpaces = StringUtils.deleteWhitespace(command.getUsername());<NEW_LINE>...
), ApiConstants.USERNAME, userNameWithoutSpaces);
53,834
public void run() {<NEW_LINE>double max = 0;<NEW_LINE>for (MapPack mpack : values) {<NEW_LINE>int objHash = mpack.getInt("objHash");<NEW_LINE>ListValue time = mpack.getList("time");<NEW_LINE>ListValue value = mpack.getList("value");<NEW_LINE>TracePair tp = getTracePair(objType, objHash, (int) ((etime - stime) / (DateUt...
.iterator()), max);
1,171,143
public ItemStack finishUsingItem(ItemStack stack, Level worldIn, LivingEntity entityLiving) {<NEW_LINE>if (!(entityLiving instanceof Player))<NEW_LINE>return stack;<NEW_LINE>Player player = (Player) entityLiving;<NEW_LINE>CompoundTag tag = stack.getOrCreateTag();<NEW_LINE>if (tag.contains("Polishing")) {<NEW_LINE>ItemS...
position(), toPolish, stack);
1,522,062
@Override<NEW_LINE>public View onCreateView3(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.scene_label_list, container, false);<NEW_LINE>mRecyclerView = (EasyRecyclerView) ViewUtils.$$(view, R.id.recycler_view);<NEW_LINE>Tex...
), drawable.getIntrinsicHeight());
545,786
private List<Integer> retrieveRecordIds(final RuntimeContext sweepCtx, final String referingTable, final String referingTableCol, final int recordId) {<NEW_LINE>final String keyColName = getKeyColName(sweepCtx.ctx, referingTable);<NEW_LINE>if (keyColName == null) {<NEW_LINE>logger.trace("Table " + referingTable + " has...
" records, while the previous IDs fetch returned " + ids.length + " records");
300,950
public void before(Object target, Object[] args) {<NEW_LINE>if (isDebug) {<NEW_LINE>logger.beforeInterceptor(target, args);<NEW_LINE>}<NEW_LINE>if (target == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Trace trace = traceContext.currentRawTraceObject();<NEW_LINE>if (trace == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LIN...
write(request, nextId, host);
391,929
public boolean importDemoDataExcel(File excelFile, File logFile) throws FileNotFoundException, IOException, AxelorException, ParseException, ClassNotFoundException {<NEW_LINE>Workbook workBook = new XSSFWorkbook(new FileInputStream(excelFile));<NEW_LINE>FileOutputStream out = new FileOutputStream(logFile);<NEW_LINE>try...
sheet = workBook.getSheetAt(i);
886,197
public Request<PutDestinationPolicyRequest> marshall(PutDestinationPolicyRequest putDestinationPolicyRequest) {<NEW_LINE>if (putDestinationPolicyRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(PutDestinationPolicyRequest)");<NEW_LINE>}<NEW_LINE>Request<PutDestinationPoli...
request.addHeader("Content-Type", "application/x-amz-json-1.1");
685,775
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>mRootView = inflater.inflate(R.layout.fragment_main, container, false);<NEW_LINE>mRootView.findViewById(R.id.btnScanQRCode).setOnClickListener(new OnClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public...
= new Intent(Strings.ACTION_EDIT_PLUGIN_SETTINGS);
845,811
protected void logConfig(EGLConfig config) {<NEW_LINE>EGL10 egl = (EGL10) EGLContext.getEGL();<NEW_LINE>EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);<NEW_LINE>int r = getAttrib(egl, display, config, EGL10.EGL_RED_SIZE, 0);<NEW_LINE>int g = getAttrib(egl, display, config, EGL10.EGL_GREEN_SIZE, 0);<N...
, GdxEglConfigChooser.EGL_COVERAGE_SAMPLES_NV, 0));
253,992
public static void filterNonIngestNodesIfNeeded(Settings settings, Log log) {<NEW_LINE>if (!settings.getNodesIngestOnly()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>RestClient bootstrap = new RestClient(settings);<NEW_LINE>try {<NEW_LINE>String message = "Ingest-only routing specified but no ingest nodes with HTTP-enabled...
ddNodes = SettingsUtils.discoveredOrDeclaredNodes(settings);
1,450,792
Managed<Server> connection(final AsyncFramework async, final IngestionManager ingestionManager) {<NEW_LINE>return async.managed(new ManagedSetup<Server>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public AsyncFuture<Server> construct() {<NEW_LINE>final IngestionGroup ingestion = ingestionManager.useDefaultGroup();<NEW_LI...
p = port.orElse(DEFAULT_PORT);
555,873
public SearchTablesByLFTagsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SearchTablesByLFTagsResult searchTablesByLFTagsResult = new SearchTablesByLFTagsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI...
String currentParentElement = context.getCurrentParentElement();
1,670,013
/* J2ObjC removed.<NEW_LINE>* Remove methods that have the same name, parameters and return type. This<NEW_LINE>* computes the exceptions of each method; this is the intersection of the<NEW_LINE>* exceptions of equivalent methods.<NEW_LINE>*<NEW_LINE>* @param methods the methods to find exceptions for, ordered by name ...
i - 1), exceptionTypes));
305,575
@SaCheckPermission("cms.link.link")<NEW_LINE>public Object data(String classId, @Param("searchName") String searchName, @Param("searchKeyword") String searchKeyword, @Param("pageNumber") int pageNumber, @Param("pageSize") int pageSize, @Param("pageOrderName") String pageOrderName, @Param("pageOrderBy") String pageOrder...
, PageUtil.getOrder(pageOrderBy));
1,253,441
void initialize(Injector injector) {<NEW_LINE>List<Binding<T>> bindings = Lists.newArrayList();<NEW_LINE>Set<Indexer.IndexedBinding> index = Sets.newHashSet();<NEW_LINE>Indexer indexer = new Indexer(injector);<NEW_LINE>List<Dependency<?><MASK><NEW_LINE>for (Binding<?> entry : injector.findBindingsByType(elementType)) {...
> dependencies = Lists.newArrayList();
1,699,094
protected void preprocess() {<NEW_LINE>createStorage();<NEW_LINE>// open file.<NEW_LINE>try (//<NEW_LINE>FileChannel //<NEW_LINE>channel = //<NEW_LINE>FileChannel.//<NEW_LINE>open(filename, StandardOpenOption.READ)) {<NEW_LINE>MappedByteBuffer buffer = channel.map(MapMode.READ_ONLY, 0, channel.size());<NEW_LINE>// chec...
knn = DBIDUtil.newHeap(k);
1,313,500
public void deleteSubscription(ServiceRequest service) throws UaException {<NEW_LINE>DeleteSubscriptionsRequest request = (DeleteSubscriptionsRequest) service.getRequest();<NEW_LINE>List<UInteger> subscriptionIds = l(request.getSubscriptionIds());<NEW_LINE>if (subscriptionIds.isEmpty()) {<NEW_LINE>throw new UaException...
remove(subscription.getId());
380,064
private void handleJMXPage(final HttpServletRequest req, final HttpServletResponse resp, final Session session) throws IOException {<NEW_LINE>final Page page = newPage(req, resp, session, "azkaban/webapp/servlet/velocity/jmxpage.vm");<NEW_LINE>page.add("mbeans", this.server.<MASK><NEW_LINE>final Map<String, Object> exe...
getMBeanRegistrationManager().getMBeanNames());
1,841,784
public ActionResult<Wo> call() throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>Work work = emc.find(id, Work.class);<NEW_LINE>if (null == w...
ExceptionEntityNotExist(id, Work.class);
863,607
public boolean reActivateIt() {<NEW_LINE>final IPPOrderBL ppOrderBL = Services.get(IPPOrderBL.class);<NEW_LINE>if (ppOrderBL.isSomethingProcessed(this)) {<NEW_LINE>// TODO: Create Message for Translation<NEW_LINE>throw new LiberoException("Cannot re-activate this document because exist transactions");<NEW_LINE>}<NEW_LI...
PPOrderId.ofRepoId(getPP_Order_ID());
1,454,043
public OpsCenterIntegration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>OpsCenterIntegration opsCenterIntegration = new OpsCenterIntegration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
JsonToken token = context.getCurrentToken();
1,212,990
static void transform(final File sourceDir, final File destDir) throws TransformerException {<NEW_LINE>// logger.debug("source dir = " + sourceDir);<NEW_LINE>// logger.debug("dest dir = " + destDir);<NEW_LINE>File xslDir = new File(XSL_DIR);<NEW_LINE>FileFilter filter = new FileFilter() {<NEW_LINE><NEW_LINE>@Override<N...
= new File(xslDir, DEFAULT_XSL_FILE);
720,189
public void whenPOSTEventTypeWithAuthorizationThenOk() throws JsonProcessingException {<NEW_LINE>final EventType eventType = buildDefaultEventType();<NEW_LINE>eventType.setAuthorization(new ResourceAuthorization(ImmutableList.of(new ResourceAuthorizationAttribute("type1", "value1")), ImmutableList.of(new ResourceAuthor...
).statusCode(HttpStatus.SC_CREATED);
1,605,105
private void add(Long start, Long end) {<NEW_LINE>SortedMap<Long, Long> headMap;<NEW_LINE>if (end < Long.MAX_VALUE) {<NEW_LINE>headMap = map.headMap(end + 1);<NEW_LINE>Long tailEnd = map.remove(end + 1);<NEW_LINE>if (tailEnd != null) {<NEW_LINE>end = tailEnd;<NEW_LINE>}<NEW_LINE>if (!headMap.isEmpty()) {<NEW_LINE>tailE...
map.put(start, end);
496,354
private void writeGeneratedXmlFile(GeneratedXmlFile gxf, ProgressCallback callback) throws InterruptedException, IOException {<NEW_LINE>File targetFile;<NEW_LINE>String source;<NEW_LINE>try {<NEW_LINE>File directory = shellCallback.getDirectory(gxf.getTargetProject(), gxf.getTargetPackage());<NEW_LINE>targetFile = new ...
, targetFile.getAbsolutePath()));
1,561,097
public boolean executeCommand(final String args) {<NEW_LINE>// get filenames<NEW_LINE>final String sourceID = getProp().getPropertyString(ScriptProperties.NORMALIZE_CONFIG_SOURCE_FILE);<NEW_LINE>final String targetID = getProp().getPropertyString(ScriptProperties.NORMALIZE_CONFIG_TARGET_FILE);<NEW_LINE>final File sourc...
= getScript().determineFormat();
1,034,771
public SslContext deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException {<NEW_LINE>ObjectNode node = jp.readValueAsTree();<NEW_LINE>try {<NEW_LINE>String keyStoreFile = node.path("keystoreFile").asText();<NEW_LINE>String keyStorePassword = node.path("keystorePassword").asText();<NEW_LINE>String tru...
path("truststorePassword").asText();
446,222
private void handleMasterGone(final DiscoveryNode masterNode, final Throwable cause, final String reason) {<NEW_LINE>if (lifecycleState() != Lifecycle.State.STARTED) {<NEW_LINE>// not started, ignore a master failure<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (localNodeMaster()) {<NEW_LINE>// we might get this on both a m...
new ElasticsearchException("master left [{}]", reason));
1,083,852
private void updateCompatibleScreens(Document doc, Element manifestElement) {<NEW_LINE>Element compatibleScreensElem = XmlHelper.getOrCreateElement(doc, manifestElement, ELEM_COMPATIBLE_SCREENS);<NEW_LINE>// read those screen elements that were already defined in the Manifest<NEW_LINE>NodeList manifestScreenElems = com...
(screenElem.getAttribute(ATTR_SCREEN_DENSITY));
1,067,752
public IAuthenticationResult acquireTokenForGraphApi(String idToken, String tenantId) throws ServiceUnavailableException {<NEW_LINE>final IClientCredential <MASK><NEW_LINE>final UserAssertion assertion = new UserAssertion(idToken);<NEW_LINE>IAuthenticationResult result = null;<NEW_LINE>try {<NEW_LINE>final Confidential...
clientCredential = ClientCredentialFactory.createFromSecret(clientSecret);
1,062,411
public T visitIfInst(IfInstContext ctx) {<NEW_LINE>List<ExprContext> exprList = ctx.expr();<NEW_LINE>List<BlockSetContext> ifBlocks = ctx.blockSet();<NEW_LINE>SwitchInst switchInst = code(new SwitchInst(), ctx);<NEW_LINE>for (int i = 0; i < ifBlocks.size(); i++) {<NEW_LINE>if (i < exprList.size()) {<NEW_LINE>// if and ...
) this.instStack.pop();
1,078,073
private static void convertRestrictions(Context context) throws IOException {<NEW_LINE>File source = new File(Util.getUserDataDirectory(Process.myUid()) + File.separator + "shared_prefs" + File.separator + "biz.bokhorst.xprivacy.provider.xml");<NEW_LINE>File backup = new File(source.getAbsoluteFile() + ".orig");<NEW_LI...
prefs.getBoolean(key, false);
79,464
public void dumpRegisters(Log log, ucontext_t uContext, boolean printLocationInfo, boolean allowJavaHeapAccess, boolean allowUnsafeOperations) {<NEW_LINE>Signal.AMD64DarwinMContext64 sigcontext = uContext.uc_mcontext_darwin_amd64();<NEW_LINE>dumpReg(log, "RAX ", ((Pointer) sigcontext).readLong(sigcontext.rax_offset()),...
), printLocationInfo, allowJavaHeapAccess, allowUnsafeOperations);
1,404,825
private void checkPendingTopics() {<NEW_LINE>Set<String> readyTopics = new HashSet<>();<NEW_LINE>synchronized (pendingTopics) {<NEW_LINE>Iterator<Topic> it = pendingTopics.iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>Topic topic = it.next();<NEW_LINE>String readyTopic = topic.make();<NEW_LINE>if (readyTopic != ...
"The amount of channels you have joined (especially " + "where you are a moderator) will cause some features " + "to not fully work, such as displaying Mod " + "Actions, AutoMod and others.");
969,015
private List<String> listFromApplication(Business business, EffectivePerson effectivePerson, List<String> roles, List<String> identities, List<String> units) throws Exception {<NEW_LINE>List<String> list = new ArrayList<>();<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Application.class);<NEW_LINE>...
CriteriaBuilder cb = em.getCriteriaBuilder();
351,461
public ObservableSource<RxBleConnection> call() {<NEW_LINE>final ConnectionComponent connectionComponent = connectionComponentBuilder.autoConnect(options.autoConnect).suppressOperationChecks(options.suppressOperationCheck).operationTimeout(options.operationTimeout).build();<NEW_LINE>final Set<ConnectionSubscriptionWatc...
> connSubWatchers = connectionComponent.connectionSubscriptionWatchers();
115,011
private static void maybeCleanUpQuery(final byte[] command, final KsqlConfig ksqlConfig) {<NEW_LINE>boolean queryIdFound = false;<NEW_LINE>final Map<String, Object> streamsProperties = new HashMap<<MASK><NEW_LINE>boolean sharedRuntimeQuery = false;<NEW_LINE>String queryId = "";<NEW_LINE>final JSONObject jsonObject = ne...
>(ksqlConfig.getKsqlStreamConfigProps());
1,517,406
public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpec buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpec result = new io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpec(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitFiel...
bitField0_ = (bitField0_ & ~0x00000008);
1,364,328
public static void main(String[] args) {<NEW_LINE>IJThemesManager themesManager = new IJThemesManager();<NEW_LINE>themesManager.loadBundledThemes();<NEW_LINE>String toPath = "../flatlaf-intellij-themes/src/main/java" + IJThemesPanel.THEMES_PACKAGE + "..";<NEW_LINE>StringBuilder allInfos = new StringBuilder();<NEW_LINE>...
toPath, "FlatAllIJThemes.java").toPath();
1,415,666
private void updateFlatView(boolean sync) {<NEW_LINE>if (!force_refresh) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!sync && Utils.isSWTThread()) {<NEW_LINE>Utils.getOffOfSWTThread(() -> updateFlatView(false));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>force_refresh = false;<NEW_LINE>List<DiskManagerFileInfo> files = getFil...
long start = SystemTime.getMonotonousTime();
526,630
public void createDataFeed() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.administration.MetricsAdvisorAdministrationClient.createDataFeed#DataFeed<NEW_LINE>DataFeed dataFeed = new DataFeed().setName("dataFeedName").setSource(new MySqlDataFeedSource("conn-string", "query")).setGranularity(new DataFeedGranularity()....
createdDataFeed = metricsAdvisorAdminClient.createDataFeed(dataFeed);
306,206
private static void assertInstanceCounts(RegressionEnvironment env, StatementContext context, Integer numAggregations, Integer numSubselect, Integer numPrev, Integer numPrior) {<NEW_LINE>if (env.isHA_Releasing()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StatementAIResourceRegistry registry = context.getStatementAIResourc...
[0].getInstanceCount());