idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,083,757
private <T> List<TimestampedValue<T>> sortedListPageValues(Windmill.TagSortedListFetchResponse sortedListFetchResponse, Coder<T> elemCoder) {<NEW_LINE>if (sortedListFetchResponse.getEntriesCount() == 0) {<NEW_LINE>return new WeightedList<>(Collections.emptyList());<NEW_LINE>}<NEW_LINE>WeightedList<TimestampedValue<T>> ...
).size() + 8);
108,185
final CreateVolumeFromBackupResult executeCreateVolumeFromBackup(CreateVolumeFromBackupRequest createVolumeFromBackupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createVolumeFromBackupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
414,875
public void update(Object updateArgs, Observable observable) {<NEW_LINE>logger.info("[update]{},{},{}", redisClient, updateArgs, observable);<NEW_LINE>if (updateArgs instanceof KeeperServerStateChanged) {<NEW_LINE>redisClient.getRedisKeeperServer().processCommandSequentially(() -> {<NEW_LINE>if (released) {<NEW_LINE>lo...
observable + "," + redisClient, e);
975,696
// XXX only used by HTTP Engine V1<NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>LOGGER.<MASK><NEW_LINE>int count = 0;<NEW_LINE>while (!stop) {<NEW_LINE>try {<NEW_LINE>Socket socket = serverSocket.accept();<NEW_LINE>InetAddress inetAddress = socket.getInetAddress();<NEW_LINE>String ip = inetAddress.getHostAd...
info("Starting DLNA Server on host {} and port {}...", hostname, port);
1,449,909
static void register(final Settings settings) {<NEW_LINE>SettingsManager.settings.set(settings);<NEW_LINE>if (settings != null) {<NEW_LINE>LogsServer.updateSettings();<NEW_LINE>StreamConnection.updateSettings();<NEW_LINE>if (settings.headless() && platformInitialized.compareAndSet(false, true)) {<NEW_LINE>monocle.set(t...
System.setProperty("prism.shutdownHook", "false");
1,475,478
public Observable<ScanResult> scanBleDevices(final ScanSettings scanSettings, final ScanFilter... scanFilters) {<NEW_LINE>return Observable.defer(new Callable<ObservableSource<? extends ScanResult>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Observable<ScanResult> call() {<NEW_LINE>scanPreconditionVerifier.verify...
.<ScanResult>bluetoothAdapterOffExceptionObservable());
651,548
private void enabledStateUI() {<NEW_LINE>bluetoothAdapterStateTextView.setText("Bluetooth Enabled");<NEW_LINE><MASK><NEW_LINE>editText.setVisibility(View.GONE);<NEW_LINE>sendBtn.setVisibility(View.GONE);<NEW_LINE>receivedDataDisplayTextView.setVisibility(View.GONE);<NEW_LINE>isPairedWithTheHeadsetStatusTextView.setVisi...
enableBluetoothBtn.setVisibility(View.GONE);
607,055
private void renderWithComplexPaint(Shape shape, BasicStroke stroke, float bx, float by, float bw, float bh) {<NEW_LINE>// creating/updating the mask texture may unset the current<NEW_LINE>// texture used by pending vertices, so flush the vertex buffer first<NEW_LINE>context.flushVertexBuffer();<NEW_LINE>// The followi...
VertexBuffer vb = context.getVertexBuffer();
165,276
private static Structure transformToStruct(final ContentType type) throws DotStateException {<NEW_LINE>final Structure struct = new Structure();<NEW_LINE>struct.setDefaultStructure(type.defaultType());<NEW_LINE>struct.setDescription(type.description());<NEW_LINE>struct.setDetailPage(type.detailPage());<NEW_LINE>struct....
setFolder(type.folder());
868,736
private Router createRouter(String redirectURL) {<NEW_LINE>Router router = Router.router(vertx);<NEW_LINE>HandlebarsTemplateEngine engine = HandlebarsTemplateEngine.create(vertx);<NEW_LINE>router.get("/*").handler(rc -> {<NEW_LINE>int queryLatency = DEFAULT_LATENCY;<NEW_LINE>try {<NEW_LINE>queryLatency = Integer.valueO...
("imgs", createImages(queryLatency));
77,787
protected String doIt() throws Exception {<NEW_LINE>// Call the normal FinReport to fill the T_Report table<NEW_LINE>String finReportMsg = super.doIt();<NEW_LINE>// Now invoke the associated jasper report (must report on the T_Report table)<NEW_LINE>ArrayList<ProcessInfoParameter> list = new ArrayList<ProcessInfoParame...
" " + e.getLocalizedMessage());
1,106,823
public boolean showDialog() {<NEW_LINE>dialogOK = false;<NEW_LINE>String displayName = "";<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>displayName = NbBundle.getBundle("org.netbeans.modules.html.palette.items.resources.Bundle").getString("NAME_html-FORM");<NEW_LINE>} catch (Exception e) {<NEW_LINE>}<NEW_LINE>descriptor ...
(FORMCustomizer.class, "ACSD_FORM_Dialog"));
1,047,597
public static long LLVMCreateTargetMachine(@NativeType("LLVMTargetRef") long T, @NativeType("char const *") CharSequence Triple, @NativeType("char const *") CharSequence CPU, @NativeType("char const *") CharSequence Features, @NativeType("LLVMCodeGenOptLevel") int Level, @NativeType("LLVMRelocMode") int Reloc, @NativeT...
long TripleEncoded = stack.getPointerAddress();
314,415
private Expression checkLam(LamExpression expr, Expression expectedType, Integer level) {<NEW_LINE>checkDependentLink(expr.getParameters(), Type.OMEGA, expr);<NEW_LINE>Expression type;<NEW_LINE>if (expr.getBody() instanceof LamExpression) {<NEW_LINE>type = checkLam((LamExpression) expr.<MASK><NEW_LINE>} else if (expr.g...
getBody(), null, level);
39,019
public void shutDown() {<NEW_LINE>// NON-NLS<NEW_LINE>logger.log(Level.INFO, "Keyword search ingest module instance {0} shutting down", instanceNum);<NEW_LINE>if ((initialized == false) || (context == null)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (context.fileIngestIsCancelled()) {<NEW_LINE>// NON-NLS<NEW_LINE>logge...
Level.SEVERE, "Error executing Solr queries to check number of indexed files and file chunks", ex);
263,050
private void saveQueue() {<NEW_LINE>int index = qList.getSelectedIndex();<NEW_LINE>if (index < 0)<NEW_LINE>return;<NEW_LINE>DownloadQueue q = queueModel.getElementAt(index);<NEW_LINE>if (txtQueueName.getText().length() > 0) {<NEW_LINE>q.setName(txtQueueName.getText());<NEW_LINE>}<NEW_LINE>if (chkQStart.isSelected()) {<...
>(queuedItemsModel.size());
32,578
protected void configure() {<NEW_LINE>bind(Datastore.class).to(CassandraDatastore.class).in(Scopes.SINGLETON);<NEW_LINE>bind(ServiceKeyStore.class).to(CassandraDatastore.class).in(Scopes.SINGLETON);<NEW_LINE>bind(CassandraDatastore.class).in(Scopes.SINGLETON);<NEW_LINE>bind(CleanRowKeyCache.class).in(Scopes.SINGLETON);...
.build(DeleteBatchHandlerFactory.class));
1,107,846
public Node writeDescriptor(Node parent, String nodeName, ResourceAdapter descriptor) {<NEW_LINE>Element raNode = (Element) super.writeDescriptor(parent, nodeName, descriptor);<NEW_LINE>appendTextChild(raNode, RuntimeTagNames.DESCRIPTION, descriptor.getDescription());<NEW_LINE>setAttribute(raNode, RuntimeTagNames.JNDI_...
] properties = descriptor.getPropertyElement();
1,335,874
private HttpRequest createRequest(ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpRequest nettyRequest) {<NEW_LINE>// Attempt to map the netty method<NEW_LINE>HttpMethod method;<NEW_LINE>if (nettyRequest.method().equals(HEAD)) {<NEW_LINE>method = HttpMethod.GET;<NEW_LINE>} else {<NEW_LINE>try {<NEW_LINE>meth...
method().name());
1,208,971
public String assertRegexInresponse(WebBrowser wb, String url, String regex) throws Exception {<NEW_LINE>String returnString = null;<NEW_LINE>WebResponse wr = wb.request(url);<NEW_LINE>Pattern pat = Pattern.compile(regex);<NEW_LINE>String response = wr.getResponseBody();<NEW_LINE>Matcher m = null;<NEW_LINE>boolean foun...
m = pat.matcher(s);
922,209
public HtmlResponse update(final EditForm form) {<NEW_LINE>verifyCrudMode(form.crudMode, CrudMode.EDIT);<NEW_LINE>validate(form, messages -> {<NEW_LINE>}, this::asEditHtml);<NEW_LINE>validateFields(form, v -> throwValidationError(v, this::asEditHtml));<NEW_LINE>verifyToken(this::asEditHtml);<NEW_LINE>getDoc(form).ifPre...
index, oldId, seqNo, primaryTerm);
88,666
int addMergedType(final int typeTableIndex1, final int typeTableIndex2) {<NEW_LINE>final int MERGED_TYPE_TAG = 130;<NEW_LINE>long data = typeTableIndex1 < typeTableIndex2 ? typeTableIndex1 | (((long) typeTableIndex2) << 32) : typeTableIndex2 | (((long) typeTableIndex1) << 32);<NEW_LINE>int hashCode = 0x7FFFFFFF & (MERG...
type2 = typeTable[typeTableIndex2].value;
700,267
protected void readMapDataBlocks(SearchRequest<BinaryMapDataObject> req, MapTree tree, MapIndex root) throws IOException {<NEW_LINE>List<BinaryMapDataObject> tempResults = null;<NEW_LINE>long baseId = 0;<NEW_LINE>while (true) {<NEW_LINE>if (req.isCancelled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int t = codedIS.readT...
= rs.objectNames.keys();
1,529,883
public int compare(String o1, String o2) {<NEW_LINE>List<Object> tokenizedList1 = getTokenizedList(o1);<NEW_LINE>List<Object> tokenizedList2 = getTokenizedList(o2);<NEW_LINE>for (int i = 0; i < Math.min(tokenizedList1.size(), tokenizedList2.size()); i++) {<NEW_LINE>Object token1 = tokenizedList1.get(i);<NEW_LINE>Object...
token2 = tokenizedList2.get(i);
314,022
public void marshall(WorkspaceCreationProperties workspaceCreationProperties, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (workspaceCreationProperties == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(wor...
workspaceCreationProperties.getCustomSecurityGroupId(), CUSTOMSECURITYGROUPID_BINDING);
194,175
private void checkUnionType(DiffCtx ctx, UnionTypeDefinition oldDef, UnionTypeDefinition newDef) {<NEW_LINE>Map<String, Type> oldMemberTypes = sortedMap(oldDef.getMemberTypes(), SchemaDiff::getTypeName);<NEW_LINE>Map<String, Type> newMemberTypes = sortedMap(newDef.getMemberTypes(), SchemaDiff::getTypeName);<NEW_LINE>fo...
, newMemberTypeName).build());
1,256,299
// For Atlas: http://localhost:7101/api/v1/graph?q=name,ftimer,:eq,:dist-avg,name,timer,:eq,:dist-avg,1,:axis&s=e-5m&l=0<NEW_LINE>public static void main(String[] args) {<NEW_LINE>MeterRegistry registry = SampleConfig.myMonitoringSystem();<NEW_LINE>Timer timer = Timer.builder("timer").publishPercentiles(0.5, 0.95).regi...
(), TimeUnit.NANOSECONDS));
920,037
public int write(ByteBuffer src) throws IOException {<NEW_LINE>if (closed) {<NEW_LINE>throw new ClosedChannelException();<NEW_LINE>}<NEW_LINE>if (buffer.remaining() <= 0) {<NEW_LINE>flushBuffer();<NEW_LINE>}<NEW_LINE>final int srcLength = src.remaining();<NEW_LINE>// easy case: enough free space in buffer for entire in...
) + buffer.remaining());
222,447
private boolean isDuplicate(AudioSegment segment1, AudioSegment segment2) {<NEW_LINE>if (mDuplicateCallDetectionPreference.isDuplicateCallDetectionByTalkgroupEnabled()) {<NEW_LINE>// Step 1 check for duplicate TO values<NEW_LINE>List<Identifier> to1 = segment1.getIdentifierCollection().getIdentifiers(Role.TO);<NEW_LINE...
).getIdentifiers(Role.TO);
1,010,408
final StartChangeRequestExecutionResult executeStartChangeRequestExecution(StartChangeRequestExecutionRequest startChangeRequestExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startChangeRequestExecutionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,710,428
public final void onInit() {<NEW_LINE>BeanFactory beanFactory = getBeanFactory();<NEW_LINE>Assert.isTrue(beanFactory instanceof ListableBeanFactory, "A ListableBeanFactory is required.");<NEW_LINE>Map<String, MBeanExporter> exporters = BeanFactoryUtils.beansOfTypeIncludingAncestors((ListableBeanFactory) beanFactory, MB...
this.objectName, this.defaultNotificationType);
147,537
private void _loadRealms() {<NEW_LINE>List<AuthRealm> authRealmConfigs = getSecurityService().getAuthRealm();<NEW_LINE>List<String> goodRealms = new ArrayList<String>();<NEW_LINE>for (AuthRealm authRealm : authRealmConfigs) {<NEW_LINE>List<Property> propConfigs = authRealm.getProperty();<NEW_LINE>Properties props = new...
add(authRealm.getName());
686,211
private void createPointerPicture() {<NEW_LINE>final Paint arrowPaint = new Paint();<NEW_LINE>arrowPaint.setColor(Color.BLACK);<NEW_LINE>arrowPaint.setAntiAlias(true);<NEW_LINE>arrowPaint.setStyle(Style.FILL);<NEW_LINE>arrowPaint.setAlpha(220);<NEW_LINE>// Create a little white dot in the middle of the compass rose<NEW...
centerPaint.setStyle(Style.FILL);
597,931
public DeliveryStreamEncryptionConfigurationInput unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeliveryStreamEncryptionConfigurationInput deliveryStreamEncryptionConfigurationInput = new DeliveryStreamEncryptionConfigurationInput();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_...
class).unmarshall(context));
508,441
public Num pow(Num n) {<NEW_LINE>// There is no BigDecimal.pow(BigDecimal). We could do:<NEW_LINE>// double Math.pow(double delegate.doubleValue(), double n)<NEW_LINE>// But that could overflow any of the three doubles.<NEW_LINE>// Instead perform:<NEW_LINE>// x^(a+b) = x^a * x^b<NEW_LINE>// Where:<NEW_LINE>// n = a+b<...
a = aplusb.subtract(b);
1,421,017
private void printInstruments(Engine engine, boolean printWhenEmpty) {<NEW_LINE>if (engine.getInstruments().isEmpty()) {<NEW_LINE>if (printWhenEmpty) {<NEW_LINE>println(" Installed Tools: none");<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>println(" Installed Tools:");<NEW_LINE>List<Instrument> instruments = sortedInstrume...
String instrumentFormat = " %-" + nameLength + "s version %s%n";
1,040,447
private void templateDetailsInitIfNotExist(long id, String name, String value) {<NEW_LINE>TransactionLegacy txn = TransactionLegacy.currentTxn();<NEW_LINE>PreparedStatement stmt = null;<NEW_LINE>PreparedStatement stmtInsert = null;<NEW_LINE>boolean insert = false;<NEW_LINE>try {<NEW_LINE>txn.start();<NEW_LINE>stmt = tx...
"Unable to init template " + id + " datails: " + name);
1,086,755
private void checkServerList() {<NEW_LINE>final Set<String> activeServers = manager.getActiveServers();<NEW_LINE>for (String server : activeServers) {<NEW_LINE>int id = manager.getNodeIdByName(server);<NEW_LINE>if (id == -1) {<NEW_LINE>ODistributedServerLog.info(this, manager.getLocalNodeName(), null, ODistributedServe...
id = manager.getNodeIdByName(server);
345,159
private Subject buildSubject(Jwt jwt, SignedJwt signedJwt) {<NEW_LINE>Principal principal = buildPrincipal(jwt);<NEW_LINE>TokenCredential.Builder builder = TokenCredential.builder();<NEW_LINE>jwt.issueTime().ifPresent(builder::issueTime);<NEW_LINE>jwt.expirationTime().ifPresent(builder::expTime);<NEW_LINE>jwt.issuer(<M...
).ifPresent(builder::issuer);
1,434,546
public Iterable<Map<String, Object>> run(final String statement, final Map<String, Object> map) {<NEW_LINE>try {<NEW_LINE>logQuery(statement, map);<NEW_LINE>final ResultCursor cursor = resolveImmediately(tx.runAsync(statement, map));<NEW_LINE>final List<Record> records = <MASK><NEW_LINE>return Iterables.map(new RecordM...
resolveImmediately(cursor.listAsync());
438,712
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) {<NEW_LINE>List<Class<? extends Annotation>> annotationTypes = getAnnotations();<NEW_LINE>Class<? extends Annotation> namedAnnotation = null;<NEW_LINE>String[] names = null;<NEW_LINE>ScopedProxyMode proxyMode...
createScopedProxy(definitionHolder, registry, true);
284,312
public static void drawLoadingProgress(Graphics g, float alpha) {<NEW_LINE>String text, file;<NEW_LINE>int progress;<NEW_LINE>// determine current action<NEW_LINE>if ((file = OszUnpacker.getCurrentFileName()) != null) {<NEW_LINE>text = "Unpacking new beatmaps...";<NEW_LINE>progress = OszUnpacker.getUnpackerProgress();<...
= container.getHeight() - marginY;
426,338
protected void installTabInfoStatusBarControl() {<NEW_LINE>final var leftItems = mediathekGui.getStatusBarController()<MASK><NEW_LINE>Platform.runLater(() -> {<NEW_LINE>filmInfoLabel = new DownloadTabInformationLabel(daten);<NEW_LINE>if (isVisible())<NEW_LINE>leftItems.add(filmInfoLabel);<NEW_LINE>});<NEW_LINE>addCompo...
.getStatusBar().getLeftItems();
791,630
final GetShardIteratorResult executeGetShardIterator(GetShardIteratorRequest getShardIteratorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getShardIteratorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<G...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,606,219
public Object execute(final Map<Object, Object> iArgs) {<NEW_LINE>final ODatabaseDocumentInternal database = getDatabase();<NEW_LINE>database.checkSecurity(ORule.ResourceGeneric.SERVER, "remove", ORole.PERMISSION_EXECUTE);<NEW_LINE>if (!(database instanceof ODatabaseDocumentDistributed)) {<NEW_LINE>throw new OCommandEx...
ODatabaseDocumentDistributed) database).getDistributedManager();
453,300
private OAuth2AuthenticatedPrincipal convertClaimsSet(TokenIntrospectionSuccessResponse response) {<NEW_LINE>Collection<GrantedAuthority> authorities = new ArrayList<>();<NEW_LINE>Map<String, Object> claims = response.toJSONObject();<NEW_LINE>if (response.getAudience() != null) {<NEW_LINE>List<String> <MASK><NEW_LINE>f...
audiences = new ArrayList<>();
1,008,999
public void actionPerformed(ActionEvent e) {<NEW_LINE>JButton src = (JButton) e.getSource();<NEW_LINE>if (src instanceof SIPCommButton) {<NEW_LINE>// Load image<NEW_LINE>int index = Integer.parseInt(src.getName());<NEW_LINE>BufferedImage image = AvatarStackManager.loadImage(index);<NEW_LINE>// Set the new image<NEW_LIN...
(bimage).getImage());
1,611,160
public RelNode removeSemiJoin() {<NEW_LINE>// semi join could not exist when ENABLE_LV_SUBQUERY_UNWRAP is disabled<NEW_LINE>// thus there is no need to transform<NEW_LINE>if (!PlannerContext.getPlannerContext(getPushedRelNode()).getParamManager().getBoolean(ConnectionParams.ENABLE_LV_SUBQUERY_UNWRAP)) {<NEW_LINE>return...
planner.setRoot(getPushedRelNode());
1,685,652
private synchronized void createJob(final EventContainer eventContainer, final CalDavEvent event, final int index) throws SchedulerException {<NEW_LINE>final String triggerStart = JOB_NAME_EVENT_START + "-" + event.getShortName() + "-" + index;<NEW_LINE>final boolean startJobTriggerDeleted = this.scheduler.unscheduleJo...
triggerStart, JOB_NAME_EVENT_START).build();
1,574,422
public boolean init(String uri, final SnapshotThrottle snapshotThrottle, final SnapshotCopierOptions opts) {<NEW_LINE>this.rpcService = opts.getRaftClientService();<NEW_LINE>this.timerManager = opts.getTimerManager();<NEW_LINE>this.raftOptions = opts.getRaftOptions();<NEW_LINE>this.snapshotThrottle = snapshotThrottle;<...
uri.substring(slasPos + 1);
1,104,141
private void rebuildTagList(File directory) {<NEW_LINE>this.tagList = new TreeSet<>();<NEW_LINE>try (org.eclipse.jgit.lib.Repository repository = getJGitRepository(directory.getAbsolutePath())) {<NEW_LINE>try (Git git = new Git(repository)) {<NEW_LINE>// refs sorted according to tag names<NEW_LINE>List<Ref> refList = g...
commit2Tags = new HashMap<>();
730,767
private int outputEntries(PrintWriter pw, ContextNode node, String parentNamePrefix) {<NEW_LINE>int numberOfEntries = 0;<NEW_LINE>for (Entry<String, Object> entry : new TreeMap<>(node.children).entrySet()) {<NEW_LINE>String key = parentNamePrefix + entry.getKey();<NEW_LINE>Object value = entry.getValue();<NEW_LINE>if (...
).getProperty(Constants.OBJECTCLASS);
1,267,566
public void initialize() throws IOException, InstantiationException, IllegalAccessException {<NEW_LINE>LOG.info("Initialize a parameter server");<NEW_LINE>ServerRow.maxLockWaitTimeMs = conf.getInt(AngelConf.ANGEL_PS_MAX_LOCK_WAITTIME_MS, AngelConf.DEFAULT_ANGEL_PS_MAX_LOCK_WAITTIME_MS);<NEW_LINE>ServerRow.useAdaptiveKe...
AngelConf.ANGEL_PS_SPARSE_TO_DENSE_FACTOR, AngelConf.DEFAULT_ANGEL_PS_SPARSE_TO_DENSE_FACTOR);
523,066
public LogicalPlan visitValues(ValuesRelation node, ExpressionMapping context) {<NEW_LINE>List<ColumnRefOperator<MASK><NEW_LINE>for (int fieldIdx = 0; fieldIdx < node.getRelationFields().size(); ++fieldIdx) {<NEW_LINE>valuesOutputColumns.add(columnRefFactory.create(node.getColumnOutputNames().get(fieldIdx), node.getRel...
> valuesOutputColumns = Lists.newArrayList();
411,760
public void init(GameContainer container, StateBasedGame game) throws SlickException {<NEW_LINE>this.container = container;<NEW_LINE>this.game = game;<NEW_LINE>input = container.getInput();<NEW_LINE>int width = container.getWidth();<NEW_LINE>int height = container.getHeight();<NEW_LINE>// create offscreen graphics<NEW_...
= new Image(width, height);
1,292,247
public HiresTileModel rotate(int start, int count, float pitch, float yaw, float roll) {<NEW_LINE>double halfYaw = Math.toRadians(yaw) * 0.5, qy1 = TrigMath.sin(halfYaw), qw1 = TrigMath.cos(halfYaw), halfPitch = Math.toRadians(pitch) * 0.5, qx2 = TrigMath.sin(halfPitch), qw2 = TrigMath.cos(halfPitch), halfRoll = Math.t...
* qx2, qwA = qw1 * qw2;
1,565,435
public Object pushFile(final String groupName, final String path, final File file, final Map<String, Serializable> extraMeta) throws DotDataException {<NEW_LINE>if (!this.existsGroup(groupName)) {<NEW_LINE>throw new IllegalArgumentException(String.format(THE_BUCKET_NAME_S_DOES_NOT_HAVE_ANY_FILE_MAPPED, groupName));<NEW...
toLowerCase()).toFile();
1,290,181
MessagePostProcessor[] appendTracingMessagePostProcessor(Object obj, Field field) {<NEW_LINE>// Skip out if we can't read the field for the existing post processors<NEW_LINE>if (field == null)<NEW_LINE>return null;<NEW_LINE>MessagePostProcessor[] processors;<NEW_LINE>try {<NEW_LINE>// don't use "field.get(obj) instance...
]) field.get(obj);
289,662
public static EObject send(EProc proc, EObject pid, EObject msg) throws Pausable {<NEW_LINE>// TODO handle ports also?<NEW_LINE>proc.check_exit();<NEW_LINE>// log.log(Level.FINER, "ignored options to send: " + options);<NEW_LINE>EHandle p;<NEW_LINE>EAtom reg_name;<NEW_LINE>if ((p = pid.testHandle()) != null) {<NEW_LINE...
node_name, reg_name, msg, null);
951,562
public static long parseVersion(String ver) {<NEW_LINE>if (ver == null) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>String[] verArray = ver.split("[.,]");<NEW_LINE>int len = verArray.length;<NEW_LINE>if (len <= 0) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>int part = Integer.parseInt(verArray[0].trim());<NEW_...
((long) part << 32);
1,705,158
public E peek() {<NEW_LINE>final AtomicReferenceArray<E> buffer = consumerBuffer;<NEW_LINE>final long cIndex = lpConsumerIndex();<NEW_LINE>final long mask = consumerMask;<NEW_LINE>final int offset = modifiedCalcCircularRefElementOffset(cIndex, mask);<NEW_LINE>Object e = lvRefElement(buffer, offset);<NEW_LINE>if (e == n...
(buffer, mask), cIndex);
865,524
public void updateTile() {<NEW_LINE>if (currentPlan < 0 || currentPlan >= plans.size) {<NEW_LINE>currentPlan = -1;<NEW_LINE>}<NEW_LINE>if (consValid() && currentPlan != -1) {<NEW_LINE>time += edelta() * speedScl * Vars.state.rules.unitBuildSpeed(team);<NEW_LINE>progress += edelta() * Vars.<MASK><NEW_LINE>speedScl = Mat...
state.rules.unitBuildSpeed(team);
699,149
public static KeyValuePart[] split(MatrixMeta matrixMeta, int rowId, long[] keys, double[] values) {<NEW_LINE>PartitionKey[] matrixParts = matrixMeta.getPartitionKeys();<NEW_LINE>int matrixPartNumMinus1 = matrixParts.length - 1;<NEW_LINE>KeyValuePart[] keyValueParts = new KeyValuePart[matrixParts.length];<NEW_LINE>int ...
i], values[i]);
1,711,194
public void run() {<NEW_LINE>String title = NbBundle.<MASK><NEW_LINE>pui.setup(processor);<NEW_LINE>final DialogDescriptor dd2 = new DialogDescriptor(panel, title);<NEW_LINE>if (panel instanceof ValidationPanel) {<NEW_LINE>ValidationPanel vp = (ValidationPanel) panel;<NEW_LINE>vp.addChangeListener(new ChangeListener() ...
getMessage(DesktopImportControllerUI.class, "DesktopImportControllerUI.processor.ui.dialog.title");
826,674
private Mono<Response<GuestUsagesResourceInner>> createWithResponseAsync(String resourceGroupName, String resourceName, GuestUsagesResourceInner resource, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is ...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
281,487
public void marshall(AutomationExecution automationExecution, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (automationExecution == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(automationExecution.getAuto...
automationExecution.getResolvedTargets(), RESOLVEDTARGETS_BINDING);
871,828
public void onCheckedChanged(CompoundButton compoundButton, boolean enabled) {<NEW_LINE>final MapMarkersHelper mapMarkersHelper = app.getMapMarkersHelper();<NEW_LINE>final GPXFile[] gpxFile = new GPXFile[1];<NEW_LINE>boolean disabled = !enabled;<NEW_LINE>if (groupIsDisabled && !group.wasShown() && group.getWptCategorie...
0] = selectedGpxFile.getGpxFile();
758,745
private JCMethodDecl generateCleanMethod(BuilderJob job) {<NEW_LINE><MASK><NEW_LINE>ListBuffer<JCStatement> statements = new ListBuffer<JCStatement>();<NEW_LINE>for (BuilderFieldData bfd : job.builderFields) {<NEW_LINE>if (bfd.singularData != null && bfd.singularData.getSingularizer() != null) {<NEW_LINE>bfd.singularDa...
JavacTreeMaker maker = job.getTreeMaker();
982,662
public void actionPerformed(java.awt.event.ActionEvent p_evt) {<NEW_LINE>ViaRule selected_object = rule_list.getSelectedValue();<NEW_LINE>if (selected_object == null || !(selected_object instanceof ViaRule)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>app.freerouting.rules.BoardRules board_rules = board_frame.board_panel.bo...
selected_object, board_rules.via_infos, board_frame);
21,786
public Response toResponse(Exception exception) {<NEW_LINE>if (exception instanceof WebApplicationException) {<NEW_LINE>// An exception that already maps directly to a standard HTTP Response, likely thrown<NEW_LINE>// somewhere inside Jersey aka if the user typed a bad URI.<NEW_LINE>WebApplicationException e = (WebAppl...
entity(stackTrace).build();
973,210
private void loadCustomizedActions(GradleExecConfiguration c) {<NEW_LINE>String id;<NEW_LINE>if (c != null) {<NEW_LINE>id = c.getId();<NEW_LINE>} else {<NEW_LINE>id = GradleExecConfiguration.DEFAULT;<NEW_LINE>}<NEW_LINE>ActionsHolder h = configHolders.get(id);<NEW_LINE>if (h != null) {<NEW_LINE>customActions = h.custom...
= new CustomActionMapping(ca, action);
993,422
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasObservedGeneration()) {<NEW_LINE>setObservedGeneration(other.get...
bitField0_ = (bitField0_ & ~0x00000040);
710,023
final GetCertificateResult executeGetCertificate(GetCertificateRequest getCertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCertificateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,486,296
public static void addFacet(FaceletContext ctx, UIComponent parent, UIComponent c, String facetName) {<NEW_LINE>// facets now can have multiple children and the direct<NEW_LINE>// child of a facet is always an UIPanel (since 2.0)<NEW_LINE>UIComponent facet = parent.getFacets().get(facetName);<NEW_LINE>if (facet == null...
).put(facetName, facet);
1,337,673
final ListDelegatedAdminAccountsResult executeListDelegatedAdminAccounts(ListDelegatedAdminAccountsRequest listDelegatedAdminAccountsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDelegatedAdminAccountsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
683,866
private void updateHeader() {<NEW_LINE>if (selectedFeature != null) {<NEW_LINE>Drawable icon = getIcon<MASK><NEW_LINE>((ImageView) mainView.findViewById(R.id.header_icon)).setImageDrawable(icon);<NEW_LINE>String title = getString(selectedFeature.getTitleId());<NEW_LINE>((TextView) mainView.findViewById(R.id.header_titl...
(selectedFeature.getIconId(nightMode));
1,522,059
private void remove_all_objects(HashMap<String, F[]> map, String name, Object object) {<NEW_LINE>F[] array = map.get(name);<NEW_LINE>if (array != null) {<NEW_LINE>int LAST = array.length - 1;<NEW_LINE>while (LAST >= 0 && array[LAST] == null) {<NEW_LINE>LAST--;<NEW_LINE>}<NEW_LINE>for (int idx = LAST; idx >= 0; idx--) {...
1, array, idx, remain);
895,187
public Response makeResponse(FitNesseContext context, Request request) throws Exception {<NEW_LINE>String resource = request.getResource();<NEW_LINE>String tags = "";<NEW_LINE>WikiPage wikiPage = null;<NEW_LINE>if (context.getRootPage() != null) {<NEW_LINE>WikiPagePath path = PathParser.parse(resource);<NEW_LINE>wikiPa...
PageData pageData = wikiPage.getData();
570,840
public int allocSlice(final byte[] slice, final int upto) {<NEW_LINE>final int level = slice[upto] & 15;<NEW_LINE>final int newLevel = NEXT_LEVEL_ARRAY[level];<NEW_LINE>final int newSize = LEVEL_SIZE_ARRAY[newLevel];<NEW_LINE>// Maybe allocate another block<NEW_LINE>if (byteUpto > BYTE_BLOCK_SIZE - newSize) {<NEW_LINE>...
, upto - 3)) & 0xFFFFFF;
1,062,444
private static List<Map<String, Object>> convertLiquibaseChangesets(List<Map<String, Object>> changeSets) {<NEW_LINE>return changeSets.stream().map((changeset) -> {<NEW_LINE>Map<String, Object> converted = new LinkedHashMap<>();<NEW_LINE>converted.put("id", changeset.get("ID"));<NEW_LINE>converted.put("author", changes...
))) : emptySet());
422,511
private void jbInit() {<NEW_LINE>this.getContentPane().setLayout(borderLayout1);<NEW_LINE>jTable1.addKeyListener(new FileListJTable1KeyAdapter(this));<NEW_LINE>jLabel1.setText("pages");<NEW_LINE>jLabel2.setText("-");<NEW_LINE>model.addTableModelListener(new FileListFtmTableModelAdapter(this));<NEW_LINE>this.getContentP...
java.awt.BorderLayout.CENTER);
17,133
String createButtonHtml(SocialLoginConfig config) {<NEW_LINE>if (config == null) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>String uniqueId = config.getUniqueId();<NEW_LINE>String displayName = config.getDisplayName();<NEW_LINE>String buttonValue = WebUtils<MASK><NEW_LINE>StringBuilder buttonHtml = new StringBuilder();<...
.htmlEncode(getObscuredConfigId(uniqueId));
385,389
public void load() throws IOException {<NEW_LINE>program = Util.loadFile(file);<NEW_LINE>if (program == null) {<NEW_LINE>System.err.println("There was a problem loading " + file);<NEW_LINE>System.err.println("This may happen because you don't have permissions to read the file, or the file has gone missing.");<NEW_LINE>...
System.err.println("delete the bad characters to get rid of this warning.");
1,240,660
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String folderId) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE><MASK><NEW_LINE>Folder2 folder = emc.find(folderId, ...
Business business = new Business(emc);
1,691,730
public static <T extends ParametersEnhancer> T reloadIfNecessary(@Nonnull final Class<T> clazz) throws IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException, ClassNotFoundException {<NEW_LINE>T instance = clazz.newInstance();<NEW_LINE>List<URL> urls = ContainerUtilRt.newArrayL...
) method.invoke(baseLoader));
1,156,187
@Override<NEW_LINE>protected Task<Void> onStopEngine() {<NEW_LINE>LOG.i("onStopEngine:", "About to clean up.");<NEW_LINE>getOrchestrator().remove(JOB_FOCUS_RESET);<NEW_LINE>getOrchestrator().remove(JOB_FOCUS_END);<NEW_LINE>if (mCamera != null) {<NEW_LINE>try {<NEW_LINE>LOG.i("onStopEngine:", "Clean up.", "Releasing cam...
w("onStopEngine:", "Clean up.", "Returning.");
1,596,548
public int system(Object commandObj) {<NEW_LINE>String cmd = pathToJavaStr(commandObj);<NEW_LINE>LOGGER.fine(() -> "os.system: " + cmd);<NEW_LINE>String[] command;<NEW_LINE>String osProperty = System.getProperty("os.name");<NEW_LINE>if (osProperty != null && osProperty.toLowerCase(Locale.ENGLISH).startsWith("windows"))...
PipePump stdout = null, stderr = null;
341,220
public void updateAlarm(SonosAlarm alarm) {<NEW_LINE>if (alarm != null) {<NEW_LINE>Map<String, String> inputs = new <MASK><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.getDuration());<NEW_LIN...
HashMap<String, String>();
282,358
private void reconcileUserDataFiles() {<NEW_LINE>int count = 0;<NEW_LINE>if (userFileSystem == null || !versionedFileSystem.isOnline()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>for (String itemName : userFileSystem.getItemNames("/")) {<NEW_LINE>if (Thread.interrupted() || !versionedFileSystem.isOnline()) {...
this, "Removed " + count + " user data files which were obsolete");
554,671
public void run() {<NEW_LINE>for (int index = 0; index < warmUpCount; index++) {<NEW_LINE>System.out.println("Begin Warm up ....");<NEW_LINE>CommonQuery commonQuery = ldbcQueryList.get(index % ldbcQueryList.size());<NEW_LINE>HashMap<String, String> queryParameter = commonQuery.getSingleParameter(index);<NEW_LINE>common...
= currentValue % ldbcQueryList.size();
381,651
public StateInstance toObject(ResultSet resultSet) throws SQLException {<NEW_LINE>StateInstanceImpl stateInstance = new StateInstanceImpl();<NEW_LINE>stateInstance.setId(resultSet.getString("id"));<NEW_LINE>stateInstance.setMachineInstanceId(resultSet.getString("machine_inst_id"));<NEW_LINE>stateInstance.setName(result...
resultSet.getString("status")));
939,626
public ResultSet executeQuery(String sql) throws SQLException {<NEW_LINE>// System.out.println("QUERY: ["+sql+"]");<NEW_LINE>if (connection.getSchema() == null)<NEW_LINE>throw new SQLException("No active index set for this driver. Pleas specify an active index or alias by executing 'USE <index/alias>' first");<NEW_LINE...
add(new Column("Explanation"));
732,827
private boolean changeKeyStoreType(KeyStoreType newKeyStoreType) {<NEW_LINE>try {<NEW_LINE>KeyStoreHistory history = kseFrame.getActiveKeyStoreHistory();<NEW_LINE>KeyStoreState currentState = history.getCurrentState();<NEW_LINE>KeyStore currentKeyStore = currentState.getKeyStore();<NEW_LINE>KeyStore newKeyStore = KeySt...
newKeyStore.setCertificateEntry(alias, trustedCertificate);
586,651
public void updateProducerSettingsFromStream(DBRProgressMonitor monitor, @NotNull StreamTransferProducer producer, DataTransferSettings dataTransferSettings) {<NEW_LINE>monitor.beginTask("Update data produces settings from import stream", 1);<NEW_LINE>final Map<String, Object> procProps = dataTransferSettings.getProces...
StreamEntityMapping entityMapping = producer.getEntityMapping();
1,232,112
private void updateObjective(GraphManager graph) {<NEW_LINE>if (snapshot < graph.data().stats().snapshot()) {<NEW_LINE>totalCostNext = INIT_ZERO;<NEW_LINE>// TODO: we should not include the graph's uncommitted writes, but only the persisted counts in the costs<NEW_LINE>setBranchingFactor(graph);<NEW_LINE>setCostExponen...
trace(optimiser.toString());
1,813,726
public String collectClaims(@RequestParam("client_id") String clientId, @RequestParam(value = "redirect_uri", required = false) String redirectUri, @RequestParam("ticket") String ticketValue, @RequestParam(value = "state", required = false) String state, Model m, OIDCAuthenticationToken auth) {<NEW_LINE>ClientDetailsEn...
template = UriComponentsBuilder.fromUriString(redirectUri);
1,727,937
public double bearingTo(final IGeoPoint other) {<NEW_LINE>final double lat1 = Math.toRadians(this.mLatitude);<NEW_LINE>final double long1 = Math.toRadians(this.mLongitude);<NEW_LINE>final double lat2 = Math.toRadians(other.getLatitude());<NEW_LINE>final double long2 = Math.toRadians(other.getLongitude());<NEW_LINE>fina...
.atan2(a, b));
591,234
private static RubyNumeric f_addsub(ThreadContext context, RubyClass metaClass, RubyInteger anum, RubyInteger aden, RubyInteger bnum, RubyInteger bden, final boolean plus) {<NEW_LINE>RubyInteger newNum, newDen, g, a, b;<NEW_LINE>if (anum instanceof RubyFixnum && aden instanceof RubyFixnum && bnum instanceof RubyFixnum ...
f_sub(context, a, b);
1,447,228
public Object buildAll(String modelName, ModelParameter parameter, Project project) {<NEW_LINE>final LaunchMode mode = LaunchMode.valueOf(parameter.getMode());<NEW_LINE>final List<org.gradle.api.artifacts.Dependency> enforcedPlatforms = ToolingUtils.getEnforcedPlatforms(project);<NEW_LINE>final PlatformImports platform...
Configuration deploymentConfig = classpathBuilder.getDeploymentConfiguration();
442,807
private int threshHoldExtractCluster(List<Integer> orderedFile, int[] designations) {<NEW_LINE>int clustersFound = 0;<NEW_LINE>OnLineStatistics stats = new OnLineStatistics();<NEW_LINE>for (double r : reach_d) if (!Double.isInfinite(r))<NEW_LINE>stats.add(r);<NEW_LINE>double thresh = stats.getMean() + stats.getStandard...
) designations[i++] = clustersFound;