idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,489,504
public static RectangleLength2D_I32 boundBox(int srcWidth, int srcHeight, Point2D_F32 work, PixelTransform<Point2D_F32> transform) {<NEW_LINE>int x0, y0, x1, y1;<NEW_LINE>transform.compute(0, 0, work);<NEW_LINE>x0 = x1 = (int) work.x;<NEW_LINE>y0 = y1 = (int) work.y;<NEW_LINE>for (int i = 1; i < 4; i++) {<NEW_LINE>if (...
x1 = (int) work.x;
945,357
private void createStatistic(Map<String, SamplingStatistic> statistics, MapResultData resultData) {<NEW_LINE>LOGGER.debug("Creating statistics for result data:{}", resultData);<NEW_LINE>SamplingStatistic statistic = new SamplingStatistic();<NEW_LINE>ListResultData listResultData = (ListResultData) resultData.getResult(...
8)).getValue());
29,975
@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>public void updateRequiredAction(@PathParam("alias") String alias, RequiredActionProviderRepresentation rep) {<NEW_LINE>auth.realm().requireManageRealm();<NEW_LINE>RequiredActionProviderModel model = realm.getRequiredActionProviderByAlias(alias);<NEW_LINE>if (model == null...
setId(model.getId());
1,514,042
private void handle(IpRangeDeletionMsg msg) {<NEW_LINE>thdf.chainSubmit(new ChainTask(msg) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getSyncSignature() {<NEW_LINE>return getSyncId();<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(SyncTaskChain chain) {<NEW_LINE>IpRangeDeletionReply reply =...
bus.reply(msg, reply);
1,369,599
public CachePurgeReport purgeCache() {<NEW_LINE>CachePurgeReport result = new CachePurgeReport();<NEW_LINE>Cache<String, ProcessDefinitionEntity> processDefinitionCache = getProcessDefinitionCache();<NEW_LINE>if (!processDefinitionCache.isEmpty()) {<NEW_LINE>result.addPurgeInformation(CachePurgeReport.PROCESS_DEF_CACHE...
, CmmnModelInstance> cmmnModelInstanceCache = getCmmnModelInstanceCache();
1,249,756
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create context EveryNowAndThen as start SupportBean_S0 as s0 end SupportBean_S1 as s1", path);<NEW_LINE>String[] fields = "c1,c2".split(",");<NEW_LINE>env.compileDeploy("@name('s0') cont...
new SupportBean_S0(103, "S0_3"));
1,383,514
public static CaseStats load(JurisdictionType type, String jurisdiction) {<NEW_LINE>StoredCaseStats ret = ofy().load().type(StoredCaseStats.class).id(type.getValue() + <MASK><NEW_LINE>if (ret == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<StatSnapshot> timeseries = ret.timeseries != null ? ret.timeseries.str...
":" + jurisdiction).now();
1,172,349
public CreateListenerResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CreateListenerResult createListenerResult = new CreateListenerResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_...
new ArrayList<Listener>());
1,135,414
private void fixDocLengths(List<List<IN>> docs) {<NEW_LINE>final int maxDocSize = flags.maxDocSize;<NEW_LINE>// allocated lazily<NEW_LINE>WordToSentenceProcessor<IN> wts = null;<NEW_LINE>List<List<IN>> newDocuments = new ArrayList<>();<NEW_LINE>for (List<IN> document : docs) {<NEW_LINE>if (maxDocSize <= 0 || document.s...
newDocument = new ArrayList<>();
44,218
public void execute() throws BuildException {<NEW_LINE>if (name == null)<NEW_LINE>throw new BuildException("Name of property to set have to be specified", this.getLocation());<NEW_LINE>if (propertiesList == null)<NEW_LINE>throw new BuildException("List of clusters have to be specified", this.getLocation());<NEW_LINE>th...
.nextToken().trim();
350,039
private static Set<StandardButton> determineVisibleButtons(final HelpdeskProfile helpdeskProfile) {<NEW_LINE>final Set<StandardButton> buttons = new LinkedHashSet<>();<NEW_LINE>buttons.add(StandardButton.refresh);<NEW_LINE>buttons.add(StandardButton.back);<NEW_LINE>{<NEW_LINE>final HelpdeskUIMode uiMode = helpdeskProfi...
buttons.add(StandardButton.unlock);
1,284,660
private static void appendAutoScrollAssignment(FacesContext context, ScriptContext scriptContext, String formName) {<NEW_LINE>String formNameStr = formName == null ? "formName" : (new StringBuilder("'").append(formName).append("'").toString());<NEW_LINE>String paramName = new StringBuilder().append("'").append(AUTO_SCR...
(value).append(");");
894,462
public String downloadAvatar(Long userId, String uuid) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'userId' is set<NEW_LINE>if (userId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'userId' when calling downloadAvatar");<NEW_...
HashMap<String, String>();
549,570
public Uri generateJsonUri() {<NEW_LINE>final Uri.Builder builder = new Uri.Builder();<NEW_LINE>builder.scheme(Constants.Reddit.getScheme()).authority(<MASK><NEW_LINE>if (username != null) {<NEW_LINE>builder.encodedPath("/user/");<NEW_LINE>builder.appendPath(username);<NEW_LINE>} else {<NEW_LINE>builder.encodedPath("/m...
Constants.Reddit.getDomain());
1,183,418
public static void main(String[] args) {<NEW_LINE>// Creating a binary tree<NEW_LINE>BinaryTreeDiameter t = new BinaryTreeDiameter();<NEW_LINE>t.root = new Node(1);<NEW_LINE>t.root.left = new Node(3);<NEW_LINE>t.root.right = new Node(2);<NEW_LINE>t.root.left.left = new Node(7);<NEW_LINE>t.root.left.right = new Node(6);...
.left = new Node(5);
425,294
public static JMethodCall transformToNullMethodCall(JMethodCall x, JProgram program) {<NEW_LINE>JExpression instance = x.getInstance();<NEW_LINE>List<JExpression> args = x.getArgs();<NEW_LINE>if (program.isStaticImpl(x.getTarget())) {<NEW_LINE>instance = args.get(0);<NEW_LINE>args = args.subList(1, args.size());<NEW_LI...
instance, program.getNullMethod());
959,740
public void display(GLAutoDrawable glautodrawable) {<NEW_LINE>GL2 gl = glautodrawable.getGL().getGL2();<NEW_LINE>if (DEBUG) {<NEW_LINE>gl = new DebugGL2(gl);<NEW_LINE>}<NEW_LINE>camera.simpleAnimate();<NEW_LINE>camera.applyCamera(gl);<NEW_LINE>// int width = glautodrawable.getWidth();<NEW_LINE>gl.glClearColor(1.f, 1.f,...
gl.glEnable(GL2.GL_VERTEX_PROGRAM_POINT_SIZE);
663,829
public List<Fix> run(CompilationInfo info, String diagnosticKey, int offset, TreePath treePath, Data<Void> data) {<NEW_LINE>if (treePath == null || !TreeUtilities.CLASS_TREE_KINDS.contains(treePath.getLeaf().getKind())) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (treePath.getLeaf().getKind() == Tree.Kind.INTERFACE)...
, false).toEditorFix());
1,199,147
private void updateVDisplay(boolean next) {<NEW_LINE>if (m_archives == null)<NEW_LINE>m_archives = new MArchive[0];<NEW_LINE>if (next)<NEW_LINE>m_index++;<NEW_LINE>else<NEW_LINE>m_index--;<NEW_LINE>if (m_index >= m_archives.length - 1)<NEW_LINE>m_index = m_archives.length - 1;<NEW_LINE>if (m_index < 0)<NEW_LINE>m_index...
setText(ar.getCreatedByName());
739,882
private static Map<String, IpsecPeerConfig> toIpsecPeerConfigs(Configuration c, CryptoMapEntry cryptoMapEntry, String cryptoMapNameSeqNumber, String cryptoMapName, String ipsecPhase2Policy, Warnings w) {<NEW_LINE>List<org.batfish.datamodel.Interface> referencingInterfaces = c.getAllInterfaces().values().stream().filter...
collect(Collectors.toList());
176,495
private static IrPolygon[] quadToTri(IrPolygon quad) {<NEW_LINE>if (quad.vertices.length == 3) {<NEW_LINE>throw new IllegalStateException("Already a triangle");<NEW_LINE>}<NEW_LINE>IrPolygon[] t = new IrPolygon[] { new IrPolygon(), new IrPolygon() };<NEW_LINE>t[0].vertices = new IrVertex[3];<NEW_LINE>t[1].vertices = ne...
pos.distanceSquared(v3.pos);
247,856
private String unifyRow(String statement, JSONObject row, boolean urlencode) {<NEW_LINE>for (String key : row.keySet()) {<NEW_LINE>int i;<NEW_LINE>Object value = row.get(key);<NEW_LINE>if (value instanceof JSONObject) {<NEW_LINE>JSONObject subobj = (JSONObject) value;<NEW_LINE>for (String subkey : subobj.keySet()) {<NE...
URLEncoder.encode(substitution, "UTF-8");
1,834,551
private static List<Change> diffUntyped(Map<String, ?> before, Map<String, ?> after, String propertyNameBefore, String propertyNameAfter) {<NEW_LINE>var removed = new HashSet<>(before.keySet());<NEW_LINE>removed.removeAll(after.keySet());<NEW_LINE>var added = new HashSet<>(after.keySet());<NEW_LINE>added.removeAll(befo...
afterValue = after.get(k);
1,417,296
private void updateWifi() {<NEW_LINE>if ((mTrayViewModel.getWifiConnected().getValue() != null) && mTrayViewModel.getWifiConnected().getValue().get()) {<NEW_LINE>WifiManager wifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE);<NEW_LINE>if (wifiManager != null) {<NEW_LINE>WifiInfo wifiInfo = ...
getString(R.string.tray_wifi_no_connection);
1,739,411
public void read(org.apache.thrift.protocol.TProtocol prot, compactionFailed_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(4);<NEW_LINE>if (incoming.get...
struct.extent.read(iprot);
213,010
protected void loadBeanDefinitions(DefaultListableBeanFactory beanFactory) {<NEW_LINE>AnnotatedBeanDefinitionReader reader = getAnnotatedBeanDefinitionReader(beanFactory);<NEW_LINE>ClassPathBeanDefinitionScanner scanner = getClassPathBeanDefinitionScanner(beanFactory);<NEW_LINE>BeanNameGenerator beanNameGenerator = get...
trace("Registering [" + configLocation + "]");
893,231
private Pair<Boolean, SampleMetadata> readMetadata(char separator, boolean useSaveSampleCfg) {<NEW_LINE>try {<NEW_LINE>SampleMetadata result;<NEW_LINE>// Read first line<NEW_LINE>String line = reader.readLine();<NEW_LINE>this.row++;<NEW_LINE>if (line == null) {<NEW_LINE>throw new IllegalArgumentException("File is empty...
(separator).parse(line);
1,495,439
public void execute(String commandName, final ConsoleInput ci, List<String> args) {<NEW_LINE>if (args.size() < 3) {<NEW_LINE>printHelp(ci.out, args);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File input_file = new File(args.get(0));<NEW_LINE>if (!input_file.exists()) {<NEW_LINE>ci.out.println("Input file '" + input_file.get...
urls = new ArrayList<>();
1,294,082
static void validateProperties(String prefix, com.zeroc.Ice.Properties properties) {<NEW_LINE>java.util.Map<String, String> props = properties.getPropertiesForPrefix(prefix);<NEW_LINE>java.util.List<String> unknownProps = new java.util.ArrayList<>();<NEW_LINE>for (String prop : props.keySet()) {<NEW_LINE>boolean valid ...
StringBuffer message = new StringBuffer("found unknown IceMX properties for `");
272,565
void checkSpecificAccessControl() throws UnauthorizedAccessException {<NEW_LINE>String courseId = getNonNullRequestParamValue(Const.ParamsNames.COURSE_ID);<NEW_LINE>String feedbackSessionName = getNonNullRequestParamValue(Const.ParamsNames.FEEDBACK_SESSION_NAME);<NEW_LINE>FeedbackSessionAttributes fs = getNonNullFeedba...
courseId, userInfo.getId());
430,383
public long handle(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer <MASK><NEW_LINE>UnidbgPointer clazz = context.getPointerArg(2);<NEW_LINE>UnidbgPointer jmethodID = context.getPointerArg(3);<NEW_LINE>UnidbgPointer va_list = context.getPointerArg(4);<NEW_LINE>if ...
object = context.getPointerArg(1);
1,155,380
public ProcessStatus doUploadFile(final PwmRequest pwmRequest) throws PwmUnrecoverableException, IOException, ServletException {<NEW_LINE>final ConfigManagerBean configManagerBean = getBean(pwmRequest);<NEW_LINE>final String <MASK><NEW_LINE>final PwmSetting pwmSetting = PwmSetting.forKey(settingKey).orElseThrow(() -> n...
settingKey = pwmRequest.readParameterAsString(REQ_PARAM_KEY);
262,443
public AuthStatus validateResponse(MessageInfo arg0, Subject arg1, Subject arg2) throws AuthException {<NEW_LINE>AuthStatus[] status <MASK><NEW_LINE>for (int i = 0; i < module.length; i++) {<NEW_LINE>if (module[i] == null) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>if (isLoggable(FINE)) {<NEW_LINE>logIfLevel(FINE, null, ...
= new AuthStatus[module.length];
1,469,964
public void onCreate() {<NEW_LINE>super.onCreate();<NEW_LINE>_vaultManager = EarlyEntryPoints.get(this, EntryPoint.class).getVaultManager();<NEW_LINE>Iconics.init(this);<NEW_LINE>Iconics.registerFont(new MaterialDesignIconic());<NEW_LINE>// listen for SCREEN_OFF events<NEW_LINE>ScreenOffReceiver receiver = new ScreenOf...
intentFilter.addAction(Intent.ACTION_SCREEN_OFF);
571,464
public long read(ByteBuffer[] dsts) throws IOException {<NEW_LINE>if (dsts == null)<NEW_LINE>throw new NullPointerException();<NEW_LINE>ensureOpen();<NEW_LINE>synchronized (lock) {<NEW_LINE>long n = 0;<NEW_LINE>try {<NEW_LINE>begin();<NEW_LINE>if (!isOpen())<NEW_LINE>return 0;<NEW_LINE>thread = NativeThread.current();<...
, Net.POLLIN, -1);
33,153
protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite composite = (Composite) super.createDialogArea(parent);<NEW_LINE>Composite container = new Composite(composite, SWT.None);<NEW_LINE>GridDataFactory.fillDefaults().grab(true, true).hint(400<MASK><NEW_LINE>GridLayoutFactory.fillDefaults().numColumn...
, 300).applyTo(container);
319,105
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "p0,p1".split(",");<NEW_LINE>env.compileDeploy("@name('flow') create dataflow MyDataFlow " + "Emitter -> outstream<MyOAEventType> {name:'src1'}" + "DefaultSupportCaptureOp(outstream) {}");<NEW_LINE>DefaultSupportCaptureOp<Object> captureOp = new De...
EPDataFlowInstanceCaptive captiveStart = instance.startCaptive();
1,242,725
public synchronized QueryStatement init() throws UserException {<NEW_LINE>Preconditions.checkNotNull(inlineViewDef);<NEW_LINE>// Parse the expanded view definition SQL-string into a QueryStmt and<NEW_LINE>// populate a view definition.<NEW_LINE>ParseNode node;<NEW_LINE>try {<NEW_LINE>node = com.starrocks.sql.parser.Sql...
, sqlMode).get(0);
789,376
public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>OsmandApplication app = requiredMyApplication();<NEW_LINE>if (savedInstanceState != null) {<NEW_LINE>minZoom = savedInstanceState.getInt(MIN_ZOOM_KEY);<NEW_LINE>maxZoom = savedInstanceState.getInt(MAX_ZOOM_KEY);<NEW_LINE>dialogDescrRes = savedInstanceSta...
findViewById(R.id.zoom_slider);
635,202
private void checkForUpdates(final boolean autoRun) {<NEW_LINE>final Date now = new Date();<NEW_LINE>ResourceController.getResourceController().setProperty(LAST_UPDATE_CHECK_TIME, Long.toString(now.getTime()));<NEW_LINE>final String translatedWebUpdate = getWebUpdateUrl(ConnectionStatus.TRANSLATED.language);<NEW_LINE>f...
? ConnectionStatus.DEFAULT : ConnectionStatus.FAILURE;
1,512,716
public void leave(DelegateExecution childExecution) {<NEW_LINE>DelegateExecution multiInstanceRootExecution = getMultiInstanceRootExecution(childExecution);<NEW_LINE>int nrOfInstances = getLoopVariable(multiInstanceRootExecution, NUMBER_OF_INSTANCES);<NEW_LINE>int loopCounter = getLoopVariable(childExecution, getCollec...
.getCommandContext().getExecutionEntityManager();
1,123,464
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// authentication with an API key or named user is required to access basemaps and other<NEW_LINE>// location services<NEW_LINE>ArcGISRuntimeEnvironment.setApiKey(B...
Log.e(TAG, error);
850,910
public static IBinaryModule rawReadModuleTestForExists(BinaryModuleDescriptor descriptor, boolean fullyInitialize, boolean useInvalidArchiveCache) throws JavaModelException, ClassFormatException, FileNotFoundException {<NEW_LINE>if (descriptor == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (descriptor.isInJarF...
Util.getZipEntryByteContent(ze, zip);
566,995
protected Object wrapIfNecessary(Object bean, String beanName, Object cacheKey) {<NEW_LINE>if (StringUtils.hasLength(beanName) && this.targetSourcedBeans.contains(beanName)) {<NEW_LINE>return bean;<NEW_LINE>}<NEW_LINE>if (Boolean.FALSE.equals(this.advisedBeans.get(cacheKey))) {<NEW_LINE>return bean;<NEW_LINE>}<NEW_LINE...
put(cacheKey, Boolean.FALSE);
1,489,957
public PriceAndTax calculatePriceAndTax(@NonNull final I_C_Invoice_Candidate icRecord) {<NEW_LINE>final I_C_OrderLine orderLine = InterfaceWrapperHelper.create(icRecord.getC_OrderLine(), I_C_OrderLine.class);<NEW_LINE>final org.compiere.model.I_C_Order order = orderLine.getC_Order();<NEW_LINE>DocumentLocation orderDeli...
(order.getC_Currency_ID()));
1,832,892
private void packTilesets(FileHandle inputDirHandle, Settings texturePackerSettings) throws IOException {<NEW_LINE>BufferedImage tile;<NEW_LINE>Vector2 tileLocation;<NEW_LINE>Graphics g;<NEW_LINE>packer = new TexturePacker(texturePackerSettings);<NEW_LINE>for (TiledMapTileSet set : tilesetsToPack.values()) {<NEW_LINE>S...
File(relativeTilesetOutputDir.getCanonicalPath());
114,471
public static DescribeFunctionResponse unmarshall(DescribeFunctionResponse describeFunctionResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeFunctionResponse.setRequestId(_ctx.stringValue("DescribeFunctionResponse.RequestId"));<NEW_LINE>describeFunctionResponse.setHttpStatusCode(_ctx.stringValue("DescribeFunctionR...
(_ctx.stringValue("DescribeFunctionResponse.Function.FunctionSpec.Memory"));
1,787,814
private void processAttributes(Builder builder, Set<ClassMember> publicProperties) {<NEW_LINE>if (publicProperties == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (ClassMember classMember : publicProperties) {<NEW_LINE>if (classMember instanceof ClassProperty) {<NEW_LINE>ClassProperty property = (ClassProperty) cla...
attributeDefDesc, attrBuilder.build());
1,735,548
private Response sendVerifyEmail(RequiredActionContext context) throws UriBuilderException, IllegalArgumentException {<NEW_LINE>KeycloakSession session = context.getSession();<NEW_LINE>UserModel user = context.getUser();<NEW_LINE>AuthenticationSessionModel authSession = context.getAuthenticationSession();<NEW_LINE>Even...
attributes = new HashMap<>();
1,721,757
private static void verifyFrame(NodeData node) {<NEW_LINE>final List<NodeExecutionData> childExecutions = node.getChildExecutions();<NEW_LINE>final ExecutableTypeData[] requiresFrameParameter = new <MASK><NEW_LINE>boolean needsCheck = false;<NEW_LINE>for (int i = 0; i < childExecutions.size(); i++) {<NEW_LINE>final Nod...
ExecutableTypeData[childExecutions.size()];
1,105,647
public InvokeDynamicAST visit(int lineNo, String line) throws ASTParseException {<NEW_LINE>try {<NEW_LINE>// Split here:<NEW_LINE>// v v v<NEW_LINE>// INVOKEDYNAMIC name desc handle[...] args[...]<NEW_LINE>String[] trim = line.trim().split("\\s+(?=.*\\[(?=.*\\[))");<NEW_LINE>if (trim.length < 4)<NEW_LINE>throw ne...
NameParser nameParser = new NameParser(this);
1,766,231
private void dumpBuildNativeTarget(PrintStreamTab ps) {<NEW_LINE>PrintStreamTab bodyPs = new PrintStreamTab(ps);<NEW_LINE>PrintStreamTab childPs = new PrintStreamTab(bodyPs);<NEW_LINE>ps.println(buildNativeTarget.uuidWithComment() + " = {");<NEW_LINE>bodyPs.println("isa = PBXNativeTarget;");<NEW_LINE>bodyPs.println("bu...
buildNativeTarget.getName() + "\";");
1,842,006
private void expandAndSetParams(final View l) {<NEW_LINE>l.setVisibility(View.VISIBLE);<NEW_LINE>final int widthSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);<NEW_LINE>final int heightSpec = View.MeasureSpec.makeMeasureSpec(<MASK><NEW_LINE>l.measure(widthSpec, heightSpec);<NEW_LINE>View l2 = ...
0, View.MeasureSpec.UNSPECIFIED);
827,997
public static void load() throws FileNotFoundException, IOException, NumberFormatException {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>properties.loadFromXML(new FileInputStream(PROPERTY_FILE));<NEW_LINE>if (properties.containsKey("KALDI_HOST"))<NEW_LINE>KALDI_HOST = properties.getProperty("KALDI_HOST...
MLF_FILENAME = properties.getProperty("MLF_FILENAME");
237,804
public static ProtoModule loadModule(Properties props, String name, CachingProtoLoader loader, File baseDirForSource, File baseDirForOutput, Properties globalOptions, String[] profileOptions, String[] rootProfileOptions) {<NEW_LINE>String source = props.getProperty(name + ".source");<NEW_LINE>if (source == null)<NEW_LI...
encoding, outputDir, baseDirForSource, baseDirForOutput);
1,531,404
private void authorizeModificationStatement(CQLStatement statement, AuthenticationSubject authenticationSubject, AuthorizationService authorization) {<NEW_LINE>ModificationStatement castStatement = (ModificationStatement) statement;<NEW_LINE>Scope scope;<NEW_LINE>if (statement instanceof DeleteStatement) {<NEW_LINE>sco...
, castStatement.table()));
1,145,013
public static GetQualityResultResponse unmarshall(GetQualityResultResponse getQualityResultResponse, UnmarshallerContext _ctx) {<NEW_LINE>getQualityResultResponse.setRequestId(_ctx.stringValue("GetQualityResultResponse.RequestId"));<NEW_LINE>getQualityResultResponse.setMessage(_ctx.stringValue("GetQualityResultResponse...
("GetQualityResultResponse.Data.QualityResultResponseList[" + i + "].HitStatus"));
1,855,136
public ImagePackage unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ImagePackage imagePackage = new ImagePackage();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
JsonToken token = context.getCurrentToken();
954,985
public void instanceCodegen(CodegenInstanceAux instance, CodegenClassScope classScope, CodegenCtor factoryCtor, List<CodegenTypedParam> factoryMembers) {<NEW_LINE>instance.getMethods().addMethod(AggregationService.EPTYPE, "getAggregationService", Collections.emptyList(), this.getClass(), classScope, methodNode -> metho...
] havingForges = perLevelForges.getOptionalHavingForges();
25,782
public void init(AgentConfig agentConfig) throws IOException {<NEW_LINE>this.agentConfig = agentConfig;<NEW_LINE>Set<String> systemDataCollector = new HashSet<>();<NEW_LINE>systemDataCollector.add(SYSTEM);<NEW_LINE>MonitorContext.<MASK><NEW_LINE>int port = agentConfig.getMonitorProperties().getPropertyInt(PROP_MONITOR_...
getInstance().setDataCollectors(systemDataCollector);
400,852
protected JRElement createCellElement(JRElementGroup elementGroup, BaseCell cell, int originalWidth, int width, int x, int y, Integer columnHashCode) {<NEW_LINE>List<JRChild> children = cell.getChildren();<NEW_LINE>if (children.size() != 1) {<NEW_LINE>// several children<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>JRChil...
instance().resolveElementMode(element);
344,883
private boolean checkCrossSystemConnection(Inter source, Inter target) {<NEW_LINE>// Check configuration<NEW_LINE>final SystemInfo srcSystem = source.getSig().getSystem();<NEW_LINE>final SystemInfo tgtSystem = target.getSig().getSystem();<NEW_LINE>if (srcSystem == tgtSystem) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE...
stopSlur, ConnectionTask.Kind.SLUR_CONNECTION);
787,370
public JsonCreateInvoiceCandidatesResponse createInvoiceCandidates(@NonNull final JsonCreateInvoiceCandidatesRequest request) {<NEW_LINE>final ImmutableMap<InvoiceCandidateLookupKey, JsonCreateInvoiceCandidatesRequestItem> lookupKey2Item = Maps.uniqueIndex(request.getItems(), this::createInvoiceCandidateLookupKey);<NEW...
JsonCreateInvoiceCandidatesRequestItem item = keyWithItem.getValue();
246,907
protected void addChild() {<NEW_LINE>// Create new object from the factory<NEW_LINE>fChild = <MASK><NEW_LINE>// Set the location from the supplied bounds in the creation request<NEW_LINE>fChild.getBounds().setLocation(fBounds.x, fBounds.y);<NEW_LINE>// Sub-classes might have a preferred size...<NEW_LINE>Dimension prefe...
(IDiagramModelObject) fRequest.getNewObject();
794,128
public Object convert(Object object, TiTableInfo tableInfo, org.tikv.common.types.DataType dataType) throws Exception {<NEW_LINE>int arity = fieldNames.length;<NEW_LINE>GenericRowData row = new GenericRowData(arity);<NEW_LINE>for (int i = 0; i < arity; i++) {<NEW_LINE>String fieldName = fieldNames[i];<NEW_LINE>TiColumn...
row.setField(i, null);
652,197
private void applyChange() {<NEW_LINE>// Changes will not be accepted if units fail<NEW_LINE>if (!areUnitsCompatible()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// go through all dataFields<NEW_LINE>for (int i = 0; i < dataFields.size(); i++) {<NEW_LINE>JComponent thisField = dataFields.get(i);<NEW_LINE>if (thisField ins...
) thisField).getSelectedItem());
1,690,025
protected void onClick() {<NEW_LINE>if (!(getContext() instanceof Activity)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER);<NEW_LINE>intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TYPE, RingtoneManager.TYPE_NOTIFICATION);<NEW_LINE>intent.putExtra(RingtoneManag...
EXTRA_RINGTONE_DEFAULT_URI, Settings.System.DEFAULT_NOTIFICATION_URI);
1,291,694
public void marshall(AwsApiGatewayV2StageDetails awsApiGatewayV2StageDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsApiGatewayV2StageDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(aws...
awsApiGatewayV2StageDetails.getAccessLogSettings(), ACCESSLOGSETTINGS_BINDING);
1,061,735
public Void call() throws Exception {<NEW_LINE>if (mapFile == null || !Files.exists(mapFile))<NEW_LINE>throw new IllegalStateException("No mapping file provided!");<NEW_LINE>// Apply<NEW_LINE>Mappings mappings = mapper.create(mapFile, getWorkspace());<NEW_LINE>mappings.setClearDebugInfo(noDebug);<NEW_LINE>mappings.setC...
getFiles().get("META-INF/MANIFEST.MF");
1,178,465
protected boolean beforeSave(boolean newRecord) {<NEW_LINE>// if (getMultiplier(this) == null) // error<NEW_LINE>// setMeasureDisplay(getMeasureScope());<NEW_LINE>// Measure required if nor Summary<NEW_LINE>if (!isSummary() && getPA_Measure_ID() == 0 && getAD_Chart_ID() == 0) {<NEW_LINE>log.saveError("FillMandatory", M...
getCtx(), getAD_User_ID());
335,204
static void genCommands(PrintWriter pw, CommandSpec spec) {<NEW_LINE>// remove hidden subcommands before tags are added<NEW_LINE>Map<String, CommandLine> subCommands = new LinkedHashMap<String, CommandLine>(spec.subcommands());<NEW_LINE>for (Iterator<Map.Entry<String, CommandLine>> iter = subCommands.entrySet().iterato...
[i].toString());
1,079,197
protected void addConfiguration(Map<String, Object> out) {<NEW_LINE>super.addConfiguration(out);<NEW_LINE>out.put("Empty value", emptyValue);<NEW_LINE>out.put("Unescaped quote handling", unescapedQuoteHandling);<NEW_LINE>out.put("Escape unquoted values", escapeUnquotedValues);<NEW_LINE>out.put("Keep escape sequences", ...
out.put("Keep quotes", keepQuotes);
723,139
public static void show(final XmppActivity xmppActivity, final Blockable blockable) {<NEW_LINE>final AlertDialog.Builder builder <MASK><NEW_LINE>final boolean isBlocked = blockable.isBlocked();<NEW_LINE>builder.setNegativeButton(R.string.cancel, null);<NEW_LINE>DialogBlockContactBinding binding = DataBindingUtil.inflat...
= new AlertDialog.Builder(xmppActivity);
1,310,250
private void showLocationsOnMap() {<NEW_LINE>String locationName;<NEW_LINE>LatLngBounds.Builder builder = new LatLngBounds.Builder();<NEW_LINE>if (mLocations == null || mLocations.isEmpty())<NEW_LINE>return;<NEW_LINE>// Add search names for all locations<NEW_LINE>for (MicrolocationClusterWrapper microlocation : mLocati...
= getActivity().getCurrentFocus();
1,656,370
public void search2(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>request = wrapRequest(request);<NEW_LINE>Player player = playerService.getPlayer(request, response);<NEW_LINE>String username = securityService.getCurrentUsername(request);<NEW_LINE>Integer musicFolderId = getIntPa...
(request, "albumOffset", 0));
285,627
public boolean hasAnnotationInArchiveWithNoScanning(ReadableArchive archive) throws IOException {<NEW_LINE>Types types = null;<NEW_LINE>if (archive.getParentArchive() != null) {<NEW_LINE>types = archive.getParentArchive().getExtraData(Types.class);<NEW_LINE>} else {<NEW_LINE>types = archive.getExtraData(Types.class);<N...
.getLibraryJarURIs(null, archive));
369,675
public WebElement findElement(RemoteWebDriver driver, SearchContext context, BiFunction<String, Object, CommandPayload> createPayload, By locator) {<NEW_LINE>Require.nonNull("WebDriver", driver);<NEW_LINE>Require.nonNull("Context for finding elements", context);<NEW_LINE>Require.nonNull("Method for creating remote requ...
driver, context, createPayload, locator);
3,266
public ChangeInfo unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ChangeInfo changeInfo = new ChangeInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>while (t...
().unmarshall(context));
1,199,666
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>ViewGroup view = (ViewGroup) inflater.inflate(R.layout.publicize_button_prefs_fragment, container, false);<NEW_LINE>mPrefButtonStyle = view.findViewById(R.id.pref_button_style);<NEW_LINE>mPre...
findViewById(R.id.pref_show_reblog);
1,318,734
public Mono<String> clientSetname(K name) {<NEW_LINE>List<Publisher<String>> <MASK><NEW_LINE>publishers.add(super.clientSetname(name));<NEW_LINE>for (RedisClusterNode redisClusterNode : getStatefulConnection().getPartitions()) {<NEW_LINE>Mono<RedisClusterReactiveCommands<K, V>> byNodeId = getConnectionReactive(redisClu...
publishers = new ArrayList<>();
112,575
private OQueryOperator extractConditionOperator() {<NEW_LINE>if (!parserSkipWhiteSpaces())<NEW_LINE>// END OF PARSING: JUST RETURN<NEW_LINE>return null;<NEW_LINE>if (parserGetCurrentChar() == ')')<NEW_LINE>// FOUND ')': JUST RETURN<NEW_LINE>return null;<NEW_LINE>final OQueryOperator[] operators = OSQLEngine.getInstance...
parserNextChars(true, false, candidateOperators);
1,556,011
void switchPlatformPanel() {<NEW_LINE>assert EventQueue.isDispatchThread();<NEW_LINE>assert platformProviderPanel.isVisible();<NEW_LINE>if (selectedPanel != null) {<NEW_LINE>selectedPanel.removeChangeListener(this);<NEW_LINE>}<NEW_LINE>platformProviderPanel.removeAll();<NEW_LINE>selectedPanel = getSelectedPanel();<NEW_...
getComponent(), BorderLayout.CENTER);
1,320,671
public byte[] toPhysicalBytes(Configs configs) throws BuildPhysicalException {<NEW_LINE>if (ptrPlan == null) {<NEW_LINE>throw new BuildPhysicalException("ptrPlan is NullPointer");<NEW_LINE>}<NEW_LINE>// hack way to notify shuffle<NEW_LINE>int servers = PegasusConfig.PEGASUS_HOSTS.get(configs<MASK><NEW_LINE>int workers ...
).split(",").length;
1,370,332
public IRubyObject recv_io(ThreadContext context, IRubyObject[] args) {<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>final POSIX posix = runtime.getPosix();<NEW_LINE>OpenFile fptr = getOpenFileChecked();<NEW_LINE>IRubyObject klass = runtime.getIO();<NEW_LINE><MASK><NEW_LINE>if (args.length > 0) {<NEW_LINE>kl...
IRubyObject mode = runtime.getNil();
123,160
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent sourcePermanent = game.getPermanent(source.getSourceId());<NEW_LINE>if (controller != null && sourcePermanent != null) {<NEW_LINE><MASK><NEW_LINE>Set<String> abilityChoices = new H...
Choice abilityChoice = new ChoiceImpl(true);
224,608
public ImportAssetFromSignedUrlJobErrorDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ImportAssetFromSignedUrlJobErrorDetails importAssetFromSignedUrlJobErrorDetails = new ImportAssetFromSignedUrlJobErrorDetails();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><...
String currentParentElement = context.getCurrentParentElement();
444,867
public static void main(String[] args) throws Exception {<NEW_LINE>// Build an Athena client<NEW_LINE>AthenaClientFactory factory = new AthenaClientFactory();<NEW_LINE>AmazonAthena athenaClient = factory.createClient();<NEW_LINE>String sampleQueryExecutionId = submitAthenaQuery(athenaClient);<NEW_LINE>// Submit the sto...
StopQueryExecutionRequest().withQueryExecutionId(sampleQueryExecutionId);
633,100
public Type merge(Type other, Scene cm) {<NEW_LINE>if (other.equals(UnknownType.v()) || this.equals(other)) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (!(other instanceof RefType)) {<NEW_LINE>throw new RuntimeException(<MASK><NEW_LINE>}<NEW_LINE>{<NEW_LINE>// Return least common superclass<NEW_LINE>final SootClass ...
"illegal type merge: " + this + " and " + other);
235,581
public void processGremlinQuery(Client client, HashMap<String, String> singleParameter, boolean printResult, boolean printQuery) {<NEW_LINE>try {<NEW_LINE>String gremlinQuery = generateGremlinQuery(singleParameter, queryPattern);<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>ResultSet resultSet = clien...
System.out.println(printInfo);
282,629
void update(ReaderGroupState state) {<NEW_LINE>Map<SegmentWithRange, Long> assignedSegments = state.assignedSegments.remove(readerId);<NEW_LINE>Map<Segment, Long> finalPositions = new HashMap<>();<NEW_LINE>if (assignedSegments != null) {<NEW_LINE>val iter = assignedSegments.entrySet().iterator();<NEW_LINE>while (iter.h...
> entry = iter.next();
438,272
private final void acceptNative(Context<?> ctx) {<NEW_LINE>ctx.visit(K_CASE);<NEW_LINE>int size = compareValues.size();<NEW_LINE>ctx.sql(' ').visit(value).formatIndentStart();<NEW_LINE>for (int i = 0; i < size; i++) ctx.formatSeparator().visit(K_WHEN).sql(' ').visit(compareValues.get(i)).sql(' ').visit(K_THEN).sql(' ')...
(' ').visit(K_NULL);
409,787
protected void configure() {<NEW_LINE>bind(PurchaseOrderRepository.class).to(PurchaseOrderManagementRepository.class);<NEW_LINE>bind(PurchaseOrderService.class).to(PurchaseOrderServiceImpl.class);<NEW_LINE>bind(AppPurchaseService.class).to(AppPurchaseServiceImpl.class);<NEW_LINE>bind(PurchaseRequestService.class).to(Pu...
).to(PurchaseOrderLineServiceImpl.class);
835,907
public Contentlet saveDraft(final Contentlet contentlet, final ContentletRelationships contentletRelationships, final List<Category> cats, final List<Permission> permissions, final User user, boolean respectFrontendRoles) throws IllegalArgumentException, DotDataException, DotSecurityException, DotContentletStateExcepti...
false, contentlet.getLanguageId());
701,004
protected void encodeOptionInput(FacesContext context, SelectManyCheckbox selectManyCheckbox, Checkbox checkbox, String id, String name, boolean disabled) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String tabindex = checkbox.getTabindex();<NEW_LINE>if (tabindex == null) ...
writeAttribute("tabindex", tabindex, null);
523,378
public void applyBlock(BlockCapsule block) {<NEW_LINE>long nowTime = System.currentTimeMillis();<NEW_LINE>String witnessAddress = Hex.toHexString(block.getWitnessAddress().toByteArray());<NEW_LINE>// witness info<NEW_LINE>if (witnessInfo.containsKey(witnessAddress)) {<NEW_LINE>BlockCapsule <MASK><NEW_LINE>if ((!oldBloc...
oldBlock = witnessInfo.get(witnessAddress);
499,453
void startResponse(Resp resp, Channel channel, int code, boolean isKeepAlive, MediaType contentType) {<NEW_LINE>channel.write(code == 200 ? HTTP_200_OK : HttpResponseCodes.get(code));<NEW_LINE><MASK><NEW_LINE>if (resp != null) {<NEW_LINE>if (U.notEmpty(resp.headers())) {<NEW_LINE>for (Map.Entry<String, String> e : resp...
addDefaultHeaders(channel, isKeepAlive, contentType);
988,877
protected void configureConnectOptions(IPreparedQuery q) {<NEW_LINE>if (baseURI != null) {<NEW_LINE>q.addRequestParam(RemoteRepositoryDecls.BASE_URI, baseURI);<NEW_LINE>}<NEW_LINE>q.addRequestParam(RemoteRepositoryDecls.INCLUDE_INFERRED, Boolean.toString(includeInferred));<NEW_LINE>if (maxQueryTime > 0) {<NEW_LINE>q.ad...
(String.valueOf(namedGraphURI));
191,075
// static Set preterminals = new HashSet();<NEW_LINE>public Tree transformTree(Tree tree) {<NEW_LINE>TreeFactory tf = tree.treeFactory();<NEW_LINE>String tag = tree.label().value();<NEW_LINE>if (tree.isPreTerminal()) {<NEW_LINE>String word = tree.firstChild().label().value();<NEW_LINE>List<Tree> newPreterms = new Array...
tf.newTreeNode(tag, newPreterms);
855,443
protected Integer run(IPersistentMap map) {<NEW_LINE>ESeq vals = ERT.NIL;<NEW_LINE>int initial_count = sizeRef.get();<NEW_LINE>EObject key = matcher.getTupleKey(keypos1);<NEW_LINE>if (key == null) {<NEW_LINE>vals = matcher.matching_values_bag(vals, (Map<EObject, IPersistentCollection>) map);<NEW_LINE>} else {<NEW_LINE>...
sizeRef.set(initial_count - count);
233,146
public void writeCoverageOutputHeaders(final Map<DoCOutputType.Partition, List<String>> sortedSamplesByPartition) {<NEW_LINE>if (!omitDepthOutput) {<NEW_LINE>// print header<NEW_LINE>writePerLocusDepthOutputSummaryHeader(sortedSamplesByPartition);<NEW_LINE>}<NEW_LINE>// write<NEW_LINE>if (canWriteGeneOutput()) {<NEW_LI...
gene, DoCOutputType.FileType.summary);