idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,843,857
public static void fillBorder(GrayI8 input, int value, int radius) {<NEW_LINE>// top and bottom<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0,radius,y->{<NEW_LINE>for (int y = 0; y < radius; y++) {<NEW_LINE>int indexTop = input.startIndex + y * input.stride;<NEW_LINE>int indexBottom = input.startIndex + (input...
indexBottom++] = (byte) value;
861,454
public void onRender(MatrixStack matrixStack, float partialTicks) {<NEW_LINE>if (fakePlayer == null || !tracer.isChecked())<NEW_LINE>return;<NEW_LINE>// GL settings<NEW_LINE>GL11.glEnable(GL11.GL_BLEND);<NEW_LINE>GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);<NEW_LINE>GL11.glEnable(GL11.GL_LINE_SMOOT...
GL11.glDisable(GL11.GL_BLEND);
282,621
static Optional<RegistryAuthenticator> fromAuthenticationMethod(String authenticationMethod, RegistryEndpointRequestProperties registryEndpointRequestProperties, @Nullable String userAgent, FailoverHttpClient httpClient) throws RegistryAuthenticationFailedException {<NEW_LINE>// If the authentication method starts with...
serviceMatcher.group(1) : registryUrl;
1,087,206
protected MapExpressionHelper<K, V> addListener(InvalidationListener listener) {<NEW_LINE>if (invalidationListeners == null) {<NEW_LINE>invalidationListeners = new InvalidationListener[] { listener };<NEW_LINE>invalidationSize = 1;<NEW_LINE>} else {<NEW_LINE>final int oldCapacity = invalidationListeners.length;<NEW_LIN...
oldCapacity * 3) / 2 + 1;
1,712,683
public void visit(CatchClause node) {<NEW_LINE>Variable variable = node.getVariable();<NEW_LINE><MASK><NEW_LINE>List<Expression> classNames = node.getClassNames();<NEW_LINE>if (variable != null && scope instanceof VariableNameFactory) {<NEW_LINE>// add variable assignments<NEW_LINE>VariableNameImpl varNameImpl = create...
Scope scope = modelBuilder.getCurrentScope();
680,139
public void homeRemovePKeyInTransaction() throws java.rmi.RemoteException, javax.ejb.RemoveException {<NEW_LINE>// Current the method is already in a global tx - TX_Required.<NEW_LINE>SFRa ejb2 = null;<NEW_LINE>SFRaHome fhome2 = (SFRaHome) getSessionContext().getEJBHome();<NEW_LINE>try {<NEW_LINE>ejb2 = fhome2.create()...
getClass().getName());
175,101
public void nodeChanged(NodeChangeEvent event) {<NEW_LINE>if (event.getProperty() == NodeProperty.CONDITIONAL_STYLES)<NEW_LINE>return;<NEW_LINE>NodeModel node = event.getNode();<NEW_LINE>ConditionalStyleModel mapStyles = MapStyleModel.getExtension(node.getMap()).getConditionalStyleModel();<NEW_LINE>if (mapStyles.depend...
NodeProperty.CONDITIONAL_STYLES, null, null);
793,222
public static void main(final String[] args) {<NEW_LINE>logger.info("Begin of {} main-method ", ServerBoot.class);<NEW_LINE>final Stopwatch stopwatch = Stopwatch.createStarted();<NEW_LINE>logger.info("Parse command line arguments (if any!)");<NEW_LINE>final CommandLineOptions commandLineOptions = CommandLineParser.pars...
Ini.setRunMode(RunMode.BACKEND);
1,416,137
public boolean validate(DataReaderService reader, AdvancedImport advancedImport) throws IOException, ClassNotFoundException, AxelorException {<NEW_LINE>boolean isLog = false;<NEW_LINE>String[] sheets = reader.getSheetNames();<NEW_LINE>this.validateTab(sheets, advancedImport);<NEW_LINE>boolean isConfig = advancedImport....
fileTab, isConfig, isTabConfig, tabConfigRowCount);
947,732
private void writeNormalArray(JsonWriter json) throws IOException {<NEW_LINE>VectorM3f normal = new VectorM3f(0, 0, 0);<NEW_LINE>json.name("normal");<NEW_LINE>json.beginObject();<NEW_LINE>json.name<MASK><NEW_LINE>json.name("itemSize").value(3);<NEW_LINE>json.name("normalized").value(false);<NEW_LINE>json.name("array")....
("type").value("Float32Array");
211,654
private static void verifyParams(final int numDims, final int numIndexDims, final int bytesPerDim, final int maxPointsInLeafNode) {<NEW_LINE>// Check inputs are on bounds<NEW_LINE>if (numDims < 1 || numDims > MAX_DIMS) {<NEW_LINE>throw new IllegalArgumentException("numDims must be 1 .. " + MAX_DIMS + " (got: " + numDim...
numDims + ") (got: " + numIndexDims + ")");
1,355,126
private static void initializeOrder(NodeData node) {<NEW_LINE>List<SpecializationData> specializations = node.getSpecializations();<NEW_LINE>Collections.sort(specializations);<NEW_LINE>for (SpecializationData specialization : specializations) {<NEW_LINE>String searchName = specialization.getInsertBeforeName();<NEW_LINE...
SpecializationData insertBefore = specialization.getInsertBefore();
755,937
final DescribeDatasetResult executeDescribeDataset(DescribeDatasetRequest describeDatasetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDatasetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<Descri...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
932,652
public void run() {<NEW_LINE>if (null == socket)<NEW_LINE>return;<NEW_LINE>DataInputStream input = null;<NEW_LINE>DataOutputStream output = null;<NEW_LINE>if (DEBUG) {<NEW_LINE>System.out.println("Client connected from " + socket.getRemoteSocketAddress());<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>input = new DataInputStream(...
int msgLen = input.readInt();
157,186
private void createCopyClassesToSandboxTask(final Project pProject, final boolean pIsTest) {<NEW_LINE>final TaskContainer tasks = pProject.getTasks();<NEW_LINE>final String taskName = pIsTest ? "copyClassesToTestSandbox" : "copyClassesToSandbox";<NEW_LINE>final TaskProvider<Copy> taskProvider = tasks.register(taskName,...
-> xTask.dependsOn(copyTask));
1,039,994
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
endClientExecution(awsRequestMetrics, request, response);
210,500
public void paintImage(WebcamPanel panel, BufferedImage image, Graphics2D g2) {<NEW_LINE>final double s = detector.getMotionArea();<NEW_LINE>final Point cog = detector.getMotionCog();<NEW_LINE>final int x = DO_NOT_ENGAGE_ZONE.x;<NEW_LINE>final int y = DO_NOT_ENGAGE_ZONE.y;<NEW_LINE>final int w = DO_NOT_ENGAGE_ZONE.widt...
Graphics2D g = image.createGraphics();
1,183,543
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {<NEW_LINE>description.setSelectedLanguageIndex(i);<NEW_LINE>String languageCode = ((LanguagesAdapter) adapterView.getAdapter()).getLanguageCode(i);<NEW_LINE>description.setLanguageCode(languageCode);<NEW_LINE>final String languageName = ((La...
Timber.d("Description language code is: " + languageCode);
1,496,534
public void aggregate(ByteBuffer buf, int position) {<NEW_LINE>if (timeSelector.isNull()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (needsFoldCheck) {<NEW_LINE>// Less efficient code path when folding is a possibility (we must read the value selector first just in case<NEW_LINE>// it's a foldable object).<NEW_LINE>fina...
firstTime = buf.getLong(position);
602,878
protected void drawForegroundText(@Nonnull PoseStack matrix, int mouseX, int mouseY) {<NEW_LINE>renderTitleText(matrix);<NEW_LINE>TurbineMultiblockData multiblock = tile.getMultiblock();<NEW_LINE>if (multiblock.isFormed()) {<NEW_LINE>Component limiting = GeneratorsLang.<MASK><NEW_LINE>int lowerVolume = multiblock.lower...
IS_LIMITING.translateColored(EnumColor.DARK_RED);
1,221,704
private T executeQuery(Object ignore) {<NEW_LINE>checkCanceled();<NEW_LINE>try {<NEW_LINE>if (autoKeyColNames != null)<NEW_LINE>jdbcStatement = session.prepareStatement(sqlString, autoKeyColNames);<NEW_LINE>else<NEW_LINE>jdbcStatement = session.prepareStatement(sqlString);<NEW_LINE>setParameters.forEach((String k, Para...
) -> "executeLargeUpdate(\"" + sqlString + "\")");
317,498
public static void checkDDLPermission(ExecutionPlan plan, ExecutionContext context) {<NEW_LINE>String schemaName = context.getSchemaName();<NEW_LINE>final <MASK><NEW_LINE>boolean isNewPartDb = DbInfoManager.getInstance().isNewPartitionDb(schemaName);<NEW_LINE>if (sqlNode != null && SqlKind.DDL.contains(sqlNode.getKind(...
SqlNode sqlNode = plan.getAst();
1,642,062
public void compute() {<NEW_LINE>currentContext.setPhase(TraverserContext.Phase.ENTER);<NEW_LINE>currentContext.setVar(List.class, myZippers);<NEW_LINE>TraversalControl traversalControl = visitor.enter(currentContext);<NEW_LINE>assertNotNull(traversalControl, () -> "result of enter must not be null");<NEW_LINE>assertTr...
.children = Collections.emptyList();
894,241
public String run() {<NEW_LINE>AntArtifact art = AntArtifactQuery.findArtifactFromFile(normalizedFile);<NEW_LINE>if (art != null && art.getType().equals(expectedArtifactType) && art.getProject() != null) {<NEW_LINE>try {<NEW_LINE>return createForeignFileReference(art);<NEW_LINE>} catch (IllegalArgumentException iae) {<...
setPathProperty(path, "file.reference." + prop);
864,337
public boolean areSentencesSimilarTwo(String[] sentence1, String[] sentence2, List<List<String>> similarPairs) {<NEW_LINE>if (sentence1.length != sentence2.length) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int n = similarPairs.size();<NEW_LINE>p <MASK><NEW_LINE>for (int i = 0; i < p.length; ++i) {<NEW_LINE>p[i] = i;...
= new int[n << 1];
523,546
final DescribeResourcePermissionsResult executeDescribeResourcePermissions(DescribeResourcePermissionsRequest describeResourcePermissionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeResourcePermissionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
744,668
private void exec(String[] command) throws RunnerException {<NEW_LINE>// eliminate any empty array entries<NEW_LINE>List<String> stringList = new ArrayList<>();<NEW_LINE>for (String string : command) {<NEW_LINE>string = string.trim();<NEW_LINE>if (string.length() != 0)<NEW_LINE>stringList.add(string);<NEW_LINE>}<NEW_LI...
new DoubleQuotedArgumentsOnWindowsCommandLine(command[0]);
1,447,863
public Collection<Class<?>> load() throws PluginLoadException {<NEW_LINE>List<Class<?>> plugins = new ArrayList<>();<NEW_LINE>PluginClassLoader loader = new PluginClassLoader(pluginJarUrls.values().toArray(new URL[0]));<NEW_LINE>VMUtil.setParent(loader, Recaf.class.getClassLoader());<NEW_LINE>for (Path pluginPath : plu...
ex, "Failed to load '" + className + "' in jar");
806,463
private Map<String, String> buildTransformTable(String variantName) {<NEW_LINE>String <MASK><NEW_LINE>Collection<String> libraryPackages = libraryPackageMap.get(variantName);<NEW_LINE>if (targetPackage == null || libraryPackages == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final List<String> resourceTypes = Arr...
targetPackage = targetPackageMap.get(variantName);
1,588,576
protected JFreeChart createCandlestickChart() throws JRException {<NEW_LINE>ChartFactory.setChartTheme(StandardChartTheme.createLegacyTheme());<NEW_LINE>JFreeChart jfreeChart = ChartFactory.createCandlestickChart(evaluateTextExpression(getChart().getTitleExpression()), evaluateTextExpression(((JRCandlestickPlot) getPlo...
(XYPlot) jfreeChart.getPlot();
332,644
public void draw(Graphics2D g, Boolean drawRoot, ScenePicker scenePicker, HashSet<String> over, String selected, java.util.HashMap<String, Boolean> map) {<NEW_LINE>if (map == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AffineTransform renderScale = WidgetFrameUtils.getTouchScale(g);<NEW_LINE>int END_LOOK = WidgetFrame...
setBounds(endLayout.getBounds());
1,449,657
public void validate() throws InvalidPropertyException {<NEW_LINE>PrintStream out = DebugTracer.getPrintStream();<NEW_LINE>boolean good = false;<NEW_LINE>boolean debug = DebugTracer.isDebugActivationSpec();<NEW_LINE>if (debug) {<NEW_LINE><MASK><NEW_LINE>out.println("ActivationAnn6b.validate(): Current destinationType: ...
out.println("ActivationAnn6b.validate(): Current contents of Prop1: " + prop1);
869,772
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>getWindow().setStatusBarColor(0xFF000000);<NEW_LINE>getWindow().setNavigationBarColor(0xFF000000);<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {<NEW_LINE>getWindow().setNavigationBarDividerColor(0xFF...
.crop_image_done).setOnClickListener(this);
1,433,714
private boolean isXSDValid(String filename) {<NEW_LINE>// 1. Lookup a factory for the W3C XML Schema language<NEW_LINE>SchemaFactory factory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");<NEW_LINE>// 2. Compile the schema.<NEW_LINE>// Here the schema is loaded from a java.io.File, but you could use<NE...
out.println(filename + " is valid.");
1,717,912
public GlueDataCatalogConfigurationDescription unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GlueDataCatalogConfigurationDescription glueDataCatalogConfigurationDescription = new GlueDataCatalogConfigurationDescription();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String ...
class).unmarshall(context));
14,716
public void update(@NotNull AnActionEvent actionEvent) {<NEW_LINE>Presentation presentation = actionEvent.getPresentation();<NEW_LINE>presentation.setIcon(ErlangIcons.ERLANG_CONSOLE);<NEW_LINE>presentation.setEnabledAndVisible(true);<NEW_LINE>DataContext dataContext = actionEvent.getDataContext();<NEW_LINE>PsiFile psiF...
CommonDataKeys.PSI_FILE.getData(dataContext);
675,843
public double costOfPath(final List<TourActivity> path, final double depTime, final Driver driver, final Vehicle vehicle) {<NEW_LINE>if (path.isEmpty()) {<NEW_LINE>return 0.0;<NEW_LINE>}<NEW_LINE>double cost = 0.0;<NEW_LINE>Iterator<TourActivity> actIter = path.iterator();<NEW_LINE>TourActivity prevAct = actIter.next()...
act, actStartTime, driver, vehicle);
681,677
public Cursor handle(RelNode logicalPlan, ExecutionContext executionContext) {<NEW_LINE>ArrayResultCursor result = new ArrayResultCursor("TRACE");<NEW_LINE>result.addColumn("ID", DataTypes.IntegerType);<NEW_LINE>result.addColumn("NODE_IP", DataTypes.StringType);<NEW_LINE>result.addColumn("TIMESTAMP", DataTypes.DoubleTy...
addColumn("DBKEY_NAME", DataTypes.StringType);
891,232
public ListDeploymentsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDeploymentsResult listDeploymentsResult = new ListDeploymentsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
JsonToken token = context.getCurrentToken();
1,656,853
final GetEvidenceFolderResult executeGetEvidenceFolder(GetEvidenceFolderRequest getEvidenceFolderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEvidenceFolderRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
438,656
public Object compute(Object[] args, ExecutionContext ec) {<NEW_LINE>for (Object arg : args) {<NEW_LINE>if (FunctionUtils.isNull(arg)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>Long hour = DataTypes.LongType.convertFrom(args[0]);<NEW_LINE>Long minute = DataTypes.LongType.convertFrom(args[1]);<NEW_LINE>Doub...
t.setHour(MySQLTimeTypeUtil.TIME_MAX_HOUR);
556,283
public ResourceConfig register(final Object component) {<NEW_LINE>final Object object = requireNonNull(component);<NEW_LINE>Class<?> clazz = object.getClass();<NEW_LINE>// If a class gets passed through as an object, cast to Class and register directly<NEW_LINE>if (component instanceof Class<?>) {<NEW_LINE>return super...
).newInstance(object, clazz);
371,788
private void processTypeAndName(Transaction t, TransactionType type, TransactionName name, MessageTree tree, double duration) {<NEW_LINE>String messageId = tree.getMessageId();<NEW_LINE>type.incTotalCount();<NEW_LINE>name.incTotalCount();<NEW_LINE>type.setSuccessMessageUrl(messageId);<NEW_LINE>name.setSuccessMessageUrl...
findOrCreateAllDuration(allDuration).incCount();
501,429
public void ready() {<NEW_LINE>if (initiating) {<NEW_LINE>initiating = false;<NEW_LINE>processingReady = false;<NEW_LINE>if (firstInit) {<NEW_LINE>firstInit = false;<NEW_LINE>if (// Show large warning when connected to >=2000 guilds<NEW_LINE>api.getGuilds().size() >= 2000) {<NEW_LINE>JDAImpl.LOG.warn(" __ __ _ ...
JDAImpl.LOG.warn("to split the load or things like resuming");
983,398
private RxDocumentServiceRequest createQueryDocumentServiceRequest(Map<String, String> requestHeaders, SqlQuerySpec querySpec) {<NEW_LINE>RxDocumentServiceRequest executeQueryRequest;<NEW_LINE>switch(this.client.getQueryCompatibilityMode()) {<NEW_LINE>case SqlQuery:<NEW_LINE>List<SqlParameter> params = querySpec.getPar...
getQueryCompatibilityMode().toString());
1,740,136
public final void checkForDuplicateAttribute(int hash, int value) throws FastInfosetException {<NEW_LINE>if (_poolCurrent == null) {<NEW_LINE>increasePool(16);<NEW_LINE>}<NEW_LINE>// Get next free entry<NEW_LINE>final Entry newEntry = _poolCurrent;<NEW_LINE>_poolCurrent = _poolCurrent.poolNext;<NEW_LINE>final Entry hea...
= e.hashNext) != null);
1,501,016
final ReservedNode executeAcceptReservedNodeExchange(AcceptReservedNodeExchangeRequest acceptReservedNodeExchangeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(acceptReservedNodeExchangeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
234,278
final OptInPhoneNumberResult executeOptInPhoneNumber(OptInPhoneNumberRequest optInPhoneNumberRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(optInPhoneNumberRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
OptInPhoneNumberResult>(new OptInPhoneNumberResultStaxUnmarshaller());
751,075
private synchronized String guessBestEncoding() throws MediaException {<NEW_LINE>if (bestEncoding == null) {<NEW_LINE>// Check this property, present on some Nokias?<NEW_LINE>String supportsVideoCapture = System.getProperty("supports.video.capture");<NEW_LINE>if ("false".equals(supportsVideoCapture)) {<NEW_LINE>throw n...
videoSnapshotEncodings.indexOf(' ', pngEncodingStart);
948,595
public com.amazonaws.services.codepipeline.model.LimitExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codepipeline.model.LimitExceededException limitExceededException = new com.amazonaws.services.codepipeline.model.LimitExceededException(null);...
JsonToken token = context.getCurrentToken();
396,562
private void extractIntoPages(UploadedPresentation pres) {<NEW_LINE>for (int page = 1; page <= pres.getNumberOfPages(); page++) {<NEW_LINE>String presDir = pres.getUploadedFile().getParent();<NEW_LINE>File pageFile = new File(presDir + <MASK><NEW_LINE>File extractedPageFile = extractPage(pres, page);<NEW_LINE>if (extra...
"/page" + "-" + page + ".pdf");
1,398,235
public void refreshExternalTable(RefreshExternalTableStmt stmt) throws DdlException {<NEW_LINE>refreshExternalTable(stmt.getDbName(), stmt.getTableName(), stmt.getPartitions());<NEW_LINE>List<Frontend> allFrontends = Catalog.<MASK><NEW_LINE>Map<String, Future<TStatus>> resultMap = Maps.newHashMapWithExpectedSize(allFro...
getCurrentCatalog().getFrontends(null);
1,749,841
private StatsDeriveResult computeAggregate(Aggregate aggregate) {<NEW_LINE>// TODO: since we have no column stats here. just use a fix ratio to compute the row count.<NEW_LINE>// List<Expression> groupByExpressions = aggregate.getGroupByExpressions();<NEW_LINE>StatsDeriveResult childStats = groupExpression.getCopyOfChi...
> slotToColumnStats = Maps.newHashMap();
1,577,416
public void run() {<NEW_LINE>QTFastStartRAF raf = null;<NEW_LINE>String name = file.getName();<NEW_LINE>int dot_pos = name.lastIndexOf('.');<NEW_LINE>String ext = dot_pos < 0 ? "" : name.substring(dot_pos + 1);<NEW_LINE>try {<NEW_LINE>raf = new QTFastStartRAF(file, user_agent != null <MASK><NEW_LINE>raf.seek(offset);<N...
&& QTFastStartRAF.isSupportedExtension(ext));
1,046,139
final UpdateWorkspaceAuthenticationResult executeUpdateWorkspaceAuthentication(UpdateWorkspaceAuthenticationRequest updateWorkspaceAuthenticationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateWorkspaceAuthenticationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,277,761
public void onEvent(Event event) throws Exception {<NEW_LINE>String saveName = null;<NEW_LINE>boolean lastRun = false;<NEW_LINE>if (fSavedName.getRawText() != null) {<NEW_LINE>saveName = fSavedName.getRawText();<NEW_LINE>lastRun = ("** " + Msg.getMsg(Env.getCtx(), "LastRun") + " **").equals(saveName);<NEW_LINE>}<NEW_LI...
Object o = fSavedName.getSelectedItem();
1,181,368
public static String sendHttpPut(String url, String params, String user) throws Exception {<NEW_LINE>String resultString = "{}";<NEW_LINE>logger.info("sendPostReq url is: " + url);<NEW_LINE>HttpPut httpPut = new HttpPut(url);<NEW_LINE>httpPut.addHeader(HTTP.CONTENT_ENCODING, "UTF-8");<NEW_LINE>httpPut.addHeader("Token-...
HttpEntity ent = response.getEntity();
1,307,527
public void init() {<NEW_LINE>model = new DefaultDiagramModel();<NEW_LINE>model.setMaxConnections(-1);<NEW_LINE>model.setContainment(false);<NEW_LINE>model.getDefaultConnectionOverlays().add(new ArrowOverlay(20, 20, 1, 1));<NEW_LINE>StraightConnector connector = new StraightConnector();<NEW_LINE>connector.setPaintStyle...
endPointCA = createRectangleEndPoint(EndPointAnchor.BOTTOM);
1,668,964
public Object readObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) {<NEW_LINE>if (jsonReader.readIfNull()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (jsonReader.nextIfMatch('[')) {<NEW_LINE>short[] values = new short[16];<NEW_LINE>int size = 0;<NEW_LINE>for (; ; ) {<NEW_LINE>if (jsonR...
(jsonReader.info("TODO"));
923,234
public SynchronizationResult syncSince(Date lastSync, KeycloakSessionFactory sessionFactory, String realmId, UserStorageProviderModel model) {<NEW_LINE>KeycloakModelUtils.runJobInTransaction(sessionFactory, new KeycloakSessionTask() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(KeycloakSession session) {<NEW_...
().getFirst(WAIT_TIME));
1,781,878
public static void populateForBLS12(final PrecompileContractRegistry registry, final GasCalculator gasCalculator) {<NEW_LINE>populateForIstanbul(registry, gasCalculator);<NEW_LINE>registry.put(Address.BLS12_G1ADD, new BLS12G1AddPrecompiledContract());<NEW_LINE>registry.put(Address.BLS12_G1MUL, new BLS12G1MulPrecompiled...
.BLS12_G1MULTIEXP, new BLS12G1MultiExpPrecompiledContract());
574,392
public List<String> findRepeatedDnaSequences(String s) {<NEW_LINE>Set<Integer> seen1stTime = new HashSet<>();<NEW_LINE>Set<Integer> seen2ndTime = new HashSet<>();<NEW_LINE>List<String> ans = new ArrayList<>();<NEW_LINE>char[] map = new char[26];<NEW_LINE>map['A' - 'A'] = 0;<NEW_LINE>map['C' - 'A'] = 1;<NEW_LINE>map['G'...
(i, i + 10));
328,567
public void register(List<JarScan> jars, int version) {<NEW_LINE>Map<String, List<FunctionHolder>> newJars = new HashMap<>();<NEW_LINE>for (JarScan jarScan : jars) {<NEW_LINE>FunctionConverter converter = new FunctionConverter();<NEW_LINE>List<AnnotatedClassDescriptor> providerClasses = jarScan.getScanResult().getAnnot...
] names = holder.getRegisteredNames();
1,653,566
private GetRouterAlertsAnswer execute(GetRouterAlertsCommand cmd) {<NEW_LINE>String routerIp = cmd.getAccessDetail(NetworkElementCommand.ROUTER_IP);<NEW_LINE>String args = cmd.getPreviousAlertTimeStamp();<NEW_LINE>ExecutionResult result = _vrDeployer.executeInVR(routerIp, VRScripts.ROUTER_ALERTS, args);<NEW_LINE>String...
trim().split("\\\\n");
526,538
public void readFields(DataInput in) throws IOException {<NEW_LINE>int value = in.readByte();<NEW_LINE>if (value >= LogEvents.values().length) {<NEW_LINE>throw new IOException("Invalid LogEvent type, got ordinal " + value + ", but only know about " + LogEvents.values().length + " possible types.");<NEW_LINE>}<NEW_LINE>...
throw new RuntimeException("Unknown log event type: " + event);
1,163,906
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create window AWindow#keepall as A", path);<NEW_LINE>env.compileDeploy("insert into AWindow select * from A", path);<NEW_LINE>// preload<NEW_LINE>for (int i = 0; i < 10000; i++) {<NEW_LI...
assertEqualsNew("s0", "c0", "AEarlier");
801,866
public static FileUtils.FileCopyResult unzip(final ByteSource byteSource, final File outDir, final Predicate<Throwable> shouldRetry, boolean cacheLocally) throws IOException {<NEW_LINE>if (!cacheLocally) {<NEW_LINE>try {<NEW_LINE>return RetryUtils.retry(() -> unzip(byteSource.openStream()<MASK><NEW_LINE>} catch (IOExce...
, outDir), shouldRetry, DEFAULT_RETRY_COUNT);
1,137,946
public boolean initialize() throws IOException {<NEW_LINE>abstractCloudInitialized = true;<NEW_LINE>String modeString = getCloudProperty("votingmode");<NEW_LINE>Mode newMode = DEFAULT_VOTING_MODE;<NEW_LINE>if (modeString != null) {<NEW_LINE>try {<NEW_LINE>newMode = Mode.valueOf(modeString.toUpperCase());<NEW_LINE>} cat...
stt = properties.getProperty("findbugs.sourcelink.tooltip");
1,338,343
// TODO ?<NEW_LINE>@Override<NEW_LINE>public void handlePing(PingPayloadPacket pingPacket, PinpointServer pinpointServer) {<NEW_LINE>final int eventCounter = pingPacket.getPingId();<NEW_LINE>final long pingTimestamp = System.currentTimeMillis();<NEW_LINE>final Map<Object, Object> channelPropertiesMap = pinpointServer.g...
logger.warn("Error handling ping event", e);
624,761
public static void main(String... args) {<NEW_LINE>ObjectMapper mapper = new ObjectMapper();<NEW_LINE>Serde<DomainEvent> domainEventSerde = new JsonSerde<>(DomainEvent.class, mapper);<NEW_LINE>Map<String, Object> props = new HashMap<>();<NEW_LINE>props.<MASK><NEW_LINE>props.put(ProducerConfig.RETRIES_CONFIG, 0);<NEW_LI...
put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9092");
1,278,129
public boolean nextNonLeaf() throws IOException {<NEW_LINE>// if (DEBUG) System.out.println(" stef.next ord=" + ord + " nextEnt=" + nextEnt + " entCount="<NEW_LINE>// + entCount + " fp=" + suffixesReader.getPosition());<NEW_LINE>while (true) {<NEW_LINE>if (nextEnt == entCount) {<NEW_LINE>assert arc == null || (isFloor...
term.setLength(prefix + suffix);
618,349
public final void createControl(Composite parent) {<NEW_LINE>Composite container = new Composite(parent, SWT.NONE);<NEW_LINE>setControl(container);<NEW_LINE>container.setLayout(new FormLayout());<NEW_LINE>createProviderGroup(container);<NEW_LINE>Composite buttonArea = new Composite(container, SWT.NONE);<NEW_LINE>button...
grpQuoteFeed, 20, SWT.TOP);
303,193
private void loadNode492() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.NonExclusiveLimitAlarmType_HighState_Id, new QualifiedName(0, "Id"), new LocalizedText("en", "Id"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), Identifi...
.expanded(), false));
341,220
public void updateAlarm(SonosAlarm alarm) {<NEW_LINE>if (alarm != null) {<NEW_LINE>Map<String, String> inputs = new HashMap<String, String>();<NEW_LINE>try {<NEW_LINE>inputs.put("ID", Integer.toString(alarm.getID()));<NEW_LINE>inputs.put("StartLocalTime", alarm.getStartTime());<NEW_LINE>inputs.put("Duration", alarm.get...
inputs.put("Enabled", "1");
810,242
static Iterator<Pair<Integer, Record>> summarizeIndexBlocks(Iterator<Pair<Integer, Record>> iter2, BPTreeNodeMgr bptNodeMgr) {<NEW_LINE>divider();<NEW_LINE>List<Pair<Integer, Record>> x = Iter.toList(iter2);<NEW_LINE>for (Pair<Integer, Record> pair : x) {<NEW_LINE>BPTreeNode bpNode = bptNodeMgr.getRead(pair.car(), BPlu...
.getHigh().toString();
763,570
public static LevelsContainer adjustLogLevels(String methodName, List<Class<?>> classes, List<String> categories, Level level) {<NEW_LINE>LoggerContext ctx = (LoggerContext) LogManager.getContext(false);<NEW_LINE>Configuration config = ctx.getConfiguration();<NEW_LINE>Map<Class<?>, Level> classLevels = new HashMap<>();...
loggerConfig.getLevel(), true);
1,294,489
public boolean allows(WebURL webURL) throws IOException, InterruptedException {<NEW_LINE>if (!config.isEnabled()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>URL url = new URL(webURL.getURL());<NEW_LINE>String host = getHost(url);<NEW_LINE>String path = url.getPath();<NEW_LINE>HostDirectives directives =...
webURL.getURL(), e);
538,845
public void consume(ConnectionContext context, ByteBuffer message) throws IOException {<NEW_LINE>// The consuming happens in client side only.<NEW_LINE>ClientHandshakeContext chc = (ClientHandshakeContext) context;<NEW_LINE>// clean up this consumer<NEW_LINE>chc.handshakeConsumers.remove(SSLHandshake.ENCRYPTED_EXTENSIO...
SSLLogger.fine("Consuming EncryptedExtensions handshake message", eem);
870,294
public PyObject __call__(final PyObject[] args, final String[] kws) {<NEW_LINE>switch(args.length) {<NEW_LINE>default:<NEW_LINE>return builtinMap.__call__(args, kws);<NEW_LINE>case 5:<NEW_LINE><MASK><NEW_LINE>final PyObject start1 = args[1];<NEW_LINE>final PyObject stop1 = args[2];<NEW_LINE>final PyObject start2 = args...
final PyObject value = args[0];
713,393
private Position decodeLocation2(DeviceSession deviceSession, ByteBuf buf, int type) {<NEW_LINE>Position position = new Position(getProtocolName());<NEW_LINE>position.setDeviceId(deviceSession.getDeviceId());<NEW_LINE>Jt600ProtocolDecoder.decodeBinaryLocation(buf, position);<NEW_LINE>position.setValid(type != MSG_LOCAT...
set(Position.KEY_CHARGE, true);
1,489,785
public Request<ListSentimentDetectionJobsRequest> marshall(ListSentimentDetectionJobsRequest listSentimentDetectionJobsRequest) {<NEW_LINE>if (listSentimentDetectionJobsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListSentimentDetectionJobsRequest)");<NEW_LINE>}<NEW_L...
.toString(content.length));
1,503,268
public void exitRecaf6_redistribute(Recaf6_redistributeContext ctx) {<NEW_LINE>Optional<RoutingProtocolInstance> rpiOrError = toRoutingProtocolInstance(ctx, ctx.routing_instance_v6());<NEW_LINE>Optional<String> mapOrError = toString(ctx, ctx.route_map_name());<NEW_LINE>if (!rpiOrError.isPresent() || !mapOrError.isPrese...
String map = mapOrError.get();
13,931
private void doTransifexCheck() {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>System.out.println("=== Starting Transifex Check ===");<NEW_LINE>if (TRANSIFEX_API == null || TRANSIFEX_API.isEmpty()) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>System.out.println("transifex.api system properties must be specified");<NEW_LINE>return;<NEW_LINE>...
>) projectDetails.get("available_languages");
18,132
public Response expression(ExpressionRequest expressionRequest, SecurityContext securityContext) throws NotFoundException {<NEW_LINE>try {<NEW_LINE>RequestValidationHandler.validateExpressionRequest(expressionRequest);<NEW_LINE>final String expression = Joiner.on(",").join(expressionRequest.getExpression());<NEW_LINE>f...
join(expressionRequest.getPrefixPath());
1,042,778
public Optional<PsiMethod> createBuilderMethodIfNecessary(@NotNull PsiClass containingClass, @Nullable PsiMethod psiMethod, @NotNull PsiClass builderPsiClass, @NotNull PsiAnnotation psiAnnotation) {<NEW_LINE>final String builderMethodName = getBuilderMethodName(psiAnnotation);<NEW_LINE>if (!builderMethodName.isEmpty() ...
psiTypeWithGenerics = PsiClassUtil.getTypeWithGenerics(builderPsiClass);
1,061,441
public Loa unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Loa loa = new Loa();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MASK><NEW_LINE>if (token == nu...
JsonToken token = context.getCurrentToken();
1,189,130
private static void printAggregatedThroughput(long start, Arguments arguments) {<NEW_LINE>double elapsed = (System.<MASK><NEW_LINE>double rate = totalMessagesSent.sum() / elapsed;<NEW_LINE>double throughput = totalBytesSent.sum() / elapsed / 1024 / 1024 * 8;<NEW_LINE>long totalTxnSuccess = 0;<NEW_LINE>long totalTxnFail...
nanoTime() - start) / 1e9;
509,986
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static void addCountFilter(com.sun.jdi.request.EventRequest a, int b) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules.debu...
debugger.jpda.JDIExceptionReporter.RET_VOID);
359,996
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "keyOne,keyTwo,p0".split(",");<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create table varagg as (" + "keyOne string primary key, keyTwo int primary key, p0 long)", path);<NEW_LINE>env.compileDeploy("on...
{ "G1", 10, 1L });
963,342
public Pair<ConnectionResultType, Object[]> upload() throws UnknownHttpResponseException {<NEW_LINE>// make sure it's ok before we try to upload<NEW_LINE>mCon.publishProgress(R.string.sync_check_upload_file);<NEW_LINE>if (!"ok".equalsIgnoreCase(mCol.getDb().queryString("PRAGMA integrity_check"))) {<NEW_LINE>return new ...
Pair<>(DB_ERROR, null);
1,773,390
void jbInit() throws Exception {<NEW_LINE>final IMsgBL msgBL = Services.get(IMsgBL.class);<NEW_LINE>final Properties ctx = Env.getCtx();<NEW_LINE>setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);<NEW_LINE>mainPanel.setLayout(mainLayout);<NEW_LINE>label.setText("Label");<NEW_LINE>northPanel.setLayout(northLayo...
.translate(ctx, "QtyOrdered"));
593,527
public void initialize() {<NEW_LINE>navigationListener = (viewPath, data) -> {<NEW_LINE>if (viewPath.size() != 4 || viewPath.indexOf(GovernanceView.class) != 2)<NEW_LINE>return;<NEW_LINE>selectedViewClass = viewPath.tip();<NEW_LINE>loadView(selectedViewClass);<NEW_LINE>};<NEW_LINE>phaseChangeListener = (observable, old...
(Res.get("dao.proposal.menuItem.vote"));
756,250
private TableElement drawTomcatInfo(TomcatInfoVO tomcatInfo) {<NEW_LINE>if (tomcatInfo == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// header<NEW_LINE>TableElement table = new TableElement(1, 1).rightCellPadding(1);<NEW_LINE>table.add(new RowElement().style(Decoration.bold.fg(Color.black).bg(Color.white)).add("...
"" + threadPool.getBusy());
487,666
public Se3_F64 estimateOutliers(List<Point2D3D> observations) {<NEW_LINE>// We can no longer trust that each point is a real observation. Let's use RANSAC to separate the points<NEW_LINE>// You will need to tune the number of iterations and inlier threshold!!!<NEW_LINE>ModelMatcherMultiview<Se3_F64, Point2D3D> ransac =...
ransac.setIntrinsic(0, intrinsic);
337,010
final ListGroupPoliciesResult executeListGroupPolicies(ListGroupPoliciesRequest listGroupPoliciesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listGroupPoliciesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListGroupPoliciesReq...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
412,118
protected Class<?> resolveDateType(FacesContext context, UICalendar calendar) {<NEW_LINE>ValueExpression ve = calendar.getValueExpression("value");<NEW_LINE>Class<?> type = null;<NEW_LINE>if (ve != null) {<NEW_LINE>type = ve.getType(context.getELContext());<NEW_LINE>}<NEW_LINE>if (type == null || type.equals(Object.cla...
Object property = valueReference.getProperty();
1,104,515
private void processResponse(CloseableHttpResponse response, ImmutableSet.Builder<KV<DomainNameInfo, ThreatMatch>> resultBuilder) throws JSONException, IOException {<NEW_LINE>int statusCode = response.getStatusLine().getStatusCode();<NEW_LINE>if (statusCode != SC_OK) {<NEW_LINE>logger.atWarning().log("Got unexpected st...
("threat").getString("url");
1,136,840
public void dealWithSwitchNode(ASTSwitchNode node) {<NEW_LINE>List<Object> indexList = node.getIndexList();<NEW_LINE>Map<Object, List<Object>> index2BodyList = node.getIndex2BodyList();<NEW_LINE>Iterator<Object> it = indexList.iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>// going through all the cases of the sw...
Object currentIndex = it.next();
586,650
public Request<GetTemplateSummaryRequest> marshall(GetTemplateSummaryRequest getTemplateSummaryRequest) {<NEW_LINE>if (getTemplateSummaryRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<GetTemplateSummaryRequest> request = new DefaultReque...
request.addParameter("Version", "2010-05-15");
959,959
private final NotificationItem toNotificationItem(final Event event) {<NEW_LINE>//<NEW_LINE>// Build summary text<NEW_LINE>final String summaryTrl = msgBL.getMsg(getCtx(), MSG_Notification_Summary_Default, new Object[] { Adempiere.getName() });<NEW_LINE>final UserNotification notification = UserNotificationUtils.toUser...
getMsg(getCtx(), detailADMessage);