idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
282,573
protected void jbInit() throws Exception {<NEW_LINE>// this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);<NEW_LINE>mainPanel.setLayout(new java.awt.BorderLayout());<NEW_LINE>setLayout(new java.awt.BorderLayout());<NEW_LINE>southPanel.setLayout(southLayout);<NEW_LINE>southPanel.add(confirmPanel, BorderLayout.CENTER...
).setVisible(hasHistory());
706,055
protected void internalReceiveCommand(String itemName, Command command) {<NEW_LINE>logger.trace("Received command (item='{}', command='{}')", itemName, command.toString());<NEW_LINE>final Map<String, AnelCommandType> map = getCommandTypeForItemName(itemName);<NEW_LINE>if (map == null || map.isEmpty()) {<NEW_LINE>logger...
debug("Could not find device '" + deviceId + "', missing configuration or not yet initialized.");
1,219,204
public ProjectHook addHook(Object projectIdOrPath, String url, ProjectHook enabledHooks, boolean enableSslVerification, String secretToken) throws GitLabApiException {<NEW_LINE>GitLabApiForm formData = new GitLabApiForm().withParam("url", url, true).withParam("push_events", enabledHooks.getPushEvents(), false).withPara...
.readEntity(ProjectHook.class));
746,669
public void cleanupRun() {<NEW_LINE>String path = joinPathParts(testClassName, runId);<NEW_LINE>LOG.info("Cleaning up everything under '{}' under bucket '{}'", path, bucket);<NEW_LINE>Page<Blob> firstPage = getFirstPage(path);<NEW_LINE>consumePages(firstPage, blobs -> {<NEW_LINE>// For testability, use the Iterable<Blo...
deleted = client.delete(blobIds);
883,231
private Nonce generateNewUniqueNonceForDevice() {<NEW_LINE>byte[] nonceBytes = generateNonceBytes();<NEW_LINE>boolean unique = false;<NEW_LINE>while (!unique) {<NEW_LINE>// Collision, try again<NEW_LINE>nonceBytes = generateNonceBytes();<NEW_LINE>// Make sure the id is unique for all nonces in storage<NEW_LINE>// Can't...
nonce.getNonceId(), nonce);
1,429,357
protected ThingHandler createHandler(Thing thing) {<NEW_LINE>ThingTypeUID thingTypeUID = thing.getThingTypeUID();<NEW_LINE>if (thingTypeUID.equals(DSCAlarmBindingConstants.ENVISALINKBRIDGE_THING_TYPE)) {<NEW_LINE>EnvisalinkBridgeHandler handler = new EnvisalinkBridgeHandler((Bridge) thing);<NEW_LINE>registerDSCAlarmDis...
new TCPServerBridgeHandler((Bridge) thing);
2,001
public static <T> T[] realloc(Class<T> klass, T[] src, int size, boolean ended) {<NEW_LINE>T[] dest;<NEW_LINE>if (size > src.length) {<NEW_LINE>dest = (T[]) <MASK><NEW_LINE>if (ended) {<NEW_LINE>System.arraycopy(src, 0, dest, 0, src.length);<NEW_LINE>} else {<NEW_LINE>System.arraycopy(src, 0, dest, size - src.length, s...
Array.newInstance(klass, size);
1,359,765
protected void handleClassFileName(URI container, Object module, String fileName, char fileSystemSeparatorChar) {<NEW_LINE>String strippedClassFileName = strippedClassFileName(fileName);<NEW_LINE>if (strippedClassFileName.equals("module-info")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String className = strippedClassFile...
packageNames = packages.get(container);
1,308,812
private Agent lookupAgent(Task task) {<NEW_LINE>// FIXME: superuser security context<NEW_LINE>Class taskClass = task.getClass();<NEW_LINE>Agent agent = null;<NEW_LINE>Class agentClass = agentClassCache.get(taskClass.getName());<NEW_LINE>// cache miss<NEW_LINE>if (agentClass == null) {<NEW_LINE>Map<String, Class<? exten...
Agent supportedAgent = supportedAgentClass.newInstance();
483,809
// delete.<NEW_LINE>@Override<NEW_LINE>@WrapInTransaction<NEW_LINE>public void archive(final Host site, final User user, final boolean respectFrontendRoles) throws DotDataException, DotSecurityException, DotContentletStateException {<NEW_LINE>final Contentlet siteAsContentlet = APILocator.getContentletAPI().find(site.g...
put(Contentlet.DONT_VALIDATE_ME, true);
221,495
private static void runAssertionPartitionAddRemoveListener(RegressionEnvironment env, String eplContext, String contextName) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@name('ctx') @public " + eplContext, path);<NEW_LINE>env.compileDeploy("@name('s0') context " + contextName + " ...
, contextName, ContextStateEventContextPartitionDeallocated.class));
409,859
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Set<PermanentIdPredicate> permsToReturn = new HashSet<>();<NEW_LINE>for (UUID opponentId : game.getOpponents(player.getId())) {<N...
1, 1, filter, true);
673,557
private int writeInternal(String path, Pointer buf, @size_t long size, @off_t long offset, FuseFileInfo fi) {<NEW_LINE>if (size > Integer.MAX_VALUE) {<NEW_LINE>LOG.error("Cannot write more than Integer.MAX_VALUE");<NEW_LINE>return ErrorCodes.EIO();<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>final long fd = fi.fh.get();<NEW_LI...
final int sz = (int) size;
1,687,112
protected <RESULT extends WebConfig> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType) {<NEW_LINE>try {<NEW_LINE>final RESULT result = entityType.newInstance();<NEW_LINE>result.setAvailable(DfTypeUtil.toBoolean(source.get("available")));<NEW_LINE>result.setBoost(DfTypeUtil.toFloat(sour...
source.get("virtualHosts")));
171,183
public static DateTime deserializeDateTime(final JsonReader reader) throws IOException {<NEW_LINE>final char[] tmp = reader.readSimpleQuote();<NEW_LINE>final int len = reader.getCurrentIndex() - reader.getTokenStart() - 1;<NEW_LINE>// TODO: non utc<NEW_LINE>if (len > 18 && len < 25 && tmp[len - 1] == 'Z' && tmp[4] == '...
(tmp, 0, len));
625,011
private void validateParams() {<NEW_LINE>if (_tableName == null || _tableName.isEmpty()) {<NEW_LINE>LOGGER.error("Table name is required and can not be empty");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>if (TableNameBuilder.isRealtimeTableResource(_tableName)) {<NEW_LINE><MASK><NEW_LINE>System.exit(1);<NEW_LINE>}<NE...
LOGGER.error("This operation is not supported for realtime table. table: {}", _tableName);
1,412,334
protected void checkGroovyConstructorMap(final Expression receiver, final ClassNode receiverType, final MapExpression mapExpression) {<NEW_LINE>// workaround for map-style checks putting setter info on wrong AST nodes<NEW_LINE>typeCheckingContext.pushEnclosingBinaryExpression(null);<NEW_LINE>for (MapEntryExpression ent...
pType = new AtomicReference<>();
489,282
public static DescribeScdnCcTopIpResponse unmarshall(DescribeScdnCcTopIpResponse describeScdnCcTopIpResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeScdnCcTopIpResponse.setRequestId(_ctx.stringValue("DescribeScdnCcTopIpResponse.RequestId"));<NEW_LINE>describeScdnCcTopIpResponse.setTotal(_ctx.stringValue("Describe...
(_ctx.stringValue("DescribeScdnCcTopIpResponse.DomainName"));
1,300,968
public Object decodeNumber(KrollDict args) {<NEW_LINE>if (!args.containsKey(TiC.PROPERTY_SOURCE)) {<NEW_LINE>throw new IllegalArgumentException("source was not specified for decodeNumber");<NEW_LINE>}<NEW_LINE>if (!args.containsKey(TiC.PROPERTY_TYPE)) {<NEW_LINE>throw new IllegalArgumentException("type was not specifie...
.get(TiC.PROPERTY_BYTE_ORDER));
661,114
final StartCopyJobResult executeStartCopyJob(StartCopyJobRequest startCopyJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startCopyJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,553,020
public static void reschedulePersistentAlarms(Context context) {<NEW_LINE>synchronized (persistentAlarmsLock) {<NEW_LINE>SharedPreferences prefs = context.getSharedPreferences(SHARED_PREFERENCES_KEY, 0);<NEW_LINE>Set<String> persistentAlarms = prefs.getStringSet(PERSISTENT_ALARMS_SET_KEY, null);<NEW_LINE>// No alarms t...
TAG, "Data for alarm request code " + requestCode + " is invalid.");
1,785,484
public boolean saveDirtyEditor(final ExecutionEvent event) {<NEW_LINE>activeEditor = UIHelper.getActiveEditor();<NEW_LINE>if (activeEditor.isDirty()) {<NEW_LINE>getPrefs().setDefault(this.getClass() + ".dontBother", false);<NEW_LINE>if (getPrefs().getBoolean(this.getClass() + ".dontBother")) {<NEW_LINE>// TODO decouple...
.doSave(new NullProgressMonitor());
332,934
/* GRECLIPSE edit<NEW_LINE>private static final Map<String, Set<String>> DEFAULT_IMPORT_CLASS_AND_PACKAGES_CACHE = new UnlimitedConcurrentCache<>();<NEW_LINE>static {<NEW_LINE>DEFAULT_IMPORT_CLASS_AND_PACKAGES_CACHE.putAll(VMPluginFactory.getPlugin().getDefaultImportClasses(DEFAULT_IMPORTS));<NEW_LINE>}<NEW_LINE>*/<NEW...
= new ConstructedClassWithPackage(packagePrefix, typeName);
1,637,044
public static GetProductDefineResponse unmarshall(GetProductDefineResponse getProductDefineResponse, UnmarshallerContext context) {<NEW_LINE>getProductDefineResponse.setRequestId(context.stringValue("GetProductDefineResponse.RequestId"));<NEW_LINE>getProductDefineResponse.setProductName(context.stringValue("GetProductD...
= new ArrayList<Type>();
1,782,803
public static int levenshteinDistance(String o1, String o2, int prefix, int postfix) {<NEW_LINE>final int l1 = o1.length(), l2 = o2.length();<NEW_LINE>// Buffer, interleaved. Even and odd values are our rows.<NEW_LINE>int[] buf = new int[(l2 + 1 - (prefix + postfix)) << 1];<NEW_LINE>// Initial "row", on even positions<...
2 + (inter ^ 1)];
596,781
public static Partition partition(int[] input, int begin, int end) {<NEW_LINE><MASK><NEW_LINE>int leftEqualKeysCount = 0, rightEqualKeysCount = 0;<NEW_LINE>int partitioningValue = input[end];<NEW_LINE>while (true) {<NEW_LINE>while (input[left] < partitioningValue) left++;<NEW_LINE>while (input[right] > partitioningValu...
int left = begin, right = end;
1,276,651
public void printCXFSettings() {<NEW_LINE>String thisMethod = "printCXFSettings";<NEW_LINE>String indent = " ";<NEW_LINE>Log.info(thisClass, thisMethod, "CXF Test Settings: ");<NEW_LINE>Log.info(thisClass, thisMethod, indent + "testMethod: " + testMethod);<NEW_LINE>Log.info(thisClass, thisMethod, indent + "clientType:...
thisMethod, indent + "sendMsg: " + sendMsg);
1,002,253
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see javax.websocket.Endpoint#onOpen(javax.websocket.Session, javax.websocket.EndpointConfig)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void onOpen(Session session, EndpointConfig config) {<NEW_LINE>if (onOpen != null) {<NEW_LINE>try {<NEW_LINE>Object[] args = new ...
onOpen.processPathParameters(this, args);
572,504
private void loadNode392() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupFolderType_DefaultApplicationGroup_TrustList_OpenWithMasks_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArguments"), L...
String xml = sb.toString();
1,202,083
public AdminDisableUserResult adminDisableUser(AdminDisableUserRequest adminDisableUserRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminDisableUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsReque...
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
518,874
public static void unifyCharacterSets(Attributes... attrsList) {<NEW_LINE>if (attrsList.length == 0)<NEW_LINE>return;<NEW_LINE>SpecificCharacterSet utf8 = SpecificCharacterSet.valueOf("ISO_IR 192");<NEW_LINE>SpecificCharacterSet commonCS = <MASK><NEW_LINE>if (!commonCS.equals(utf8)) {<NEW_LINE>for (int i = 1; i < attrs...
attrsList[0].getSpecificCharacterSet();
1,413,921
public static VariableMap fromBytes(byte[] bytes) throws ParseException {<NEW_LINE>String string = new String(bytes, UTF_8);<NEW_LINE>ImmutableMap.Builder<String, String> map = ImmutableMap.builder();<NEW_LINE>int startOfLine = 0;<NEW_LINE>while (startOfLine < string.length()) {<NEW_LINE>int newLine = <MASK><NEW_LINE>i...
string.indexOf('\n', startOfLine);
1,476,911
private void showBackupCompletedStatusDialog(final Folder backupDir, final Boolean settingsResult, final Boolean databaseResult, final boolean autobackup) {<NEW_LINE>String msg;<NEW_LINE>final String title;<NEW_LINE>if (settingsResult && databaseResult) {<NEW_LINE>title = activityContext.getString(R.string.init_backup_...
getString(R.string.settings_savingerror);
530,872
public Pair<Boolean, byte[]> execute(byte[] data) {<NEW_LINE>byte[] h = new byte[32];<NEW_LINE>byte[] v = new byte[32];<NEW_LINE>byte[] r = new byte[32];<NEW_LINE>byte[] s = new byte[32];<NEW_LINE>DataWord out = null;<NEW_LINE>try {<NEW_LINE>System.arraycopy(data, 0, h, 0, 32);<NEW_LINE>System.arraycopy(data, 32, v, 0,...
.signatureToAddress(h, signature));
210,166
public static Set<Path> collectBinaries(IPath projectDir, Set<String> include, Set<String> exclude, IProgressMonitor monitor) throws CoreException {<NEW_LINE>Set<Path> binaries = new LinkedHashSet<>();<NEW_LINE>Map<IPath, Set<String>> includeByPrefix = groupGlobsByPrefix(projectDir, include);<NEW_LINE>Set<IPath> exclud...
file = base.resolve(result);
311,218
final CreateSessionResult executeCreateSession(CreateSessionRequest createSessionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSessionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateSession");
421,040
ResourceStatisticsImpl build() {<NEW_LINE>ResourceStatisticsImpl cachedReference = cached;<NEW_LINE>if (cachedReference != null) {<NEW_LINE>return cachedReference;<NEW_LINE>}<NEW_LINE>final Map<ResourceMethod, ResourceMethodStatistics> <MASK><NEW_LINE>for (final ResourceMethodStatisticsImpl.Builder builder : methodsBui...
resourceMethods = new HashMap<>();
635,508
public void read(org.apache.thrift.protocol.TProtocol prot, halt_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(3);<NEW_LINE>if (incoming.get(0)) {<NEW_L...
.lock = iprot.readString();
522,076
public TemplateVersionsResponse unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TemplateVersionsResponse templateVersionsResponse = new TemplateVersionsResponse();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonT...
String currentParentElement = context.getCurrentParentElement();
285,983
ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>logger.<MASK><NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>HotPictureInfoService hotPictureInfoService = new HotPictureInfoService();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi....
debug(effectivePerson.getDistinguishedName());
192,511
public void afterDelIpAddress(String vmNicUUid, String usedIpUuid) {<NEW_LINE>VmNicVO nic = Q.New(VmNicVO.class).eq(VmNicVO_.uuid, vmNicUUid).find();<NEW_LINE>if (nic.getUsedIpUuid() != null && !nic.getUsedIpUuid().equals(usedIpUuid)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>UsedIpVO temp = null;<NEW_LINE>List<UsedIpVO> ...
temp = refs.get(0);
1,358,173
public static ActionRequestValidationException validateGeneratedSnapshotName(String snapshotPrefix, String snapshotName) {<NEW_LINE>ActionRequestValidationException err = new ActionRequestValidationException();<NEW_LINE>if (Strings.hasText(snapshotPrefix) == false) {<NEW_LINE>err.addValidationError("invalid snapshot na...
snapshotPrefix + "]: must not contain contain the following characters " + Strings.INVALID_FILENAME_CHARS);
493,249
private FxNode handleFxInclude(Attributes atts, String localName) {<NEW_LINE>String include = null;<NEW_LINE>String id = null;<NEW_LINE>for (int i = 0; i < atts.getLength(); i++) {<NEW_LINE>String uri = atts.getURI(i);<NEW_LINE>String attName = atts.getLocalName(i);<NEW_LINE>if (FX_ATTR_REFERENCE_SOURCE.equals(attName)...
ATTRIBUTE_TARGET, "missing-included-name", ERR_missingIncludeName());
1,220,745
public static GetMetaTableThemeLevelResponse unmarshall(GetMetaTableThemeLevelResponse getMetaTableThemeLevelResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMetaTableThemeLevelResponse.setRequestId(_ctx.stringValue("GetMetaTableThemeLevelResponse.RequestId"));<NEW_LINE>getMetaTableThemeLevelResponse.setErrorCode(_ctx...
("GetMetaTableThemeLevelResponse.Entity.Theme[" + i + "].Name"));
1,328,523
private IProject createNewProject() {<NEW_LINE>if (newProject != null) {<NEW_LINE>return newProject;<NEW_LINE>}<NEW_LINE>// get a project handle<NEW_LINE>final <MASK><NEW_LINE>// get a project descriptor<NEW_LINE>URI location = null;<NEW_LINE>if (!mainPage.useDefaults()) {<NEW_LINE>location = mainPage.getLocationURI();...
IProject newProjectHandle = mainPage.getProjectHandle();
1,061,422
// used by readAuthenticationHolders<NEW_LINE>private OAuth2Request readAuthorizationRequest(JsonReader reader) throws IOException {<NEW_LINE>Set<String> scope = new LinkedHashSet<>();<NEW_LINE>Set<String> <MASK><NEW_LINE>boolean approved = false;<NEW_LINE>Collection<GrantedAuthority> authorities = new HashSet<>();<NEW...
resourceIds = new HashSet<>();
716,231
void updateDataFields(int why) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "updateDataFields");<NEW_LINE>super.updateDataFields(why);<NEW_LINE>if (jmsSystemPropertyMap != null && jmsSystemPropertyMap.isChanged()) {<NEW_LINE>getApi().setField(JsApiAccess.<MA...
SYSTEMPROPERTY_NAME, jmsSystemPropertyMap.getKeyList());
1,346,226
protected UpdateStreamingDistributionResult updateStreamingDistribution(final Path container, final Distribution distribution) throws BackgroundException {<NEW_LINE>final URI origin = this.getOrigin(<MASK><NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug(String.format("Update %s distribution with origin %s", dis...
container, distribution.getMethod());
1,070,297
public RexNode expand(RexCall call) {<NEW_LINE>assert call.getOperator() == SqlStdOperatorTable.FLOOR;<NEW_LINE>RexNode decValue = call.operands.get(0);<NEW_LINE>int scale = decValue.getType().getScale();<NEW_LINE>RexNode value = decodeValue(decValue);<NEW_LINE>final RelDataTypeSystem typeSystem = builder.getTypeFactor...
1), makeExactLiteral(0));
1,377,085
public FieldBinding addSyntheticFieldForEnumValues() {<NEW_LINE>if (!isPrototype())<NEW_LINE>throw new IllegalStateException();<NEW_LINE>if (this.synthetics == null)<NEW_LINE>this.synthetics = new HashMap[MAX_SYNTHETICS];<NEW_LINE>if (this.synthetics[SourceTypeBinding.FIELD_EMUL] == null)<NEW_LINE>this.synthetics[Sourc...
.FIELD_EMUL].get("enumConstantValues");
1,592,647
protected List<HistoryJobEntity> createJobsWithHistoricalData(CommandContext commandContext, JobServiceConfiguration jobServiceConfiguration, List<ObjectNode> historyObjectNodes) {<NEW_LINE>AsyncHistorySession asyncHistorySession = commandContext.getSession(AsyncHistorySession.class);<NEW_LINE>if (jobServiceConfigurati...
jobServiceConfiguration, jobEntity, historyJsonNode, false);
1,825,810
public CreateSessionResponse decode(SerializationContext context, UaDecoder decoder) {<NEW_LINE>ResponseHeader responseHeader = (ResponseHeader) decoder.readStruct("ResponseHeader", ResponseHeader.TYPE_ID);<NEW_LINE>NodeId sessionId = decoder.readNodeId("SessionId");<NEW_LINE>NodeId authenticationToken = decoder.readNo...
maxRequestMessageSize = decoder.readUInt32("MaxRequestMessageSize");
451,443
public Result createOutput(String namespaceUri, String suggestedFileName) throws IOException {<NEW_LINE>logger.entering(getClass().getName(), "createOutput", new Object[] { namespaceUri, suggestedFileName });<NEW_LINE>Result r = <MASK><NEW_LINE>if (r != null) {<NEW_LINE>String sysId = r.getSystemId();<NEW_LINE>logger.f...
resolver.createOutput(namespaceUri, suggestedFileName);
1,322,397
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final IOperandTreeNode registerOperand2 = i...
String tmpVar2 = environment.getNextVariableString();
588,175
public Node configureRoom(ConfigRoomRequest body, Long roomId, String xSdsDateFormat, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// verify the required param...
throw new ApiException(400, "Missing the required parameter 'body' when calling configureRoom");
653,047
private void checkChimaeraWingTeleport() {<NEW_LINE>Player player = mcMMOPlayer.getPlayer();<NEW_LINE>Location previousLocation = mcMMOPlayer.getTeleportCommenceLocation();<NEW_LINE>if (player.getLocation().distanceSquared(previousLocation) > 1.0 || !player.getInventory().containsAtLeast(ChimaeraWing.getChimaeraWing(0)...
Misc.TIME_CONVERSION_FACTOR, hurtCooldown, player);
511,201
public void shouldFailWhenConfigUpdateCannotBeMergedWithLatestRevision() throws Exception {<NEW_LINE>final String originalMd5 = goConfigDao.load().getMd5();<NEW_LINE>goConfigDao.updateConfig(configHelper.addPipelineCommand(originalMd5, "p1", "stage1", "build1"));<NEW_LINE>final String md5WhenPipelineIsAdded = goConfigD...
.load().getMd5();
800,550
protected Expression transformDeclarationExpression(final DeclarationExpression de) {<NEW_LINE>visitAnnotations(de);<NEW_LINE>Expression oldLeft = de.getLeftExpression();<NEW_LINE>checkingVariableTypeInDeclaration = true;<NEW_LINE>Expression left = transform(oldLeft);<NEW_LINE>checkingVariableTypeInDeclaration = false;...
).getName(), oldLeft);
1,321,810
public static LanguageVersionException check(Language language, int languageVersion, int languageMinorVersion) throws LanguageNotFoundException {<NEW_LINE><MASK><NEW_LINE>if (language.getVersion() > languageVersion) {<NEW_LINE>Language newLanguage = language;<NEW_LINE>Language oldLanguage = OldLanguageFactory.getOldLan...
LanguageID languageID = language.getLanguageID();
670,087
Object reconfigure(VirtualFrame frame, PTextIO self, Object encodingObj, Object errorsObj, Object newlineObj, Object lineBufferingObj, Object writeThroughObj, @Cached IONodes.ToStringNode toStringNode, @Cached PyObjectCallMethodObjArgs callMethod, @Cached PyObjectIsTrueNode isTrueNode, @Cached TextIOWrapperNodes.Change...
newline = toStringNode.execute(newlineObj);
994,005
final DeleteSnapshotResult executeDeleteSnapshot(DeleteSnapshotRequest deleteSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
429,319
private MetaDataRegisterDTO buildMetaDataDTO(final ServiceFactoryBean serviceBean, final ShenyuSofaClient shenyuSofaClient, final Method method, final String superPath) {<NEW_LINE>String appName = this.appName;<NEW_LINE>String path = pathJoin(contextPath, <MASK><NEW_LINE>String desc = shenyuSofaClient.desc();<NEW_LINE>...
superPath, shenyuSofaClient.path());
1,227,443
protected ValidationResult validateOperation(final Transform operation, final Schema schema) {<NEW_LINE><MASK><NEW_LINE>final Map<String, ?> entities = null != operation.getEntities() ? operation.getEntities() : new HashMap<>();<NEW_LINE>final Map<String, ?> edges = null != operation.getEdges() ? operation.getEdges() :...
final ValidationResult result = new ValidationResult();
7,620
public List<TrainingJobInfo> list(TrainingJobType jobType, Boolean allNamespaces) throws ArenaException, IOException {<NEW_LINE>List<String> cmds = this.generateCommands("list");<NEW_LINE>if (!jobType.equals(TrainingJobType.AllTrainingJob) && !jobType.equals(TrainingJobType.UnknownTrainingJob)) {<NEW_LINE>cmds.add("--t...
output = Command.execCommand(arenaCommand);
481,570
public // added by Gary - ghuang@cs.umass.edu<NEW_LINE>InstanceList sampleWithWeights(java.util.Random r, double[] weights) {<NEW_LINE>if (weights.length != size())<NEW_LINE>throw new IllegalArgumentException("length of weight vector must equal number of instances");<NEW_LINE>if (size() == 0)<NEW_LINE>return cloneEmpty...
newList.setInstanceWeight(a, 1);
1,325,329
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>final Activity activity = getActivity();<NEW_LINE>ContextThemeWrapper context = ThemeChanger.getDialogThemeWrapper(activity);<NEW_LINE>ProgressDialog dialog = new ProgressDialog(context);<NEW_LINE>dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL)...
, (DialogInterface.OnClickListener) null);
455,329
private void commit() throws SolrServerException {<NEW_LINE>List<SolrInputDocument> clone;<NEW_LINE>synchronized (bufferLock) {<NEW_LINE>// Make a clone and release the lock, so that we don't<NEW_LINE>// hold other ingest threads<NEW_LINE>clone = buffer.stream().collect(toList());<NEW_LINE>buffer.clear();<NEW_LINE>}<NE...
(), "Server.commit.exception.msg"), e);
219,017
final GetImagePipelineResult executeGetImagePipeline(GetImagePipelineRequest getImagePipelineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getImagePipelineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
53,240
public TopicSubscriptionBuilder topicFilter(@NotNull final String topicFilter) {<NEW_LINE>Preconditions.checkNotNull(topicFilter, "Topic filter must never be null");<NEW_LINE>Preconditions.checkArgument(topicFilter.length() <= restrictionsConfig.maxTopicLength(), "Topic filter length must not exceed '" + restrictionsCo...
containsWildcard(topicFilter)), "Wildcard characters '+' or '#' are not allowed");
1,310,104
static Accessor accessorFor(Class<?> type, String accessorName, InheritingConfiguration configuration) {<NEW_LINE>PropertyInfoKey key = new PropertyInfoKey(type, accessorName, configuration);<NEW_LINE>if (!ACCESSOR_CACHE.containsKey(key) && !FIELD_CACHE.containsKey(key)) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LI...
configuration, entry.getKey());
108,406
private void finishStorageMigration(long backendId, TFinishTaskRequest request) {<NEW_LINE>// check if task success<NEW_LINE>if (request.getTask_status().getStatus_code() != TStatusCode.OK) {<NEW_LINE>LOG.warn("tablet migrate failed. signature: {}, error msg: {}", request.getSignature(), request.getTask_status().error_...
long dbId = tabletMeta.getDbId();
337,419
private TypeDefPatch updateSupportedDiscoveryRelationship() {<NEW_LINE>final String typeName = "SupportedDiscoveryService";<NEW_LINE>TypeDefPatch typeDefPatch = archiveBuilder.getPatchForType(typeName);<NEW_LINE>typeDefPatch.setUpdatedBy(originatorName);<NEW_LINE>typeDefPatch.setUpdateTime(creationDate);<NEW_LINE>List<...
properties = new ArrayList<>();
123,949
public static Template<?> createTemplate(Context context, MethodTree decl) {<NEW_LINE>MethodSymbol declSym = ASTHelpers.getSymbol(decl);<NEW_LINE>ImmutableClassToInstanceMap<Annotation> annotations = UTemplater.annotationMap(declSym);<NEW_LINE>ImmutableMap<String, VarSymbol> freeExpressionVars = freeExpressionVariables...
.getBody().getStatements();
1,638,469
public void openTorrent(String fileName, String save_path) {<NEW_LINE>String uc_filename = fileName.toUpperCase(Locale.US);<NEW_LINE>boolean is_remote = uc_filename.startsWith("HTTP://") || uc_filename.startsWith("HTTPS://") || uc_filename.startsWith("MAGNET:");<NEW_LINE>if (console != null) {<NEW_LINE>// System.out.pr...
e.getMessage() + ")");
1,592,433
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) 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>Script script = emc.fi...
emc.beginTransaction(Script.class);
1,281,325
static Imported parseSettings(InputStream inputStream, boolean globalSettings, List<String> accountUuids, boolean overview) throws SettingsImportExportException {<NEW_LINE>if (!overview && accountUuids == null) {<NEW_LINE>throw new IllegalArgumentException("Argument 'accountUuids' must not be null.");<NEW_LINE>}<NEW_LI...
XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
199,140
public void generateData(T data, JsonObject jsonObject) {<NEW_LINE>String caption = getItemCaptionGenerator().apply(data);<NEW_LINE>if (caption != null) {<NEW_LINE>jsonObject.put(ListingJsonConstants.JSONKEY_ITEM_VALUE, caption);<NEW_LINE>} else {<NEW_LINE>jsonObject.put(ListingJsonConstants.JSONKEY_ITEM_VALUE, "");<NE...
getItemIconGenerator().apply(data);
615,693
public static <T extends ImageGray<T>> void average(Planar<T> input, T output, int startBand, int lastBand) {<NEW_LINE>if (GrayU8.class == input.getBandType()) {<NEW_LINE>ImageBandMath.average((Planar<GrayU8>) input, (GrayU8) output, startBand, lastBand);<NEW_LINE>} else if (GrayU16.class == input.getBandType()) {<NEW_...
GrayF32) output, startBand, lastBand);
1,708,219
public List<RelRoleMember> updateMembers(Long id, List<Long> memberIds, User user) throws ServerException, UnAuthorizedException, NotFoundException {<NEW_LINE><MASK><NEW_LINE>List<User> users = userMapper.getByIds(memberIds);<NEW_LINE>if (CollectionUtils.isEmpty(users)) {<NEW_LINE>throw new ServerException("Members are...
getRole(id, user, true);
121,685
public void browseButtonPressed() {<NEW_LINE>Text textControl = getHandler().getJavaTextControl();<NEW_LINE>String pattern = textControl != null && !textControl.isDisposed() ? textControl.getText() : null;<NEW_LINE>Shell shell = getHandler().getShell();<NEW_LINE>int javaSearchType = adaptToJavaSearchType(<MASK><NEW_LIN...
getJavaParameterDescriptor().getJavaElementType());
387,880
public boolean onItemClick(EasyRecyclerView parent, View view, int position, long id) {<NEW_LINE>if (null == mHelper || null == mRecyclerView) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>GalleryInfo gi = mHelper.getDataAtEx(position);<NEW_LINE>if (gi == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Bundle args = n...
.class).setArgs(args);
1,301,154
public // }<NEW_LINE>JsonNode toJson(Object object) throws IOException {<NEW_LINE>if (object instanceof SBase) {<NEW_LINE>SBase base = (SBase) object;<NEW_LINE><MASK><NEW_LINE>jsonObject.put("__type", base.getSClass().getSimpleName());<NEW_LINE>for (SField field : base.getSClass().getAllFields()) {<NEW_LINE>jsonObject....
ObjectNode jsonObject = OBJECT_MAPPER.createObjectNode();
543,337
final AssociateWebsiteAuthorizationProviderResult executeAssociateWebsiteAuthorizationProvider(AssociateWebsiteAuthorizationProviderRequest associateWebsiteAuthorizationProviderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateWebsiteAuthorizationProviderRequest);<NEW_LINE><MASK><N...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
64,123
private void writeObject(ObjectOutputStream out) throws IOException {<NEW_LINE>final boolean trace = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (trace && tc.isEntryEnabled())<NEW_LINE>Tr.entry(this, tc, "writeObject", new Object[] { "caller/invocation subjects:", callerSubject, invocationSubject, "jaasLoginConte...
Tr.warning(tc, SEC_CONTEXT_UNABLE_TO_SERIALIZE);
3,582
private static void bindRequestParameters(UriComponentsBuilder builder, HandlerMethodParameter parameter, Object[] arguments, FormatterFactory factory) {<NEW_LINE>Object value = parameter.getVerifiedValue(arguments);<NEW_LINE>if (value == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Class<?> parameterType = parameter.p...
parameter.prepareValue(value, factory);
1,028,633
private DataTableType createDataTableType(Method method) {<NEW_LINE>Type returnType = requireValidReturnType(method);<NEW_LINE>Type parameterType = requireValidParameterType(method);<NEW_LINE>if (DataTable.class.equals(parameterType)) {<NEW_LINE>return new DataTableType(returnType, (DataTable table) -> invokeMethod(rep...
invokeMethod(replaceEmptyPatternsWithEmptyString(row)));
965,299
private void writeXmlFrom(XmlElement element) throws IOException {<NEW_LINE>ANGLE_OPEN.writeTo(out);<NEW_LINE>if (!element.getNamespaceUriBytes().isEmpty()) {<NEW_LINE>findNamespacePrefix(element.getNamespaceUriBytes()).writeTo(out);<NEW_LINE>COLON.writeTo(out);<NEW_LINE>}<NEW_LINE>final ByteString name = element.getNa...
namespace.getUriBytes(), prefix);
1,631,061
public void marshall(ListModelQualityJobDefinitionsRequest listModelQualityJobDefinitionsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listModelQualityJobDefinitionsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>p...
listModelQualityJobDefinitionsRequest.getNextToken(), NEXTTOKEN_BINDING);
1,391,545
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) 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>Process process = emc....
updateCreatePersonLastUpdatePerson(effectivePerson, business, process);
547,973
public List<Type> union(List<Type> cl1, List<Type> cl2) {<NEW_LINE>if (cl1.isEmpty()) {<NEW_LINE>return cl2;<NEW_LINE>} else if (cl2.isEmpty()) {<NEW_LINE>return cl1;<NEW_LINE>} else if (cl1.head.tsym == cl2.head.tsym) {<NEW_LINE>return union(cl1.tail, cl2.tail).prepend(cl1.head);<NEW_LINE>} else if (cl1.head.tsym.prec...
).prepend(cl1.head);
932,077
public static ListCdtTrafficTiersResponse unmarshall(ListCdtTrafficTiersResponse listCdtTrafficTiersResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCdtTrafficTiersResponse.setRequestId(_ctx.stringValue("ListCdtTrafficTiersResponse.RequestId"));<NEW_LINE>List<TrafficTiersItem> trafficTiers <MASK><NEW_LINE>for (int i ...
= new ArrayList<TrafficTiersItem>();
759,178
public static void assertEquals(Object expected, Object actual) {<NEW_LINE>if (expected == null) {<NEW_LINE>assertTrue("Expected null but saw \"" + actual + "\" instead", actual == null);<NEW_LINE>} else if (expected instanceof String && actual instanceof String) {<NEW_LINE>assertEquals((String) expected, (String) actu...
, (String[]) actual);
1,303,486
public Object eval(SQLEvalVisitor visitor, SQLMethodInvokeExpr x) {<NEW_LINE>if (x.getArguments().size() == 0) {<NEW_LINE>return SQLEvalVisitor.EVAL_ERROR;<NEW_LINE>}<NEW_LINE>SQLExpr param = x.getArguments().get(0);<NEW_LINE>param.accept(visitor);<NEW_LINE>Object paramValue = param.getAttributes().get(EVAL_VALUE);<NEW...
String method = x.getMethodName();
48,775
public void selectBlockers(Ability source, Game game, UUID defendingPlayerId) {<NEW_LINE>logger.debug("selectBlockers");<NEW_LINE>if (combat != null && !combat.getGroups().isEmpty()) {<NEW_LINE>List<CombatGroup> groups = game.getCombat().getGroups();<NEW_LINE>for (int i = 0; i < groups.size(); i++) {<NEW_LINE>if (i < c...
.get(0), game);
1,326,544
protected void encodeMarkup(FacesContext context, AbstractMenu abstractMenu) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>MegaMenu menu = (MegaMenu) abstractMenu;<NEW_LINE>boolean vertical = menu.getOrientation().equals("vertical");<NEW_LINE>String clientId = menu.getClien...
: MegaMenu.CONTAINER_CLASS + " " + styleClass;
1,822,375
private static boolean openPreferenceNode(final String propertyPageId, final IPreferenceNode targetNode, final String title, Object element, Map<String, Object> data) {<NEW_LINE>PreferenceManager manager = new PreferenceManager();<NEW_LINE>manager.addToRoot(targetNode);<NEW_LINE>final PropertyDialog dialog = new Proper...
= new boolean[] { false };
864,167
public void readEntryComplete(int rc, long lid, long eid, ByteBuf buffer, Object ctx) {<NEW_LINE>BookieSocketAddress bookieAddress = (BookieSocketAddress) ctx;<NEW_LINE>ReadResult<ByteBuf> rr;<NEW_LINE>if (BKException.Code.OK != rc) {<NEW_LINE>rr = new ReadResult<>(eid, rc, null, bookieAddress.getSocketAddress());<NEW_...
toRet = Unpooled.copiedBuffer(content);
1,738,391
public void calculateRequestBodyInfo(Components components, MethodAttributes methodAttributes, ParameterInfo parameterInfo, RequestBodyInfo requestBodyInfo) {<NEW_LINE>RequestBody requestBody = requestBodyInfo.getRequestBody();<NEW_LINE>MethodParameter methodParameter = parameterInfo.getMethodParameter();<NEW_LINE>// G...
methodParameter.getParameterAnnotation(RequestPart.class);
869,700
default Member forMember(String descriptor, ClassLoader... loaders) throws ReflectionsException {<NEW_LINE>int p0 = descriptor.lastIndexOf('(');<NEW_LINE>String memberKey = p0 != -1 ? descriptor.substring(0, p0) : descriptor;<NEW_LINE>String methodParameters = p0 != -1 ? descriptor.substring(p0 + 1, descriptor.lastInde...
<?>[]::new);
67,976
final CreateApplicationResult executeCreateApplication(CreateApplicationRequest createApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateApplication");